3753 lines
2.3 MiB
3753 lines
2.3 MiB
function _typeof2(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof2=function _typeof2(obj){return typeof obj;};}else{_typeof2=function _typeof2(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof2(obj);}!function(e,t){"object"==(typeof exports==="undefined"?"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,i;function c(){return e.apply(null,arguments);}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e);}function u(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e);}function l(e){return void 0===e;}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e);}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e);}function f(e,t){var n,s=[];for(n=0;n<e.length;++n){s.push(t(e[n],n));}return s;}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t);}function _(e,t){for(var n in t){m(t,n)&&(e[n]=t[n]);}return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e;}function y(e,t,n,s){return Tt(e,t,n,s,!0).utc();}function g(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 v(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,function(e){return null!=e;}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s;}return e._isValid;}function p(e){var t=y(NaN);return null!=e?_(g(t),e):g(t).userInvalidated=!0,t;}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++){if(s in t&&e.call(this,t[s],s,t))return!0;}return!1;};var r=c.momentProperties=[];function w(e,t){var n,s,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),0<r.length)for(n=0;n<r.length;n++){l(i=t[s=r[n]])||(e[s]=i);}return e;}var t=!1;function M(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,c.updateOffset(this),t=!1);}function k(e){return e instanceof M||null!=e&&null!=e._isAMomentObject;}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e);}function D(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(t)),n;}function a(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++){(n&&e[s]!==t[s]||!n&&D(e[s])!==D(t[s]))&&a++;}return a+r;}function Y(e){!1===c.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e);}function n(i,r){var a=!0;return _(function(){if(null!=c.deprecationHandler&&c.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==_typeof2(arguments[n])){for(var s in e+="\n["+n+"] ",arguments[0]){e+=s+": "+arguments[0][s]+", ";}e=e.slice(0,-2);}else e=arguments[n];t.push(e);}Y(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+new Error().stack),a=!1;}return r.apply(this,arguments);},r);}var s,O={};function T(e,t){null!=c.deprecationHandler&&c.deprecationHandler(e,t),O[e]||(Y(t),O[e]=!0);}function b(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e);}function x(e,t){var n,s=_({},e);for(n in t){m(t,n)&&(u(e[n])&&u(t[n])?(s[n]={},_(s[n],e[n]),_(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);}for(n in e){m(e,n)&&!m(t,n)&&u(e[n])&&(s[n]=_({},s[n]));}return s;}function P(e){null!=e&&this.set(e);}c.suppressDeprecationWarnings=!1,c.deprecationHandler=null,s=Object.keys?Object.keys:function(e){var t,n=[];for(t in e){m(e,t)&&n.push(t);}return n;};var W={};function C(e,t){var n=e.toLowerCase();W[n]=W[n+"s"]=W[t]=e;}function H(e){return"string"==typeof e?W[e]||W[e.toLowerCase()]:void 0;}function R(e){var t,n,s={};for(n in e){m(e,n)&&(t=H(n))&&(s[t]=e[n]);}return s;}var U={};function F(e,t){U[e]=t;}function L(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s;}var N=/(\[[^\[]*\])|(\\)?([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,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},E={};function I(e,t,n,s){var i=s;"string"==typeof s&&(i=function i(){return this[s]();}),e&&(E[e]=i),t&&(E[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2]);}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e);});}function A(e,t){return e.isValid()?(t=j(t,e.localeData()),V[t]=V[t]||function(s){var e,i,t,r=s.match(N);for(e=0,i=r.length;e<i;e++){E[r[e]]?r[e]=E[r[e]]:r[e]=(t=r[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");}return function(e){var t,n="";for(t=0;t<i;t++){n+=b(r[t])?r[t].call(e,s):r[t];}return n;};}(t),V[t](e)):e.localeData().invalidDate();}function j(e,t){var n=5;function s(e){return t.longDateFormat(e)||e;}for(G.lastIndex=0;0<=n&&G.test(e);){e=e.replace(G,s),G.lastIndex=0,n-=1;}return e;}var Z=/\d/,z=/\d\d/,$=/\d{3}/,q=/\d{4}/,J=/[+-]?\d{6}/,B=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,se=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[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,oe={};function ue(e,n,s){oe[e]=b(n)?n:function(e,t){return e&&s?s:n;};}function le(e,t){return m(oe,e)?oe[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i;})));}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");}var de={};function ce(e,n){var t,s=n;for("string"==typeof e&&(e=[e]),h(n)&&(s=function s(e,t){t[n]=D(e);}),t=0;t<e.length;t++){de[e[t]]=s;}}function fe(e,i){ce(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s);});}var me=0,_e=1,ye=2,ge=3,ve=4,pe=5,we=6,Me=7,ke=8;function Se(e){return De(e)?366:365;}function De(e){return e%4==0&&e%100!=0||e%400==0;}I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e;}),I(0,["YY",2],0,function(){return this.year()%100;}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),C("year","y"),F("year",1),ue("Y",se),ue("YY",B,z),ue("YYYY",ee,q),ue("YYYYY",te,J),ue("YYYYYY",te,J),ce(["YYYYY","YYYYYY"],me),ce("YYYY",function(e,t){t[me]=2===e.length?c.parseTwoDigitYear(e):D(e);}),ce("YY",function(e,t){t[me]=c.parseTwoDigitYear(e);}),ce("Y",function(e,t){t[me]=parseInt(e,10);}),c.parseTwoDigitYear=function(e){return D(e)+(68<D(e)?1900:2e3);};var Ye,Oe=Te("FullYear",!0);function Te(t,n){return function(e){return null!=e?(xe(this,t,e),c.updateOffset(this,n),this):be(this,t);};}function be(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN;}function xe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&De(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n));}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?De(e)?29:28:31-s%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;},I("M",["MM",2],"Mo",function(){return this.month()+1;}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e);}),I("MMMM",0,0,function(e){return this.localeData().months(this,e);}),C("month","M"),F("month",8),ue("M",B),ue("MM",B,z),ue("MMM",function(e,t){return t.monthsShortRegex(e);}),ue("MMMM",function(e,t){return t.monthsRegex(e);}),ce(["M","MM"],function(e,t){t[_e]=D(e)-1;}),ce(["MMM","MMMM"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[_e]=i:g(n).invalidMonth=e;});var We=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ce="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=D(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e;}function Ue(e){return null!=e?(Re(this,e),c.updateOffset(this,!0),this):be(this,"Month");}var Fe=ae;var Le=ae;function Ne(){function e(e,t){return t.length-e.length;}var t,n,s=[],i=[],r=[];for(t=0;t<12;t++){n=y([2e3,t]),s.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));}for(s.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++){s[t]=he(s[t]),i[t]=he(i[t]);}for(t=0;t<24;t++){r[t]=he(r[t]);}this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i");}function Ge(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e);}else t=new Date(Date.UTC.apply(null,arguments));return t;}function Ve(e,t,n){var s=7+t-n;return-((7+Ge(e,0,s).getUTCDay()-t)%7)+s-1;}function Ee(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ve(e,s,i);return a=o<=0?Se(r=e-1)+o:o>Se(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a};}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i};}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7;}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),F("week",5),F("isoWeek",5),ue("w",B),ue("ww",B,z),ue("W",B),ue("WW",B,z),fe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=D(e);});function je(e,t){return e.slice(t,7).concat(e.slice(0,t));}I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e);}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e);}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e);}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ue("d",B),ue("e",B),ue("E",B),ue("dd",function(e,t){return t.weekdaysMinRegex(e);}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e);}),ue("dddd",function(e,t){return t.weekdaysRegex(e);}),fe(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e;}),fe(["d","e","E"],function(e,t,n,s){t[s]=D(e);});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var $e="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length;}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++){n=y([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);}for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++){o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);}this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i");}function Xe(){return this.hours()%12||12;}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t);});}function et(e,t){return t._meridiemParse;}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Xe),I("k",["kk",2],0,function(){return this.hours()||24;}),I("hmm",0,0,function(){return""+Xe.apply(this)+L(this.minutes(),2);}),I("hmmss",0,0,function(){return""+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2);}),I("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2);}),I("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2);}),Ke("a",!0),Ke("A",!1),C("hour","h"),F("hour",13),ue("a",et),ue("A",et),ue("H",B),ue("h",B),ue("k",B),ue("HH",B,z),ue("hh",B,z),ue("kk",B,z),ue("hmm",Q),ue("hmmss",X),ue("Hmm",Q),ue("Hmmss",X),ce(["H","HH"],ge),ce(["k","kk"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s;}),ce(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e;}),ce(["h","hh"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0;}),ce("hmm",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0;}),ce("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0;}),ce("Hmm",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s));}),ce("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i));});var tt,nt=Te("Hours",!0),st={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:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace("_","-"):e;}function ot(e){var t=null;if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,require("./locale/"+e),ut(t);}catch(e){}return it[e];}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr;}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T("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."),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config;}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config);}),ut(e),it[e];}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e];}return function(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=at(e[r]).split("-")).length,n=(n=at(e[r+1]))?n.split("-"):null;0<t;){if(s=ot(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--;}r++;}return tt;}(e);}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11<n[_e]?_e:n[ye]<1||n[ye]>Pe(n[me],n[_e])?ye:n[ge]<0||24<n[ge]||24===n[ge]&&(0!==n[ve]||0!==n[pe]||0!==n[we])?ge:n[ve]<0||59<n[ve]?ve:n[pe]<0||59<n[pe]?pe:n[we]<0||999<n[we]?we:-1,g(e)._overflowDayOfYear&&(t<me||ye<t)&&(t=ye),g(e)._overflowWeeks&&-1===t&&(t=Me),g(e)._overflowWeekday&&-1===t&&(t=ke),g(e).overflow=t),e;}function ct(e,t,n){return null!=e?e:null!=t?t:n;}function ft(e){var t,n,s,i,r,a=[];if(!e._d){var o,u;for(o=e,u=new Date(c.now()),s=o._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[ye]&&null==e._a[_e]&&function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=ct(t.GG,e._a[me],Ie(bt(),1,4).year),s=ct(t.W,1),((i=ct(t.E,1))<1||7<i)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ie(bt(),r,a);n=ct(t.gg,e._a[me],l.year),s=ct(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(u=!0)):i=r;}s<1||s>Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear);}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t){e._a[t]=a[t]=s[t];}for(;t<7;t++){e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];}24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o;}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0);}}var mt=/^\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)?)?$/,_t=/^\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)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["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}/]],vt=[["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/]],pt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;t<n;t++){if(gt[t][1].exec(u[1])){i=gt[t][0],s=!1!==gt[t][2];break;}}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=vt.length;t<n;t++){if(vt[t][1].exec(u[3])){r=(u[2]||" ")+vt[t][0];break;}}if(null==r)return void(e._isValid=!1);}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!yt.exec(u[4]))return void(e._isValid=!1);a="Z";}e._f=i+(r||"")+(a||""),Yt(e);}else e._isValid=!1;}var Mt=/^(?:(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}))$/;function kt(e,t,n,s,i,r){var a=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t;}return t;}(e),He.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a;}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,s,i=Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var r=kt(i[4],i[3],i[2],i[5],i[6],i[7]);if(t=i[1],n=r,s=e,t&&ze.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(g(s).weekdayMismatch=!0,!(s._isValid=!1)))return;e._a=r,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return(s-i)/100*60+i;}(i[8],i[9],i[10]),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0;}else e._isValid=!1;}function Yt(e){if(e._f!==c.ISO_8601){if(e._f!==c.RFC_2822){e._a=[],g(e).empty=!0;var t,n,s,i,r,a,o,u,l=""+e._i,h=l.length,d=0;for(s=j(e._f,e._locale).match(N)||[],t=0;t<s.length;t++){i=s[t],(n=(l.match(le(i,e))||[])[0])&&(0<(r=l.substr(0,l.indexOf(n))).length&&g(e).unusedInput.push(r),l=l.slice(l.indexOf(n)+n.length),d+=n.length),E[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),a=i,u=e,null!=(o=n)&&m(de,a)&&de[a](o,u._a,u,a)):e._strict&&!n&&g(e).unusedTokens.push(i);}g(e).charsLeftOver=h-d,0<l.length&&g(e).unusedInput.push(l),e._a[ge]<=12&&!0===g(e).bigHour&&0<e._a[ge]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[ge]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0)),t);}(e._locale,e._a[ge],e._meridiem),ft(e),dt(e);}else Dt(e);}else wt(e);}function Ot(e){var t,n,s,i,r=e._i,a=e._f;return e._locale=e._locale||ht(e._l),null===r||void 0===a&&""===r?p({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),k(r)?new M(dt(r)):(d(r)?e._d=r:o(a)?function(e){var t,n,s,i,r;if(0===e._f.length)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++){r=0,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Yt(t),v(t)&&(r+=g(t).charsLeftOver,r+=10*g(t).unusedTokens.length,g(t).score=r,(null==s||r<s)&&(s=r,n=t));}_(e,n||t);}(e):a?Yt(e):l(n=(t=e)._i)?t._d=new Date(c.now()):d(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(s=t,null===(i=pt.exec(s._i))?(wt(s),!1===s._isValid&&(delete s._isValid,Dt(s),!1===s._isValid&&(delete s._isValid,c.createFromInputFallback(s)))):s._d=new Date(+i[1])):o(n)?(t._a=f(n.slice(0),function(e){return parseInt(e,10);}),ft(t)):u(n)?function(e){if(!e._d){var t=R(e._i);e._a=f([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10);}),ft(e);}}(t):h(n)?t._d=new Date(n):c.createFromInputFallback(t),v(e)||(e._d=null),e));}function Tt(e,t,n,s,i){var r,a={};return!0!==n&&!1!==n||(s=n,n=void 0),(u(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)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=s,(r=new M(dt(Ot(a))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r;}function bt(e,t,n,s){return Tt(e,t,n,s,!1);}c.createFromInputFallback=n("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":""));}),c.ISO_8601=function(){},c.RFC_2822=function(){};var xt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p();}),Pt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p();});function Wt(e,t){var n,s;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return bt();for(n=t[0],s=1;s<t.length;++s){t[s].isValid()&&!t[s][e](n)||(n=t[s]);}return n;}var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ht(e){var t=R(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=function(e){for(var t in e){if(-1===Ye.call(Ct,t)||null!=e[t]&&isNaN(e[t]))return!1;}for(var n=!1,s=0;s<Ct.length;++s){if(e[Ct[s]]){if(n)return!1;parseFloat(e[Ct[s]])!==D(e[Ct[s]])&&(n=!0);}}return!0;}(t),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=ht(),this._bubble();}function Rt(e){return e instanceof Ht;}function Ut(e){return e<0?-1*Math.round(-1*e):Math.round(e);}function Ft(e,n){I(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+L(~~(e/60),2)+n+L(~~e%60,2);});}Ft("Z",":"),Ft("ZZ",""),ue("Z",re),ue("ZZ",re),ce(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(re,e);});var Lt=/([\+\-]|\d\d)/gi;function Nt(e,t){var n=(t||"").match(e);if(null===n)return null;var s=((n[n.length-1]||[])+"").match(Lt)||["-",0,0],i=60*s[1]+D(s[2]);return 0===i?0:"+"===s[0]?i:-i;}function Gt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(k(e)||d(e)?e.valueOf():bt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),c.updateOffset(n,!1),n):bt(e).local();}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15);}function Et(){return!!this.isValid()&&this._isUTC&&0===this._offset;}c.updateOffset=function(){};var It=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jt(e,t){var n,s,i,r=e,a=null;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:h(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=It.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:D(a[ye])*n,h:D(a[ge])*n,m:D(a[ve])*n,s:D(a[pe])*n,ms:D(Ut(1e3*a[we]))*n}):(a=At.exec(e))?(n="-"===a[1]?-1:1,r={y:Zt(a[2],n),M:Zt(a[3],n),w:Zt(a[4],n),d:Zt(a[5],n),h:Zt(a[6],n),m:Zt(a[7],n),s:Zt(a[8],n)}):null==r?r={}:"object"==_typeof2(r)&&("from"in r||"to"in r)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n;}(bt(r.from),bt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new Ht(r),Rt(e)&&m(e,"_locale")&&(s._locale=e._locale),s;}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t;}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n;}function $t(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(T(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,jt(e="string"==typeof e?+e:e,t),s),this;};}function qt(e,t,n,s){var i=t._milliseconds,r=Ut(t._days),a=Ut(t._months);e.isValid()&&(s=null==s||s,a&&Re(e,be(e,"Month")+a*n),r&&xe(e,"Date",be(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&c.updateOffset(e,r||a));}jt.fn=Ht.prototype,jt.invalid=function(){return jt(NaN);};var Jt=$t(1,"add"),Bt=$t(-1,"subtract");function Qt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(n+1,"months")-s)))||0;}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ht(e))&&(this._locale=t),this);}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Kt=n("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 en(){return this._locale;}var tn=126227808e5;function nn(e,t){return(e%t+t)%t;}function sn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf();}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n);}function an(e,t){I(0,[e,e.length],0,t);}function on(e,t,n,s,i){var r;return null==e?Ie(this,s,i).year:((r=Ae(e,s,i))<t&&(t=r),function(e,t,n,s,i){var r=Ee(e,t,n,s,i),a=Ge(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this;}.call(this,e,t,n,s,i));}I(0,["gg",2],0,function(){return this.weekYear()%100;}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100;}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ue("G",se),ue("g",se),ue("GG",B,z),ue("gg",B,z),ue("GGGG",ee,q),ue("gggg",ee,q),ue("GGGGG",te,J),ue("ggggg",te,J),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=D(e);}),fe(["gg","GG"],function(e,t,n,s){t[s]=c.parseTwoDigitYear(e);}),I("Q",0,"Qo","quarter"),C("quarter","Q"),F("quarter",7),ue("Q",Z),ce("Q",function(e,t){t[_e]=3*(D(e)-1);}),I("D",["DD",2],"Do","date"),C("date","D"),F("date",9),ue("D",B),ue("DD",B,z),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient;}),ce(["D","DD"],ye),ce("Do",function(e,t){t[ye]=D(e.match(B)[0]);});var un=Te("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),F("dayOfYear",4),ue("DDD",K),ue("DDDD",$),ce(["DDD","DDDD"],function(e,t,n){n._dayOfYear=D(e);}),I("m",["mm",2],0,"minute"),C("minute","m"),F("minute",14),ue("m",B),ue("mm",B,z),ce(["m","mm"],ve);var ln=Te("Minutes",!1);I("s",["ss",2],0,"second"),C("second","s"),F("second",15),ue("s",B),ue("ss",B,z),ce(["s","ss"],pe);var hn,dn=Te("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100);}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10);}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond();}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond();}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond();}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond();}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond();}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond();}),C("millisecond","ms"),F("millisecond",16),ue("S",K,Z),ue("SS",K,z),ue("SSS",K,$),hn="SSSS";hn.length<=9;hn+="S"){ue(hn,ne);}function cn(e,t){t[we]=D(1e3*("0."+e));}for(hn="S";hn.length<=9;hn+="S"){ce(hn,cn);}var fn=Te("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var mn=M.prototype;function _n(e){return e;}mn.add=Jt,mn.calendar=function(e,t){var n=e||bt(),s=Gt(n,this).startOf("day"),i=c.calendarFormat(this,s)||"sameElse",r=t&&(b(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,bt(n)));},mn.clone=function(){return new M(this);},mn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=H(t)){case"year":r=Qt(this,s)/12;break;case"month":r=Qt(this,s);break;case"quarter":r=Qt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s;}return n?r:S(r);},mn.endOf=function(e){var t;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1;break;}return this._d.setTime(t),c.updateOffset(this,!0),this;},mn.format=function(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=A(this,e);return this.localeData().postformat(t);},mn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate();},mn.fromNow=function(e){return this.from(bt(),e);},mn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate();},mn.toNow=function(e){return this.to(bt(),e);},mn.get=function(e){return b(this[e=H(e)])?this[e]():this;},mn.invalidAt=function(){return g(this).overflow;},mn.isAfter=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf());},mn.isBefore=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf());},mn.isBetween=function(e,t,n,s){var i=k(e)?e:bt(e),r=k(t)?t:bt(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(s=s||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===s[1]?this.isBefore(r,n):!this.isAfter(r,n));},mn.isSame=function(e,t){var n,s=k(e)?e:bt(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()));},mn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t);},mn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t);},mn.isValid=function(){return v(this);},mn.lang=Kt,mn.locale=Xt,mn.localeData=en,mn.max=Pt,mn.min=xt,mn.parsingFlags=function(){return _({},g(this));},mn.set=function(e,t){if("object"==_typeof2(e))for(var n=function(e){var t=[];for(var n in e){t.push({unit:n,priority:U[n]});}return t.sort(function(e,t){return e.priority-t.priority;}),t;}(e=R(e)),s=0;s<n.length;s++){this[n[s].unit](e[n[s].unit]);}else if(b(this[e=H(e)]))return this[e](t);return this;},mn.startOf=function(e){var t;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3);break;}return this._d.setTime(t),c.updateOffset(this,!0),this;},mn.subtract=Bt,mn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()];},mn.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()};},mn.toDate=function(){return new Date(this.valueOf());},mn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?A(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ");},mn.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 n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+s+"-MM-DD[T]HH:mm:ss.SSS"+i);},mn.toJSON=function(){return this.isValid()?this.toISOString():null;},mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");},mn.unix=function(){return Math.floor(this.valueOf()/1e3);},mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0);},mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict};},mn.year=Oe,mn.isLeapYear=function(){return De(this.year());},mn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy);},mn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4);},mn.quarter=mn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3);},mn.month=Ue,mn.daysInMonth=function(){return Pe(this.year(),this.month());},mn.week=mn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d");},mn.isoWeek=mn.isoWeeks=function(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),"d");},mn.weeksInYear=function(){var e=this.localeData()._week;return Ae(this.year(),e.dow,e.doy);},mn.isoWeeksInYear=function(){return Ae(this.year(),1,4);},mn.date=un,mn.day=mn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,"d")):s;},mn.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");},mn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,s=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?s:s-7);},mn.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");},mn.hour=mn.hours=nt,mn.minute=mn.minutes=ln,mn.second=mn.seconds=dn,mn.millisecond=mn.milliseconds=fn,mn.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Vt(this);if("string"==typeof e){if(null===(e=Nt(re,e)))return this;}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Vt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?qt(this,jt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this;},mn.utc=function(e){return this.utcOffset(0,e);},mn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this;},mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0);}return this;},mn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?bt(e).utcOffset():0,(this.utcOffset()-e)%60==0);},mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset();},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC;},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC;},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?"UTC":"";},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":"";},mn.dates=n("dates accessor is deprecated. Use date instead.",un),mn.months=n("months accessor is deprecated. Use month instead",Ue),mn.years=n("years accessor is deprecated. Use year instead",Oe),mn.zone=n("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();}),mn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray());}else this._isDSTShifted=!1;return this._isDSTShifted;});var yn=P.prototype;function gn(e,t,n,s){var i=ht(),r=y().set(s,t);return i[n](r,e);}function vn(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++){i[s]=gn(e,s,n,"month");}return i;}function pn(e,t,n,s){t=("boolean"==typeof e?h(t)&&(n=t,t=void 0):(t=e,e=!1,h(n=t)&&(n=t,t=void 0)),t||"");var i,r=ht(),a=e?r._week.dow:0;if(null!=n)return gn(t,(n+a)%7,s,"day");var o=[];for(i=0;i<7;i++){o[i]=gn(t,(i+a)%7,s,"day");}return o;}yn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return b(s)?s.call(t,n):s;},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1);}),this._longDateFormat[e]);},yn.invalidDate=function(){return this._invalidDate;},yn.ordinal=function(e){return this._ordinal.replace("%d",e);},yn.preparse=_n,yn.postformat=_n,yn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return b(i)?i(e,t,n,s):i.replace(/%d/i,e);},yn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return b(n)?n(t):n.replace(/%s/i,t);},yn.set=function(e){var t,n;for(n in e){b(t=e[n])?this[n]=t:this["_"+n]=t;}this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source);},yn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone;},yn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;},yn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s){r=y([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();}return n?"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null;}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=y([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s;}},yn.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex);},yn.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex);},yn.week=function(e){return Ie(e,this._week.dow,this._week.doy).week;},yn.firstDayOfYear=function(){return this._week.doy;},yn.firstDayOfWeek=function(){return this._week.dow;},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n;},yn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin;},yn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort;},yn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s){r=y([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();}return n?"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null;}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=y([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s;}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex);},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex);},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex);},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0);},yn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM";},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function ordinal(e){var t=e%10;return e+(1===D(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th");}}),c.lang=n("moment.lang is deprecated. Use moment.locale instead.",ut),c.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ht);var wn=Math.abs;function Mn(e,t,n,s){var i=jt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble();}function kn(e){return e<0?Math.floor(e):Math.ceil(e);}function Sn(e){return 4800*e/146097;}function Dn(e){return 146097*e/4800;}function Yn(e){return function(){return this.as(e);};}var On=Yn("ms"),Tn=Yn("s"),bn=Yn("m"),xn=Yn("h"),Pn=Yn("d"),Wn=Yn("w"),Cn=Yn("M"),Hn=Yn("Q"),Rn=Yn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN;};}var Fn=Un("milliseconds"),Ln=Un("seconds"),Nn=Un("minutes"),Gn=Un("hours"),Vn=Un("days"),En=Un("months"),In=Un("years");var An=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,M:11};var Zn=Math.abs;function zn(e){return(0<e)-(e<0)||+e;}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,s=Zn(this._days),i=Zn(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var r=S(i/12),a=i%=12,o=s,u=t,l=e,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var c=d<0?"-":"",f=zn(this._months)!==zn(d)?"-":"",m=zn(this._days)!==zn(d)?"-":"",_=zn(this._milliseconds)!==zn(d)?"-":"";return c+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||h?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(h?_+h+"S":"");}var qn=Ht.prototype;return qn.isValid=function(){return this._isValid;},qn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this;},qn.add=function(e,t){return Mn(this,e,t,1);},qn.subtract=function(e,t){return Mn(this,e,t,-1);},qn.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12;}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e);}},qn.asMilliseconds=On,qn.asSeconds=Tn,qn.asMinutes=bn,qn.asHours=xn,qn.asDays=Pn,qn.asWeeks=Wn,qn.asMonths=Cn,qn.asQuarters=Hn,qn.asYears=Rn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN;},qn._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=r&&0<=a&&0<=o||r<=0&&a<=0&&o<=0||(r+=864e5*kn(Dn(o)+a),o=a=0),u.milliseconds=r%1e3,e=S(r/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,o+=i=S(Sn(a+=S(n/24))),a-=kn(Dn(i)),s=S(o/12),o%=12,u.days=a,u.months=o,u.years=s,this;},qn.clone=function(){return jt(this);},qn.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN;},qn.milliseconds=Fn,qn.seconds=Ln,qn.minutes=Nn,qn.hours=Gn,qn.days=Vn,qn.weeks=function(){return S(this.days()/7);},qn.months=En,qn.years=In,qn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,s,i,r,a,o,u,l,h,d,c=this.localeData(),f=(n=!e,s=c,i=jt(t=this).abs(),r=An(i.as("s")),a=An(i.as("m")),o=An(i.as("h")),u=An(i.as("d")),l=An(i.as("M")),h=An(i.as("y")),(d=r<=jn.ss&&["s",r]||r<jn.s&&["ss",r]||a<=1&&["m"]||a<jn.m&&["mm",a]||o<=1&&["h"]||o<jn.h&&["hh",o]||u<=1&&["d"]||u<jn.d&&["dd",u]||l<=1&&["M"]||l<jn.M&&["MM",l]||h<=1&&["y"]||["yy",h])[2]=n,d[3]=0<+t,d[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s);}.apply(null,d));return e&&(f=c.pastFuture(+this,f)),c.postformat(f);},qn.toISOString=$n,qn.toString=$n,qn.toJSON=$n,qn.locale=Xt,qn.localeData=en,qn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$n),qn.lang=Kt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ue("x",se),ue("X",/[+-]?\d+(\.\d{1,3})?/),ce("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10));}),ce("x",function(e,t,n){n._d=new Date(D(e));}),c.version="2.24.0",e=bt,c.fn=mn,c.min=function(){return Wt("isBefore",[].slice.call(arguments,0));},c.max=function(){return Wt("isAfter",[].slice.call(arguments,0));},c.now=function(){return Date.now?Date.now():+new Date();},c.utc=y,c.unix=function(e){return bt(1e3*e);},c.months=function(e,t){return vn(e,t,"months");},c.isDate=d,c.locale=ut,c.invalid=p,c.duration=jt,c.isMoment=k,c.weekdays=function(e,t,n){return pn(e,t,n,"weekdays");},c.parseZone=function(){return bt.apply(null,arguments).parseZone();},c.localeData=ht,c.isDuration=Rt,c.monthsShort=function(e,t){return vn(e,t,"monthsShort");},c.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin");},c.defineLocale=lt,c.updateLocale=function(e,t){if(null!=t){var n,s,i=st;null!=(s=ot(e))&&(i=s._config),(n=new P(t=x(i,t))).parentLocale=it[e],it[e]=n,ut(e);}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e];},c.locales=function(){return s(it);},c.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort");},c.normalizeUnits=H,c.relativeTimeRounding=function(e){return void 0===e?An:"function"==typeof e&&(An=e,!0);},c.relativeTimeThreshold=function(e,t){return void 0!==jn[e]&&(void 0===t?jn[e]:(jn[e]=t,"s"===e&&(jn.ss=t-1),!0));},c.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse";},c.prototype=mn,c.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"},c;});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 meridiemHour(hour,meridiem){if(hour===12){hour=0;}if(meridiem==='凌晨'||meridiem==='早上'||meridiem==='上午'){return hour;}else if(meridiem==='下午'||meridiem==='晚上'){return hour+12;}else{// '中午'
|
||
return hour>=11?hour:hour+12;}},meridiem:function meridiem(hour,minute,isLower){var hm=hour*100+minute;if(hm<600){return'凌晨';}else if(hm<900){return'早上';}else if(hm<1130){return'上午';}else if(hm<1230){return'中午';}else if(hm<1800){return'下午';}else{return'晚上';}},calendar:{sameDay:'[今天]LT',nextDay:'[明天]LT',nextWeek:'[下]ddddLT',lastDay:'[昨天]LT',lastWeek:'[上]ddddLT',sameElse:'L'},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function ordinal(number,period){switch(period){case'd':case'D':case'DDD':return number+'日';case'M':return number+'月';case'w':case'W':return number+'周';default:return number;}},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:{// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
|
||
dow:1,// Monday is the first day of the week.
|
||
doy:4// The week that contains Jan 4th is the first week of the year.
|
||
}});/*! art-template@4.13.1 for browser | https://github.com/aui/art-template */!function(e,t){"object"==(typeof exports==="undefined"?"undefined":_typeof2(exports))&&"object"==(typeof module==="undefined"?"undefined":_typeof2(module))?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==(typeof exports==="undefined"?"undefined":_typeof2(exports))?exports.template=t():e.template=t();}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports;}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r});},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"];}:function(){return e;};return t.d(n,"a",n),n;},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},t.p="",t(t.s=4);}([function(e,t,n){"use strict";var r=n(6),i=n(2),o=n(22),s=function s(e,t){t.onerror(e,t);var n=function n(){return"{Template Error}";};return n.mappings=[],n.sourcesContent=[],n;},a=function u(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};"string"!=typeof e?t=e:t.source=e,t=i.$extend(t),e=t.source,!0===t.debug&&(t.cache=!1,t.minimize=!1,t.compileDebug=!0),t.compileDebug&&(t.minimize=!1),t.filename&&(t.filename=t.resolveFilename(t.filename,t));var n=t.filename,a=t.cache,c=t.caches;if(a&&n){var l=c.get(n);if(l)return l;}if(!e)try{e=t.loader(n,t),t.source=e;}catch(m){var f=new o({name:"CompileError",path:n,message:"template not found: "+m.message,stack:m.stack});if(t.bail)throw f;return s(f,t);}var p=void 0,h=new r(t);try{p=h.build();}catch(f){if(f=new o(f),t.bail)throw f;return s(f,t);}var d=function d(e,n){try{return p(e,n);}catch(f){if(!t.compileDebug)return t.cache=!1,t.compileDebug=!0,u(t)(e,n);if(f=new o(f),t.bail)throw f;return s(f,t)();}};return d.mappings=p.mappings,d.sourcesContent=p.sourcesContent,d.toString=function(){return p.toString();},a&&n&&c.set(n,d),d;};a.Compiler=r,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,n){"use strict";function r(){this.$extend=function(e){return e=e||{},o(e,e instanceof r?e:this);};}var i=n(10),o=n(12),s=n(13),a=n(14),u=n(15),c=n(16),l=n(17),f=n(18),p=n(19),h=n(21),d="undefined"==typeof window,m={source:null,filename:null,rules:[f,l],escape:!0,debug:!!d&&"production"!==process.env.NODE_ENV,bail:!0,cache:!0,minimize:!0,compileDebug:!1,resolveFilename:h,include:s,htmlMinifier:p,htmlMinifierOptions:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,ignoreCustomFragments:[]},onerror:a,loader:c,caches:u,root:"/",extname:".art",ignore:[],imports:i};r.prototype=m,e.exports=new r();},function(e,t){},function(e,t,n){"use strict";var r=n(5),i=n(0),o=n(23),s=function s(e,t){return t instanceof Object?r({filename:e},t):i({filename:e,source:t});};s.render=r,s.compile=i,s.defaults=o,e.exports=s;},function(e,t,n){"use strict";var r=n(0),i=function i(e,t,n){return r(e,n)(t);};e.exports=i;},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++){n[t]=e[t];}return n;}return Array.from(e);}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t;};}(),a=n(7),u=n(9),c="$data",l="$imports",f="print",p="include",h="extend",d="block",m="$$out",v="$$line",g="$$blocks",y="$$slice",b="$$from",w="$$options",x=function x(e,t){return Object.hasOwnProperty.call(e,t);},k=JSON.stringify,E=function(){function e(t){var n,s,a=this;o(this,e);var x=t.source,k=t.minimize,E=t.htmlMinifier;if(this.options=t,this.stacks=[],this.context=[],this.scripts=[],this.CONTEXT_MAP={},this.ignore=[c,l,w].concat(i(t.ignore)),this.internal=(n={},r(n,m,"''"),r(n,v,"[0,0]"),r(n,g,"arguments[1]||{}"),r(n,b,"null"),r(n,f,"function(){var s=''.concat.apply('',arguments);"+m+"+=s;return s}"),r(n,p,"function(src,data){var s="+w+".include(src,data||"+c+",arguments[2]||"+g+","+w+");"+m+"+=s;return s}"),r(n,h,"function(from){"+b+"=from}"),r(n,y,"function(c,p,s){p="+m+";"+m+"='';c();s="+m+";"+m+"=p+s;return s}"),r(n,d,"function(){var a=arguments,s;if(typeof a[0]==='function'){return "+y+"(a[0])}else if("+b+"){if(!"+g+"[a[0]]){"+g+"[a[0]]="+y+"(a[1])}else{"+m+"+="+g+"[a[0]]}}else{s="+g+"[a[0]];if(typeof s==='string'){"+m+"+=s}else{s="+y+"(a[1])}return s}}"),n),this.dependencies=(s={},r(s,f,[m]),r(s,p,[m,w,c,g]),r(s,h,[b,p]),r(s,d,[y,b,m,g]),s),this.importContext(m),t.compileDebug&&this.importContext(v),k)try{x=E(x,t);}catch(T){}this.source=x,this.getTplTokens(x,t.rules,this).forEach(function(e){e.type===u.TYPE_STRING?a.parseString(e):a.parseExpression(e);});}return s(e,[{key:"getTplTokens",value:function value(){return u.apply(undefined,arguments);}},{key:"getEsTokens",value:function value(e){return a(e);}},{key:"getVariables",value:function value(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 value(e){var t=this,n="",r=this.internal,i=this.dependencies,o=this.ignore,s=this.context,a=this.options,u=a.imports,f=this.CONTEXT_MAP;x(f,e)||-1!==o.indexOf(e)||(x(r,e)?(n=r[e],x(i,e)&&i[e].forEach(function(e){return t.importContext(e);})):n="$escape"===e||"$each"===e||x(u,e)?l+"."+e:c+"."+e,f[e]=n,s.push({name:e,value:n}));}},{key:"parseString",value:function value(e){var t=e.value;if(t){var n=m+"+="+k(t);this.scripts.push({source:t,tplToken:e,code:n});}}},{key:"parseExpression",value:function value(e){var t=this,n=e.value,r=e.script,i=r.output,o=this.options.escape,s=r.code;i&&(s=!1===o||i===u.TYPE_RAW?m+"+="+r.code:m+"+=$escape("+r.code+")");var a=this.getEsTokens(s);this.getVariables(a).forEach(function(e){return t.importContext(e);}),this.scripts.push({source:n,tplToken:e,code:s});}},{key:"checkExpression",value:function value(e){for(var t=[[/^\s*}[\w\W]*?{?[\s;]*$/,""],[/(^[\w\W]*?\([\w\W]*?(?:=>|\([\w\W]*?\))\s*{[\s;]*$)/,"$1})"],[/(^[\w\W]*?\([\w\W]*?\)\s*{[\s;]*$)/,"$1}"]],n=0;n<t.length;){if(t[n][0].test(e)){var r;e=(r=e).replace.apply(r,i(t[n]));break;}n++;}try{return new Function(e),!0;}catch(o){return!1;}}},{key:"build",value:function value(){var e=this.options,t=this.context,n=this.scripts,r=this.stacks,i=this.source,o=e.filename,s=e.imports,a=[],f=x(this.CONTEXT_MAP,h),d=0,y=function y(e,t){var n=t.line,i=t.start,o={generated:{line:r.length+d+1,column:1},original:{line:n+1,column:i+1}};return d+=e.split(/\n/).length-1,o;},E=function E(e){return e.replace(/^[\t ]+|[\t ]$/g,"");};r.push("function("+c+"){"),r.push("'use strict'"),r.push(c+"="+c+"||{}"),r.push("var "+t.map(function(e){return e.name+"="+e.value;}).join(",")),e.compileDebug?(r.push("try{"),n.forEach(function(e){e.tplToken.type===u.TYPE_EXPRESSION&&r.push(v+"=["+[e.tplToken.line,e.tplToken.start].join(",")+"]"),a.push(y(e.code,e.tplToken)),r.push(E(e.code));}),r.push("}catch(error){"),r.push("throw {"+["name:'RuntimeError'","path:"+k(o),"message:error.message","line:"+v+"[0]+1","column:"+v+"[1]+1","source:"+k(i),"stack:error.stack"].join(",")+"}"),r.push("}")):n.forEach(function(e){a.push(y(e.code,e.tplToken)),r.push(E(e.code));}),f&&(r.push(m+"=''"),r.push(p+"("+b+","+c+","+g+")")),r.push("return "+m),r.push("}");var T=r.join("\n");try{var O=new Function(l,w,"return "+T)(s,e);return O.mappings=a,O.sourcesContent=[i],O;}catch(P){for(var $=0,j=0,_=0,S=void 0;$<n.length;){var C=n[$];if(!this.checkExpression(C.code)){j=C.tplToken.line,_=C.tplToken.start,S=C.code;break;}$++;}throw{name:"CompileError",path:o,message:P.message,line:j+1,column:_+1,source:i,generated:S,stack:P.stack};}}}]),e;}();E.CONSTS={DATA:c,IMPORTS:l,PRINT:f,INCLUDE:p,EXTEND:h,BLOCK:d,OPTIONS:w,OUT:m,LINE:v,BLOCKS:g,SLICE:y,FROM:b,ESCAPE:"$escape",EACH:"$each"},e.exports=E;},function(e,t,n){"use strict";var r=n(8),i=n(1)["default"],o=n(1).matchToToken,s=function s(e){return e.match(i).map(function(e){return i.lastIndex=0,o(i.exec(e));}).map(function(e){return"name"===e.type&&r(e.value)&&(e.type="keyword"),e;});};e.exports=s;},function(e,t,n){"use strict";var r={"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 r.hasOwnProperty(e);};},function(e,t,n){"use strict";function r(e){var t=new String(e.value);return t.line=e.line,t.start=e.start,t.end=e.end,t;}function i(e,t,n){this.type=e,this.value=t,this.script=null,n?(this.line=n.line+n.value.split(/\n/).length-1,this.line===n.line?this.start=n.end:this.start=n.value.length-n.value.lastIndexOf("\n")-1):(this.line=0,this.start=0),this.end=this.start+this.value.length;}var o=function o(e,t){for(var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},o=[new i("string",e)],s=0;s<t.length;s++){for(var a=t[s],u=a.test.ignoreCase?"ig":"g",c=new RegExp(a.test.source,u),l=0;l<o.length;l++){var f=o[l],p=o[l-1];if("string"===f.type){for(var h=void 0,d=0,m=[],v=f.value;null!==(h=c.exec(v));){h.index>d&&(p=new i("string",v.slice(d,h.index),p),m.push(p)),p=new i("expression",h[0],p),h[0]=r(p),p.script=a.use.apply(n,h),m.push(p),d=h.index+h[0].length;}d<v.length&&(p=new i("string",v.slice(d),p),m.push(p)),o.splice.apply(o,[l,1].concat(m)),l+=m.length-1;}}}return o;};o.TYPE_STRING="string",o.TYPE_EXPRESSION="expression",o.TYPE_RAW="raw",o.TYPE_ESCAPE="escape",e.exports=o;},function(e,t,n){"use strict";(function(t){function n(e){return"string"!=typeof e&&(e=e===undefined||null===e?"":"function"==typeof e?n(e.call(e)):JSON.stringify(e)),e;}function r(e){var t=""+e,n=s.exec(t);if(!n)return e;var r="",i=void 0,o=void 0,a=void 0;for(i=n.index,o=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:a=""";break;case 38:a="&";break;case 39:a="'";break;case 60:a="<";break;case 62:a=">";break;default:continue;}o!==i&&(r+=t.substring(o,i)),o=i+1,r+=a;}return o!==i?r+t.substring(o,i):r;}/*! art-template@runtime | https://github.com/aui/art-template */var i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},o=Object.create(i),s=/["&'<>]/;o.$escape=function(e){return r(n(e));},o.$each=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++){t(e[n],n);}else for(var i in e){t(e[i],i);}},e.exports=o;}).call(t,n(11));},function(e,t){var n;n=function(){return this;}();try{n=n||Function("return this")()||(0,eval)("this");}catch(r){"object"==(typeof window==="undefined"?"undefined":_typeof2(window))&&(n=window);}e.exports=n;},function(e,t,n){"use strict";var r=Object.prototype.toString,i=function i(e){return null===e?"Null":r.call(e).slice(8,-1);},o=function s(e,t){var n=void 0,r=i(e);if("Object"===r?n=Object.create(t||{}):"Array"===r&&(n=[].concat(t||[])),n){for(var o in e){Object.hasOwnProperty.call(e,o)&&(n[o]=s(e[o],n[o]));}return n;}return e;};e.exports=o;},function(e,t,n){"use strict";var r=function r(e,t,_r,i){var o=n(0);return i=i.$extend({filename:i.resolveFilename(e,i),bail:!0,source:null}),o(i)(t,_r);};e.exports=r;},function(e,t,n){"use strict";var r=function r(e){console.error(e.name,e.message);};e.exports=r;},function(e,t,n){"use strict";var r={__data:Object.create(null),set:function set(e,t){this.__data[e]=t;},get:function get(e){return this.__data[e];},reset:function reset(){this.__data={};}};e.exports=r;},function(e,t,n){"use strict";var r="undefined"==typeof window,i=function i(e){if(r){return n(3).readFileSync(e,"utf8");}var t=document.getElementById(e);return t.value||t.innerHTML;};e.exports=i;},function(e,t,n){"use strict";var r={test:/{{([@#]?)[ \t]*(\/?)([\w\W]*?)[ \t]*}}/,use:function use(e,t,n,i){var o=this,s=o.options,a=o.getEsTokens(i),u=a.map(function(e){return e.value;}),c={},l=void 0,f=!!t&&"raw",p=n+u.shift(),h=function h(t,n){console.warn((s.filename||"anonymous")+":"+(e.line+1)+":"+(e.start+1)+"\nTemplate upgrade: {{"+t+"}} -> {{"+n+"}}");};switch("#"===t&&h("#value","@value"),p){case"set":i="var "+u.join("").trim();break;case"if":i="if("+u.join("").trim()+"){";break;case"else":var d=u.indexOf("if");~d?(u.splice(0,d+1),i="}else if("+u.join("").trim()+"){"):i="}else{";break;case"/if":i="}";break;case"each":l=r._split(a),l.shift(),"as"===l[1]&&(h("each object as value index","each object value index"),l.splice(1,1));i="$each("+(l[0]||"$data")+",function("+(l[1]||"$value")+","+(l[2]||"$index")+"){";break;case"/each":i="})";break;case"block":l=r._split(a),l.shift(),i="block("+l.join(",").trim()+",function(){";break;case"/block":i="})";break;case"echo":p="print",h("echo value","value");case"print":case"include":case"extend":if(0!==u.join("").trim().indexOf("(")){l=r._split(a),l.shift(),i=p+"("+l.join(",")+")";break;}default:if(~u.indexOf("|")){var m=a.reduce(function(e,t){var n=t.value,r=t.type;return"|"===n?e.push([]):"whitespace"!==r&&"comment"!==r&&(e.length||e.push([]),":"===n&&1===e[e.length-1].length?h("value | filter: argv","value | filter argv"):e[e.length-1].push(t)),e;},[]).map(function(e){return r._split(e);});i=m.reduce(function(e,t){var n=t.shift();return t.unshift(e),"$imports."+n+"("+t.join(",")+")";},m.shift().join(" ").trim());}f=f||"escape";}return c.code=i,c.output=f,c;},_split:function _split(e){e=e.filter(function(e){var t=e.type;return"whitespace"!==t&&"comment"!==t;});for(var t=0,n=e.shift(),r=/\]|\)/,i=[[n]];t<e.length;){var o=e[t];"punctuator"===o.type||"punctuator"===n.type&&!r.test(n.value)?i[i.length-1].push(o):i.push([o]),n=o,t++;}return i.map(function(e){return e.map(function(e){return e.value;}).join("");});}};e.exports=r;},function(e,t,n){"use strict";var r={test:/<%(#?)((?:==|=#|[=-])?)[ \t]*([\w\W]*?)[ \t]*(-?)%>/,use:function use(e,t,n,r){return n={"-":"raw","=":"escape","":!1,"==":"raw","=#":"raw"}[n],t&&(r="/*"+r+"*/",n=!1),{code:r,output:n};}};e.exports=r;},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++){n[t]=e[t];}return n;}return Array.from(e);}var i="undefined"==typeof window,o=function o(e,t){if(i){var o,s=n(20).minify,a=t.htmlMinifierOptions,u=t.rules.map(function(e){return e.test;});(o=a.ignoreCustomFragments).push.apply(o,r(u)),e=s(e,a);}return e;};e.exports=o;},function(e,t){!function(e){e.noop=function(){};}("object"==_typeof2(e)&&"object"==_typeof2(e.exports)?e.exports:window);},function(e,t,n){"use strict";var r="undefined"==typeof window,i=/^\.+\//,o=function o(e,t){if(r){var o=n(3),s=t.root,a=t.extname;if(i.test(e)){var u=t.filename,c=!u||e===u,l=c?s:o.dirname(u);e=o.resolve(l,e);}else e=o.resolve(s,e);o.extname(e)||(e+=a);}return e;};e.exports=o;},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function i(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;}function o(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);}function s(e){var t=e.name,n=e.source,r=e.path,i=e.line,o=e.column,s=e.generated,a=e.message;if(!n)return a;var u=n.split(/\n/),c=Math.max(i-3,0),l=Math.min(u.length,i+3),f=u.slice(c,l).map(function(e,t){var n=t+c+1;return(n===i?" >> ":" ")+n+"| "+e;}).join("\n");return(r||"anonymous")+":"+i+":"+o+"\n"+f+"\n\n"+t+": "+a+(s?"\n generated: "+s:"");}var a=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.message));return n.name="TemplateError",n.message=s(e),Error.captureStackTrace&&Error.captureStackTrace(n,n.constructor),n;}return o(t,e),t;}(Error);e.exports=a;},function(e,t,n){"use strict";e.exports=n(2);}]);});/*!
|
||
* jQuery JavaScript Library v1.11.3
|
||
* http://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* http://sizzlejs.com/
|
||
*
|
||
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*
|
||
* Date: 2015-04-28T16:19Z
|
||
*/(function(global,factory){if((typeof module==="undefined"?"undefined":_typeof2(module))==="object"&&_typeof2(module.exports)==="object"){// For CommonJS and CommonJS-like environments where a proper window is present,
|
||
// execute the factory and get jQuery
|
||
// For environments that do not inherently posses a window with a document
|
||
// (such as Node.js), expose a jQuery-making factory as module.exports
|
||
// This accentuates the need for the creation of a real window
|
||
// e.g. var jQuery = require("jquery")(window);
|
||
// See ticket #14549 for more info
|
||
module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document");}return factory(w);};}else{factory(global);}// Pass this if window is not defined yet
|
||
})(typeof window!=="undefined"?window:this,function(window,noGlobal){// Can't do this because several apps including ASP.NET trace
|
||
// the stack via arguments.caller.callee and Firefox dies if
|
||
// you try to trace through "use strict" call chains. (#13335)
|
||
// Support: Firefox 18+
|
||
//
|
||
var deletedIds=[];var _slice=deletedIds.slice;var concat=deletedIds.concat;var push=deletedIds.push;var indexOf=deletedIds.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var support={};var version="1.11.3",// Define a local copy of jQuery
|
||
jQuery=function jQuery(selector,context){// The jQuery object is actually just the init constructor 'enhanced'
|
||
// Need init if jQuery is called (just allow error to be thrown if not included)
|
||
return new jQuery.fn.init(selector,context);},// Support: Android<4.1, IE<9
|
||
// Make sure we trim BOM and NBSP
|
||
rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,// Matches dashed string for camelizing
|
||
rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,// Used by jQuery.camelCase as callback to replace()
|
||
fcamelCase=function fcamelCase(all,letter){return letter.toUpperCase();};jQuery.fn=jQuery.prototype={// The current version of jQuery being used
|
||
jquery:version,constructor:jQuery,// Start with an empty selector
|
||
selector:"",// The default length of a jQuery object is 0
|
||
length:0,toArray:function toArray(){return _slice.call(this);},// Get the Nth element in the matched element set OR
|
||
// Get the whole matched element set as a clean array
|
||
get:function get(num){return num!=null?// Return just the one element from the set
|
||
num<0?this[num+this.length]:this[num]:// Return all the elements in a clean array
|
||
_slice.call(this);},// Take an array of elements and push it onto the stack
|
||
// (returning the new matched element set)
|
||
pushStack:function pushStack(elems){// Build a new jQuery matched element set
|
||
var ret=jQuery.merge(this.constructor(),elems);// Add the old object onto the stack (as a reference)
|
||
ret.prevObject=this;ret.context=this.context;// Return the newly-formed element set
|
||
return ret;},// Execute a callback for every element in the matched set.
|
||
// (You can seed the arguments with an array of args, but this is
|
||
// only used internally.)
|
||
each:function each(callback,args){return jQuery.each(this,callback,args);},map:function map(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},slice:function slice(){return this.pushStack(_slice.apply(this,arguments));},first:function first(){return this.eq(0);},last:function last(){return this.eq(-1);},eq:function eq(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[]);},end:function end(){return this.prevObject||this.constructor(null);},// For internal use only.
|
||
// Behaves like an Array's method, not like a jQuery method.
|
||
push:push,sort:deletedIds.sort,splice:deletedIds.splice};jQuery.extend=jQuery.fn.extend=function(){var src,copyIsArray,copy,name,options,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;// Handle a deep copy situation
|
||
if(typeof target==="boolean"){deep=target;// skip the boolean and the target
|
||
target=arguments[i]||{};i++;}// Handle case when target is a string or something (possible in deep copy)
|
||
if(_typeof2(target)!=="object"&&!jQuery.isFunction(target)){target={};}// extend jQuery itself if only one argument is passed
|
||
if(i===length){target=this;i--;}for(;i<length;i++){// Only deal with non-null/undefined values
|
||
if((options=arguments[i])!=null){// Extend the base object
|
||
for(name in options){src=target[name];copy=options[name];// Prevent never-ending loop
|
||
if(target===copy){continue;}// Recurse if we're merging plain objects or arrays
|
||
if(deep&©&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&jQuery.isArray(src)?src:[];}else{clone=src&&jQuery.isPlainObject(src)?src:{};}// Never move original objects, clone them
|
||
target[name]=jQuery.extend(deep,clone,copy);// Don't bring in undefined values
|
||
}else if(copy!==undefined){target[name]=copy;}}}}// Return the modified object
|
||
return target;};jQuery.extend({// Unique for each copy of jQuery on the page
|
||
expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),// Assume jQuery is ready without the ready module
|
||
isReady:true,error:function error(msg){throw new Error(msg);},noop:function noop(){},// See test/unit/core.js for details concerning isFunction.
|
||
// Since version 1.3, DOM methods and functions like alert
|
||
// aren't supported. They return false on IE (#2968).
|
||
isFunction:function isFunction(obj){return jQuery.type(obj)==="function";},isArray:Array.isArray||function(obj){return jQuery.type(obj)==="array";},isWindow:function isWindow(obj){/* jshint eqeqeq: false */return obj!=null&&obj==obj.window;},isNumeric:function isNumeric(obj){// parseFloat NaNs numeric-cast false positives (null|true|false|"")
|
||
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
|
||
// subtraction forces infinities to NaN
|
||
// adding 1 corrects loss of precision from parseFloat (#15100)
|
||
return!jQuery.isArray(obj)&&obj-parseFloat(obj)+1>=0;},isEmptyObject:function isEmptyObject(obj){var name;for(name in obj){return false;}return true;},isPlainObject:function isPlainObject(obj){var key;// Must be an Object.
|
||
// Because of IE, we also have to check the presence of the constructor property.
|
||
// Make sure that DOM nodes and window objects don't pass through, as well
|
||
if(!obj||jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false;}try{// Not own constructor property must be Object
|
||
if(obj.constructor&&!hasOwn.call(obj,"constructor")&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false;}}catch(e){// IE8,9 Will throw exceptions on certain host objects #9897
|
||
return false;}// Support: IE<9
|
||
// Handle iteration over inherited properties before own properties.
|
||
if(support.ownLast){for(key in obj){return hasOwn.call(obj,key);}}// Own properties are enumerated firstly, so to speed up,
|
||
// if last one is own, then all properties are own.
|
||
for(key in obj){}return key===undefined||hasOwn.call(obj,key);},type:function type(obj){if(obj==null){return obj+"";}return _typeof2(obj)==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":_typeof2(obj);},// Evaluates a script in a global context
|
||
// Workarounds based on findings by Jim Driscoll
|
||
// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
|
||
globalEval:function globalEval(data){if(data&&jQuery.trim(data)){// We use execScript on Internet Explorer
|
||
// We use an anonymous function so that context is window
|
||
// rather than jQuery in Firefox
|
||
(window.execScript||function(data){window["eval"].call(window,data);})(data);}},// Convert dashed to camelCase; used by the css and data modules
|
||
// Microsoft forgot to hump their vendor prefix (#9572)
|
||
camelCase:function camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);},nodeName:function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();},// args is for internal usage only
|
||
each:function each(obj,callback,args){var value,i=0,length=obj.length,isArray=isArraylike(obj);if(args){if(isArray){for(;i<length;i++){value=callback.apply(obj[i],args);if(value===false){break;}}}else{for(i in obj){value=callback.apply(obj[i],args);if(value===false){break;}}}// A special, fast, case for the most common use of each
|
||
}else{if(isArray){for(;i<length;i++){value=callback.call(obj[i],i,obj[i]);if(value===false){break;}}}else{for(i in obj){value=callback.call(obj[i],i,obj[i]);if(value===false){break;}}}}return obj;},// Support: Android<4.1, IE<9
|
||
trim:function trim(text){return text==null?"":(text+"").replace(rtrim,"");},// results is for internal usage only
|
||
makeArray:function makeArray(arr,results){var ret=results||[];if(arr!=null){if(isArraylike(Object(arr))){jQuery.merge(ret,typeof arr==="string"?[arr]:arr);}else{push.call(ret,arr);}}return ret;},inArray:function inArray(elem,arr,i){var len;if(arr){if(indexOf){return indexOf.call(arr,elem,i);}len=arr.length;i=i?i<0?Math.max(0,len+i):i:0;for(;i<len;i++){// Skip accessing in sparse arrays
|
||
if(i in arr&&arr[i]===elem){return i;}}}return-1;},merge:function merge(first,second){var len=+second.length,j=0,i=first.length;while(j<len){first[i++]=second[j++];}// Support: IE<9
|
||
// Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)
|
||
if(len!==len){while(second[j]!==undefined){first[i++]=second[j++];}}first.length=i;return first;},grep:function grep(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;// Go through the array, only saving the items
|
||
// that pass the validator function
|
||
for(;i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i]);}}return matches;},// arg is for internal usage only
|
||
map:function map(elems,callback,arg){var value,i=0,length=elems.length,isArray=isArraylike(elems),ret=[];// Go through the array, translating each of the items to their new values
|
||
if(isArray){for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}// Go through every key on the object,
|
||
}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}// Flatten any nested arrays
|
||
return concat.apply([],ret);},// A global GUID counter for objects
|
||
guid:1,// Bind a function to a context, optionally partially applying any
|
||
// arguments.
|
||
proxy:function proxy(fn,context){var args,proxy,tmp;if(typeof context==="string"){tmp=fn[context];context=fn;fn=tmp;}// Quick check to determine if target is callable, in the spec
|
||
// this throws a TypeError, but we will just return undefined.
|
||
if(!jQuery.isFunction(fn)){return undefined;}// Simulated bind
|
||
args=_slice.call(arguments,2);proxy=function proxy(){return fn.apply(context||this,args.concat(_slice.call(arguments)));};// Set the guid of unique handler to the same of original handler, so it can be removed
|
||
proxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy;},now:function now(){return+new Date();},// jQuery.support is not used in Core but other projects attach their
|
||
// properties to it so it needs to exist.
|
||
support:support});// Populate the class2type map
|
||
jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase();});function isArraylike(obj){// Support: iOS 8.2 (not reproducible in simulator)
|
||
// `in` check used to prevent JIT error (gh-2145)
|
||
// hasOwn isn't used here due to false negatives
|
||
// regarding Nodelist length in IE
|
||
var length="length"in obj&&obj.length,type=jQuery.type(obj);if(type==="function"||jQuery.isWindow(obj)){return false;}if(obj.nodeType===1&&length){return true;}return type==="array"||length===0||typeof length==="number"&&length>0&&length-1 in obj;}var Sizzle=/*!
|
||
* Sizzle CSS Selector Engine v2.2.0-pre
|
||
* http://sizzlejs.com/
|
||
*
|
||
* Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*
|
||
* Date: 2014-12-16
|
||
*/function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,// Local document vars
|
||
setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,// Instance-specific data
|
||
expando="sizzle"+1*new Date(),preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),sortOrder=function sortOrder(a,b){if(a===b){hasDuplicate=true;}return 0;},// General-purpose constants
|
||
MAX_NEGATIVE=1<<31,// Instance methods
|
||
hasOwn={}.hasOwnProperty,arr=[],pop=arr.pop,push_native=arr.push,push=arr.push,slice=arr.slice,// Use a stripped-down indexOf as it's faster than native
|
||
// http://jsperf.com/thor-indexof-vs-for/5
|
||
indexOf=function indexOf(list,elem){var i=0,len=list.length;for(;i<len;i++){if(list[i]===elem){return i;}}return-1;},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",// Regular expressions
|
||
// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
|
||
whitespace="[\\x20\\t\\r\\n\\f]",// http://www.w3.org/TR/css3-syntax/#characters
|
||
characterEncoding="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",// Loosely modeled on CSS identifier characters
|
||
// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
|
||
// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
|
||
identifier=characterEncoding.replace("w","w#"),// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
|
||
attributes="\\["+whitespace+"*("+characterEncoding+")(?:"+whitespace+// Operator (capture 2)
|
||
"*([*^$|!~]?=)"+whitespace+// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
|
||
"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+characterEncoding+")(?:\\(("+// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
|
||
// 1. quoted (capture 3; capture 4 or capture 5)
|
||
"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+// 2. simple (capture 6)
|
||
"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+// 3. anything else (capture 2)
|
||
".*"+")\\)|)",// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
|
||
rwhitespace=new RegExp(whitespace+"+","g"),rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rattributeQuotes=new RegExp("="+whitespace+"*([^\\]'\"]*?)"+whitespace+"*\\]","g"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={"ID":new RegExp("^#("+characterEncoding+")"),"CLASS":new RegExp("^\\.("+characterEncoding+")"),"TAG":new RegExp("^("+characterEncoding.replace("w","w*")+")"),"ATTR":new RegExp("^"+attributes),"PSEUDO":new RegExp("^"+pseudos),"CHILD":new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),"bool":new RegExp("^(?:"+booleans+")$","i"),// For use in libraries implementing .is()
|
||
// We use this for POS matching in `select`
|
||
"needsContext":new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,// Easily-parseable/retrievable ID or TAG or CLASS selectors
|
||
rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,rescape=/'|\\/g,// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
|
||
runescape=new RegExp("\\\\([\\da-f]{1,6}"+whitespace+"?|("+whitespace+")|.)","ig"),funescape=function funescape(_,escaped,escapedWhitespace){var high="0x"+escaped-0x10000;// NaN means non-codepoint
|
||
// Support: Firefox<24
|
||
// Workaround erroneous numeric interpretation of +"0x"
|
||
return high!==high||escapedWhitespace?escaped:high<0?// BMP codepoint
|
||
String.fromCharCode(high+0x10000):// Supplemental Plane codepoint (surrogate pair)
|
||
String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00);},// Used for iframes
|
||
// See setDocument()
|
||
// Removing the function wrapper causes a "Permission Denied"
|
||
// error in IE
|
||
unloadHandler=function unloadHandler(){setDocument();};// Optimize for push.apply( _, NodeList )
|
||
try{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes);// Support: Android<4.0
|
||
// Detect silently failing push.apply
|
||
arr[preferredDoc.childNodes.length].nodeType;}catch(e){push={apply:arr.length?// Leverage slice if possible
|
||
function(target,els){push_native.apply(target,slice.call(els));}:// Support: IE<9
|
||
// Otherwise append directly
|
||
function(target,els){var j=target.length,i=0;// Can't trust NodeList.length
|
||
while(target[j++]=els[i++]){}target.length=j-1;}};}function Sizzle(selector,context,results,seed){var match,elem,m,nodeType,// QSA vars
|
||
i,groups,old,nid,newContext,newSelector;if((context?context.ownerDocument||context:preferredDoc)!==document){setDocument(context);}context=context||document;results=results||[];nodeType=context.nodeType;if(typeof selector!=="string"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11){return results;}if(!seed&&documentIsHTML){// Try to shortcut find operations when possible (e.g., not under DocumentFragment)
|
||
if(nodeType!==11&&(match=rquickExpr.exec(selector))){// Speed-up: Sizzle("#ID")
|
||
if(m=match[1]){if(nodeType===9){elem=context.getElementById(m);// Check parentNode to catch when Blackberry 4.6 returns
|
||
// nodes that are no longer in the document (jQuery #6963)
|
||
if(elem&&elem.parentNode){// Handle the case where IE, Opera, and Webkit return items
|
||
// by name instead of ID
|
||
if(elem.id===m){results.push(elem);return results;}}else{return results;}}else{// Context is not a document
|
||
if(context.ownerDocument&&(elem=context.ownerDocument.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results;}}// Speed-up: Sizzle("TAG")
|
||
}else if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results;// Speed-up: Sizzle(".CLASS")
|
||
}else if((m=match[3])&&support.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results;}}// QSA path
|
||
if(support.qsa&&(!rbuggyQSA||!rbuggyQSA.test(selector))){nid=old=expando;newContext=context;newSelector=nodeType!==1&&selector;// qSA works strangely on Element-rooted queries
|
||
// We can work around this by specifying an extra ID on the root
|
||
// and working up from there (Thanks to Andrew Dupont for the technique)
|
||
// IE 8 doesn't work on object elements
|
||
if(nodeType===1&&context.nodeName.toLowerCase()!=="object"){groups=tokenize(selector);if(old=context.getAttribute("id")){nid=old.replace(rescape,"\\$&");}else{context.setAttribute("id",nid);}nid="[id='"+nid+"'] ";i=groups.length;while(i--){groups[i]=nid+toSelector(groups[i]);}newContext=rsibling.test(selector)&&testContext(context.parentNode)||context;newSelector=groups.join(",");}if(newSelector){try{push.apply(results,newContext.querySelectorAll(newSelector));return results;}catch(qsaError){}finally{if(!old){context.removeAttribute("id");}}}}}// All others
|
||
return select(selector.replace(rtrim,"$1"),context,results,seed);}/**
|
||
* Create key-value caches of limited size
|
||
* @returns {Function(string, Object)} Returns the Object data after storing it on itself with
|
||
* property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
|
||
* deleting the oldest entry
|
||
*/function createCache(){var keys=[];function cache(key,value){// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
|
||
if(keys.push(key+" ")>Expr.cacheLength){// Only keep the most recent entries
|
||
delete cache[keys.shift()];}return cache[key+" "]=value;}return cache;}/**
|
||
* Mark a function for special use by Sizzle
|
||
* @param {Function} fn The function to mark
|
||
*/function markFunction(fn){fn[expando]=true;return fn;}/**
|
||
* Support testing using an element
|
||
* @param {Function} fn Passed the created div and expects a boolean result
|
||
*/function assert(fn){var div=document.createElement("div");try{return!!fn(div);}catch(e){return false;}finally{// Remove from its parent by default
|
||
if(div.parentNode){div.parentNode.removeChild(div);}// release memory in IE
|
||
div=null;}}/**
|
||
* Adds the same handler for all of the specified attrs
|
||
* @param {String} attrs Pipe-separated list of attributes
|
||
* @param {Function} handler The method that will be applied
|
||
*/function addHandle(attrs,handler){var arr=attrs.split("|"),i=attrs.length;while(i--){Expr.attrHandle[arr[i]]=handler;}}/**
|
||
* Checks document order of two siblings
|
||
* @param {Element} a
|
||
* @param {Element} b
|
||
* @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
|
||
*/function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&(~b.sourceIndex||MAX_NEGATIVE)-(~a.sourceIndex||MAX_NEGATIVE);// Use IE sourceIndex if available on both nodes
|
||
if(diff){return diff;}// Check if b follows a
|
||
if(cur){while(cur=cur.nextSibling){if(cur===b){return-1;}}}return a?1:-1;}/**
|
||
* Returns a function to use in pseudos for input types
|
||
* @param {String} type
|
||
*/function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type;};}/**
|
||
* Returns a function to use in pseudos for buttons
|
||
* @param {String} type
|
||
*/function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type;};}/**
|
||
* Returns a function to use in pseudos for positionals
|
||
* @param {Function} fn
|
||
*/function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;// Match elements found at the specified indexes
|
||
while(i--){if(seed[j=matchIndexes[i]]){seed[j]=!(matches[j]=seed[j]);}}});});}/**
|
||
* Checks a node for validity as a Sizzle context
|
||
* @param {Element|Object=} context
|
||
* @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
|
||
*/function testContext(context){return context&&typeof context.getElementsByTagName!=="undefined"&&context;}// Expose support vars for convenience
|
||
support=Sizzle.support={};/**
|
||
* Detects XML nodes
|
||
* @param {Element|Object} elem An element or a document
|
||
* @returns {Boolean} True iff elem is a non-HTML XML node
|
||
*/isXML=Sizzle.isXML=function(elem){// documentElement is verified for cases where it doesn't yet exist
|
||
// (such as loading iframes in IE - #4833)
|
||
var documentElement=elem&&(elem.ownerDocument||elem).documentElement;return documentElement?documentElement.nodeName!=="HTML":false;};/**
|
||
* Sets document-related variables once based on the current document
|
||
* @param {Element|Object} [doc] An element or document object to use to set the document
|
||
* @returns {Object} Returns the current document
|
||
*/setDocument=Sizzle.setDocument=function(node){var hasCompare,parent,doc=node?node.ownerDocument||node:preferredDoc;// If no document and documentElement is available, return
|
||
if(doc===document||doc.nodeType!==9||!doc.documentElement){return document;}// Set our document
|
||
document=doc;docElem=doc.documentElement;parent=doc.defaultView;// Support: IE>8
|
||
// If iframe document is assigned to "document" variable and if iframe has been reloaded,
|
||
// IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
|
||
// IE6-8 do not support the defaultView property so parent will be undefined
|
||
if(parent&&parent!==parent.top){// IE11 does not have attachEvent, so all must suffer
|
||
if(parent.addEventListener){parent.addEventListener("unload",unloadHandler,false);}else if(parent.attachEvent){parent.attachEvent("onunload",unloadHandler);}}/* Support tests
|
||
---------------------------------------------------------------------- */documentIsHTML=!isXML(doc);/* Attributes
|
||
---------------------------------------------------------------------- */ // Support: IE<8
|
||
// Verify that getAttribute really returns attributes and not properties
|
||
// (excepting IE8 booleans)
|
||
support.attributes=assert(function(div){div.className="i";return!div.getAttribute("className");});/* getElement(s)By*
|
||
---------------------------------------------------------------------- */ // Check if getElementsByTagName("*") returns only elements
|
||
support.getElementsByTagName=assert(function(div){div.appendChild(doc.createComment(""));return!div.getElementsByTagName("*").length;});// Support: IE<9
|
||
support.getElementsByClassName=rnative.test(doc.getElementsByClassName);// Support: IE<10
|
||
// Check if getElementById returns elements by name
|
||
// The broken getElementById methods don't pick up programatically-set names,
|
||
// so use a roundabout getElementsByName test
|
||
support.getById=assert(function(div){docElem.appendChild(div).id=expando;return!doc.getElementsByName||!doc.getElementsByName(expando).length;});// ID find and filter
|
||
if(support.getById){Expr.find["ID"]=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var m=context.getElementById(id);// Check parentNode to catch when Blackberry 4.6 returns
|
||
// nodes that are no longer in the document #6963
|
||
return m&&m.parentNode?[m]:[];}};Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId;};};}else{// Support: IE6/7
|
||
// getElementById is not reliable as a find shortcut
|
||
delete Expr.find["ID"];Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return node&&node.value===attrId;};};}// Tag
|
||
Expr.find["TAG"]=support.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(tag);// DocumentFragment nodes don't have gEBTN
|
||
}else if(support.qsa){return context.querySelectorAll(tag);}}:function(tag,context){var elem,tmp=[],i=0,// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
|
||
results=context.getElementsByTagName(tag);// Filter out possible comments
|
||
if(tag==="*"){while(elem=results[i++]){if(elem.nodeType===1){tmp.push(elem);}}return tmp;}return results;};// Class
|
||
Expr.find["CLASS"]=support.getElementsByClassName&&function(className,context){if(documentIsHTML){return context.getElementsByClassName(className);}};/* QSA/matchesSelector
|
||
---------------------------------------------------------------------- */ // QSA and matchesSelector support
|
||
// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
|
||
rbuggyMatches=[];// qSa(:focus) reports false when true (Chrome 21)
|
||
// We allow this because of a bug in IE8/9 that throws an error
|
||
// whenever `document.activeElement` is accessed on an iframe
|
||
// So, we allow :focus to pass through QSA all the time to avoid the IE error
|
||
// See http://bugs.jquery.com/ticket/13378
|
||
rbuggyQSA=[];if(support.qsa=rnative.test(doc.querySelectorAll)){// Build QSA regex
|
||
// Regex strategy adopted from Diego Perini
|
||
assert(function(div){// Select is set to empty string on purpose
|
||
// This is to test IE's treatment of not explicitly
|
||
// setting a boolean content attribute,
|
||
// since its presence should be enough
|
||
// http://bugs.jquery.com/ticket/12359
|
||
docElem.appendChild(div).innerHTML="<a id='"+expando+"'></a>"+"<select id='"+expando+"-\f]' msallowcapture=''>"+"<option selected=''></option></select>";// Support: IE8, Opera 11-12.16
|
||
// Nothing should be selected when empty strings follow ^= or $= or *=
|
||
// The test attribute must be unknown in Opera but "safe" for WinRT
|
||
// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
|
||
if(div.querySelectorAll("[msallowcapture^='']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:''|\"\")");}// Support: IE8
|
||
// Boolean attributes and "value" are not treated correctly
|
||
if(!div.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")");}// Support: Chrome<29, Android<4.2+, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.7+
|
||
if(!div.querySelectorAll("[id~="+expando+"-]").length){rbuggyQSA.push("~=");}// Webkit/Opera - :checked should return selected option elements
|
||
// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
|
||
// IE8 throws error here and will not see later tests
|
||
if(!div.querySelectorAll(":checked").length){rbuggyQSA.push(":checked");}// Support: Safari 8+, iOS 8+
|
||
// https://bugs.webkit.org/show_bug.cgi?id=136851
|
||
// In-page `selector#id sibing-combinator selector` fails
|
||
if(!div.querySelectorAll("a#"+expando+"+*").length){rbuggyQSA.push(".#.+[+~]");}});assert(function(div){// Support: Windows 8 Native Apps
|
||
// The type and name attributes are restricted during .innerHTML assignment
|
||
var input=doc.createElement("input");input.setAttribute("type","hidden");div.appendChild(input).setAttribute("name","D");// Support: IE8
|
||
// Enforce case-sensitivity of name attribute
|
||
if(div.querySelectorAll("[name=d]").length){rbuggyQSA.push("name"+whitespace+"*[*^$|!~]?=");}// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
|
||
// IE8 throws error here and will not see later tests
|
||
if(!div.querySelectorAll(":enabled").length){rbuggyQSA.push(":enabled",":disabled");}// Opera 10-11 does not throw on post-comma invalid pseudos
|
||
div.querySelectorAll("*,:x");rbuggyQSA.push(",.*:");});}if(support.matchesSelector=rnative.test(matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector)){assert(function(div){// Check to see if it's possible to do matchesSelector
|
||
// on a disconnected node (IE 9)
|
||
support.disconnectedMatch=matches.call(div,"div");// This should fail with an exception
|
||
// Gecko does not error, returns false instead
|
||
matches.call(div,"[s!='']:x");rbuggyMatches.push("!=",pseudos);});}rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|"));/* Contains
|
||
---------------------------------------------------------------------- */hasCompare=rnative.test(docElem.compareDocumentPosition);// Element contains another
|
||
// Purposefully does not implement inclusive descendent
|
||
// As in, an element does not contain itself
|
||
contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16));}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return true;}}}return false;};/* Sorting
|
||
---------------------------------------------------------------------- */ // Document order sorting
|
||
sortOrder=hasCompare?function(a,b){// Flag for duplicate removal
|
||
if(a===b){hasDuplicate=true;return 0;}// Sort on method existence if only one input has compareDocumentPosition
|
||
var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare;}// Calculate position if both inputs belong to the same document
|
||
compare=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):// Otherwise we know they are disconnected
|
||
1;// Disconnected nodes
|
||
if(compare&1||!support.sortDetached&&b.compareDocumentPosition(a)===compare){// Choose the first element that is related to our preferred document
|
||
if(a===doc||a.ownerDocument===preferredDoc&&contains(preferredDoc,a)){return-1;}if(b===doc||b.ownerDocument===preferredDoc&&contains(preferredDoc,b)){return 1;}// Maintain original order
|
||
return sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0;}return compare&4?-1:1;}:function(a,b){// Exit early if the nodes are identical
|
||
if(a===b){hasDuplicate=true;return 0;}var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];// Parentless nodes are either documents or disconnected
|
||
if(!aup||!bup){return a===doc?-1:b===doc?1:aup?-1:bup?1:sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0;// If the nodes are siblings, we can do a quick check
|
||
}else if(aup===bup){return siblingCheck(a,b);}// Otherwise we need full lists of their ancestors for comparison
|
||
cur=a;while(cur=cur.parentNode){ap.unshift(cur);}cur=b;while(cur=cur.parentNode){bp.unshift(cur);}// Walk down the tree looking for a discrepancy
|
||
while(ap[i]===bp[i]){i++;}return i?// Do a sibling check if the nodes have a common ancestor
|
||
siblingCheck(ap[i],bp[i]):// Otherwise nodes in our document sort first
|
||
ap[i]===preferredDoc?-1:bp[i]===preferredDoc?1:0;};return doc;};Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements);};Sizzle.matchesSelector=function(elem,expr){// Set document vars if needed
|
||
if((elem.ownerDocument||elem)!==document){setDocument(elem);}// Make sure that attribute selectors are quoted
|
||
expr=expr.replace(rattributeQuotes,"='$1']");if(support.matchesSelector&&documentIsHTML&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{var ret=matches.call(elem,expr);// IE 9's matchesSelector returns false on disconnected nodes
|
||
if(ret||support.disconnectedMatch||// As well, disconnected nodes are said to be in a document
|
||
// fragment in IE 9
|
||
elem.document&&elem.document.nodeType!==11){return ret;}}catch(e){}}return Sizzle(expr,document,null,[elem]).length>0;};Sizzle.contains=function(context,elem){// Set document vars if needed
|
||
if((context.ownerDocument||context)!==document){setDocument(context);}return contains(context,elem);};Sizzle.attr=function(elem,name){// Set document vars if needed
|
||
if((elem.ownerDocument||elem)!==document){setDocument(elem);}var fn=Expr.attrHandle[name.toLowerCase()],// Don't get fooled by Object.prototype properties (jQuery #13807)
|
||
val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):undefined;return val!==undefined?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null;};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg);};/**
|
||
* Document sorting and removing duplicates
|
||
* @param {ArrayLike} results
|
||
*/Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;// Unless we *know* we can detect duplicates, assume their presence
|
||
hasDuplicate=!support.detectDuplicates;sortInput=!support.sortStable&&results.slice(0);results.sort(sortOrder);if(hasDuplicate){while(elem=results[i++]){if(elem===results[i]){j=duplicates.push(i);}}while(j--){results.splice(duplicates[j],1);}}// Clear input after sorting to release objects
|
||
// See https://github.com/jquery/sizzle/pull/225
|
||
sortInput=null;return results;};/**
|
||
* Utility function for retrieving the text value of an array of DOM nodes
|
||
* @param {Array|Element} elem
|
||
*/getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType){// If no nodeType, this is expected to be an array
|
||
while(node=elem[i++]){// Do not traverse comment nodes
|
||
ret+=getText(node);}}else if(nodeType===1||nodeType===9||nodeType===11){// Use textContent for elements
|
||
// innerText usage removed for consistency of new lines (jQuery #11153)
|
||
if(typeof elem.textContent==="string"){return elem.textContent;}else{// Traverse its children
|
||
for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem);}}}else if(nodeType===3||nodeType===4){return elem.nodeValue;}// Do not include comment or processing instruction nodes
|
||
return ret;};Expr=Sizzle.selectors={// Can be adjusted by the user
|
||
cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{"ATTR":function ATTR(match){match[1]=match[1].replace(runescape,funescape);// Move the given value to match[3] whether quoted or unquoted
|
||
match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape);if(match[2]==="~="){match[3]=" "+match[3]+" ";}return match.slice(0,4);},"CHILD":function CHILD(match){/* matches from matchExpr["CHILD"]
|
||
1 type (only|nth|...)
|
||
2 what (child|of-type)
|
||
3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
|
||
4 xn-component of xn+y argument ([+-]?\d*n|)
|
||
5 sign of xn-component
|
||
6 x of xn-component
|
||
7 sign of y-component
|
||
8 y of y-component
|
||
*/match[1]=match[1].toLowerCase();if(match[1].slice(0,3)==="nth"){// nth-* requires argument
|
||
if(!match[3]){Sizzle.error(match[0]);}// numeric x and y parameters for Expr.filter.CHILD
|
||
// remember that false/true cast respectively to 0/1
|
||
match[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd"));match[5]=+(match[7]+match[8]||match[3]==="odd");// other types prohibit arguments
|
||
}else if(match[3]){Sizzle.error(match[0]);}return match;},"PSEUDO":function PSEUDO(match){var excess,unquoted=!match[6]&&match[2];if(matchExpr["CHILD"].test(match[0])){return null;}// Accept quoted arguments as-is
|
||
if(match[3]){match[2]=match[4]||match[5]||"";// Strip excess characters from unquoted arguments
|
||
}else if(unquoted&&rpseudo.test(unquoted)&&(// Get excess from tokenize (recursively)
|
||
excess=tokenize(unquoted,true))&&(// advance to the next closing parenthesis
|
||
excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){// excess is a negative index
|
||
match[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess);}// Return only captures needed by the pseudo filter method (type and argument)
|
||
return match.slice(0,3);}},filter:{"TAG":function TAG(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector==="*"?function(){return true;}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName;};},"CLASS":function CLASS(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(typeof elem.className==="string"&&elem.className||typeof elem.getAttribute!=="undefined"&&elem.getAttribute("class")||"");});},"ATTR":function ATTR(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!=";}if(!operator){return true;}result+="";return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.slice(-check.length)===check:operator==="~="?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:operator==="|="?result===check||result.slice(0,check.length+1)===check+"-":false;};},"CHILD":function CHILD(type,what,argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?// Shortcut for :nth-*(n)
|
||
function(elem){return!!elem.parentNode;}:function(elem,context,xml){var cache,outerCache,node,diff,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType;if(parent){// :(first|last|only)-(child|of-type)
|
||
if(simple){while(dir){node=elem;while(node=node[dir]){if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1){return false;}}// Reverse direction for :only-* (if we haven't yet done so)
|
||
start=dir=type==="only"&&!start&&"nextSibling";}return true;}start=[forward?parent.firstChild:parent.lastChild];// non-xml :nth-child(...) stores cache data on `parent`
|
||
if(forward&&useCache){// Seek `elem` from a previously-cached index
|
||
outerCache=parent[expando]||(parent[expando]={});cache=outerCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=cache[0]===dirruns&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while(node=++nodeIndex&&node&&node[dir]||(// Fallback to seeking `elem` from the start
|
||
diff=nodeIndex=0)||start.pop()){// When found, cache indexes on `parent` and break
|
||
if(node.nodeType===1&&++diff&&node===elem){outerCache[type]=[dirruns,nodeIndex,diff];break;}}// Use previously-cached element index if available
|
||
}else if(useCache&&(cache=(elem[expando]||(elem[expando]={}))[type])&&cache[0]===dirruns){diff=cache[1];// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
|
||
}else{// Use the same loop as above to seek `elem` from the start
|
||
while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff){// Cache the index of each encountered element
|
||
if(useCache){(node[expando]||(node[expando]={}))[type]=[dirruns,diff];}if(node===elem){break;}}}}// Incorporate the offset, then check against cycle size
|
||
diff-=last;return diff===first||diff%first===0&&diff/first>=0;}};},"PSEUDO":function PSEUDO(pseudo,argument){// pseudo-class names are case-insensitive
|
||
// http://www.w3.org/TR/selectors/#pseudo-classes
|
||
// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
|
||
// Remember that setFilters inherits from pseudos
|
||
var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);// The user may use createPseudo to indicate that
|
||
// arguments are needed to create the filter function
|
||
// just as Sizzle does
|
||
if(fn[expando]){return fn(argument);}// But maintain support for old signatures
|
||
if(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i]);}}):function(elem){return fn(elem,0,args);};}return fn;}},pseudos:{// Potentially complex pseudos
|
||
"not":markFunction(function(selector){// Trim the selector passed to compile
|
||
// to avoid treating leading and trailing
|
||
// spaces as combinators
|
||
var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;// Match elements unmatched by `matcher`
|
||
while(i--){if(elem=unmatched[i]){seed[i]=!(matches[i]=elem);}}}):function(elem,context,xml){input[0]=elem;matcher(input,null,xml,results);// Don't keep the element (issue #299)
|
||
input[0]=null;return!results.pop();};}),"has":markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0;};}),"contains":markFunction(function(text){text=text.replace(runescape,funescape);return function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1;};}),// "Whether an element is represented by a :lang() selector
|
||
// is based solely on the element's language value
|
||
// being equal to the identifier C,
|
||
// or beginning with the identifier C immediately followed by "-".
|
||
// The matching of C against the element's language value is performed case-insensitively.
|
||
// The identifier C does not have to be a valid language name."
|
||
// http://www.w3.org/TR/selectors/#lang-pseudo
|
||
"lang":markFunction(function(lang){// lang value must be a valid identifier
|
||
if(!ridentifier.test(lang||"")){Sizzle.error("unsupported lang: "+lang);}lang=lang.replace(runescape,funescape).toLowerCase();return function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang")){elemLang=elemLang.toLowerCase();return elemLang===lang||elemLang.indexOf(lang+"-")===0;}}while((elem=elem.parentNode)&&elem.nodeType===1);return false;};}),// Miscellaneous
|
||
"target":function target(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id;},"root":function root(elem){return elem===docElem;},"focus":function focus(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex);},// Boolean properties
|
||
"enabled":function enabled(elem){return elem.disabled===false;},"disabled":function disabled(elem){return elem.disabled===true;},"checked":function checked(elem){// In CSS3, :checked should return both checked and selected elements
|
||
// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
|
||
var nodeName=elem.nodeName.toLowerCase();return nodeName==="input"&&!!elem.checked||nodeName==="option"&&!!elem.selected;},"selected":function selected(elem){// Accessing this property makes selected-by-default
|
||
// options in Safari work properly
|
||
if(elem.parentNode){elem.parentNode.selectedIndex;}return elem.selected===true;},// Contents
|
||
"empty":function empty(elem){// http://www.w3.org/TR/selectors/#empty-pseudo
|
||
// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
|
||
// but not by others (comment: 8; processing instruction: 7; etc.)
|
||
// nodeType < 6 works because attributes (2) do not appear as children
|
||
for(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false;}}return true;},"parent":function parent(elem){return!Expr.pseudos["empty"](elem);},// Element/input types
|
||
"header":function header(elem){return rheader.test(elem.nodeName);},"input":function input(elem){return rinputs.test(elem.nodeName);},"button":function button(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button";},"text":function text(elem){var attr;return elem.nodeName.toLowerCase()==="input"&&elem.type==="text"&&(// Support: IE<8
|
||
// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
|
||
(attr=elem.getAttribute("type"))==null||attr.toLowerCase()==="text");},// Position-in-collection
|
||
"first":createPositionalPseudo(function(){return[0];}),"last":createPositionalPseudo(function(matchIndexes,length){return[length-1];}),"eq":createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument];}),"even":createPositionalPseudo(function(matchIndexes,length){var i=0;for(;i<length;i+=2){matchIndexes.push(i);}return matchIndexes;}),"odd":createPositionalPseudo(function(matchIndexes,length){var i=1;for(;i<length;i+=2){matchIndexes.push(i);}return matchIndexes;}),"lt":createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;--i>=0;){matchIndexes.push(i);}return matchIndexes;}),"gt":createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;++i<length;){matchIndexes.push(i);}return matchIndexes;})}};Expr.pseudos["nth"]=Expr.pseudos["eq"];// Add button/input type pseudos
|
||
for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){Expr.pseudos[i]=createInputPseudo(i);}for(i in{submit:true,reset:true}){Expr.pseudos[i]=createButtonPseudo(i);}// Easy API for creating new setFilters
|
||
function setFilters(){}setFilters.prototype=Expr.filters=Expr.pseudos;Expr.setFilters=new setFilters();tokenize=Sizzle.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached){return parseOnly?0:cached.slice(0);}soFar=selector;groups=[];preFilters=Expr.preFilter;while(soFar){// Comma and first run
|
||
if(!matched||(match=rcomma.exec(soFar))){if(match){// Don't consume trailing commas as valid
|
||
soFar=soFar.slice(match[0].length)||soFar;}groups.push(tokens=[]);}matched=false;// Combinators
|
||
if(match=rcombinators.exec(soFar)){matched=match.shift();tokens.push({value:matched,// Cast descendant combinators to space
|
||
type:match[0].replace(rtrim," ")});soFar=soFar.slice(matched.length);}// Filters
|
||
for(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){matched=match.shift();tokens.push({value:matched,type:type,matches:match});soFar=soFar.slice(matched.length);}}if(!matched){break;}}// Return the length of the invalid excess
|
||
// if we're just parsing
|
||
// Otherwise, throw an error or return tokens
|
||
return parseOnly?soFar.length:soFar?Sizzle.error(selector):// Cache the tokens
|
||
tokenCache(selector,groups).slice(0);};function toSelector(tokens){var i=0,len=tokens.length,selector="";for(;i<len;i++){selector+=tokens[i].value;}return selector;}function addCombinator(matcher,combinator,base){var dir=combinator.dir,checkNonElements=base&&dir==="parentNode",doneName=done++;return combinator.first?// Check against closest ancestor/preceding element
|
||
function(elem,context,xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){return matcher(elem,context,xml);}}}:// Check against all ancestor/preceding elements
|
||
function(elem,context,xml){var oldCache,outerCache,newCache=[dirruns,doneName];// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
|
||
if(xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){if(matcher(elem,context,xml)){return true;}}}}else{while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){outerCache=elem[expando]||(elem[expando]={});if((oldCache=outerCache[dir])&&oldCache[0]===dirruns&&oldCache[1]===doneName){// Assign to newCache so results back-propagate to previous elements
|
||
return newCache[2]=oldCache[2];}else{// Reuse newcache so results back-propagate to previous elements
|
||
outerCache[dir]=newCache;// A match means we're done; a fail means we have to keep checking
|
||
if(newCache[2]=matcher(elem,context,xml)){return true;}}}}}};}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false;}}return true;}:matchers[0];}function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++){Sizzle(selector,contexts[i],results);}return results;}function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i<len;i++){if(elem=unmatched[i]){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i);}}}}return newUnmatched;}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter);}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector);}return markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,// Get initial elements from seed or context
|
||
elems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),// Prefilter to get matcher input, preserving a map for seed-results synchronization
|
||
matcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
|
||
postFinder||(seed?preFilter:preexisting||postFilter)?// ...intermediate processing is necessary
|
||
[]:// ...otherwise use results directly
|
||
results:matcherIn;// Find primary matches
|
||
if(matcher){matcher(matcherIn,matcherOut,context,xml);}// Apply postFilter
|
||
if(postFilter){temp=condense(matcherOut,postMap);postFilter(temp,[],context,xml);// Un-match failing elements by moving them back to matcherIn
|
||
i=temp.length;while(i--){if(elem=temp[i]){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem);}}}if(seed){if(postFinder||preFilter){if(postFinder){// Get the final matcherOut by condensing this intermediate into postFinder contexts
|
||
temp=[];i=matcherOut.length;while(i--){if(elem=matcherOut[i]){// Restore matcherIn since elem is not yet a final match
|
||
temp.push(matcherIn[i]=elem);}}postFinder(null,matcherOut=[],temp,xml);}// Move matched elements from seed to results to keep them synchronized
|
||
i=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem);}}}// Add elements to results, through postFinder if defined
|
||
}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml);}else{push.apply(results,matcherOut);}}});}function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,// The foundational matcher ensures that elements are reachable from top-level context(s)
|
||
matchContext=addCombinator(function(elem){return elem===checkContext;},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf(checkContext,elem)>-1;},implicitRelative,true),matchers=[function(elem,context,xml){var ret=!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));// Avoid hanging onto element (issue #299)
|
||
checkContext=null;return ret;}];for(;i<len;i++){if(matcher=Expr.relative[tokens[i].type]){matchers=[addCombinator(elementMatcher(matchers),matcher)];}else{matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);// Return special upon seeing a positional matcher
|
||
if(matcher[expando]){// Find the next relative operator (if any) for proper handling
|
||
j=++i;for(;j<len;j++){if(Expr.relative[tokens[j].type]){break;}}return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(// If the preceding token was a descendant combinator, insert an implicit any-element `*`
|
||
tokens.slice(0,i-1).concat({value:tokens[i-2].type===" "?"*":""})).replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens));}matchers.push(matcher);}}return elementMatcher(matchers);}function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function superMatcher(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,// We must always have either seed elements or outermost context
|
||
elems=seed||byElement&&Expr.find["TAG"]("*",outermost),// Use integer dirruns iff this is the outermost matcher
|
||
dirrunsUnique=dirruns+=contextBackup==null?1:Math.random()||0.1,len=elems.length;if(outermost){outermostContext=context!==document&&context;}// Add elements passing elementMatchers directly to results
|
||
// Keep `i` a string if there are no elements so `matchedCount` will be "00" below
|
||
// Support: IE<9, Safari
|
||
// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
|
||
for(;i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;while(matcher=elementMatchers[j++]){if(matcher(elem,context,xml)){results.push(elem);break;}}if(outermost){dirruns=dirrunsUnique;}}// Track unmatched elements for set filters
|
||
if(bySet){// They will have gone through all possible matchers
|
||
if(elem=!matcher&&elem){matchedCount--;}// Lengthen the array for every element, matched or not
|
||
if(seed){unmatched.push(elem);}}}// Apply set filters to unmatched elements
|
||
matchedCount+=i;if(bySet&&i!==matchedCount){j=0;while(matcher=setMatchers[j++]){matcher(unmatched,setMatched,context,xml);}if(seed){// Reintegrate element matches to eliminate the need for sorting
|
||
if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results);}}}// Discard index placeholder values to get only actual matches
|
||
setMatched=condense(setMatched);}// Add matches to results
|
||
push.apply(results,setMatched);// Seedless set matches succeeding multiple successful matchers stipulate sorting
|
||
if(outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1){Sizzle.uniqueSort(results);}}// Override manipulation of globals by nested matchers
|
||
if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup;}return unmatched;};return bySet?markFunction(superMatcher):superMatcher;}compile=Sizzle.compile=function(selector,match/* Internal Use Only */){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){// Generate a function of recursive functions that can be used to check each element
|
||
if(!match){match=tokenize(selector);}i=match.length;while(i--){cached=matcherFromTokens(match[i]);if(cached[expando]){setMatchers.push(cached);}else{elementMatchers.push(cached);}}// Cache the compiled function
|
||
cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));// Save selector and tokenization
|
||
cached.selector=selector;}return cached;};/**
|
||
* A low-level selection function that works with Sizzle's compiled
|
||
* selector functions
|
||
* @param {String|Function} selector A selector or a pre-compiled
|
||
* selector function built with Sizzle.compile
|
||
* @param {Element} context
|
||
* @param {Array} [results]
|
||
* @param {Array} [seed] A set of elements to match against
|
||
*/select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled=typeof selector==="function"&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);results=results||[];// Try to minimize operations if there is no seed and only one group
|
||
if(match.length===1){// Take a shortcut and set the context if the root selector is an ID
|
||
tokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type==="ID"&&support.getById&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find["ID"](token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results;// Precompiled matchers will still verify ancestry, so step up a level
|
||
}else if(compiled){context=context.parentNode;}selector=selector.slice(tokens.shift().value.length);}// Fetch a seed set for right-to-left matching
|
||
i=matchExpr["needsContext"].test(selector)?0:tokens.length;while(i--){token=tokens[i];// Abort if we hit a combinator
|
||
if(Expr.relative[type=token.type]){break;}if(find=Expr.find[type]){// Search, expanding context for leading sibling combinators
|
||
if(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context)){// If seed is empty or no tokens remain, we can return early
|
||
tokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results;}break;}}}}// Compile and execute a filtering function if one is not provided
|
||
// Provide `match` to avoid retokenization if we modified the selector above
|
||
(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,rsibling.test(selector)&&testContext(context.parentNode)||context);return results;};// One-time assignments
|
||
// Sort stability
|
||
support.sortStable=expando.split("").sort(sortOrder).join("")===expando;// Support: Chrome 14-35+
|
||
// Always assume duplicates if they aren't passed to the comparison function
|
||
support.detectDuplicates=!!hasDuplicate;// Initialize against the default document
|
||
setDocument();// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
|
||
// Detached nodes confoundingly follow *each other*
|
||
support.sortDetached=assert(function(div1){// Should return 1, but returns 4 (following)
|
||
return div1.compareDocumentPosition(document.createElement("div"))&1;});// Support: IE<8
|
||
// Prevent attribute/property "interpolation"
|
||
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
|
||
if(!assert(function(div){div.innerHTML="<a href='#'></a>";return div.firstChild.getAttribute("href")==="#";})){addHandle("type|href|height|width",function(elem,name,isXML){if(!isXML){return elem.getAttribute(name,name.toLowerCase()==="type"?1:2);}});}// Support: IE<9
|
||
// Use defaultValue in place of getAttribute("value")
|
||
if(!support.attributes||!assert(function(div){div.innerHTML="<input/>";div.firstChild.setAttribute("value","");return div.firstChild.getAttribute("value")==="";})){addHandle("value",function(elem,name,isXML){if(!isXML&&elem.nodeName.toLowerCase()==="input"){return elem.defaultValue;}});}// Support: IE<9
|
||
// Use getAttributeNode to fetch booleans when getAttribute lies
|
||
if(!assert(function(div){return div.getAttribute("disabled")==null;})){addHandle(booleans,function(elem,name,isXML){var val;if(!isXML){return elem[name]===true?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null;}});}return Sizzle;}(window);jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.pseudos;jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains;var rneedsContext=jQuery.expr.match.needsContext;var rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;var risSimple=/^.[^:#\[\.,]*$/;// Implement the identical functionality for filter and not
|
||
function winnow(elements,qualifier,not){if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){/* jshint -W018 */return!!qualifier.call(elem,i,elem)!==not;});}if(qualifier.nodeType){return jQuery.grep(elements,function(elem){return elem===qualifier!==not;});}if(typeof qualifier==="string"){if(risSimple.test(qualifier)){return jQuery.filter(qualifier,elements,not);}qualifier=jQuery.filter(qualifier,elements);}return jQuery.grep(elements,function(elem){return jQuery.inArray(elem,qualifier)>=0!==not;});}jQuery.filter=function(expr,elems,not){var elem=elems[0];if(not){expr=":not("+expr+")";}return elems.length===1&&elem.nodeType===1?jQuery.find.matchesSelector(elem,expr)?[elem]:[]:jQuery.find.matches(expr,jQuery.grep(elems,function(elem){return elem.nodeType===1;}));};jQuery.fn.extend({find:function find(selector){var i,ret=[],self=this,len=self.length;if(typeof selector!=="string"){return this.pushStack(jQuery(selector).filter(function(){for(i=0;i<len;i++){if(jQuery.contains(self[i],this)){return true;}}}));}for(i=0;i<len;i++){jQuery.find(selector,self[i],ret);}// Needed because $( selector, context ) becomes $( context ).find( selector )
|
||
ret=this.pushStack(len>1?jQuery.unique(ret):ret);ret.selector=this.selector?this.selector+" "+selector:selector;return ret;},filter:function filter(selector){return this.pushStack(winnow(this,selector||[],false));},not:function not(selector){return this.pushStack(winnow(this,selector||[],true));},is:function is(selector){return!!winnow(this,// If this is a positional/relative selector, check membership in the returned set
|
||
// so $("p:first").is("p:last") won't return true for a doc with two "p".
|
||
typeof selector==="string"&&rneedsContext.test(selector)?jQuery(selector):selector||[],false).length;}});// Initialize a jQuery object
|
||
// A central reference to the root jQuery(document)
|
||
var rootjQuery,// Use the correct document accordingly with window argument (sandbox)
|
||
document=window.document,// A simple way to check for HTML strings
|
||
// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
|
||
// Strict HTML recognition (#11290: must start with <)
|
||
rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,init=jQuery.fn.init=function(selector,context){var match,elem;// HANDLE: $(""), $(null), $(undefined), $(false)
|
||
if(!selector){return this;}// Handle HTML strings
|
||
if(typeof selector==="string"){if(selector.charAt(0)==="<"&&selector.charAt(selector.length-1)===">"&&selector.length>=3){// Assume that strings that start and end with <> are HTML and skip the regex check
|
||
match=[null,selector,null];}else{match=rquickExpr.exec(selector);}// Match html or make sure no context is specified for #id
|
||
if(match&&(match[1]||!context)){// HANDLE: $(html) -> $(array)
|
||
if(match[1]){context=context instanceof jQuery?context[0]:context;// scripts is true for back-compat
|
||
// Intentionally let the error be thrown if parseHTML is not present
|
||
jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));// HANDLE: $(html, props)
|
||
if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){for(match in context){// Properties of context are called as methods if possible
|
||
if(jQuery.isFunction(this[match])){this[match](context[match]);// ...and otherwise set as attributes
|
||
}else{this.attr(match,context[match]);}}}return this;// HANDLE: $(#id)
|
||
}else{elem=document.getElementById(match[2]);// Check parentNode to catch when Blackberry 4.6 returns
|
||
// nodes that are no longer in the document #6963
|
||
if(elem&&elem.parentNode){// Handle the case where IE and Opera return items
|
||
// by name instead of ID
|
||
if(elem.id!==match[2]){return rootjQuery.find(selector);}// Otherwise, we inject the element directly into the jQuery object
|
||
this.length=1;this[0]=elem;}this.context=document;this.selector=selector;return this;}// HANDLE: $(expr, $(...))
|
||
}else if(!context||context.jquery){return(context||rootjQuery).find(selector);// HANDLE: $(expr, context)
|
||
// (which is just equivalent to: $(context).find(expr)
|
||
}else{return this.constructor(context).find(selector);}// HANDLE: $(DOMElement)
|
||
}else if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;// HANDLE: $(function)
|
||
// Shortcut for document ready
|
||
}else if(jQuery.isFunction(selector)){return typeof rootjQuery.ready!=="undefined"?rootjQuery.ready(selector):// Execute immediately if ready is not present
|
||
selector(jQuery);}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;}return jQuery.makeArray(selector,this);};// Give the init function the jQuery prototype for later instantiation
|
||
init.prototype=jQuery.fn;// Initialize central reference
|
||
rootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,// methods guaranteed to produce a unique set when starting from a unique set
|
||
guaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.extend({dir:function dir(elem,_dir,until){var matched=[],cur=elem[_dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!jQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur);}cur=cur[_dir];}return matched;},sibling:function sibling(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n);}}return r;}});jQuery.fn.extend({has:function has(target){var i,targets=jQuery(target,this),len=targets.length;return this.filter(function(){for(i=0;i<len;i++){if(jQuery.contains(this,targets[i])){return true;}}});},closest:function closest(selectors,context){var cur,i=0,l=this.length,matched=[],pos=rneedsContext.test(selectors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;for(;i<l;i++){for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){// Always skip document fragments
|
||
if(cur.nodeType<11&&(pos?pos.index(cur)>-1:// Don't pass non-elements to Sizzle
|
||
cur.nodeType===1&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break;}}}return this.pushStack(matched.length>1?jQuery.unique(matched):matched);},// Determine the position of an element within
|
||
// the matched set of elements
|
||
index:function index(elem){// No argument, return index in parent
|
||
if(!elem){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1;}// index in selector
|
||
if(typeof elem==="string"){return jQuery.inArray(this[0],jQuery(elem));}// Locate the position of the desired element
|
||
return jQuery.inArray(// If it receives a jQuery object, the first element is used
|
||
elem.jquery?elem[0]:elem,this);},add:function add(selector,context){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),jQuery(selector,context))));},addBack:function addBack(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));}});function sibling(cur,dir){do{cur=cur[dir];}while(cur&&cur.nodeType!==1);return cur;}jQuery.each({parent:function parent(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function parents(elem){return jQuery.dir(elem,"parentNode");},parentsUntil:function parentsUntil(elem,i,until){return jQuery.dir(elem,"parentNode",until);},next:function next(elem){return sibling(elem,"nextSibling");},prev:function prev(elem){return sibling(elem,"previousSibling");},nextAll:function nextAll(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function prevAll(elem){return jQuery.dir(elem,"previousSibling");},nextUntil:function nextUntil(elem,i,until){return jQuery.dir(elem,"nextSibling",until);},prevUntil:function prevUntil(elem,i,until){return jQuery.dir(elem,"previousSibling",until);},siblings:function siblings(elem){return jQuery.sibling((elem.parentNode||{}).firstChild,elem);},children:function children(elem){return jQuery.sibling(elem.firstChild);},contents:function contents(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.merge([],elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);if(name.slice(-5)!=="Until"){selector=until;}if(selector&&typeof selector==="string"){ret=jQuery.filter(selector,ret);}if(this.length>1){// Remove duplicates
|
||
if(!guaranteedUnique[name]){ret=jQuery.unique(ret);}// Reverse order for parents* and prev-derivatives
|
||
if(rparentsprev.test(name)){ret=ret.reverse();}}return this.pushStack(ret);};});var rnotwhite=/\S+/g;// String to Object options format cache
|
||
var optionsCache={};// Convert String-formatted options into Object-formatted ones and store in cache
|
||
function createOptions(options){var object=optionsCache[options]={};jQuery.each(options.match(rnotwhite)||[],function(_,flag){object[flag]=true;});return object;}/*
|
||
* Create a callback list using the following parameters:
|
||
*
|
||
* options: an optional list of space-separated options that will change how
|
||
* the callback list behaves or a more traditional option object
|
||
*
|
||
* By default a callback list will act like an event callback list and can be
|
||
* "fired" multiple times.
|
||
*
|
||
* Possible options:
|
||
*
|
||
* once: will ensure the callback list can only be fired once (like a Deferred)
|
||
*
|
||
* memory: will keep track of previous values and will call any callback added
|
||
* after the list has been fired right away with the latest "memorized"
|
||
* values (like a Deferred)
|
||
*
|
||
* unique: will ensure a callback can only be added once (no duplicate in the list)
|
||
*
|
||
* stopOnFalse: interrupt callings when a callback returns false
|
||
*
|
||
*/jQuery.Callbacks=function(options){// Convert options from String-formatted to Object-formatted if needed
|
||
// (we check in cache first)
|
||
options=typeof options==="string"?optionsCache[options]||createOptions(options):jQuery.extend({},options);var// Flag to know if list is currently firing
|
||
firing,// Last fire value (for non-forgettable lists)
|
||
memory,// Flag to know if list was already fired
|
||
_fired,// End of the loop when firing
|
||
firingLength,// Index of currently firing callback (modified by remove if needed)
|
||
firingIndex,// First callback to fire (used internally by add and fireWith)
|
||
firingStart,// Actual callback list
|
||
list=[],// Stack of fire calls for repeatable lists
|
||
stack=!options.once&&[],// Fire callbacks
|
||
fire=function fire(data){memory=options.memory&&data;_fired=true;firingIndex=firingStart||0;firingStart=0;firingLength=list.length;firing=true;for(;list&&firingIndex<firingLength;firingIndex++){if(list[firingIndex].apply(data[0],data[1])===false&&options.stopOnFalse){memory=false;// To prevent further calls using add
|
||
break;}}firing=false;if(list){if(stack){if(stack.length){fire(stack.shift());}}else if(memory){list=[];}else{self.disable();}}},// Actual Callbacks object
|
||
self={// Add a callback or a collection of callbacks to the list
|
||
add:function add(){if(list){// First, we save the current length
|
||
var start=list.length;(function add(args){jQuery.each(args,function(_,arg){var type=jQuery.type(arg);if(type==="function"){if(!options.unique||!self.has(arg)){list.push(arg);}}else if(arg&&arg.length&&type!=="string"){// Inspect recursively
|
||
add(arg);}});})(arguments);// Do we need to add the callbacks to the
|
||
// current firing batch?
|
||
if(firing){firingLength=list.length;// With memory, if we're not firing then
|
||
// we should call right away
|
||
}else if(memory){firingStart=start;fire(memory);}}return this;},// Remove a callback from the list
|
||
remove:function remove(){if(list){jQuery.each(arguments,function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);// Handle firing indexes
|
||
if(firing){if(index<=firingLength){firingLength--;}if(index<=firingIndex){firingIndex--;}}}});}return this;},// Check if a given callback is in the list.
|
||
// If no argument is given, return whether or not list has callbacks attached.
|
||
has:function has(fn){return fn?jQuery.inArray(fn,list)>-1:!!(list&&list.length);},// Remove all callbacks from the list
|
||
empty:function empty(){list=[];firingLength=0;return this;},// Have the list do nothing anymore
|
||
disable:function disable(){list=stack=memory=undefined;return this;},// Is it disabled?
|
||
disabled:function disabled(){return!list;},// Lock the list in its current state
|
||
lock:function lock(){stack=undefined;if(!memory){self.disable();}return this;},// Is it locked?
|
||
locked:function locked(){return!stack;},// Call all callbacks with the given context and arguments
|
||
fireWith:function fireWith(context,args){if(list&&(!_fired||stack)){args=args||[];args=[context,args.slice?args.slice():args];if(firing){stack.push(args);}else{fire(args);}}return this;},// Call all the callbacks with the given arguments
|
||
fire:function fire(){self.fireWith(this,arguments);return this;},// To know if the callbacks have already been called at least once
|
||
fired:function fired(){return!!_fired;}};return self;};jQuery.extend({Deferred:function Deferred(func){var tuples=[// action, add listener, listener list, final state
|
||
["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],_state="pending",_promise={state:function state(){return _state;},always:function always(){deferred.done(arguments).fail(arguments);return this;},then:function then()/* fnDone, fnFail, fnProgress */{var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var fn=jQuery.isFunction(fns[i])&&fns[i];// deferred[ done | fail | progress ] for forwarding actions to newDefer
|
||
deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify);}else{newDefer[tuple[0]+"With"](this===_promise?newDefer.promise():this,fn?[returned]:arguments);}});});fns=null;}).promise();},// Get a promise for this deferred
|
||
// If obj is provided, the promise aspect is added to the object
|
||
promise:function promise(obj){return obj!=null?jQuery.extend(obj,_promise):_promise;}},deferred={};// Keep pipe for back-compat
|
||
_promise.pipe=_promise.then;// Add list-specific methods
|
||
jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[3];// promise[ done | fail | progress ] = list.add
|
||
_promise[tuple[1]]=list.add;// Handle state
|
||
if(stateString){list.add(function(){// state = [ resolved | rejected ]
|
||
_state=stateString;// [ reject_list | resolve_list ].disable; progress_list.lock
|
||
},tuples[i^1][2].disable,tuples[2][2].lock);}// deferred[ resolve | reject | notify ]
|
||
deferred[tuple[0]]=function(){deferred[tuple[0]+"With"](this===deferred?_promise:this,arguments);return this;};deferred[tuple[0]+"With"]=list.fireWith;});// Make the deferred a promise
|
||
_promise.promise(deferred);// Call given func if any
|
||
if(func){func.call(deferred,deferred);}// All done!
|
||
return deferred;},// Deferred helper
|
||
when:function when(subordinate/* , ..., subordinateN */){var i=0,resolveValues=_slice.call(arguments),length=resolveValues.length,// the count of uncompleted subordinates
|
||
remaining=length!==1||subordinate&&jQuery.isFunction(subordinate.promise)?length:0,// the master Deferred. If resolveValues consist of only a single Deferred, just use that.
|
||
deferred=remaining===1?subordinate:jQuery.Deferred(),// Update function for both resolve and progress values
|
||
updateFunc=function updateFunc(i,contexts,values){return function(value){contexts[i]=this;values[i]=arguments.length>1?_slice.call(arguments):value;if(values===progressValues){deferred.notifyWith(contexts,values);}else if(! --remaining){deferred.resolveWith(contexts,values);}};},progressValues,progressContexts,resolveContexts;// add listeners to Deferred subordinates; treat others as resolved
|
||
if(length>1){progressValues=new Array(length);progressContexts=new Array(length);resolveContexts=new Array(length);for(;i<length;i++){if(resolveValues[i]&&jQuery.isFunction(resolveValues[i].promise)){resolveValues[i].promise().done(updateFunc(i,resolveContexts,resolveValues)).fail(deferred.reject).progress(updateFunc(i,progressContexts,progressValues));}else{--remaining;}}}// if we're not waiting on anything, resolve the master
|
||
if(!remaining){deferred.resolveWith(resolveContexts,resolveValues);}return deferred.promise();}});// The deferred used on DOM ready
|
||
var readyList;jQuery.fn.ready=function(fn){// Add the callback
|
||
jQuery.ready.promise().done(fn);return this;};jQuery.extend({// Is the DOM ready to be used? Set to true once it occurs.
|
||
isReady:false,// A counter to track how many items to wait for before
|
||
// the ready event fires. See #6781
|
||
readyWait:1,// Hold (or release) the ready event
|
||
holdReady:function holdReady(hold){if(hold){jQuery.readyWait++;}else{jQuery.ready(true);}},// Handle when the DOM is ready
|
||
ready:function ready(wait){// Abort if there are pending holds or we're already ready
|
||
if(wait===true?--jQuery.readyWait:jQuery.isReady){return;}// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
|
||
if(!document.body){return setTimeout(jQuery.ready);}// Remember that the DOM is ready
|
||
jQuery.isReady=true;// If a normal DOM Ready event fired, decrement, and wait if need be
|
||
if(wait!==true&&--jQuery.readyWait>0){return;}// If there are functions bound, to execute
|
||
readyList.resolveWith(document,[jQuery]);// Trigger any bound ready events
|
||
if(jQuery.fn.triggerHandler){jQuery(document).triggerHandler("ready");jQuery(document).off("ready");}}});/**
|
||
* Clean-up method for dom ready events
|
||
*/function detach(){if(document.addEventListener){document.removeEventListener("DOMContentLoaded",completed,false);window.removeEventListener("load",completed,false);}else{document.detachEvent("onreadystatechange",completed);window.detachEvent("onload",completed);}}/**
|
||
* The ready event handler and self cleanup method
|
||
*/function completed(){// readyState === "complete" is good enough for us to call the dom ready in oldIE
|
||
if(document.addEventListener||event.type==="load"||document.readyState==="complete"){detach();jQuery.ready();}}jQuery.ready.promise=function(obj){if(!readyList){readyList=jQuery.Deferred();// Catch cases where $(document).ready() is called after the browser event has already occurred.
|
||
// we once tried to use readyState "interactive" here, but it caused issues like the one
|
||
// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
|
||
if(document.readyState==="complete"){// Handle it asynchronously to allow scripts the opportunity to delay ready
|
||
setTimeout(jQuery.ready);// Standards-based browsers support DOMContentLoaded
|
||
}else if(document.addEventListener){// Use the handy event callback
|
||
document.addEventListener("DOMContentLoaded",completed,false);// A fallback to window.onload, that will always work
|
||
window.addEventListener("load",completed,false);// If IE event model is used
|
||
}else{// Ensure firing before onload, maybe late but safe also for iframes
|
||
document.attachEvent("onreadystatechange",completed);// A fallback to window.onload, that will always work
|
||
window.attachEvent("onload",completed);// If IE and not a frame
|
||
// continually check to see if the document is ready
|
||
var top=false;try{top=window.frameElement==null&&document.documentElement;}catch(e){}if(top&&top.doScroll){(function doScrollCheck(){if(!jQuery.isReady){try{// Use the trick by Diego Perini
|
||
// http://javascript.nwbox.com/IEContentLoaded/
|
||
top.doScroll("left");}catch(e){return setTimeout(doScrollCheck,50);}// detach all dom ready events
|
||
detach();// and execute any waiting functions
|
||
jQuery.ready();}})();}}}return readyList.promise(obj);};var strundefined=typeof undefined==="undefined"?"undefined":_typeof2(undefined);// Support: IE<9
|
||
// Iteration over object's inherited properties before its own
|
||
var i;for(i in jQuery(support)){break;}support.ownLast=i!=="0";// Note: most support tests are defined in their respective modules.
|
||
// false until the test is run
|
||
support.inlineBlockNeedsLayout=false;// Execute ASAP in case we need to set body.style.zoom
|
||
jQuery(function(){// Minified: var a,b,c,d
|
||
var val,div,body,container;body=document.getElementsByTagName("body")[0];if(!body||!body.style){// Return for frameset docs that don't have a body
|
||
return;}// Setup
|
||
div=document.createElement("div");container=document.createElement("div");container.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";body.appendChild(container).appendChild(div);if(_typeof2(div.style.zoom)!==strundefined){// Support: IE<8
|
||
// Check if natively block-level elements act like inline-block
|
||
// elements when setting their display to 'inline' and giving
|
||
// them layout
|
||
div.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";support.inlineBlockNeedsLayout=val=div.offsetWidth===3;if(val){// Prevent IE 6 from affecting layout for positioned elements #11048
|
||
// Prevent IE from shrinking the body in IE 7 mode #12869
|
||
// Support: IE<8
|
||
body.style.zoom=1;}}body.removeChild(container);});(function(){var div=document.createElement("div");// Execute the test only if not already executed in another module.
|
||
if(support.deleteExpando==null){// Support: IE<9
|
||
support.deleteExpando=true;try{delete div.test;}catch(e){support.deleteExpando=false;}}// Null elements to avoid leaks in IE.
|
||
div=null;})();/**
|
||
* Determines whether an object can have data
|
||
*/jQuery.acceptData=function(elem){var noData=jQuery.noData[(elem.nodeName+" ").toLowerCase()],nodeType=+elem.nodeType||1;// Do not set data on non-element DOM nodes because it will not be cleared (#8335).
|
||
return nodeType!==1&&nodeType!==9?false:// Nodes accept data unless otherwise specified; rejection can be conditional
|
||
!noData||noData!==true&&elem.getAttribute("classid")===noData;};var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/([A-Z])/g;function dataAttr(elem,key,data){// If nothing was found internally, try to fetch any
|
||
// data from the HTML5 data-* attribute
|
||
if(data===undefined&&elem.nodeType===1){var name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:// Only convert to a number if it doesn't change the string
|
||
+data+""===data?+data:rbrace.test(data)?jQuery.parseJSON(data):data;}catch(e){}// Make sure we set the data so it isn't changed later
|
||
jQuery.data(elem,key,data);}else{data=undefined;}}return data;}// checks a cache object for emptiness
|
||
function isEmptyDataObject(obj){var name;for(name in obj){// if the public data object is empty, the private is still empty
|
||
if(name==="data"&&jQuery.isEmptyObject(obj[name])){continue;}if(name!=="toJSON"){return false;}}return true;}function internalData(elem,name,data,pvt/* Internal Use Only */){if(!jQuery.acceptData(elem)){return;}var ret,thisCache,internalKey=jQuery.expando,// We have to handle DOM nodes and JS objects differently because IE6-7
|
||
// can't GC object references properly across the DOM-JS boundary
|
||
isNode=elem.nodeType,// Only DOM nodes need the global jQuery cache; JS object data is
|
||
// attached directly to the object so GC can occur automatically
|
||
cache=isNode?jQuery.cache:elem,// Only defining an ID for JS objects if its cache already exists allows
|
||
// the code to shortcut on the same path as a DOM node with no cache
|
||
id=isNode?elem[internalKey]:elem[internalKey]&&internalKey;// Avoid doing any more work than we need to when trying to get data on an
|
||
// object that has no data at all
|
||
if((!id||!cache[id]||!pvt&&!cache[id].data)&&data===undefined&&typeof name==="string"){return;}if(!id){// Only DOM nodes need a new unique ID for each element since their data
|
||
// ends up in the global cache
|
||
if(isNode){id=elem[internalKey]=deletedIds.pop()||jQuery.guid++;}else{id=internalKey;}}if(!cache[id]){// Avoid exposing jQuery metadata on plain JS objects when the object
|
||
// is serialized using JSON.stringify
|
||
cache[id]=isNode?{}:{toJSON:jQuery.noop};}// An object can be passed to jQuery.data instead of a key/value pair; this gets
|
||
// shallow copied over onto the existing cache
|
||
if(_typeof2(name)==="object"||typeof name==="function"){if(pvt){cache[id]=jQuery.extend(cache[id],name);}else{cache[id].data=jQuery.extend(cache[id].data,name);}}thisCache=cache[id];// jQuery data() is stored in a separate object inside the object's internal data
|
||
// cache in order to avoid key collisions between internal data and user-defined
|
||
// data.
|
||
if(!pvt){if(!thisCache.data){thisCache.data={};}thisCache=thisCache.data;}if(data!==undefined){thisCache[jQuery.camelCase(name)]=data;}// Check for both converted-to-camel and non-converted data property names
|
||
// If a data property was specified
|
||
if(typeof name==="string"){// First Try to find as-is property data
|
||
ret=thisCache[name];// Test for null|undefined property data
|
||
if(ret==null){// Try to find the camelCased property
|
||
ret=thisCache[jQuery.camelCase(name)];}}else{ret=thisCache;}return ret;}function internalRemoveData(elem,name,pvt){if(!jQuery.acceptData(elem)){return;}var thisCache,i,isNode=elem.nodeType,// See jQuery.data for more information
|
||
cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expando;// If there is already no cache entry for this object, there is no
|
||
// purpose in continuing
|
||
if(!cache[id]){return;}if(name){thisCache=pvt?cache[id]:cache[id].data;if(thisCache){// Support array or space separated string names for data keys
|
||
if(!jQuery.isArray(name)){// try the string as a key before any manipulation
|
||
if(name in thisCache){name=[name];}else{// split the camel cased version by spaces unless a key with the spaces exists
|
||
name=jQuery.camelCase(name);if(name in thisCache){name=[name];}else{name=name.split(" ");}}}else{// If "name" is an array of keys...
|
||
// When data is initially created, via ("key", "val") signature,
|
||
// keys will be converted to camelCase.
|
||
// Since there is no way to tell _how_ a key was added, remove
|
||
// both plain key and camelCase key. #12786
|
||
// This will only penalize the array argument path.
|
||
name=name.concat(jQuery.map(name,jQuery.camelCase));}i=name.length;while(i--){delete thisCache[name[i]];}// If there is no data left in the cache, we want to continue
|
||
// and let the cache object itself get destroyed
|
||
if(pvt?!isEmptyDataObject(thisCache):!jQuery.isEmptyObject(thisCache)){return;}}}// See jQuery.data for more information
|
||
if(!pvt){delete cache[id].data;// Don't destroy the parent cache unless the internal data object
|
||
// had been the only thing left in it
|
||
if(!isEmptyDataObject(cache[id])){return;}}// Destroy the cache
|
||
if(isNode){jQuery.cleanData([elem],true);// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
|
||
/* jshint eqeqeq: false */}else if(support.deleteExpando||cache!=cache.window){/* jshint eqeqeq: true */delete cache[id];// When all else fails, null
|
||
}else{cache[id]=null;}}jQuery.extend({cache:{},// The following elements (space-suffixed to avoid Object.prototype collisions)
|
||
// throw uncatchable exceptions if you attempt to set expando properties
|
||
noData:{"applet ":true,"embed ":true,// ...but Flash objects (which have this classid) *can* handle expandos
|
||
"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function hasData(elem){elem=elem.nodeType?jQuery.cache[elem[jQuery.expando]]:elem[jQuery.expando];return!!elem&&!isEmptyDataObject(elem);},data:function data(elem,name,_data){return internalData(elem,name,_data);},removeData:function removeData(elem,name){return internalRemoveData(elem,name);},// For internal use only.
|
||
_data:function _data(elem,name,data){return internalData(elem,name,data,true);},_removeData:function _removeData(elem,name){return internalRemoveData(elem,name,true);}});jQuery.fn.extend({data:function data(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;// Special expections of .data basically thwart jQuery.access,
|
||
// so implement the relevant behavior ourselves
|
||
// Gets all values
|
||
if(key===undefined){if(this.length){data=jQuery.data(elem);if(elem.nodeType===1&&!jQuery._data(elem,"parsedAttrs")){i=attrs.length;while(i--){// Support: IE11+
|
||
// The attrs elements can be null (#14894)
|
||
if(attrs[i]){name=attrs[i].name;if(name.indexOf("data-")===0){name=jQuery.camelCase(name.slice(5));dataAttr(elem,name,data[name]);}}}jQuery._data(elem,"parsedAttrs",true);}}return data;}// Sets multiple values
|
||
if(_typeof2(key)==="object"){return this.each(function(){jQuery.data(this,key);});}return arguments.length>1?// Sets one value
|
||
this.each(function(){jQuery.data(this,key,value);}):// Gets one value
|
||
// Try to fetch any internally stored data first
|
||
elem?dataAttr(elem,key,jQuery.data(elem,key)):undefined;},removeData:function removeData(key){return this.each(function(){jQuery.removeData(this,key);});}});jQuery.extend({queue:function queue(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=jQuery._data(elem,type);// Speed up dequeue by getting out quickly if this is just a lookup
|
||
if(data){if(!queue||jQuery.isArray(data)){queue=jQuery._data(elem,type,jQuery.makeArray(data));}else{queue.push(data);}}return queue||[];}},dequeue:function dequeue(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function next(){jQuery.dequeue(elem,type);};// If the fx queue is dequeued, always remove the progress sentinel
|
||
if(fn==="inprogress"){fn=queue.shift();startLength--;}if(fn){// Add a progress sentinel to prevent the fx queue from being
|
||
// automatically dequeued
|
||
if(type==="fx"){queue.unshift("inprogress");}// clear up the last queue stop function
|
||
delete hooks.stop;fn.call(elem,next,hooks);}if(!startLength&&hooks){hooks.empty.fire();}},// not intended for public consumption - generates a queueHooks object, or returns the current one
|
||
_queueHooks:function _queueHooks(elem,type){var key=type+"queueHooks";return jQuery._data(elem,key)||jQuery._data(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){jQuery._removeData(elem,type+"queue");jQuery._removeData(elem,key);})});}});jQuery.fn.extend({queue:function queue(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--;}if(arguments.length<setter){return jQuery.queue(this[0],type);}return data===undefined?this:this.each(function(){var queue=jQuery.queue(this,type,data);// ensure a hooks for this queue
|
||
jQuery._queueHooks(this,type);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type);}});},dequeue:function dequeue(type){return this.each(function(){jQuery.dequeue(this,type);});},clearQueue:function clearQueue(type){return this.queue(type||"fx",[]);},// Get a promise resolved when queues of a certain type
|
||
// are emptied (fx is the type by default)
|
||
promise:function promise(type,obj){var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length,resolve=function resolve(){if(! --count){defer.resolveWith(elements,[elements]);}};if(typeof type!=="string"){obj=type;type=undefined;}type=type||"fx";while(i--){tmp=jQuery._data(elements[i],type+"queueHooks");if(tmp&&tmp.empty){count++;tmp.empty.add(resolve);}}resolve();return defer.promise(obj);}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var cssExpand=["Top","Right","Bottom","Left"];var isHidden=function isHidden(elem,el){// isHidden might be called from jQuery#filter function;
|
||
// in that case, element will be second argument
|
||
elem=el||elem;return jQuery.css(elem,"display")==="none"||!jQuery.contains(elem.ownerDocument,elem);};// Multifunctional method to get and set values of a collection
|
||
// The value/s can optionally be executed if it's a function
|
||
var access=jQuery.access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,length=elems.length,bulk=key==null;// Sets many values
|
||
if(jQuery.type(key)==="object"){chainable=true;for(i in key){jQuery.access(elems,fn,i,key[i],true,emptyGet,raw);}// Sets one value
|
||
}else if(value!==undefined){chainable=true;if(!jQuery.isFunction(value)){raw=true;}if(bulk){// Bulk operations run against the entire set
|
||
if(raw){fn.call(elems,value);fn=null;// ...except when executing function values
|
||
}else{bulk=fn;fn=function fn(elem,key,value){return bulk.call(jQuery(elem),value);};}}if(fn){for(;i<length;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));}}}return chainable?elems:// Gets
|
||
bulk?fn.call(elems):length?fn(elems[0],key):emptyGet;};var rcheckableType=/^(?:checkbox|radio)$/i;(function(){// Minified: var a,b,c
|
||
var input=document.createElement("input"),div=document.createElement("div"),fragment=document.createDocumentFragment();// Setup
|
||
div.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";// IE strips leading whitespace when .innerHTML is used
|
||
support.leadingWhitespace=div.firstChild.nodeType===3;// Make sure that tbody elements aren't automatically inserted
|
||
// IE will insert them into empty tables
|
||
support.tbody=!div.getElementsByTagName("tbody").length;// Make sure that link elements get serialized correctly by innerHTML
|
||
// This requires a wrapper element in IE
|
||
support.htmlSerialize=!!div.getElementsByTagName("link").length;// Makes sure cloning an html5 element does not cause problems
|
||
// Where outerHTML is undefined, this still works
|
||
support.html5Clone=document.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>";// Check if a disconnected checkbox will retain its checked
|
||
// value of true after appended to the DOM (IE6/7)
|
||
input.type="checkbox";input.checked=true;fragment.appendChild(input);support.appendChecked=input.checked;// Make sure textarea (and checkbox) defaultValue is properly cloned
|
||
// Support: IE6-IE11+
|
||
div.innerHTML="<textarea>x</textarea>";support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;// #11217 - WebKit loses check when the name is after the checked attribute
|
||
fragment.appendChild(div);div.innerHTML="<input type='radio' checked='checked' name='t'/>";// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
|
||
// old WebKit doesn't clone checked state correctly in fragments
|
||
support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;// Support: IE<9
|
||
// Opera does not clone events (and typeof div.attachEvent === undefined).
|
||
// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()
|
||
support.noCloneEvent=true;if(div.attachEvent){div.attachEvent("onclick",function(){support.noCloneEvent=false;});div.cloneNode(true).click();}// Execute the test only if not already executed in another module.
|
||
if(support.deleteExpando==null){// Support: IE<9
|
||
support.deleteExpando=true;try{delete div.test;}catch(e){support.deleteExpando=false;}}})();(function(){var i,eventName,div=document.createElement("div");// Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)
|
||
for(i in{submit:true,change:true,focusin:true}){eventName="on"+i;if(!(support[i+"Bubbles"]=eventName in window)){// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
|
||
div.setAttribute(eventName,"t");support[i+"Bubbles"]=div.attributes[eventName].expando===false;}}// Null elements to avoid leaks in IE.
|
||
div=null;})();var rformElems=/^(?:input|select|textarea)$/i,rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,rtypenamespace=/^([^.]*)(?:\.(.+)|)$/;function returnTrue(){return true;}function returnFalse(){return false;}function safeActiveElement(){try{return document.activeElement;}catch(err){}}/*
|
||
* Helper functions for managing events -- not part of the public interface.
|
||
* Props to Dean Edwards' addEvent library for many of the ideas.
|
||
*/jQuery.event={global:{},add:function add(elem,types,handler,data,selector){var tmp,events,t,handleObjIn,special,eventHandle,handleObj,handlers,type,namespaces,origType,elemData=jQuery._data(elem);// Don't attach events to noData or text/comment nodes (but allow plain objects)
|
||
if(!elemData){return;}// Caller can pass in an object of custom data in lieu of the handler
|
||
if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector;}// Make sure that the handler has a unique ID, used to find/remove it later
|
||
if(!handler.guid){handler.guid=jQuery.guid++;}// Init the element's event structure and main handler, if this is the first
|
||
if(!(events=elemData.events)){events=elemData.events={};}if(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){// Discard the second event of a jQuery.event.trigger() and
|
||
// when an event is called after a page has unloaded
|
||
return _typeof2(jQuery)!==strundefined&&(!e||jQuery.event.triggered!==e.type)?jQuery.event.dispatch.apply(eventHandle.elem,arguments):undefined;};// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
|
||
eventHandle.elem=elem;}// Handle multiple events separated by a space
|
||
types=(types||"").match(rnotwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();// There *must* be a type, no attaching namespace-only handlers
|
||
if(!type){continue;}// If event changes its type, use the special event handlers for the changed type
|
||
special=jQuery.event.special[type]||{};// If selector defined, determine special event api type, otherwise given type
|
||
type=(selector?special.delegateType:special.bindType)||type;// Update special based on newly reset type
|
||
special=jQuery.event.special[type]||{};// handleObj is passed to all event handlers
|
||
handleObj=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);// Init the event handler queue if we're the first
|
||
if(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;// Only use addEventListener/attachEvent if the special events handler returns false
|
||
if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){// Bind the global event handler to the element
|
||
if(elem.addEventListener){elem.addEventListener(type,eventHandle,false);}else if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle);}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}// Add to the element's handler list, delegates in front
|
||
if(selector){handlers.splice(handlers.delegateCount++,0,handleObj);}else{handlers.push(handleObj);}// Keep track of which events have ever been used, for event optimization
|
||
jQuery.event.global[type]=true;}// Nullify elem to prevent memory leaks in IE
|
||
elem=null;},// Detach an event or set of events from an element
|
||
remove:function remove(elem,types,handler,selector,mappedTypes){var j,handleObj,tmp,origCount,t,events,special,handlers,type,namespaces,origType,elemData=jQuery.hasData(elem)&&jQuery._data(elem);if(!elemData||!(events=elemData.events)){return;}// Once for each type.namespace in types; type may be omitted
|
||
types=(types||"").match(rnotwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();// Unbind all events (on this namespace, if provided) for the element
|
||
if(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true);}continue;}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");// Remove matching events
|
||
origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--;}if(special.remove){special.remove.call(elem,handleObj);}}}// Remove generic event handler if we removed something and no more handlers exist
|
||
// (avoids potential for endless recursion during removal of special event handlers)
|
||
if(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle);}delete events[type];}}// Remove the expando if it's no longer used
|
||
if(jQuery.isEmptyObject(events)){delete elemData.handle;// removeData also checks for emptiness and clears the expando if empty
|
||
// so use it instead of delete
|
||
jQuery._removeData(elem,"events");}},trigger:function trigger(event,data,elem,onlyHandlers){var handle,ontype,cur,bubbleType,special,tmp,i,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];cur=tmp=elem=elem||document;// Don't do events on text and comment nodes
|
||
if(elem.nodeType===3||elem.nodeType===8){return;}// focus/blur morphs to focusin/out; ensure we're not firing them right now
|
||
if(rfocusMorph.test(type+jQuery.event.triggered)){return;}if(type.indexOf(".")>=0){// Namespaced trigger; create a regexp to match event type in handle()
|
||
namespaces=type.split(".");type=namespaces.shift();namespaces.sort();}ontype=type.indexOf(":")<0&&"on"+type;// Caller can pass in a jQuery.Event object, Object, or just an event type string
|
||
event=event[jQuery.expando]?event:new jQuery.Event(type,_typeof2(event)==="object"&&event);// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
|
||
event.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(".");event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;// Clean up the event in case it is being reused
|
||
event.result=undefined;if(!event.target){event.target=elem;}// Clone any incoming data and prepend the event, creating the handler arg list
|
||
data=data==null?[event]:jQuery.makeArray(data,[event]);// Allow special events to draw outside the lines
|
||
special=jQuery.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return;}// Determine event propagation path in advance, per W3C events spec (#9951)
|
||
// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
|
||
if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode;}for(;cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur;}// Only add window if we got to document (e.g., not plain obj or detached DOM)
|
||
if(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp.parentWindow||window);}}// Fire handlers on the event path
|
||
i=0;while((cur=eventPath[i++])&&!event.isPropagationStopped()){event.type=i>1?bubbleType:special.bindType||type;// jQuery handler
|
||
handle=(jQuery._data(cur,"events")||{})[event.type]&&jQuery._data(cur,"handle");if(handle){handle.apply(cur,data);}// Native handler
|
||
handle=ontype&&cur[ontype];if(handle&&handle.apply&&jQuery.acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault();}}}event.type=type;// If nobody prevented the default action, do it now
|
||
if(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(eventPath.pop(),data)===false)&&jQuery.acceptData(elem)){// Call a native DOM method on the target with the same name name as the event.
|
||
// Can't use an .isFunction() check here because IE6/7 fails that test.
|
||
// Don't do default actions on window, that's where global variables be (#6170)
|
||
if(ontype&&elem[type]&&!jQuery.isWindow(elem)){// Don't re-trigger an onFOO event when we call its FOO() method
|
||
tmp=elem[ontype];if(tmp){elem[ontype]=null;}// Prevent re-triggering of the same event, since we already bubbled it above
|
||
jQuery.event.triggered=type;try{elem[type]();}catch(e){// IE<9 dies on focus/blur to hidden element (#1486,#12518)
|
||
// only reproducible on winXP IE8 native, not IE9 in IE8 mode
|
||
}jQuery.event.triggered=undefined;if(tmp){elem[ontype]=tmp;}}}}return event.result;},dispatch:function dispatch(event){// Make a writable jQuery.Event from the native event object
|
||
event=jQuery.event.fix(event);var i,ret,handleObj,matched,j,handlerQueue=[],args=_slice.call(arguments),handlers=(jQuery._data(this,"events")||{})[event.type]||[],special=jQuery.event.special[event.type]||{};// Use the fix-ed jQuery.Event rather than the (read-only) native event
|
||
args[0]=event;event.delegateTarget=this;// Call the preDispatch hook for the mapped type, and let it bail if desired
|
||
if(special.preDispatch&&special.preDispatch.call(this,event)===false){return;}// Determine handlers
|
||
handlerQueue=jQuery.event.handlers.call(this,event,handlers);// Run delegates first; they may want to stop propagation beneath us
|
||
i=0;while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){event.currentTarget=matched.elem;j=0;while((handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped()){// Triggered event must either 1) have no namespace, or
|
||
// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
|
||
if(!event.namespace_re||event.namespace_re.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation();}}}}}// Call the postDispatch hook for the mapped type
|
||
if(special.postDispatch){special.postDispatch.call(this,event);}return event.result;},handlers:function handlers(event,_handlers){var sel,handleObj,matches,i,handlerQueue=[],delegateCount=_handlers.delegateCount,cur=event.target;// Find delegate handlers
|
||
// Black-hole SVG <use> instance trees (#13180)
|
||
// Avoid non-left-click bubbling in Firefox (#3861)
|
||
if(delegateCount&&cur.nodeType&&(!event.button||event.type!=="click")){/* jshint eqeqeq: false */for(;cur!=this;cur=cur.parentNode||this){/* jshint eqeqeq: true */ // Don't check non-elements (#13208)
|
||
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
|
||
if(cur.nodeType===1&&(cur.disabled!==true||event.type!=="click")){matches=[];for(i=0;i<delegateCount;i++){handleObj=_handlers[i];// Don't conflict with Object.prototype properties (#13203)
|
||
sel=handleObj.selector+" ";if(matches[sel]===undefined){matches[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>=0:jQuery.find(sel,this,null,[cur]).length;}if(matches[sel]){matches.push(handleObj);}}if(matches.length){handlerQueue.push({elem:cur,handlers:matches});}}}}// Add the remaining (directly-bound) handlers
|
||
if(delegateCount<_handlers.length){handlerQueue.push({elem:this,handlers:_handlers.slice(delegateCount)});}return handlerQueue;},fix:function fix(event){if(event[jQuery.expando]){return event;}// Create a writable copy of the event object and normalize some properties
|
||
var i,prop,copy,type=event.type,originalEvent=event,fixHook=this.fixHooks[type];if(!fixHook){this.fixHooks[type]=fixHook=rmouseEvent.test(type)?this.mouseHooks:rkeyEvent.test(type)?this.keyHooks:{};}copy=fixHook.props?this.props.concat(fixHook.props):this.props;event=new jQuery.Event(originalEvent);i=copy.length;while(i--){prop=copy[i];event[prop]=originalEvent[prop];}// Support: IE<9
|
||
// Fix target property (#1925)
|
||
if(!event.target){event.target=originalEvent.srcElement||document;}// Support: Chrome 23+, Safari?
|
||
// Target should not be a text node (#504, #13143)
|
||
if(event.target.nodeType===3){event.target=event.target.parentNode;}// Support: IE<9
|
||
// For mouse/key events, metaKey==false if it's undefined (#3368, #11328)
|
||
event.metaKey=!!event.metaKey;return fixHook.filter?fixHook.filter(event,originalEvent):event;},// Includes some event props shared by KeyEvent and MouseEvent
|
||
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 filter(event,original){// Add which for key events
|
||
if(event.which==null){event.which=original.charCode!=null?original.charCode:original.keyCode;}return event;}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function filter(event,original){var body,eventDoc,doc,button=original.button,fromElement=original.fromElement;// Calculate pageX/Y if missing and clientX/Y available
|
||
if(event.pageX==null&&original.clientX!=null){eventDoc=event.target.ownerDocument||document;doc=eventDoc.documentElement;body=eventDoc.body;event.pageX=original.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0);}// Add relatedTarget, if necessary
|
||
if(!event.relatedTarget&&fromElement){event.relatedTarget=fromElement===event.target?original.toElement:fromElement;}// Add which for click: 1 === left; 2 === middle; 3 === right
|
||
// Note: button is not normalized, so don't use it
|
||
if(!event.which&&button!==undefined){event.which=button&1?1:button&2?3:button&4?2:0;}return event;}},special:{load:{// Prevent triggered image.load events from bubbling to window.load
|
||
noBubble:true},focus:{// Fire native event if possible so blur/focus sequence is correct
|
||
trigger:function trigger(){if(this!==safeActiveElement()&&this.focus){try{this.focus();return false;}catch(e){// Support: IE<9
|
||
// If we error on focus to hidden element (#1486, #12518),
|
||
// let .trigger() run the handlers
|
||
}}},delegateType:"focusin"},blur:{trigger:function trigger(){if(this===safeActiveElement()&&this.blur){this.blur();return false;}},delegateType:"focusout"},click:{// For checkbox, fire native event so checked state will be right
|
||
trigger:function trigger(){if(jQuery.nodeName(this,"input")&&this.type==="checkbox"&&this.click){this.click();return false;}},// For cross-browser consistency, don't fire native .click() on links
|
||
_default:function _default(event){return jQuery.nodeName(event.target,"a");}},beforeunload:{postDispatch:function postDispatch(event){// Support: Firefox 20+
|
||
// Firefox doesn't alert if the returnValue field is not set.
|
||
if(event.result!==undefined&&event.originalEvent){event.originalEvent.returnValue=event.result;}}}},simulate:function simulate(type,elem,event,bubble){// Piggyback on a donor event to simulate a different one.
|
||
// Fake originalEvent to avoid donor's stopPropagation, but if the
|
||
// simulated event prevents default then we do the same on the donor.
|
||
var e=jQuery.extend(new jQuery.Event(),event,{type:type,isSimulated:true,originalEvent:{}});if(bubble){jQuery.event.trigger(e,null,elem);}else{jQuery.event.dispatch.call(elem,e);}if(e.isDefaultPrevented()){event.preventDefault();}}};jQuery.removeEvent=document.removeEventListener?function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle,false);}}:function(elem,type,handle){var name="on"+type;if(elem.detachEvent){// #8545, #7054, preventing memory leaks for custom events in IE6-8
|
||
// detachEvent needed property on element, by name of that event, to properly expose it to GC
|
||
if(_typeof2(elem[name])===strundefined){elem[name]=null;}elem.detachEvent(name,handle);}};jQuery.Event=function(src,props){// Allow instantiation without the 'new' keyword
|
||
if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props);}// Event object
|
||
if(src&&src.type){this.originalEvent=src;this.type=src.type;// Events bubbling up the document may have been marked as prevented
|
||
// by a handler lower down the tree; reflect the correct value.
|
||
this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&// Support: IE < 9, Android < 4.0
|
||
src.returnValue===false?returnTrue:returnFalse;// Event type
|
||
}else{this.type=src;}// Put explicitly provided properties onto the event object
|
||
if(props){jQuery.extend(this,props);}// Create a timestamp if incoming event doesn't have one
|
||
this.timeStamp=src&&src.timeStamp||jQuery.now();// Mark it as fixed
|
||
this[jQuery.expando]=true;};// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
|
||
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
|
||
jQuery.Event.prototype={isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,preventDefault:function preventDefault(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(!e){return;}// If preventDefault exists, run it on the original event
|
||
if(e.preventDefault){e.preventDefault();// Support: IE
|
||
// Otherwise set the returnValue property of the original event to false
|
||
}else{e.returnValue=false;}},stopPropagation:function stopPropagation(){var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(!e){return;}// If stopPropagation exists, run it on the original event
|
||
if(e.stopPropagation){e.stopPropagation();}// Support: IE
|
||
// Set the cancelBubble property of the original event to true
|
||
e.cancelBubble=true;},stopImmediatePropagation:function stopImmediatePropagation(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue;if(e&&e.stopImmediatePropagation){e.stopImmediatePropagation();}this.stopPropagation();}};// Create mouseenter/leave events using mouseover/out and event-time checks
|
||
jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function handle(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;// For mousenter/leave call the handler if related is outside the target.
|
||
// NB: No relatedTarget if the mouse left/entered the browser window
|
||
if(!related||related!==target&&!jQuery.contains(target,related)){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix;}return ret;}};});// IE submit delegation
|
||
if(!support.submitBubbles){jQuery.event.special.submit={setup:function setup(){// Only need this for delegated form submit events
|
||
if(jQuery.nodeName(this,"form")){return false;}// Lazy-add a submit handler when a descendant form may potentially be submitted
|
||
jQuery.event.add(this,"click._submit keypress._submit",function(e){// Node name check avoids a VML-related crash in IE (#9807)
|
||
var elem=e.target,form=jQuery.nodeName(elem,"input")||jQuery.nodeName(elem,"button")?elem.form:undefined;if(form&&!jQuery._data(form,"submitBubbles")){jQuery.event.add(form,"submit._submit",function(event){event._submit_bubble=true;});jQuery._data(form,"submitBubbles",true);}});// return undefined since we don't need an event listener
|
||
},postDispatch:function postDispatch(event){// If form was submitted by the user, bubble the event up the tree
|
||
if(event._submit_bubble){delete event._submit_bubble;if(this.parentNode&&!event.isTrigger){jQuery.event.simulate("submit",this.parentNode,event,true);}}},teardown:function teardown(){// Only need this for delegated form submit events
|
||
if(jQuery.nodeName(this,"form")){return false;}// Remove delegated handlers; cleanData eventually reaps submit handlers attached above
|
||
jQuery.event.remove(this,"._submit");}};}// IE change delegation and checkbox/radio fix
|
||
if(!support.changeBubbles){jQuery.event.special.change={setup:function setup(){if(rformElems.test(this.nodeName)){// IE doesn't fire change on a check/radio until blur; trigger it on click
|
||
// after a propertychange. Eat the blur-change in special.change.handle.
|
||
// This still fires onchange a second time for check/radio after blur.
|
||
if(this.type==="checkbox"||this.type==="radio"){jQuery.event.add(this,"propertychange._change",function(event){if(event.originalEvent.propertyName==="checked"){this._just_changed=true;}});jQuery.event.add(this,"click._change",function(event){if(this._just_changed&&!event.isTrigger){this._just_changed=false;}// Allow triggered, simulated change events (#11500)
|
||
jQuery.event.simulate("change",this,event,true);});}return false;}// Delegated event; lazy-add a change handler on descendant inputs
|
||
jQuery.event.add(this,"beforeactivate._change",function(e){var elem=e.target;if(rformElems.test(elem.nodeName)&&!jQuery._data(elem,"changeBubbles")){jQuery.event.add(elem,"change._change",function(event){if(this.parentNode&&!event.isSimulated&&!event.isTrigger){jQuery.event.simulate("change",this.parentNode,event,true);}});jQuery._data(elem,"changeBubbles",true);}});},handle:function handle(event){var elem=event.target;// Swallow native change events from checkbox/radio, we already triggered them above
|
||
if(this!==elem||event.isSimulated||event.isTrigger||elem.type!=="radio"&&elem.type!=="checkbox"){return event.handleObj.handler.apply(this,arguments);}},teardown:function teardown(){jQuery.event.remove(this,"._change");return!rformElems.test(this.nodeName);}};}// Create "bubbling" focus and blur events
|
||
if(!support.focusinBubbles){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){// Attach a single capturing handler on the document while someone wants focusin/focusout
|
||
var handler=function handler(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event),true);};jQuery.event.special[fix]={setup:function setup(){var doc=this.ownerDocument||this,attaches=jQuery._data(doc,fix);if(!attaches){doc.addEventListener(orig,handler,true);}jQuery._data(doc,fix,(attaches||0)+1);},teardown:function teardown(){var doc=this.ownerDocument||this,attaches=jQuery._data(doc,fix)-1;if(!attaches){doc.removeEventListener(orig,handler,true);jQuery._removeData(doc,fix);}else{jQuery._data(doc,fix,attaches);}}};});}jQuery.fn.extend({on:function on(types,selector,data,fn,/*INTERNAL*/one){var type,origFn;// Types can be a map of types/handlers
|
||
if(_typeof2(types)==="object"){// ( types-Object, selector, data )
|
||
if(typeof selector!=="string"){// ( types-Object, data )
|
||
data=data||selector;selector=undefined;}for(type in types){this.on(type,selector,data,types[type],one);}return this;}if(data==null&&fn==null){// ( types, fn )
|
||
fn=selector;data=selector=undefined;}else if(fn==null){if(typeof selector==="string"){// ( types, selector, fn )
|
||
fn=data;data=undefined;}else{// ( types, data, fn )
|
||
fn=data;data=selector;selector=undefined;}}if(fn===false){fn=returnFalse;}else if(!fn){return this;}if(one===1){origFn=fn;fn=function fn(event){// Can use an empty set, since event contains the info
|
||
jQuery().off(event);return origFn.apply(this,arguments);};// Use same guid so caller can remove using origFn
|
||
fn.guid=origFn.guid||(origFn.guid=jQuery.guid++);}return this.each(function(){jQuery.event.add(this,types,fn,data,selector);});},one:function one(types,selector,data,fn){return this.on(types,selector,data,fn,1);},off:function off(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){// ( event ) dispatched jQuery.Event
|
||
handleObj=types.handleObj;jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this;}if(_typeof2(types)==="object"){// ( types-object [, selector] )
|
||
for(type in types){this.off(type,selector,types[type]);}return this;}if(selector===false||typeof selector==="function"){// ( types [, fn] )
|
||
fn=selector;selector=undefined;}if(fn===false){fn=returnFalse;}return this.each(function(){jQuery.event.remove(this,types,fn,selector);});},trigger:function trigger(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function triggerHandler(type,data){var elem=this[0];if(elem){return jQuery.event.trigger(type,data,elem,true);}}});function createSafeFragment(document){var list=nodeNames.split("|"),safeFrag=document.createDocumentFragment();if(safeFrag.createElement){while(list.length){safeFrag.createElement(list.pop());}}return safeFrag;}var nodeNames="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",rinlinejQuery=/ jQuery\d+="(?:null|\d+)"/g,rnoshimcache=new RegExp("<(?:"+nodeNames+")[\\s/>]","i"),rleadingWhitespace=/^\s+/,rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:script|style|link)/i,// checked="checked" or checked
|
||
rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/^$|\/(?:java|ecma)script/i,rscriptTypeMasked=/^true\/(.*)/,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,// We have to close these tags to support XHTML (#13200)
|
||
wrapMap={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>"],// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
|
||
// unless wrapped in a div with non-breaking characters in front of it.
|
||
_default:support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},safeFragment=createSafeFragment(document),fragmentDiv=safeFragment.appendChild(document.createElement("div"));wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;function getAll(context,tag){var elems,elem,i=0,found=_typeof2(context.getElementsByTagName)!==strundefined?context.getElementsByTagName(tag||"*"):_typeof2(context.querySelectorAll)!==strundefined?context.querySelectorAll(tag||"*"):undefined;if(!found){for(found=[],elems=context.childNodes||context;(elem=elems[i])!=null;i++){if(!tag||jQuery.nodeName(elem,tag)){found.push(elem);}else{jQuery.merge(found,getAll(elem,tag));}}}return tag===undefined||tag&&jQuery.nodeName(context,tag)?jQuery.merge([context],found):found;}// Used in buildFragment, fixes the defaultChecked property
|
||
function fixDefaultChecked(elem){if(rcheckableType.test(elem.type)){elem.defaultChecked=elem.checked;}}// Support: IE<8
|
||
// Manipulating tables requires a tbody
|
||
function manipulationTarget(elem,content){return jQuery.nodeName(elem,"table")&&jQuery.nodeName(content.nodeType!==11?content:content.firstChild,"tr")?elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody")):elem;}// Replace/restore the type attribute of script elements for safe DOM manipulation
|
||
function disableScript(elem){elem.type=(jQuery.find.attr(elem,"type")!==null)+"/"+elem.type;return elem;}function restoreScript(elem){var match=rscriptTypeMasked.exec(elem.type);if(match){elem.type=match[1];}else{elem.removeAttribute("type");}return elem;}// Mark scripts as having already been evaluated
|
||
function setGlobalEval(elems,refElements){var elem,i=0;for(;(elem=elems[i])!=null;i++){jQuery._data(elem,"globalEval",!refElements||jQuery._data(refElements[i],"globalEval"));}}function cloneCopyEvent(src,dest){if(dest.nodeType!==1||!jQuery.hasData(src)){return;}var type,i,l,oldData=jQuery._data(src),curData=jQuery._data(dest,oldData),events=oldData.events;if(events){delete curData.handle;curData.events={};for(type in events){for(i=0,l=events[type].length;i<l;i++){jQuery.event.add(dest,type,events[type][i]);}}}// make the cloned public data object a copy from the original
|
||
if(curData.data){curData.data=jQuery.extend({},curData.data);}}function fixCloneNodeIssues(src,dest){var nodeName,e,data;// We do not need to do anything for non-Elements
|
||
if(dest.nodeType!==1){return;}nodeName=dest.nodeName.toLowerCase();// IE6-8 copies events bound via attachEvent when using cloneNode.
|
||
if(!support.noCloneEvent&&dest[jQuery.expando]){data=jQuery._data(dest);for(e in data.events){jQuery.removeEvent(dest,e,data.handle);}// Event data gets referenced instead of copied if the expando gets copied too
|
||
dest.removeAttribute(jQuery.expando);}// IE blanks contents when cloning scripts, and tries to evaluate newly-set text
|
||
if(nodeName==="script"&&dest.text!==src.text){disableScript(dest).text=src.text;restoreScript(dest);// IE6-10 improperly clones children of object elements using classid.
|
||
// IE10 throws NoModificationAllowedError if parent is null, #12132.
|
||
}else if(nodeName==="object"){if(dest.parentNode){dest.outerHTML=src.outerHTML;}// This path appears unavoidable for IE9. When cloning an object
|
||
// element in IE9, the outerHTML strategy above is not sufficient.
|
||
// If the src has innerHTML and the destination does not,
|
||
// copy the src.innerHTML into the dest.innerHTML. #10324
|
||
if(support.html5Clone&&src.innerHTML&&!jQuery.trim(dest.innerHTML)){dest.innerHTML=src.innerHTML;}}else if(nodeName==="input"&&rcheckableType.test(src.type)){// IE6-8 fails to persist the checked state of a cloned checkbox
|
||
// or radio button. Worse, IE6-7 fail to give the cloned element
|
||
// a checked appearance if the defaultChecked value isn't also set
|
||
dest.defaultChecked=dest.checked=src.checked;// IE6-7 get confused and end up setting the value of a cloned
|
||
// checkbox/radio button to an empty string instead of "on"
|
||
if(dest.value!==src.value){dest.value=src.value;}// IE6-8 fails to return the selected option to the default selected
|
||
// state when cloning options
|
||
}else if(nodeName==="option"){dest.defaultSelected=dest.selected=src.defaultSelected;// IE6-8 fails to set the defaultValue to the correct value when
|
||
// cloning other types of input fields
|
||
}else if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue;}}jQuery.extend({clone:function clone(elem,dataAndEvents,deepDataAndEvents){var destElements,node,clone,i,srcElements,inPage=jQuery.contains(elem.ownerDocument,elem);if(support.html5Clone||jQuery.isXMLDoc(elem)||!rnoshimcache.test("<"+elem.nodeName+">")){clone=elem.cloneNode(true);// IE<=8 does not properly clone detached, unknown element nodes
|
||
}else{fragmentDiv.innerHTML=elem.outerHTML;fragmentDiv.removeChild(clone=fragmentDiv.firstChild);}if((!support.noCloneEvent||!support.noCloneChecked)&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
|
||
destElements=getAll(clone);srcElements=getAll(elem);// Fix all IE cloning issues
|
||
for(i=0;(node=srcElements[i])!=null;++i){// Ensure that the destination node is not null; Fixes #9587
|
||
if(destElements[i]){fixCloneNodeIssues(node,destElements[i]);}}}// Copy the events from the original to the clone
|
||
if(dataAndEvents){if(deepDataAndEvents){srcElements=srcElements||getAll(elem);destElements=destElements||getAll(clone);for(i=0;(node=srcElements[i])!=null;i++){cloneCopyEvent(node,destElements[i]);}}else{cloneCopyEvent(elem,clone);}}// Preserve script evaluation history
|
||
destElements=getAll(clone,"script");if(destElements.length>0){setGlobalEval(destElements,!inPage&&getAll(elem,"script"));}destElements=srcElements=node=null;// Return the cloned set
|
||
return clone;},buildFragment:function buildFragment(elems,context,scripts,selection){var j,elem,contains,tmp,tag,tbody,wrap,l=elems.length,// Ensure a safe fragment
|
||
safe=createSafeFragment(context),nodes=[],i=0;for(;i<l;i++){elem=elems[i];if(elem||elem===0){// Add nodes directly
|
||
if(jQuery.type(elem)==="object"){jQuery.merge(nodes,elem.nodeType?[elem]:elem);// Convert non-html into a text node
|
||
}else if(!rhtml.test(elem)){nodes.push(context.createTextNode(elem));// Convert html into DOM nodes
|
||
}else{tmp=tmp||safe.appendChild(context.createElement("div"));// Deserialize a standard representation
|
||
tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;tmp.innerHTML=wrap[1]+elem.replace(rxhtmlTag,"<$1></$2>")+wrap[2];// Descend through wrappers to the right content
|
||
j=wrap[0];while(j--){tmp=tmp.lastChild;}// Manually add leading whitespace removed by IE
|
||
if(!support.leadingWhitespace&&rleadingWhitespace.test(elem)){nodes.push(context.createTextNode(rleadingWhitespace.exec(elem)[0]));}// Remove IE's autoinserted <tbody> from table fragments
|
||
if(!support.tbody){// String was a <table>, *may* have spurious <tbody>
|
||
elem=tag==="table"&&!rtbody.test(elem)?tmp.firstChild:// String was a bare <thead> or <tfoot>
|
||
wrap[1]==="<table>"&&!rtbody.test(elem)?tmp:0;j=elem&&elem.childNodes.length;while(j--){if(jQuery.nodeName(tbody=elem.childNodes[j],"tbody")&&!tbody.childNodes.length){elem.removeChild(tbody);}}}jQuery.merge(nodes,tmp.childNodes);// Fix #12392 for WebKit and IE > 9
|
||
tmp.textContent="";// Fix #12392 for oldIE
|
||
while(tmp.firstChild){tmp.removeChild(tmp.firstChild);}// Remember the top-level container for proper cleanup
|
||
tmp=safe.lastChild;}}}// Fix #11356: Clear elements from fragment
|
||
if(tmp){safe.removeChild(tmp);}// Reset defaultChecked for any radios and checkboxes
|
||
// about to be appended to the DOM in IE 6/7 (#8060)
|
||
if(!support.appendChecked){jQuery.grep(getAll(nodes,"input"),fixDefaultChecked);}i=0;while(elem=nodes[i++]){// #4087 - If origin and destination elements are the same, and this is
|
||
// that element, do not do anything
|
||
if(selection&&jQuery.inArray(elem,selection)!==-1){continue;}contains=jQuery.contains(elem.ownerDocument,elem);// Append to fragment
|
||
tmp=getAll(safe.appendChild(elem),"script");// Preserve script evaluation history
|
||
if(contains){setGlobalEval(tmp);}// Capture executables
|
||
if(scripts){j=0;while(elem=tmp[j++]){if(rscriptType.test(elem.type||"")){scripts.push(elem);}}}}tmp=null;return safe;},cleanData:function cleanData(elems,/* internal */acceptData){var elem,type,id,data,i=0,internalKey=jQuery.expando,cache=jQuery.cache,deleteExpando=support.deleteExpando,special=jQuery.event.special;for(;(elem=elems[i])!=null;i++){if(acceptData||jQuery.acceptData(elem)){id=elem[internalKey];data=id&&cache[id];if(data){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);// This is a shortcut to avoid jQuery.event.remove's overhead
|
||
}else{jQuery.removeEvent(elem,type,data.handle);}}}// Remove cache only if it was not already removed by jQuery.event.remove
|
||
if(cache[id]){delete cache[id];// IE does not allow us to delete expando properties from nodes,
|
||
// nor does it have a removeAttribute function on Document nodes;
|
||
// we must handle all of these cases
|
||
if(deleteExpando){delete elem[internalKey];}else if(_typeof2(elem.removeAttribute)!==strundefined){elem.removeAttribute(internalKey);}else{elem[internalKey]=null;}deletedIds.push(id);}}}}}});jQuery.fn.extend({text:function text(value){return access(this,function(value){return value===undefined?jQuery.text(this):this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(value));},null,value,arguments.length);},append:function append(){return this.domManip(arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem);}});},prepend:function prepend(){return this.domManip(arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild);}});},before:function before(){return this.domManip(arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this);}});},after:function after(){return this.domManip(arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this.nextSibling);}});},remove:function remove(selector,keepData/* Internal Use Only */){var elem,elems=selector?jQuery.filter(selector,this):this,i=0;for(;(elem=elems[i])!=null;i++){if(!keepData&&elem.nodeType===1){jQuery.cleanData(getAll(elem));}if(elem.parentNode){if(keepData&&jQuery.contains(elem.ownerDocument,elem)){setGlobalEval(getAll(elem,"script"));}elem.parentNode.removeChild(elem);}}return this;},empty:function empty(){var elem,i=0;for(;(elem=this[i])!=null;i++){// Remove element nodes and prevent memory leaks
|
||
if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));}// Remove any remaining nodes
|
||
while(elem.firstChild){elem.removeChild(elem.firstChild);}// If this is a select, ensure that it displays empty (#12336)
|
||
// Support: IE<9
|
||
if(elem.options&&jQuery.nodeName(elem,"select")){elem.options.length=0;}}return this;},clone:function clone(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents);});},html:function html(value){return access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined){return elem.nodeType===1?elem.innerHTML.replace(rinlinejQuery,""):undefined;}// See if we can take a shortcut and just use innerHTML
|
||
if(typeof value==="string"&&!rnoInnerhtml.test(value)&&(support.htmlSerialize||!rnoshimcache.test(value))&&(support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1></$2>");try{for(;i<l;i++){// Remove element nodes and prevent memory leaks
|
||
elem=this[i]||{};if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.innerHTML=value;}}elem=0;// If using innerHTML throws an exception, use the fallback method
|
||
}catch(e){}}if(elem){this.empty().append(value);}},null,value,arguments.length);},replaceWith:function replaceWith(){var arg=arguments[0];// Make the changes, replacing each context element with the new content
|
||
this.domManip(arguments,function(elem){arg=this.parentNode;jQuery.cleanData(getAll(this));if(arg){arg.replaceChild(elem,this);}});// Force removal if there was no new content (e.g., from empty arguments)
|
||
return arg&&(arg.length||arg.nodeType)?this:this.remove();},detach:function detach(selector){return this.remove(selector,true);},domManip:function domManip(args,callback){// Flatten any nested arrays
|
||
args=concat.apply([],args);var first,node,hasScripts,scripts,doc,fragment,i=0,l=this.length,set=this,iNoClone=l-1,value=args[0],isFunction=jQuery.isFunction(value);// We can't cloneNode fragments that contain checked, in WebKit
|
||
if(isFunction||l>1&&typeof value==="string"&&!support.checkClone&&rchecked.test(value)){return this.each(function(index){var self=set.eq(index);if(isFunction){args[0]=value.call(this,index,self.html());}self.domManip(args,callback);});}if(l){fragment=jQuery.buildFragment(args,this[0].ownerDocument,false,this);first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first;}if(first){scripts=jQuery.map(getAll(fragment,"script"),disableScript);hasScripts=scripts.length;// Use the original fragment for the last item instead of the first because it can end up
|
||
// being emptied incorrectly in certain situations (#8070).
|
||
for(;i<l;i++){node=fragment;if(i!==iNoClone){node=jQuery.clone(node,true,true);// Keep references to cloned scripts for later restoration
|
||
if(hasScripts){jQuery.merge(scripts,getAll(node,"script"));}}callback.call(this[i],node,i);}if(hasScripts){doc=scripts[scripts.length-1].ownerDocument;// Reenable scripts
|
||
jQuery.map(scripts,restoreScript);// Evaluate executable scripts on first document insertion
|
||
for(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||"")&&!jQuery._data(node,"globalEval")&&jQuery.contains(doc,node)){if(node.src){// Optional AJAX dependency, but won't run scripts if not present
|
||
if(jQuery._evalUrl){jQuery._evalUrl(node.src);}}else{jQuery.globalEval((node.text||node.textContent||node.innerHTML||"").replace(rcleanScript,""));}}}}// Fix #11809: Avoid leaking memory
|
||
fragment=first=null;}}return this;}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var elems,i=0,ret=[],insert=jQuery(selector),last=insert.length-1;for(;i<=last;i++){elems=i===last?this:this.clone(true);jQuery(insert[i])[original](elems);// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
|
||
push.apply(ret,elems.get());}return this.pushStack(ret);};});var iframe,elemdisplay={};/**
|
||
* Retrieve the actual display of a element
|
||
* @param {String} name nodeName of the element
|
||
* @param {Object} doc Document object
|
||
*/ // Called only from within defaultDisplay
|
||
function actualDisplay(name,doc){var style,elem=jQuery(doc.createElement(name)).appendTo(doc.body),// getDefaultComputedStyle might be reliably used only on attached element
|
||
display=window.getDefaultComputedStyle&&(style=window.getDefaultComputedStyle(elem[0]))?// Use of this method is a temporary fix (more like optmization) until something better comes along,
|
||
// since it was removed from specification and supported only in FF
|
||
style.display:jQuery.css(elem[0],"display");// We don't have any data stored on the element,
|
||
// so use "detach" method as fast way to get rid of the element
|
||
elem.detach();return display;}/**
|
||
* Try to determine the default display value of an element
|
||
* @param {String} nodeName
|
||
*/function defaultDisplay(nodeName){var doc=document,display=elemdisplay[nodeName];if(!display){display=actualDisplay(nodeName,doc);// If the simple way fails, read from inside an iframe
|
||
if(display==="none"||!display){// Use the already-created iframe if possible
|
||
iframe=(iframe||jQuery("<iframe frameborder='0' width='0' height='0'/>")).appendTo(doc.documentElement);// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
|
||
doc=(iframe[0].contentWindow||iframe[0].contentDocument).document;// Support: IE
|
||
doc.write();doc.close();display=actualDisplay(nodeName,doc);iframe.detach();}// Store the correct default display
|
||
elemdisplay[nodeName]=display;}return display;}(function(){var shrinkWrapBlocksVal;support.shrinkWrapBlocks=function(){if(shrinkWrapBlocksVal!=null){return shrinkWrapBlocksVal;}// Will be changed later if needed.
|
||
shrinkWrapBlocksVal=false;// Minified: var b,c,d
|
||
var div,body,container;body=document.getElementsByTagName("body")[0];if(!body||!body.style){// Test fired too early or in an unsupported environment, exit.
|
||
return;}// Setup
|
||
div=document.createElement("div");container=document.createElement("div");container.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";body.appendChild(container).appendChild(div);// Support: IE6
|
||
// Check if elements with layout shrink-wrap their children
|
||
if(_typeof2(div.style.zoom)!==strundefined){// Reset CSS: box-sizing; display; margin; border
|
||
div.style.cssText=// Support: Firefox<29, Android 2.3
|
||
// Vendor-prefix box-sizing
|
||
"-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";div.appendChild(document.createElement("div")).style.width="5px";shrinkWrapBlocksVal=div.offsetWidth!==3;}body.removeChild(container);return shrinkWrapBlocksVal;};})();var rmargin=/^margin/;var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");var getStyles,curCSS,rposition=/^(top|right|bottom|left)$/;if(window.getComputedStyle){getStyles=function getStyles(elem){// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
|
||
// IE throws on elements created in popups
|
||
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
|
||
if(elem.ownerDocument.defaultView.opener){return elem.ownerDocument.defaultView.getComputedStyle(elem,null);}return window.getComputedStyle(elem,null);};curCSS=function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;computed=computed||getStyles(elem);// getPropertyValue is only needed for .css('filter') in IE9, see #12537
|
||
ret=computed?computed.getPropertyValue(name)||computed[name]:undefined;if(computed){if(ret===""&&!jQuery.contains(elem.ownerDocument,elem)){ret=jQuery.style(elem,name);}// A tribute to the "awesome hack by Dean Edwards"
|
||
// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
|
||
// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
|
||
// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
|
||
if(rnumnonpx.test(ret)&&rmargin.test(name)){// Remember the original values
|
||
width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;// Put in the new values to get a computed value out
|
||
style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;// Revert the changed values
|
||
style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth;}}// Support: IE
|
||
// IE returns zIndex value as an integer.
|
||
return ret===undefined?ret:ret+"";};}else if(document.documentElement.currentStyle){getStyles=function getStyles(elem){return elem.currentStyle;};curCSS=function curCSS(elem,name,computed){var left,rs,rsLeft,ret,style=elem.style;computed=computed||getStyles(elem);ret=computed?computed[name]:undefined;// Avoid setting ret to empty string here
|
||
// so we don't default to auto
|
||
if(ret==null&&style&&style[name]){ret=style[name];}// From the awesome hack by Dean Edwards
|
||
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
|
||
// If we're not dealing with a regular pixel number
|
||
// but a number that has a weird ending, we need to convert it to pixels
|
||
// but not position css attributes, as those are proportional to the parent element instead
|
||
// and we can't measure the parent instead because it might trigger a "stacking dolls" problem
|
||
if(rnumnonpx.test(ret)&&!rposition.test(name)){// Remember the original values
|
||
left=style.left;rs=elem.runtimeStyle;rsLeft=rs&&rs.left;// Put in the new values to get a computed value out
|
||
if(rsLeft){rs.left=elem.currentStyle.left;}style.left=name==="fontSize"?"1em":ret;ret=style.pixelLeft+"px";// Revert the changed values
|
||
style.left=left;if(rsLeft){rs.left=rsLeft;}}// Support: IE
|
||
// IE returns zIndex value as an integer.
|
||
return ret===undefined?ret:ret+""||"auto";};}function addGetHookIf(conditionFn,hookFn){// Define the hook, we'll check on the first run if it's really needed.
|
||
return{get:function get(){var condition=conditionFn();if(condition==null){// The test was not ready at this point; screw the hook this time
|
||
// but check again when needed next time.
|
||
return;}if(condition){// Hook not needed (or it's not possible to use it due to missing dependency),
|
||
// remove it.
|
||
// Since there are no other hooks for marginRight, remove the whole object.
|
||
delete this.get;return;}// Hook needed; redefine it so that the support test is not executed again.
|
||
return(this.get=hookFn).apply(this,arguments);}};}(function(){// Minified: var b,c,d,e,f,g, h,i
|
||
var div,style,a,pixelPositionVal,boxSizingReliableVal,reliableHiddenOffsetsVal,reliableMarginRightVal;// Setup
|
||
div=document.createElement("div");div.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";a=div.getElementsByTagName("a")[0];style=a&&a.style;// Finish early in limited (non-browser) environments
|
||
if(!style){return;}style.cssText="float:left;opacity:.5";// Support: IE<9
|
||
// Make sure that element opacity exists (as opposed to filter)
|
||
support.opacity=style.opacity==="0.5";// Verify style float existence
|
||
// (IE uses styleFloat instead of cssFloat)
|
||
support.cssFloat=!!style.cssFloat;div.style.backgroundClip="content-box";div.cloneNode(true).style.backgroundClip="";support.clearCloneStyle=div.style.backgroundClip==="content-box";// Support: Firefox<29, Android 2.3
|
||
// Vendor-prefix box-sizing
|
||
support.boxSizing=style.boxSizing===""||style.MozBoxSizing===""||style.WebkitBoxSizing==="";jQuery.extend(support,{reliableHiddenOffsets:function reliableHiddenOffsets(){if(reliableHiddenOffsetsVal==null){computeStyleTests();}return reliableHiddenOffsetsVal;},boxSizingReliable:function boxSizingReliable(){if(boxSizingReliableVal==null){computeStyleTests();}return boxSizingReliableVal;},pixelPosition:function pixelPosition(){if(pixelPositionVal==null){computeStyleTests();}return pixelPositionVal;},// Support: Android 2.3
|
||
reliableMarginRight:function reliableMarginRight(){if(reliableMarginRightVal==null){computeStyleTests();}return reliableMarginRightVal;}});function computeStyleTests(){// Minified: var b,c,d,j
|
||
var div,body,container,contents;body=document.getElementsByTagName("body")[0];if(!body||!body.style){// Test fired too early or in an unsupported environment, exit.
|
||
return;}// Setup
|
||
div=document.createElement("div");container=document.createElement("div");container.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";body.appendChild(container).appendChild(div);div.style.cssText=// Support: Firefox<29, Android 2.3
|
||
// Vendor-prefix box-sizing
|
||
"-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";// Support: IE<9
|
||
// Assume reasonable values in the absence of getComputedStyle
|
||
pixelPositionVal=boxSizingReliableVal=false;reliableMarginRightVal=true;// Check for getComputedStyle so that this code is not run in IE<9.
|
||
if(window.getComputedStyle){pixelPositionVal=(window.getComputedStyle(div,null)||{}).top!=="1%";boxSizingReliableVal=(window.getComputedStyle(div,null)||{width:"4px"}).width==="4px";// Support: Android 2.3
|
||
// Div with explicit width and no margin-right incorrectly
|
||
// gets computed margin-right based on width of container (#3333)
|
||
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
|
||
contents=div.appendChild(document.createElement("div"));// Reset CSS: box-sizing; display; margin; border; padding
|
||
contents.style.cssText=div.style.cssText=// Support: Firefox<29, Android 2.3
|
||
// Vendor-prefix box-sizing
|
||
"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;"+"box-sizing:content-box;display:block;margin:0;border:0;padding:0";contents.style.marginRight=contents.style.width="0";div.style.width="1px";reliableMarginRightVal=!parseFloat((window.getComputedStyle(contents,null)||{}).marginRight);div.removeChild(contents);}// Support: IE8
|
||
// Check if table cells still have offsetWidth/Height when they are set
|
||
// to display:none and there are still other visible table cells in a
|
||
// table row; if so, offsetWidth/Height are not reliable for use when
|
||
// determining if an element has been hidden directly using
|
||
// display:none (it is still safe to use offsets if a parent element is
|
||
// hidden; don safety goggles and see bug #4512 for more information).
|
||
div.innerHTML="<table><tr><td></td><td>t</td></tr></table>";contents=div.getElementsByTagName("td");contents[0].style.cssText="margin:0;border:0;padding:0;display:none";reliableHiddenOffsetsVal=contents[0].offsetHeight===0;if(reliableHiddenOffsetsVal){contents[0].style.display="";contents[1].style.display="none";reliableHiddenOffsetsVal=contents[0].offsetHeight===0;}body.removeChild(container);}})();// A method for quickly swapping in/out CSS properties to get correct calculations.
|
||
jQuery.swap=function(elem,options,callback,args){var ret,name,old={};// Remember the old values, and insert the new ones
|
||
for(name in options){old[name]=elem.style[name];elem.style[name]=options[name];}ret=callback.apply(elem,args||[]);// Revert the old values
|
||
for(name in options){elem.style[name]=old[name];}return ret;};var ralpha=/alpha\([^)]*\)/i,ropacity=/opacity\s*=\s*([^)]*)/,// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
|
||
// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
|
||
rdisplayswap=/^(none|table(?!-c[ea]).+)/,rnumsplit=new RegExp("^("+pnum+")(.*)$","i"),rrelNum=new RegExp("^([+-])=("+pnum+")","i"),cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"},cssPrefixes=["Webkit","O","Moz","ms"];// return a css property mapped to a potentially vendor prefixed property
|
||
function vendorPropName(style,name){// shortcut for names that are not vendor prefixed
|
||
if(name in style){return name;}// check for vendor prefixed names
|
||
var capName=name.charAt(0).toUpperCase()+name.slice(1),origName=name,i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in style){return name;}}return origName;}function showHide(elements,show){var display,elem,hidden,values=[],index=0,length=elements.length;for(;index<length;index++){elem=elements[index];if(!elem.style){continue;}values[index]=jQuery._data(elem,"olddisplay");display=elem.style.display;if(show){// Reset the inline display of this element to learn if it is
|
||
// being hidden by cascaded rules or not
|
||
if(!values[index]&&display==="none"){elem.style.display="";}// Set elements which have been overridden with display: none
|
||
// in a stylesheet to whatever the default browser style is
|
||
// for such an element
|
||
if(elem.style.display===""&&isHidden(elem)){values[index]=jQuery._data(elem,"olddisplay",defaultDisplay(elem.nodeName));}}else{hidden=isHidden(elem);if(display&&display!=="none"||!hidden){jQuery._data(elem,"olddisplay",hidden?display:jQuery.css(elem,"display"));}}}// Set the display of most of the elements in a second loop
|
||
// to avoid the constant reflow
|
||
for(index=0;index<length;index++){elem=elements[index];if(!elem.style){continue;}if(!show||elem.style.display==="none"||elem.style.display===""){elem.style.display=show?values[index]||"":"none";}}return elements;}function setPositiveNumber(elem,value,subtract){var matches=rnumsplit.exec(value);return matches?// Guard against undefined "subtract", e.g., when used as in cssHooks
|
||
Math.max(0,matches[1]-(subtract||0))+(matches[2]||"px"):value;}function augmentWidthOrHeight(elem,name,extra,isBorderBox,styles){var i=extra===(isBorderBox?"border":"content")?// If we already have the right measurement, avoid augmentation
|
||
4:// Otherwise initialize for horizontal or vertical properties
|
||
name==="width"?1:0,val=0;for(;i<4;i+=2){// both box models exclude margin, so add it if we want it
|
||
if(extra==="margin"){val+=jQuery.css(elem,extra+cssExpand[i],true,styles);}if(isBorderBox){// border-box includes padding, so remove it if we want content
|
||
if(extra==="content"){val-=jQuery.css(elem,"padding"+cssExpand[i],true,styles);}// at this point, extra isn't border nor margin, so remove border
|
||
if(extra!=="margin"){val-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);}}else{// at this point, extra isn't content, so add padding
|
||
val+=jQuery.css(elem,"padding"+cssExpand[i],true,styles);// at this point, extra isn't content nor padding, so add border
|
||
if(extra!=="padding"){val+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);}}}return val;}function getWidthOrHeight(elem,name,extra){// Start with offset property, which is equivalent to the border-box value
|
||
var valueIsBorderBox=true,val=name==="width"?elem.offsetWidth:elem.offsetHeight,styles=getStyles(elem),isBorderBox=support.boxSizing&&jQuery.css(elem,"boxSizing",false,styles)==="border-box";// some non-html elements return undefined for offsetWidth, so check for null/undefined
|
||
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
|
||
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
|
||
if(val<=0||val==null){// Fall back to computed then uncomputed css if necessary
|
||
val=curCSS(elem,name,styles);if(val<0||val==null){val=elem.style[name];}// Computed unit is not pixels. Stop here and return.
|
||
if(rnumnonpx.test(val)){return val;}// we need the check for style in case a browser which returns unreliable values
|
||
// for getComputedStyle silently falls back to the reliable elem.style
|
||
valueIsBorderBox=isBorderBox&&(support.boxSizingReliable()||val===elem.style[name]);// Normalize "", auto, and prepare for extra
|
||
val=parseFloat(val)||0;}// use the active box-sizing model to add/subtract irrelevant styles
|
||
return val+augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles)+"px";}jQuery.extend({// Add in style property hooks for overriding the default
|
||
// behavior of getting and setting a style property
|
||
cssHooks:{opacity:{get:function get(elem,computed){if(computed){// We should always get a number back from opacity
|
||
var ret=curCSS(elem,"opacity");return ret===""?"1":ret;}}}},// Don't automatically add "px" to these possibly-unitless properties
|
||
cssNumber:{"columnCount":true,"fillOpacity":true,"flexGrow":true,"flexShrink":true,"fontWeight":true,"lineHeight":true,"opacity":true,"order":true,"orphans":true,"widows":true,"zIndex":true,"zoom":true},// Add in properties whose names you wish to fix before
|
||
// setting or getting the value
|
||
cssProps:{// normalize float css property
|
||
"float":support.cssFloat?"cssFloat":"styleFloat"},// Get and set the style property on a DOM Node
|
||
style:function style(elem,name,value,extra){// Don't set styles on text and comment nodes
|
||
if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return;}// Make sure that we're working with the right name
|
||
var ret,type,hooks,origName=jQuery.camelCase(name),style=elem.style;name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(style,origName));// gets hook for the prefixed version
|
||
// followed by the unprefixed version
|
||
hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];// Check if we're setting a value
|
||
if(value!==undefined){type=_typeof2(value);// convert relative number strings (+= or -=) to relative numbers. #7345
|
||
if(type==="string"&&(ret=rrelNum.exec(value))){value=(ret[1]+1)*ret[2]+parseFloat(jQuery.css(elem,name));// Fixes bug #9237
|
||
type="number";}// Make sure that null and NaN values aren't set. See: #7116
|
||
if(value==null||value!==value){return;}// If a number was passed in, add 'px' to the (except for certain CSS properties)
|
||
if(type==="number"&&!jQuery.cssNumber[origName]){value+="px";}// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
|
||
// but it would mean to define eight (for every problematic property) identical functions
|
||
if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){style[name]="inherit";}// If a hook was provided, use that value, otherwise just set the specified value
|
||
if(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){// Support: IE
|
||
// Swallow errors from 'invalid' CSS values (#5509)
|
||
try{style[name]=value;}catch(e){}}}else{// If a hook was provided get the non-computed value from there
|
||
if(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret;}// Otherwise just get the value from the style object
|
||
return style[name];}},css:function css(elem,name,extra,styles){var num,val,hooks,origName=jQuery.camelCase(name);// Make sure that we're working with the right name
|
||
name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(elem.style,origName));// gets hook for the prefixed version
|
||
// followed by the unprefixed version
|
||
hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];// If a hook was provided get the computed value from there
|
||
if(hooks&&"get"in hooks){val=hooks.get(elem,true,extra);}// Otherwise, if a way to get the computed value exists, use that
|
||
if(val===undefined){val=curCSS(elem,name,styles);}//convert "normal" to computed value
|
||
if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name];}// Return, converting to number if forced or a qualifier was provided and val looks numeric
|
||
if(extra===""||extra){num=parseFloat(val);return extra===true||jQuery.isNumeric(num)?num||0:val;}return val;}});jQuery.each(["height","width"],function(i,name){jQuery.cssHooks[name]={get:function get(elem,computed,extra){if(computed){// certain elements can have dimension info if we invisibly show them
|
||
// however, it must have a current display style that would benefit from this
|
||
return rdisplayswap.test(jQuery.css(elem,"display"))&&elem.offsetWidth===0?jQuery.swap(elem,cssShow,function(){return getWidthOrHeight(elem,name,extra);}):getWidthOrHeight(elem,name,extra);}},set:function set(elem,value,extra){var styles=extra&&getStyles(elem);return setPositiveNumber(elem,value,extra?augmentWidthOrHeight(elem,name,extra,support.boxSizing&&jQuery.css(elem,"boxSizing",false,styles)==="border-box",styles):0);}};});if(!support.opacity){jQuery.cssHooks.opacity={get:function get(elem,computed){// IE uses filters for opacity
|
||
return ropacity.test((computed&&elem.currentStyle?elem.currentStyle.filter:elem.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":computed?"1":"";},set:function set(elem,value){var style=elem.style,currentStyle=elem.currentStyle,opacity=jQuery.isNumeric(value)?"alpha(opacity="+value*100+")":"",filter=currentStyle&¤tStyle.filter||style.filter||"";// IE has trouble with opacity if it does not have layout
|
||
// Force it by setting the zoom level
|
||
style.zoom=1;// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
|
||
// if value === "", then remove inline opacity #12685
|
||
if((value>=1||value==="")&&jQuery.trim(filter.replace(ralpha,""))===""&&style.removeAttribute){// Setting style.filter to null, "" & " " still leave "filter:" in the cssText
|
||
// if "filter:" is present at all, clearType is disabled, we want to avoid this
|
||
// style.removeAttribute is IE Only, but so apparently is this code path...
|
||
style.removeAttribute("filter");// if there is no filter style applied in a css rule or unset inline opacity, we are done
|
||
if(value===""||currentStyle&&!currentStyle.filter){return;}}// otherwise, set new filter values
|
||
style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):filter+" "+opacity;}};}jQuery.cssHooks.marginRight=addGetHookIf(support.reliableMarginRight,function(elem,computed){if(computed){// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
|
||
// Work around by temporarily setting element display to inline-block
|
||
return jQuery.swap(elem,{"display":"inline-block"},curCSS,[elem,"marginRight"]);}});// These hooks are used by animate to expand properties
|
||
jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function expand(value){var i=0,expanded={},// assumes a single number if not a string
|
||
parts=typeof value==="string"?value.split(" "):[value];for(;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];}return expanded;}};if(!rmargin.test(prefix)){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;}});jQuery.fn.extend({css:function css(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(jQuery.isArray(name)){styles=getStyles(elem);len=name.length;for(;i<len;i++){map[name[i]]=jQuery.css(elem,name[i],false,styles);}return map;}return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name);},name,value,arguments.length>1);},show:function show(){return showHide(this,true);},hide:function hide(){return showHide(this);},toggle:function toggle(state){if(typeof state==="boolean"){return state?this.show():this.hide();}return this.each(function(){if(isHidden(this)){jQuery(this).show();}else{jQuery(this).hide();}});}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing);}jQuery.Tween=Tween;Tween.prototype={constructor:Tween,init:function init(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||"swing";this.options=options;this.start=this.now=this.cur();this.end=end;this.unit=unit||(jQuery.cssNumber[prop]?"":"px");},cur:function cur(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this);},run:function run(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration);}else{this.pos=eased=percent;}this.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this);}if(hooks&&hooks.set){hooks.set(this);}else{Tween.propHooks._default.set(this);}return this;}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function get(tween){var result;if(tween.elem[tween.prop]!=null&&(!tween.elem.style||tween.elem.style[tween.prop]==null)){return tween.elem[tween.prop];}// passing an empty string as a 3rd parameter to .css will automatically
|
||
// attempt a parseFloat and fallback to a string if the parse fails
|
||
// so, simple values such as "10px" are parsed to Float.
|
||
// complex values such as "rotate(1rad)" are returned as is.
|
||
result=jQuery.css(tween.elem,tween.prop,"");// Empty strings, null, undefined and "auto" are converted to 0.
|
||
return!result||result==="auto"?0:result;},set:function set(tween){// use step hook for back compat - use cssHook if its there - use .style if its
|
||
// available and use plain properties where available
|
||
if(jQuery.fx.step[tween.prop]){jQuery.fx.step[tween.prop](tween);}else if(tween.elem.style&&(tween.elem.style[jQuery.cssProps[tween.prop]]!=null||jQuery.cssHooks[tween.prop])){jQuery.style(tween.elem,tween.prop,tween.now+tween.unit);}else{tween.elem[tween.prop]=tween.now;}}}};// Support: IE <=9
|
||
// Panic based approach to setting things on disconnected nodes
|
||
Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function set(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now;}}};jQuery.easing={linear:function linear(p){return p;},swing:function swing(p){return 0.5-Math.cos(p*Math.PI)/2;}};jQuery.fx=Tween.prototype.init;// Back Compat <1.8 extension point
|
||
jQuery.fx.step={};var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(prop,value){var tween=this.createTween(prop,value),target=tween.cur(),parts=rfxnum.exec(value),unit=parts&&parts[3]||(jQuery.cssNumber[prop]?"":"px"),// Starting value computation is required for potential unit mismatches
|
||
start=(jQuery.cssNumber[prop]||unit!=="px"&&+target)&&rfxnum.exec(jQuery.css(tween.elem,prop)),scale=1,maxIterations=20;if(start&&start[3]!==unit){// Trust units reported by jQuery.css
|
||
unit=unit||start[3];// Make sure we update the tween properties later on
|
||
parts=parts||[];// Iteratively approximate from a nonzero starting point
|
||
start=+target||1;do{// If previous iteration zeroed out, double until we get *something*
|
||
// Use a string for doubling factor so we don't accidentally see scale as unchanged below
|
||
scale=scale||".5";// Adjust and apply
|
||
start=start/scale;jQuery.style(tween.elem,prop,start+unit);// Update scale, tolerating zero or NaN from tween.cur()
|
||
// And breaking the loop if scale is unchanged or perfect, or if we've just had enough
|
||
}while(scale!==(scale=tween.cur()/target)&&scale!==1&&--maxIterations);}// Update tween properties
|
||
if(parts){start=tween.start=+start||+target||0;tween.unit=unit;// If a +=/-= token was provided, we're doing a relative animation
|
||
tween.end=parts[1]?start+(parts[1]+1)*parts[2]:+parts[2];}return tween;}]};// Animations created synchronously will run synchronously
|
||
function createFxNow(){setTimeout(function(){fxNow=undefined;});return fxNow=jQuery.now();}// Generate parameters to create a standard animation
|
||
function genFx(type,includeWidth){var which,attrs={height:type},i=0;// if we include width, step value is 1 to do all cssExpand values,
|
||
// if we don't include width, step value is 2 to skip over Left and Right
|
||
includeWidth=includeWidth?1:0;for(;i<4;i+=2-includeWidth){which=cssExpand[i];attrs["margin"+which]=attrs["padding"+which]=type;}if(includeWidth){attrs.opacity=attrs.width=type;}return attrs;}function createTween(value,prop,animation){var tween,collection=(tweeners[prop]||[]).concat(tweeners["*"]),index=0,length=collection.length;for(;index<length;index++){if(tween=collection[index].call(animation,prop,value)){// we're done with this property
|
||
return tween;}}}function defaultPrefilter(elem,props,opts){/* jshint validthis: true */var prop,value,toggle,tween,hooks,oldfire,display,checkDisplay,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHidden(elem),dataShow=jQuery._data(elem,"fxshow");// handle queue: false promises
|
||
if(!opts.queue){hooks=jQuery._queueHooks(elem,"fx");if(hooks.unqueued==null){hooks.unqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function(){if(!hooks.unqueued){oldfire();}};}hooks.unqueued++;anim.always(function(){// doing this makes sure that the complete handler will be called
|
||
// before this completes
|
||
anim.always(function(){hooks.unqueued--;if(!jQuery.queue(elem,"fx").length){hooks.empty.fire();}});});}// height/width overflow pass
|
||
if(elem.nodeType===1&&("height"in props||"width"in props)){// Make sure that nothing sneaks out
|
||
// Record all 3 overflow attributes because IE does not
|
||
// change the overflow attribute when overflowX and
|
||
// overflowY are set to the same value
|
||
opts.overflow=[style.overflow,style.overflowX,style.overflowY];// Set display property to inline-block for height/width
|
||
// animations on inline elements that are having width/height animated
|
||
display=jQuery.css(elem,"display");// Test default display if display is currently "none"
|
||
checkDisplay=display==="none"?jQuery._data(elem,"olddisplay")||defaultDisplay(elem.nodeName):display;if(checkDisplay==="inline"&&jQuery.css(elem,"float")==="none"){// inline-level elements accept inline-block;
|
||
// block-level elements need to be inline with layout
|
||
if(!support.inlineBlockNeedsLayout||defaultDisplay(elem.nodeName)==="inline"){style.display="inline-block";}else{style.zoom=1;}}}if(opts.overflow){style.overflow="hidden";if(!support.shrinkWrapBlocks()){anim.always(function(){style.overflow=opts.overflow[0];style.overflowX=opts.overflow[1];style.overflowY=opts.overflow[2];});}}// show/hide pass
|
||
for(prop in props){value=props[prop];if(rfxtypes.exec(value)){delete props[prop];toggle=toggle||value==="toggle";if(value===(hidden?"hide":"show")){// If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
|
||
if(value==="show"&&dataShow&&dataShow[prop]!==undefined){hidden=true;}else{continue;}}orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop);// Any non-fx value stops us from restoring the original display value
|
||
}else{display=undefined;}}if(!jQuery.isEmptyObject(orig)){if(dataShow){if("hidden"in dataShow){hidden=dataShow.hidden;}}else{dataShow=jQuery._data(elem,"fxshow",{});}// store state if its toggle - enables .stop().toggle() to "reverse"
|
||
if(toggle){dataShow.hidden=!hidden;}if(hidden){jQuery(elem).show();}else{anim.done(function(){jQuery(elem).hide();});}anim.done(function(){var prop;jQuery._removeData(elem,"fxshow");for(prop in orig){jQuery.style(elem,prop,orig[prop]);}});for(prop in orig){tween=createTween(hidden?dataShow[prop]:0,prop,anim);if(!(prop in dataShow)){dataShow[prop]=tween.start;if(hidden){tween.end=tween.start;tween.start=prop==="width"||prop==="height"?1:0;}}}// If this is a noop like .hide().hide(), restore an overwritten display value
|
||
}else if((display==="none"?defaultDisplay(elem.nodeName):display)==="inline"){style.display=display;}}function propFilter(props,specialEasing){var index,name,easing,value,hooks;// camelCase, specialEasing and expand cssHook pass
|
||
for(index in props){name=jQuery.camelCase(index);easing=specialEasing[name];value=props[index];if(jQuery.isArray(value)){easing=value[1];value=props[index]=value[0];}if(index!==name){props[name]=value;delete props[index];}hooks=jQuery.cssHooks[name];if(hooks&&"expand"in hooks){value=hooks.expand(value);delete props[name];// not quite $.extend, this wont overwrite keys already present.
|
||
// also - reusing 'index' from above because we have the correct "name"
|
||
for(index in value){if(!(index in props)){props[index]=value[index];specialEasing[index]=easing;}}}else{specialEasing[name]=easing;}}}function Animation(elem,properties,options){var result,stopped,index=0,length=animationPrefilters.length,deferred=jQuery.Deferred().always(function(){// don't match elem in the :animated selector
|
||
delete tick.elem;}),tick=function tick(){if(stopped){return false;}var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
|
||
temp=remaining/animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;for(;index<length;index++){animation.tweens[index].run(percent);}deferred.notifyWith(elem,[animation,percent,remaining]);if(percent<1&&length){return remaining;}else{deferred.resolveWith(elem,[animation]);return false;}},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{specialEasing:{}},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function createTween(prop,end){var tween=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween);return tween;},stop:function stop(gotoEnd){var index=0,// if we are going to the end, we want to run all the tweens
|
||
// otherwise we skip this part
|
||
length=gotoEnd?animation.tweens.length:0;if(stopped){return this;}stopped=true;for(;index<length;index++){animation.tweens[index].run(1);}// resolve when we played the last frame
|
||
// otherwise, reject
|
||
if(gotoEnd){deferred.resolveWith(elem,[animation,gotoEnd]);}else{deferred.rejectWith(elem,[animation,gotoEnd]);}return this;}}),props=animation.props;propFilter(props,animation.opts.specialEasing);for(;index<length;index++){result=animationPrefilters[index].call(animation,elem,props,animation.opts);if(result){return result;}}jQuery.map(props,createTween,animation);if(jQuery.isFunction(animation.opts.start)){animation.opts.start.call(elem,animation);}jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue}));// attach callbacks from options
|
||
return animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);}jQuery.Animation=jQuery.extend(Animation,{tweener:function tweener(props,callback){if(jQuery.isFunction(props)){callback=props;props=["*"];}else{props=props.split(" ");}var prop,index=0,length=props.length;for(;index<length;index++){prop=props[index];tweeners[prop]=tweeners[prop]||[];tweeners[prop].unshift(callback);}},prefilter:function prefilter(callback,prepend){if(prepend){animationPrefilters.unshift(callback);}else{animationPrefilters.push(callback);}}});jQuery.speed=function(speed,easing,fn){var opt=speed&&_typeof2(speed)==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:opt.duration in jQuery.fx.speeds?jQuery.fx.speeds[opt.duration]:jQuery.fx.speeds._default;// normalize opt.queue - true/undefined/null -> "fx"
|
||
if(opt.queue==null||opt.queue===true){opt.queue="fx";}// Queueing
|
||
opt.old=opt.complete;opt.complete=function(){if(jQuery.isFunction(opt.old)){opt.old.call(this);}if(opt.queue){jQuery.dequeue(this,opt.queue);}};return opt;};jQuery.fn.extend({fadeTo:function fadeTo(speed,to,easing,callback){// show any hidden elements after setting opacity to 0
|
||
return this.filter(isHidden).css("opacity",0).show()// animate to the value specified
|
||
.end().animate({opacity:to},speed,easing,callback);},animate:function animate(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function doAnimation(){// Operate on a copy of prop so per-property easing won't be lost
|
||
var anim=Animation(this,jQuery.extend({},prop),optall);// Empty animations, or finishing resolves immediately
|
||
if(empty||jQuery._data(this,"finish")){anim.stop(true);}};doAnimation.finish=doAnimation;return empty||optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation);},stop:function stop(type,clearQueue,gotoEnd){var stopQueue=function stopQueue(hooks){var stop=hooks.stop;delete hooks.stop;stop(gotoEnd);};if(typeof type!=="string"){gotoEnd=clearQueue;clearQueue=type;type=undefined;}if(clearQueue&&type!==false){this.queue(type||"fx",[]);}return this.each(function(){var dequeue=true,index=type!=null&&type+"queueHooks",timers=jQuery.timers,data=jQuery._data(this);if(index){if(data[index]&&data[index].stop){stopQueue(data[index]);}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index]);}}}for(index=timers.length;index--;){if(timers[index].elem===this&&(type==null||timers[index].queue===type)){timers[index].anim.stop(gotoEnd);dequeue=false;timers.splice(index,1);}}// start the next in the queue if the last step wasn't forced
|
||
// timers currently will call their complete callbacks, which will dequeue
|
||
// but only if they were gotoEnd
|
||
if(dequeue||!gotoEnd){jQuery.dequeue(this,type);}});},finish:function finish(type){if(type!==false){type=type||"fx";}return this.each(function(){var index,data=jQuery._data(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;// enable finishing flag on private data
|
||
data.finish=true;// empty the queue first
|
||
jQuery.queue(this,type,[]);if(hooks&&hooks.stop){hooks.stop.call(this,true);}// look for any active animations, and finish them
|
||
for(index=timers.length;index--;){if(timers[index].elem===this&&timers[index].queue===type){timers[index].anim.stop(true);timers.splice(index,1);}}// look for any animations in the old queue and finish them
|
||
for(index=0;index<length;index++){if(queue[index]&&queue[index].finish){queue[index].finish.call(this);}}// turn off finishing flag
|
||
delete data.finish;});}});jQuery.each(["toggle","show","hide"],function(i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return speed==null||typeof speed==="boolean"?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback);};});// Generate shortcuts for custom animations
|
||
jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback);};});jQuery.timers=[];jQuery.fx.tick=function(){var timer,timers=jQuery.timers,i=0;fxNow=jQuery.now();for(;i<timers.length;i++){timer=timers[i];// Checks the timer has not already been removed
|
||
if(!timer()&&timers[i]===timer){timers.splice(i--,1);}}if(!timers.length){jQuery.fx.stop();}fxNow=undefined;};jQuery.fx.timer=function(timer){jQuery.timers.push(timer);if(timer()){jQuery.fx.start();}else{jQuery.timers.pop();}};jQuery.fx.interval=13;jQuery.fx.start=function(){if(!timerId){timerId=setInterval(jQuery.fx.tick,jQuery.fx.interval);}};jQuery.fx.stop=function(){clearInterval(timerId);timerId=null;};jQuery.fx.speeds={slow:600,fast:200,// Default speed
|
||
_default:400};// Based off of the plugin by Clint Helfers, with permission.
|
||
// http://blindsignals.com/index.php/2009/07/jquery-delay/
|
||
jQuery.fn.delay=function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(next,hooks){var timeout=setTimeout(next,time);hooks.stop=function(){clearTimeout(timeout);};});};(function(){// Minified: var a,b,c,d,e
|
||
var input,div,select,a,opt;// Setup
|
||
div=document.createElement("div");div.setAttribute("className","t");div.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";a=div.getElementsByTagName("a")[0];// First batch of tests.
|
||
select=document.createElement("select");opt=select.appendChild(document.createElement("option"));input=div.getElementsByTagName("input")[0];a.style.cssText="top:1px";// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
|
||
support.getSetAttribute=div.className!=="t";// Get the style information from getAttribute
|
||
// (IE uses .cssText instead)
|
||
support.style=/top/.test(a.getAttribute("style"));// Make sure that URLs aren't manipulated
|
||
// (IE normalizes it by default)
|
||
support.hrefNormalized=a.getAttribute("href")==="/a";// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
|
||
support.checkOn=!!input.value;// Make sure that a selected-by-default option has a working selected property.
|
||
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
|
||
support.optSelected=opt.selected;// Tests for enctype support on a form (#6743)
|
||
support.enctype=!!document.createElement("form").enctype;// Make sure that the options inside disabled selects aren't marked as disabled
|
||
// (WebKit marks them as disabled)
|
||
select.disabled=true;support.optDisabled=!opt.disabled;// Support: IE8 only
|
||
// Check if we can trust getAttribute("value")
|
||
input=document.createElement("input");input.setAttribute("value","");support.input=input.getAttribute("value")==="";// Check if an input maintains its value after becoming a radio
|
||
input.value="t";input.setAttribute("type","radio");support.radioValue=input.value==="t";})();var rreturn=/\r/g;jQuery.fn.extend({val:function val(value){var hooks,ret,isFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret;}ret=elem.value;return typeof ret==="string"?// handle most common string cases
|
||
ret.replace(rreturn,""):// handle cases where value is null/undef or number
|
||
ret==null?"":ret;}return;}isFunction=jQuery.isFunction(value);return this.each(function(i){var val;if(this.nodeType!==1){return;}if(isFunction){val=value.call(this,i,jQuery(this).val());}else{val=value;}// Treat null/undefined as ""; convert numbers to string
|
||
if(val==null){val="";}else if(typeof val==="number"){val+="";}else if(jQuery.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+"";});}hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];// If set returns undefined, fall back to normal setting
|
||
if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){this.value=val;}});}});jQuery.extend({valHooks:{option:{get:function get(elem){var val=jQuery.find.attr(elem,"value");return val!=null?val:// Support: IE10-11+
|
||
// option.text throws exceptions (#14686, #14858)
|
||
jQuery.trim(jQuery.text(elem));}},select:{get:function get(elem){var value,option,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one"||index<0,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;// Loop through all the selected options
|
||
for(;i<max;i++){option=options[i];// oldIE doesn't update selected after form reset (#2551)
|
||
if((option.selected||i===index)&&(// Don't return options that are disabled or in a disabled optgroup
|
||
support.optDisabled?!option.disabled:option.getAttribute("disabled")===null)&&(!option.parentNode.disabled||!jQuery.nodeName(option.parentNode,"optgroup"))){// Get the specific value for the option
|
||
value=jQuery(option).val();// We don't need an array for one selects
|
||
if(one){return value;}// Multi-Selects return an array
|
||
values.push(value);}}return values;},set:function set(elem,value){var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options.length;while(i--){option=options[i];if(jQuery.inArray(jQuery.valHooks.option.get(option),values)>=0){// Support: IE6
|
||
// When new option element is added to select box we need to
|
||
// force reflow of newly added node in order to workaround delay
|
||
// of initialization properties
|
||
try{option.selected=optionSet=true;}catch(_){// Will be executed only in IE6
|
||
option.scrollHeight;}}else{option.selected=false;}}// Force browsers to behave consistently when non-matching value is set
|
||
if(!optionSet){elem.selectedIndex=-1;}return options;}}}});// Radios and checkboxes getter/setter
|
||
jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function set(elem,value){if(jQuery.isArray(value)){return elem.checked=jQuery.inArray(jQuery(elem).val(),value)>=0;}}};if(!support.checkOn){jQuery.valHooks[this].get=function(elem){// Support: Webkit
|
||
// "" is returned instead of "on" if a value isn't specified
|
||
return elem.getAttribute("value")===null?"on":elem.value;};}});var nodeHook,boolHook,attrHandle=jQuery.expr.attrHandle,ruseDefault=/^(?:checked|selected)$/i,getSetAttribute=support.getSetAttribute,getSetInput=support.input;jQuery.fn.extend({attr:function attr(name,value){return access(this,jQuery.attr,name,value,arguments.length>1);},removeAttr:function removeAttr(name){return this.each(function(){jQuery.removeAttr(this,name);});}});jQuery.extend({attr:function attr(elem,name,value){var hooks,ret,nType=elem.nodeType;// don't get/set attributes on text, comment and attribute nodes
|
||
if(!elem||nType===3||nType===8||nType===2){return;}// Fallback to prop when attributes are not supported
|
||
if(_typeof2(elem.getAttribute)===strundefined){return jQuery.prop(elem,name,value);}// All attributes are lowercase
|
||
// Grab necessary hook if one is defined
|
||
if(nType!==1||!jQuery.isXMLDoc(elem)){name=name.toLowerCase();hooks=jQuery.attrHooks[name]||(jQuery.expr.match.bool.test(name)?boolHook:nodeHook);}if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);}else if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}else{elem.setAttribute(name,value+"");return value;}}else if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}else{ret=jQuery.find.attr(elem,name);// Non-existent attributes return null, we normalize to undefined
|
||
return ret==null?undefined:ret;}},removeAttr:function removeAttr(elem,value){var name,propName,i=0,attrNames=value&&value.match(rnotwhite);if(attrNames&&elem.nodeType===1){while(name=attrNames[i++]){propName=jQuery.propFix[name]||name;// Boolean attributes get special treatment (#10870)
|
||
if(jQuery.expr.match.bool.test(name)){// Set corresponding property to false
|
||
if(getSetInput&&getSetAttribute||!ruseDefault.test(name)){elem[propName]=false;// Support: IE<9
|
||
// Also clear defaultChecked/defaultSelected (if appropriate)
|
||
}else{elem[jQuery.camelCase("default-"+name)]=elem[propName]=false;}// See #9699 for explanation of this approach (setting first, then removal)
|
||
}else{jQuery.attr(elem,name,"");}elem.removeAttribute(getSetAttribute?name:propName);}}},attrHooks:{type:{set:function set(elem,value){if(!support.radioValue&&value==="radio"&&jQuery.nodeName(elem,"input")){// Setting the type on a radio button after the value resets the value in IE6-9
|
||
// Reset value to default in case type is set after value during creation
|
||
var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val;}return value;}}}}});// Hook for boolean attributes
|
||
boolHook={set:function set(elem,value,name){if(value===false){// Remove boolean attributes when set to false
|
||
jQuery.removeAttr(elem,name);}else if(getSetInput&&getSetAttribute||!ruseDefault.test(name)){// IE<8 needs the *property* name
|
||
elem.setAttribute(!getSetAttribute&&jQuery.propFix[name]||name,name);// Use defaultChecked and defaultSelected for oldIE
|
||
}else{elem[jQuery.camelCase("default-"+name)]=elem[name]=true;}return name;}};// Retrieve booleans specially
|
||
jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=getSetInput&&getSetAttribute||!ruseDefault.test(name)?function(elem,name,isXML){var ret,handle;if(!isXML){// Avoid an infinite loop by temporarily removing this function from the getter
|
||
handle=attrHandle[name];attrHandle[name]=ret;ret=getter(elem,name,isXML)!=null?name.toLowerCase():null;attrHandle[name]=handle;}return ret;}:function(elem,name,isXML){if(!isXML){return elem[jQuery.camelCase("default-"+name)]?name.toLowerCase():null;}};});// fix oldIE attroperties
|
||
if(!getSetInput||!getSetAttribute){jQuery.attrHooks.value={set:function set(elem,value,name){if(jQuery.nodeName(elem,"input")){// Does not return so that setAttribute is also used
|
||
elem.defaultValue=value;}else{// Use nodeHook if defined (#1954); otherwise setAttribute is fine
|
||
return nodeHook&&nodeHook.set(elem,value,name);}}};}// IE6/7 do not support getting/setting some attributes with get/setAttribute
|
||
if(!getSetAttribute){// Use this for any attribute in IE6/7
|
||
// This fixes almost every IE6/7 issue
|
||
nodeHook={set:function set(elem,value,name){// Set the existing or create a new attribute node
|
||
var ret=elem.getAttributeNode(name);if(!ret){elem.setAttributeNode(ret=elem.ownerDocument.createAttribute(name));}ret.value=value+="";// Break association with cloned elements by also using setAttribute (#9646)
|
||
if(name==="value"||value===elem.getAttribute(name)){return value;}}};// Some attributes are constructed with empty-string values when not defined
|
||
attrHandle.id=attrHandle.name=attrHandle.coords=function(elem,name,isXML){var ret;if(!isXML){return(ret=elem.getAttributeNode(name))&&ret.value!==""?ret.value:null;}};// Fixing value retrieval on a button requires this module
|
||
jQuery.valHooks.button={get:function get(elem,name){var ret=elem.getAttributeNode(name);if(ret&&ret.specified){return ret.value;}},set:nodeHook.set};// Set contenteditable to false on removals(#10429)
|
||
// Setting to empty string throws an error as an invalid value
|
||
jQuery.attrHooks.contenteditable={set:function set(elem,value,name){nodeHook.set(elem,value===""?false:value,name);}};// Set width and height to auto instead of 0 on empty string( Bug #8150 )
|
||
// This is for removals
|
||
jQuery.each(["width","height"],function(i,name){jQuery.attrHooks[name]={set:function set(elem,value){if(value===""){elem.setAttribute(name,"auto");return value;}}};});}if(!support.style){jQuery.attrHooks.style={get:function get(elem){// Return undefined in the case of empty string
|
||
// Note: IE uppercases css property names, but if we were to .toLowerCase()
|
||
// .cssText, that would destroy case senstitivity in URL's, like in "background"
|
||
return elem.style.cssText||undefined;},set:function set(elem,value){return elem.style.cssText=value+"";}};}var rfocusable=/^(?:input|select|textarea|button|object)$/i,rclickable=/^(?:a|area)$/i;jQuery.fn.extend({prop:function prop(name,value){return access(this,jQuery.prop,name,value,arguments.length>1);},removeProp:function removeProp(name){name=jQuery.propFix[name]||name;return this.each(function(){// try/catch handles cases where IE balks (such as removing a property on window)
|
||
try{this[name]=undefined;delete this[name];}catch(e){}});}});jQuery.extend({propFix:{"for":"htmlFor","class":"className"},prop:function prop(elem,name,value){var ret,hooks,notxml,nType=elem.nodeType;// don't get/set properties on text, comment and attribute nodes
|
||
if(!elem||nType===3||nType===8||nType===2){return;}notxml=nType!==1||!jQuery.isXMLDoc(elem);if(notxml){// Fix name and attach hooks
|
||
name=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name];}if(value!==undefined){return hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined?ret:elem[name]=value;}else{return hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null?ret:elem[name];}},propHooks:{tabIndex:{get:function get(elem){// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
|
||
// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
|
||
// Use proper attribute retrieval(#12072)
|
||
var tabindex=jQuery.find.attr(elem,"tabindex");return tabindex?parseInt(tabindex,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:-1;}}}});// Some attributes require a special call on IE
|
||
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
|
||
if(!support.hrefNormalized){// href/src property should get the full normalized URL (#10299/#12915)
|
||
jQuery.each(["href","src"],function(i,name){jQuery.propHooks[name]={get:function get(elem){return elem.getAttribute(name,4);}};});}// Support: Safari, IE9+
|
||
// mis-reports the default selected property of an option
|
||
// Accessing the parent's selectedIndex property fixes it
|
||
if(!support.optSelected){jQuery.propHooks.selected={get:function get(elem){var parent=elem.parentNode;if(parent){parent.selectedIndex;// Make sure that it also works with optgroups, see #5701
|
||
if(parent.parentNode){parent.parentNode.selectedIndex;}}return null;}};}jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this;});// IE6/7 call enctype encoding
|
||
if(!support.enctype){jQuery.propFix.enctype="encoding";}var rclass=/[\t\r\n\f]/g;jQuery.fn.extend({addClass:function addClass(value){var classes,elem,cur,clazz,j,finalValue,i=0,len=this.length,proceed=typeof value==="string"&&value;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className));});}if(proceed){// The disjunction here is for better compressibility (see removeClass)
|
||
classes=(value||"").match(rnotwhite)||[];for(;i<len;i++){elem=this[i];cur=elem.nodeType===1&&(elem.className?(" "+elem.className+" ").replace(rclass," "):" ");if(cur){j=0;while(clazz=classes[j++]){if(cur.indexOf(" "+clazz+" ")<0){cur+=clazz+" ";}}// only assign if different to avoid unneeded rendering.
|
||
finalValue=jQuery.trim(cur);if(elem.className!==finalValue){elem.className=finalValue;}}}}return this;},removeClass:function removeClass(value){var classes,elem,cur,clazz,j,finalValue,i=0,len=this.length,proceed=arguments.length===0||typeof value==="string"&&value;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,this.className));});}if(proceed){classes=(value||"").match(rnotwhite)||[];for(;i<len;i++){elem=this[i];// This expression is here for better compressibility (see addClass)
|
||
cur=elem.nodeType===1&&(elem.className?(" "+elem.className+" ").replace(rclass," "):"");if(cur){j=0;while(clazz=classes[j++]){// Remove *all* instances
|
||
while(cur.indexOf(" "+clazz+" ")>=0){cur=cur.replace(" "+clazz+" "," ");}}// only assign if different to avoid unneeded rendering.
|
||
finalValue=value?jQuery.trim(cur):"";if(elem.className!==finalValue){elem.className=finalValue;}}}}return this;},toggleClass:function toggleClass(value,stateVal){var type=_typeof2(value);if(typeof stateVal==="boolean"&&type==="string"){return stateVal?this.addClass(value):this.removeClass(value);}if(jQuery.isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal);});}return this.each(function(){if(type==="string"){// toggle individual class names
|
||
var className,i=0,self=jQuery(this),classNames=value.match(rnotwhite)||[];while(className=classNames[i++]){// check each className given, space separated list
|
||
if(self.hasClass(className)){self.removeClass(className);}else{self.addClass(className);}}// Toggle whole class name
|
||
}else if(type===strundefined||type==="boolean"){if(this.className){// store className if set
|
||
jQuery._data(this,"__className__",this.className);}// If the element has a class name or if we're passed "false",
|
||
// then remove the whole classname (if there was one, the above saved it).
|
||
// Otherwise bring back whatever was previously saved (if anything),
|
||
// falling back to the empty string if nothing was stored.
|
||
this.className=this.className||value===false?"":jQuery._data(this,"__className__")||"";}});},hasClass:function hasClass(selector){var className=" "+selector+" ",i=0,l=this.length;for(;i<l;i++){if(this[i].nodeType===1&&(" "+this[i].className+" ").replace(rclass," ").indexOf(className)>=0){return true;}}return false;}});// Return jQuery for attributes-only inclusion
|
||
jQuery.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(i,name){// Handle event binding
|
||
jQuery.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name);};});jQuery.fn.extend({hover:function hover(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver);},bind:function bind(types,data,fn){return this.on(types,null,data,fn);},unbind:function unbind(types,fn){return this.off(types,null,fn);},delegate:function delegate(selector,types,data,fn){return this.on(types,selector,data,fn);},undelegate:function undelegate(selector,types,fn){// ( namespace ) or ( selector, types [, fn] )
|
||
return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn);}});var nonce=jQuery.now();var rquery=/\?/;var rvalidtokens=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;jQuery.parseJSON=function(data){// Attempt to parse using the native JSON parser first
|
||
if(window.JSON&&window.JSON.parse){// Support: Android 2.3
|
||
// Workaround failure to string-cast null input
|
||
return window.JSON.parse(data+"");}var requireNonComma,depth=null,str=jQuery.trim(data+"");// Guard against invalid (and possibly dangerous) input by ensuring that nothing remains
|
||
// after removing valid tokens
|
||
return str&&!jQuery.trim(str.replace(rvalidtokens,function(token,comma,open,close){// Force termination if we see a misplaced comma
|
||
if(requireNonComma&&comma){depth=0;}// Perform no more replacements after returning to outermost depth
|
||
if(depth===0){return token;}// Commas must not follow "[", "{", or ","
|
||
requireNonComma=open||comma;// Determine new depth
|
||
// array/object open ("[" or "{"): depth += true - false (increment)
|
||
// array/object close ("]" or "}"): depth += false - true (decrement)
|
||
// other cases ("," or primitive): depth += true - true (numeric cast)
|
||
depth+=!close-!open;// Remove this token
|
||
return"";}))?Function("return "+str)():jQuery.error("Invalid JSON: "+data);};// Cross-browser xml parsing
|
||
jQuery.parseXML=function(data){var xml,tmp;if(!data||typeof data!=="string"){return null;}try{if(window.DOMParser){// Standard
|
||
tmp=new DOMParser();xml=tmp.parseFromString(data,"text/xml");}else{// IE
|
||
xml=new ActiveXObject("Microsoft.XMLDOM");xml.async="false";xml.loadXML(data);}}catch(e){xml=undefined;}if(!xml||!xml.documentElement||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data);}return xml;};var// Document location
|
||
ajaxLocParts,ajaxLocation,rhash=/#.*$/,rts=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,// IE leaves an \r character at EOL
|
||
// #7653, #8125, #8152: local protocol detection
|
||
rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rurl=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,/* Prefilters
|
||
* 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
|
||
* 2) These are called:
|
||
* - BEFORE asking for a transport
|
||
* - AFTER param serialization (s.data is a string if s.processData is true)
|
||
* 3) key is the dataType
|
||
* 4) the catchall symbol "*" can be used
|
||
* 5) execution will start with transport dataType and THEN continue down to "*" if needed
|
||
*/prefilters={},/* Transports bindings
|
||
* 1) key is the dataType
|
||
* 2) the catchall symbol "*" can be used
|
||
* 3) selection will start with transport dataType and THEN go to "*" if needed
|
||
*/transports={},// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
|
||
allTypes="*/".concat("*");// #8138, IE may throw an exception when accessing
|
||
// a field from window.location if document.domain has been set
|
||
try{ajaxLocation=location.href;}catch(e){// Use the href attribute of an A element
|
||
// since IE will modify it given document.location
|
||
ajaxLocation=document.createElement("a");ajaxLocation.href="";ajaxLocation=ajaxLocation.href;}// Segment location into parts
|
||
ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
|
||
function addToPrefiltersOrTransports(structure){// dataTypeExpression is optional and defaults to "*"
|
||
return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*";}var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnotwhite)||[];if(jQuery.isFunction(func)){// For each dataType in the dataTypeExpression
|
||
while(dataType=dataTypes[i++]){// Prepend if requested
|
||
if(dataType.charAt(0)==="+"){dataType=dataType.slice(1)||"*";(structure[dataType]=structure[dataType]||[]).unshift(func);// Otherwise append
|
||
}else{(structure[dataType]=structure[dataType]||[]).push(func);}}}};}// Base inspection function for prefilters and transports
|
||
function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;inspected[dataType]=true;jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport==="string"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false;}else if(seekingTransport){return!(selected=dataTypeOrTransport);}});return selected;}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*");}// A special extend for ajax options
|
||
// that takes "flat" options (not to be deep extended)
|
||
// Fixes #9887
|
||
function ajaxExtend(target,src){var deep,key,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:deep||(deep={}))[key]=src[key];}}if(deep){jQuery.extend(true,target,deep);}return target;}/* Handles responses to an ajax request:
|
||
* - finds the right dataType (mediates between content-type and expected dataType)
|
||
* - returns the corresponding response
|
||
*/function ajaxHandleResponses(s,jqXHR,responses){var firstDataType,ct,finalDataType,type,contents=s.contents,dataTypes=s.dataTypes;// Remove auto dataType and get content-type in the process
|
||
while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("Content-Type");}}// Check if we're dealing with a known content-type
|
||
if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break;}}}// Check to see if we have a response for the expected dataType
|
||
if(dataTypes[0]in responses){finalDataType=dataTypes[0];}else{// Try convertible dataTypes
|
||
for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break;}if(!firstDataType){firstDataType=type;}}// Or just use first one
|
||
finalDataType=finalDataType||firstDataType;}// If we found a dataType
|
||
// We add the dataType to the list if needed
|
||
// and return the corresponding response
|
||
if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);}return responses[finalDataType];}}/* Chain conversions given the request and the original response
|
||
* Also sets the responseXXX fields on the jqXHR instance
|
||
*/function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},// Work with a copy of dataTypes in case we need to modify it for conversion
|
||
dataTypes=s.dataTypes.slice();// Create converters map with lowercased keys
|
||
if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv];}}current=dataTypes.shift();// Convert to each sequential dataType
|
||
while(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response;}// Apply the dataFilter if provided
|
||
if(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType);}prev=current;current=dataTypes.shift();if(current){// There's only work to do if current dataType is non-auto
|
||
if(current==="*"){current=prev;// Convert response if prev dataType is non-auto and differs from current
|
||
}else if(prev!=="*"&&prev!==current){// Seek a direct converter
|
||
conv=converters[prev+" "+current]||converters["* "+current];// If none found, seek a pair
|
||
if(!conv){for(conv2 in converters){// If conv2 outputs current
|
||
tmp=conv2.split(" ");if(tmp[1]===current){// If prev can be converted to accepted input
|
||
conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){// Condense equivalence converters
|
||
if(conv===true){conv=converters[conv2];// Otherwise, insert the intermediate dataType
|
||
}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1]);}break;}}}}// Apply converter (if not an equivalence)
|
||
if(conv!==true){// Unless errors are allowed to bubble, catch and return them
|
||
if(conv&&s["throws"]){response=conv(response);}else{try{response=conv(response);}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};}}}}}}return{state:"success",data:response};}jQuery.extend({// Counter for holding the number of active queries
|
||
active:0,// Last-Modified header cache for next request
|
||
lastModified:{},etag:{},ajaxSettings:{url:ajaxLocation,type:"GET",isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",/*
|
||
timeout: 0,
|
||
data: null,
|
||
dataType: null,
|
||
username: null,
|
||
password: null,
|
||
cache: null,
|
||
throws: false,
|
||
traditional: false,
|
||
headers: {},
|
||
*/accepts:{"*":allTypes,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"},// Data converters
|
||
// Keys separate source (or catchall "*") and destination types with a single space
|
||
converters:{// Convert anything to text
|
||
"* text":String,// Text to html (true = no transformation)
|
||
"text html":true,// Evaluate text as a json expression
|
||
"text json":jQuery.parseJSON,// Parse text as xml
|
||
"text xml":jQuery.parseXML},// For options that shouldn't be deep extended:
|
||
// you can add your own custom options here if
|
||
// and when you create one that shouldn't be
|
||
// deep extended (see ajaxExtend)
|
||
flatOptions:{url:true,context:true}},// Creates a full fledged settings object into target
|
||
// with both ajaxSettings and settings fields.
|
||
// If target is omitted, writes into ajaxSettings.
|
||
ajaxSetup:function ajaxSetup(target,settings){return settings?// Building a settings object
|
||
ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):// Extending ajaxSettings
|
||
ajaxExtend(jQuery.ajaxSettings,target);},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),// Main method
|
||
ajax:function ajax(url,options){// If url is an object, simulate pre-1.5 signature
|
||
if(_typeof2(url)==="object"){options=url;url=undefined;}// Force options to be an object
|
||
options=options||{};var// Cross-domain detection vars
|
||
parts,// Loop variable
|
||
i,// URL without anti-cache param
|
||
cacheURL,// Response headers as string
|
||
responseHeadersString,// timeout handle
|
||
timeoutTimer,// To know if global events are to be dispatched
|
||
fireGlobals,transport,// Response headers
|
||
responseHeaders,// Create the final options object
|
||
s=jQuery.ajaxSetup({},options),// Callbacks context
|
||
callbackContext=s.context||s,// Context for global events is callbackContext if it is a DOM node or jQuery collection
|
||
globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,// Deferreds
|
||
deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),// Status-dependent callbacks
|
||
_statusCode=s.statusCode||{},// Headers (they are sent all at once)
|
||
requestHeaders={},requestHeadersNames={},// The jqXHR state
|
||
state=0,// Default abort message
|
||
strAbort="canceled",// Fake xhr
|
||
jqXHR={readyState:0,// Builds headers hashtable if needed
|
||
getResponseHeader:function getResponseHeader(key){var match;if(state===2){if(!responseHeaders){responseHeaders={};while(match=rheaders.exec(responseHeadersString)){responseHeaders[match[1].toLowerCase()]=match[2];}}match=responseHeaders[key.toLowerCase()];}return match==null?null:match;},// Raw string
|
||
getAllResponseHeaders:function getAllResponseHeaders(){return state===2?responseHeadersString:null;},// Caches the header
|
||
setRequestHeader:function setRequestHeader(name,value){var lname=name.toLowerCase();if(!state){name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value;}return this;},// Overrides response content-type header
|
||
overrideMimeType:function overrideMimeType(type){if(!state){s.mimeType=type;}return this;},// Status-dependent callbacks
|
||
statusCode:function statusCode(map){var code;if(map){if(state<2){for(code in map){// Lazy-add the new callback in a way that preserves old ones
|
||
_statusCode[code]=[_statusCode[code],map[code]];}}else{// Execute the appropriate callbacks
|
||
jqXHR.always(map[jqXHR.status]);}}return this;},// Cancel the request
|
||
abort:function abort(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText);}done(0,finalText);return this;}};// Attach deferreds
|
||
deferred.promise(jqXHR).complete=completeDeferred.add;jqXHR.success=jqXHR.done;jqXHR.error=jqXHR.fail;// Remove hash character (#7531: and string promotion)
|
||
// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
|
||
// Handle falsy url in the settings object (#10093: consistency with old signature)
|
||
// We also use the url parameter if available
|
||
s.url=((url||s.url||ajaxLocation)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");// Alias method option to type as per ticket #12004
|
||
s.type=options.method||options.type||s.method||s.type;// Extract dataTypes list
|
||
s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().match(rnotwhite)||[""];// A cross-domain request is in order when we have a protocol:host:port mismatch
|
||
if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());s.crossDomain=!!(parts&&(parts[1]!==ajaxLocParts[1]||parts[2]!==ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?"80":"443"))!==(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?"80":"443"))));}// Convert data if not already a string
|
||
if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional);}// Apply prefilters
|
||
inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);// If request was aborted inside a prefilter, stop there
|
||
if(state===2){return jqXHR;}// We can fire global events as of now if asked to
|
||
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
|
||
fireGlobals=jQuery.event&&s.global;// Watch for a new set of requests
|
||
if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart");}// Uppercase the type
|
||
s.type=s.type.toUpperCase();// Determine if request has content
|
||
s.hasContent=!rnoContent.test(s.type);// Save the URL in case we're toying with the If-Modified-Since
|
||
// and/or If-None-Match header later on
|
||
cacheURL=s.url;// More options handling for requests with no content
|
||
if(!s.hasContent){// If data is available, append data to url
|
||
if(s.data){cacheURL=s.url+=(rquery.test(cacheURL)?"&":"?")+s.data;// #9682: remove data so that it's not used in an eventual retry
|
||
delete s.data;}// Add anti-cache in url if needed
|
||
if(s.cache===false){s.url=rts.test(cacheURL)?// If there is already a '_' parameter, set its value
|
||
cacheURL.replace(rts,"$1_="+nonce++):// Otherwise add one to the end
|
||
cacheURL+(rquery.test(cacheURL)?"&":"?")+"_="+nonce++;}}// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
|
||
if(s.ifModified){if(jQuery.lastModified[cacheURL]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]);}if(jQuery.etag[cacheURL]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]);}}// Set the correct header, if data is being sent
|
||
if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType);}// Set the Accepts header for the server, depending on the dataType
|
||
jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);// Check for headers option
|
||
for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);}// Allow custom headers/mimetypes and early abort
|
||
if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){// Abort if not done already and return
|
||
return jqXHR.abort();}// aborting is no longer a cancellation
|
||
strAbort="abort";// Install callbacks on deferreds
|
||
for(i in{success:1,error:1,complete:1}){jqXHR[i](s[i]);}// Get transport
|
||
transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);// If no transport, we auto-abort
|
||
if(!transport){done(-1,"No Transport");}else{jqXHR.readyState=1;// Send global event
|
||
if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s]);}// Timeout
|
||
if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout");},s.timeout);}try{state=1;transport.send(requestHeaders,done);}catch(e){// Propagate exception as error if not done
|
||
if(state<2){done(-1,e);// Simply rethrow otherwise
|
||
}else{throw e;}}}// Callback for when everything is done
|
||
function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;// Called once
|
||
if(state===2){return;}// State is "done" now
|
||
state=2;// Clear timeout if it exists
|
||
if(timeoutTimer){clearTimeout(timeoutTimer);}// Dereference transport for early garbage collection
|
||
// (no matter how long the jqXHR object will be used)
|
||
transport=undefined;// Cache response headers
|
||
responseHeadersString=headers||"";// Set readyState
|
||
jqXHR.readyState=status>0?4:0;// Determine if successful
|
||
isSuccess=status>=200&&status<300||status===304;// Get response data
|
||
if(responses){response=ajaxHandleResponses(s,jqXHR,responses);}// Convert no matter what (that way responseXXX fields are always set)
|
||
response=ajaxConvert(s,response,jqXHR,isSuccess);// If successful, handle type chaining
|
||
if(isSuccess){// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
|
||
if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[cacheURL]=modified;}modified=jqXHR.getResponseHeader("etag");if(modified){jQuery.etag[cacheURL]=modified;}}// if no content
|
||
if(status===204||s.type==="HEAD"){statusText="nocontent";// if not modified
|
||
}else if(status===304){statusText="notmodified";// If we have data, let's convert it
|
||
}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error;}}else{// We extract error from statusText
|
||
// then normalize statusText and status for non-aborts
|
||
error=statusText;if(status||!statusText){statusText="error";if(status<0){status=0;}}}// Set data for the fake xhr object
|
||
jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";// Success/Error
|
||
if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);}// Status-dependent callbacks
|
||
jqXHR.statusCode(_statusCode);_statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]);}// Complete
|
||
completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);// Handle the global AJAX counter
|
||
if(! --jQuery.active){jQuery.event.trigger("ajaxStop");}}}return jqXHR;},getJSON:function getJSON(url,data,callback){return jQuery.get(url,data,callback,"json");},getScript:function getScript(url,callback){return jQuery.get(url,undefined,callback,"script");}});jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){// shift arguments if data argument was omitted
|
||
if(jQuery.isFunction(data)){type=type||callback;callback=data;data=undefined;}return jQuery.ajax({url:url,type:method,dataType:type,data:data,success:callback});};});jQuery._evalUrl=function(url){return jQuery.ajax({url:url,type:"GET",dataType:"script",async:false,global:false,"throws":true});};jQuery.fn.extend({wrapAll:function wrapAll(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i));});}if(this[0]){// The elements to wrap the target around
|
||
var wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);}wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild;}return elem;}).append(this);}return this;},wrapInner:function wrapInner(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i));});}return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function wrap(html){var isFunction=jQuery.isFunction(html);return this.each(function(i){jQuery(this).wrapAll(isFunction?html.call(this,i):html);});},unwrap:function unwrap(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes);}}).end();}});jQuery.expr.filters.hidden=function(elem){// Support: Opera <= 12.12
|
||
// Opera reports offsetWidths and offsetHeights less than zero on some elements
|
||
return elem.offsetWidth<=0&&elem.offsetHeight<=0||!support.reliableHiddenOffsets()&&(elem.style&&elem.style.display||jQuery.css(elem,"display"))==="none";};jQuery.expr.filters.visible=function(elem){return!jQuery.expr.filters.hidden(elem);};var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(jQuery.isArray(obj)){// Serialize array item.
|
||
jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){// Treat each array item as a scalar.
|
||
add(prefix,v);}else{// Item is non-scalar (array or object), encode its numeric index.
|
||
buildParams(prefix+"["+(_typeof2(v)==="object"?i:"")+"]",v,traditional,add);}});}else if(!traditional&&jQuery.type(obj)==="object"){// Serialize object item.
|
||
for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add);}}else{// Serialize scalar item.
|
||
add(prefix,obj);}}// Serialize an array of form elements or a set of
|
||
// key/values into a query string
|
||
jQuery.param=function(a,traditional){var prefix,s=[],add=function add(key,value){// If value is a function, invoke it and return its value
|
||
value=jQuery.isFunction(value)?value():value==null?"":value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);};// Set traditional to true for jQuery <= 1.3.2 behavior.
|
||
if(traditional===undefined){traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional;}// If an array was passed in, assume that it is an array of form elements.
|
||
if(jQuery.isArray(a)||a.jquery&&!jQuery.isPlainObject(a)){// Serialize the form elements
|
||
jQuery.each(a,function(){add(this.name,this.value);});}else{// If traditional, encode the "old" way (the way 1.3.2 or older
|
||
// did it), otherwise encode params recursively.
|
||
for(prefix in a){buildParams(prefix,a[prefix],traditional,add);}}// Return the resulting serialization
|
||
return s.join("&").replace(r20,"+");};jQuery.fn.extend({serialize:function serialize(){return jQuery.param(this.serializeArray());},serializeArray:function serializeArray(){return this.map(function(){// Can add propHook for "elements" to filter or add form elements
|
||
var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this;}).filter(function(){var type=this.type;// Use .is(":disabled") so that fieldset[disabled] works
|
||
return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")};}):{name:elem.name,value:val.replace(rCRLF,"\r\n")};}).get();}});// Create the request object
|
||
// (This is still attached to ajaxSettings for backward compatibility)
|
||
jQuery.ajaxSettings.xhr=window.ActiveXObject!==undefined?// Support: IE6+
|
||
function(){// XHR cannot access local files, always use ActiveX for that case
|
||
return!this.isLocal&&// Support: IE7-8
|
||
// oldIE XHR does not support non-RFC2616 methods (#13240)
|
||
// See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
|
||
// and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
|
||
// Although this check for six methods instead of eight
|
||
// since IE also does not support "trace" and "connect"
|
||
/^(get|post|head|put|delete|options)$/i.test(this.type)&&createStandardXHR()||createActiveXHR();}:// For all other browsers, use the standard XMLHttpRequest object
|
||
createStandardXHR;var xhrId=0,xhrCallbacks={},xhrSupported=jQuery.ajaxSettings.xhr();// Support: IE<10
|
||
// Open requests must be manually aborted on unload (#5280)
|
||
// See https://support.microsoft.com/kb/2856746 for more info
|
||
if(window.attachEvent){window.attachEvent("onunload",function(){for(var key in xhrCallbacks){xhrCallbacks[key](undefined,true);}});}// Determine support properties
|
||
support.cors=!!xhrSupported&&"withCredentials"in xhrSupported;xhrSupported=support.ajax=!!xhrSupported;// Create transport if the browser can provide an xhr
|
||
if(xhrSupported){jQuery.ajaxTransport(function(options){// Cross domain only allowed if supported through XMLHttpRequest
|
||
if(!options.crossDomain||support.cors){var _callback;return{send:function send(headers,complete){var i,xhr=options.xhr(),id=++xhrId;// Open the socket
|
||
xhr.open(options.type,options.url,options.async,options.username,options.password);// Apply custom fields if provided
|
||
if(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i];}}// Override mime type if needed
|
||
if(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType);}// X-Requested-With header
|
||
// For cross-domain requests, seeing as conditions for a preflight are
|
||
// akin to a jigsaw puzzle, we simply never set it to be sure.
|
||
// (it can always be set on a per-request basis or even using ajaxSetup)
|
||
// For same-domain requests, won't change header if already provided.
|
||
if(!options.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest";}// Set headers
|
||
for(i in headers){// Support: IE<9
|
||
// IE's ActiveXObject throws a 'Type Mismatch' exception when setting
|
||
// request header to a null-value.
|
||
//
|
||
// To keep consistent with other XHR implementations, cast the value
|
||
// to string and ignore `undefined`.
|
||
if(headers[i]!==undefined){xhr.setRequestHeader(i,headers[i]+"");}}// Do send the request
|
||
// This may raise an exception which is actually
|
||
// handled in jQuery.ajax (so no try/catch here)
|
||
xhr.send(options.hasContent&&options.data||null);// Listener
|
||
_callback=function callback(_,isAbort){var status,statusText,responses;// Was never called and is aborted or complete
|
||
if(_callback&&(isAbort||xhr.readyState===4)){// Clean up
|
||
delete xhrCallbacks[id];_callback=undefined;xhr.onreadystatechange=jQuery.noop;// Abort manually if needed
|
||
if(isAbort){if(xhr.readyState!==4){xhr.abort();}}else{responses={};status=xhr.status;// Support: IE<10
|
||
// Accessing binary-data responseText throws an exception
|
||
// (#11426)
|
||
if(typeof xhr.responseText==="string"){responses.text=xhr.responseText;}// Firefox throws an exception when accessing
|
||
// statusText for faulty cross-domain requests
|
||
try{statusText=xhr.statusText;}catch(e){// We normalize with Webkit giving an empty statusText
|
||
statusText="";}// Filter status for non standard behaviors
|
||
// If the request is local and we have data: assume a success
|
||
// (success with no data won't get notified, that's the best we
|
||
// can do given current implementations)
|
||
if(!status&&options.isLocal&&!options.crossDomain){status=responses.text?200:404;// IE - #1450: sometimes returns 1223 when it should be 204
|
||
}else if(status===1223){status=204;}}}// Call complete if needed
|
||
if(responses){complete(status,statusText,responses,xhr.getAllResponseHeaders());}};if(!options.async){// if we're in sync mode we fire the callback
|
||
_callback();}else if(xhr.readyState===4){// (IE6 & IE7) if it's in cache and has been
|
||
// retrieved directly we need to fire the callback
|
||
setTimeout(_callback);}else{// Add to the list of active xhr callbacks
|
||
xhr.onreadystatechange=xhrCallbacks[id]=_callback;}},abort:function abort(){if(_callback){_callback(undefined,true);}}};}});}// Functions to create xhrs
|
||
function createStandardXHR(){try{return new window.XMLHttpRequest();}catch(e){}}function createActiveXHR(){try{return new window.ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}// Install script dataType
|
||
jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function textScript(text){jQuery.globalEval(text);return text;}}});// Handle cache's special case and global
|
||
jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false;}if(s.crossDomain){s.type="GET";s.global=false;}});// Bind script tag hack transport
|
||
jQuery.ajaxTransport("script",function(s){// This transport only deals with cross domain requests
|
||
if(s.crossDomain){var script,head=document.head||jQuery("head")[0]||document.documentElement;return{send:function send(_,callback){script=document.createElement("script");script.async=true;if(s.scriptCharset){script.charset=s.scriptCharset;}script.src=s.url;// Attach handlers for all browsers
|
||
script.onload=script.onreadystatechange=function(_,isAbort){if(isAbort||!script.readyState||/loaded|complete/.test(script.readyState)){// Handle memory leak in IE
|
||
script.onload=script.onreadystatechange=null;// Remove the script
|
||
if(script.parentNode){script.parentNode.removeChild(script);}// Dereference the script
|
||
script=null;// Callback if not abort
|
||
if(!isAbort){callback(200,"success");}}};// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
|
||
// Use native DOM manipulation to avoid our domManip AJAX trickery
|
||
head.insertBefore(script,head.firstChild);},abort:function abort(){if(script){script.onload(undefined,true);}}};}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;// Default jsonp settings
|
||
jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+nonce++;this[callback]=true;return callback;}});// Detect, normalize options and install callbacks for jsonp requests
|
||
jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");// Handle iff the expected data type is "jsonp" or we have a parameter to set
|
||
if(jsonProp||s.dataTypes[0]==="jsonp"){// Get callback name, remembering preexisting value associated with it
|
||
callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;// Insert callback into url or form data
|
||
if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName);}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName;}// Use data converter to retrieve json after script execution
|
||
s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called");}return responseContainer[0];};// force json dataType
|
||
s.dataTypes[0]="json";// Install callback
|
||
overwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments;};// Clean-up function (fires after converters)
|
||
jqXHR.always(function(){// Restore preexisting value
|
||
window[callbackName]=overwritten;// Save back as free
|
||
if(s[callbackName]){// make sure that re-using the options doesn't screw things around
|
||
s.jsonpCallback=originalSettings.jsonpCallback;// save the callback name for future use
|
||
oldCallbacks.push(callbackName);}// Call if it was a function and we have a response
|
||
if(responseContainer&&jQuery.isFunction(overwritten)){overwritten(responseContainer[0]);}responseContainer=overwritten=undefined;});// Delegate to script
|
||
return"script";}});// data: string of html
|
||
// context (optional): If specified, the fragment will be created in this context, defaults to document
|
||
// keepScripts (optional): If true, will include scripts passed in the html string
|
||
jQuery.parseHTML=function(data,context,keepScripts){if(!data||typeof data!=="string"){return null;}if(typeof context==="boolean"){keepScripts=context;context=false;}context=context||document;var parsed=rsingleTag.exec(data),scripts=!keepScripts&&[];// Single tag
|
||
if(parsed){return[context.createElement(parsed[1])];}parsed=jQuery.buildFragment([data],context,scripts);if(scripts&&scripts.length){jQuery(scripts).remove();}return jQuery.merge([],parsed.childNodes);};// Keep a copy of the old load method
|
||
var _load=jQuery.fn.load;/**
|
||
* Load a url into a page
|
||
*/jQuery.fn.load=function(url,params,callback){if(typeof url!=="string"&&_load){return _load.apply(this,arguments);}var selector,response,type,self=this,off=url.indexOf(" ");if(off>=0){selector=jQuery.trim(url.slice(off,url.length));url=url.slice(0,off);}// If it's a function
|
||
if(jQuery.isFunction(params)){// We assume that it's the callback
|
||
callback=params;params=undefined;// Otherwise, build a param string
|
||
}else if(params&&_typeof2(params)==="object"){type="POST";}// If we have elements to modify, make the request
|
||
if(self.length>0){jQuery.ajax({url:url,// if "type" variable is undefined, then "GET" method will be used
|
||
type:type,dataType:"html",data:params}).done(function(responseText){// Save response for use in complete callback
|
||
response=arguments;self.html(selector?// If a selector was specified, locate the right elements in a dummy div
|
||
// Exclude scripts to avoid IE 'Permission Denied' errors
|
||
jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):// Otherwise use the full result
|
||
responseText);}).complete(callback&&function(jqXHR,status){self.each(callback,response||[jqXHR.responseText,status,jqXHR]);});}return this;};// Attach a bunch of functions for handling common AJAX events
|
||
jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,type){jQuery.fn[type]=function(fn){return this.on(type,fn);};});jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};var docElem=window.document.documentElement;/**
|
||
* Gets a window from an element
|
||
*/function getWindow(elem){return jQuery.isWindow(elem)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false;}jQuery.offset={setOffset:function setOffset(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=jQuery.css(elem,"position"),curElem=jQuery(elem),props={};// set position first, in-case top/left are set even on static elem
|
||
if(position==="static"){elem.style.position="relative";}curOffset=curElem.offset();curCSSTop=jQuery.css(elem,"top");curCSSLeft=jQuery.css(elem,"left");calculatePosition=(position==="absolute"||position==="fixed")&&jQuery.inArray("auto",[curCSSTop,curCSSLeft])>-1;// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
|
||
if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left;}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0;}if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset);}if(options.top!=null){props.top=options.top-curOffset.top+curTop;}if(options.left!=null){props.left=options.left-curOffset.left+curLeft;}if("using"in options){options.using.call(elem,props);}else{curElem.css(props);}}};jQuery.fn.extend({offset:function offset(options){if(arguments.length){return options===undefined?this:this.each(function(i){jQuery.offset.setOffset(this,options,i);});}var docElem,win,box={top:0,left:0},elem=this[0],doc=elem&&elem.ownerDocument;if(!doc){return;}docElem=doc.documentElement;// Make sure it's not a disconnected DOM node
|
||
if(!jQuery.contains(docElem,elem)){return box;}// If we don't have gBCR, just use 0,0 rather than error
|
||
// BlackBerry 5, iOS 3 (original iPhone)
|
||
if(_typeof2(elem.getBoundingClientRect)!==strundefined){box=elem.getBoundingClientRect();}win=getWindow(doc);return{top:box.top+(win.pageYOffset||docElem.scrollTop)-(docElem.clientTop||0),left:box.left+(win.pageXOffset||docElem.scrollLeft)-(docElem.clientLeft||0)};},position:function position(){if(!this[0]){return;}var offsetParent,offset,parentOffset={top:0,left:0},elem=this[0];// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
|
||
if(jQuery.css(elem,"position")==="fixed"){// we assume that getBoundingClientRect is available when computed position is fixed
|
||
offset=elem.getBoundingClientRect();}else{// Get *real* offsetParent
|
||
offsetParent=this.offsetParent();// Get correct offsets
|
||
offset=this.offset();if(!jQuery.nodeName(offsetParent[0],"html")){parentOffset=offsetParent.offset();}// Add offsetParent borders
|
||
parentOffset.top+=jQuery.css(offsetParent[0],"borderTopWidth",true);parentOffset.left+=jQuery.css(offsetParent[0],"borderLeftWidth",true);}// Subtract parent offsets and element margins
|
||
// note: when an element has margin: auto the offsetLeft and marginLeft
|
||
// are the same in Safari causing offset.left to incorrectly be 0
|
||
return{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true)};},offsetParent:function offsetParent(){return this.map(function(){var offsetParent=this.offsetParent||docElem;while(offsetParent&&!jQuery.nodeName(offsetParent,"html")&&jQuery.css(offsetParent,"position")==="static"){offsetParent=offsetParent.offsetParent;}return offsetParent||docElem;});}});// Create scrollLeft and scrollTop methods
|
||
jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top=/Y/.test(prop);jQuery.fn[method]=function(val){return access(this,function(elem,method,val){var win=getWindow(elem);if(val===undefined){return win?prop in win?win[prop]:win.document.documentElement[method]:elem[method];}if(win){win.scrollTo(!top?val:jQuery(win).scrollLeft(),top?val:jQuery(win).scrollTop());}else{elem[method]=val;}},method,val,arguments.length,null);};});// Add the top/left cssHooks using jQuery.fn.position
|
||
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
|
||
// getComputedStyle returns percent when specified for top/left/bottom/right
|
||
// rather than make the css module depend on the offset module, we just check for it here
|
||
jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed){computed=curCSS(elem,prop);// if curCSS returns percentage, fallback to offset
|
||
return rnumnonpx.test(computed)?jQuery(elem).position()[prop]+"px":computed;}});});// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
|
||
jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){// margin is only for outerHeight, outerWidth
|
||
jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return access(this,function(elem,type,value){var doc;if(jQuery.isWindow(elem)){// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
|
||
// isn't a whole lot we can do. See pull request at this URL for discussion:
|
||
// https://github.com/jquery/jquery/pull/764
|
||
return elem.document.documentElement["client"+name];}// Get document width or height
|
||
if(elem.nodeType===9){doc=elem.documentElement;// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
|
||
// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
|
||
return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name]);}return value===undefined?// Get width or height on the element, requesting but not forcing parseFloat
|
||
jQuery.css(elem,type,extra):// Set width or height on the element
|
||
jQuery.style(elem,type,value,extra);},type,chainable?margin:undefined,chainable,null);};});});// The number of elements contained in the matched element set
|
||
jQuery.fn.size=function(){return this.length;};jQuery.fn.andSelf=jQuery.fn.addBack;// Register as a named AMD module, since jQuery can be concatenated with other
|
||
// files that may use define, but not via a proper concatenation script that
|
||
// understands anonymous AMD modules. A named AMD is safest and most robust
|
||
// way to register. Lowercase jquery is used because AMD module names are
|
||
// derived from file names, and jQuery is normally delivered in a lowercase
|
||
// file name. Do this after creating the global so that if an AMD module wants
|
||
// to call noConflict to hide this version of jQuery, it will work.
|
||
// Note that for maximum portability, libraries that are not jQuery should
|
||
// declare themselves as anonymous modules, and avoid setting a global if an
|
||
// AMD loader is present. jQuery is a special case. For more information, see
|
||
// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
|
||
if(typeof define==="function"&&define.amd){define("jquery",[],function(){return jQuery;});}var// Map over jQuery in case of overwrite
|
||
_jQuery=window.jQuery,// Map over the $ in case of overwrite
|
||
_$=window.$;jQuery.noConflict=function(deep){if(window.$===jQuery){window.$=_$;}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery;}return jQuery;};// Expose jQuery and $ identifiers, even in
|
||
// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
|
||
// and CommonJS for browser emulators (#13566)
|
||
if(_typeof2(noGlobal)===strundefined){window.jQuery=window.$=jQuery;}return jQuery;});/*! jQuery UI - v1.10.3 - 2013-05-07
|
||
* http://jqueryui.com
|
||
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js
|
||
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */(function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t);}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility");}).length;}var a=0,n=/^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(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t);},i);}):t.apply(this,arguments);};}(e.fn.focus),scrollParent:function scrollParent(){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 zIndex(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var s,a,n=e(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(a=parseInt(n.css("zIndex"),10),!isNaN(a)&&0!==a))return a;n=n.parent();}return 0;},uniqueId:function uniqueId(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a);});},removeUniqueId:function removeUniqueId(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id");});}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t);};}):function(t,i,s){return!!e.data(t,s[3]);},focusable:function focusable(t){return i(t,!isNaN(e.attr(t,"tabindex")));},tabbable:function tabbable(t){var s=e.attr(t,"tabindex"),a=isNaN(s);return(a||s>=0)&&i(t,!a);}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0);}),i;}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px");});},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"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(i){return arguments.length?t.call(this,e.camelCase(i)):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 disableSelection(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault();});},enableSelection:function enableSelection(){return this.unbind(".ui-disableSelection");}}),e.extend(e.ui,{plugin:{add:function add(t,i,s){var a,n=e.ui[t].prototype;for(a in s){n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]]);}},call:function call(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;a.length>s;s++){e.options[a[s][0]]&&a[s][1].apply(e.element,i);}}},hasScroll:function hasScroll(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a);}});})(jQuery);(function(e,t){var i=0,s=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++){try{e(i).triggerHandler("remove");}catch(a){}}n(t);},e.widget=function(i,s,n){var a,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],a=u+"-"+i,n||(n=s,s=e.Widget),e.expr[":"][a.toLowerCase()]=function(t){return!!e.data(t,a);},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i);},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),h=new s(),h.options=e.widget.extend({},h.options),e.each(n,function(i,n){return e.isFunction(n)?(l[i]=function(){var e=function e(){return s.prototype[i].apply(this,arguments);},t=function t(e){return s.prototype[i].apply(this,e);};return function(){var i,s=this._super,a=this._superApply;return this._super=e,this._superApply=t,i=n.apply(this,arguments),this._super=s,this._superApply=a,i;};}(),t):(l[i]=n,t);}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:a}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto);}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o);},e.widget.extend=function(i){for(var n,a,r=s.call(arguments,1),o=0,h=r.length;h>o;o++){for(n in r[o]){a=r[o][n],r[o].hasOwnProperty(n)&&a!==t&&(i[n]=e.isPlainObject(a)?e.isPlainObject(i[n])?e.widget.extend({},i[n],a):e.widget.extend({},a):a);}}return i;},e.widget.bridge=function(i,n){var a=n.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,n=e.data(this,a);return n?e.isFunction(n[r])&&"_"!==r.charAt(0)?(s=n[r].apply(n,h),s!==n&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'");}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new n(r,this));}),l;};},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function _createWidget(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,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(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function remove(e){e.target===s&&this.destroy();}}),this.document=e(s.style?s.ownerDocument:s.document||s),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 destroy(){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 widget(){return this.element;},option:function option(i,s){var n,a,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},n=i.split("."),i=n.shift(),n.length){for(a=o[i]=e.widget.extend({},this.options[i]),r=0;n.length-1>r;r++){a[n[r]]=a[n[r]]||{},a=a[n[r]];}if(i=n.pop(),s===t)return a[i]===t?null:a[i];a[i]=s;}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s;}return this._setOptions(o),this;},_setOptions:function _setOptions(e){var t;for(t in e){this._setOption(t,e[t]);}return this;},_setOption:function _setOption(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 enable(){return this._setOption("disabled",!1);},disable:function disable(){return this._setOption("disabled",!0);},_on:function _on(i,s,n){var a,r=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=a=e(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,a=this.widget()),e.each(n,function(n,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?r[o]:o).apply(r,arguments):t;}"string"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?a.delegate(c,u,h):s.bind(u,h);});},_off:function _off(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t);},_delay:function _delay(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments);}var s=this;return setTimeout(i,t||0);},_hoverable:function _hoverable(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function mouseenter(t){e(t.currentTarget).addClass("ui-state-hover");},mouseleave:function mouseleave(t){e(t.currentTarget).removeClass("ui-state-hover");}});},_focusable:function _focusable(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function focusin(t){e(t.currentTarget).addClass("ui-state-focus");},focusout:function focusout(t){e(t.currentTarget).removeClass("ui-state-focus");}});},_trigger:function _trigger(t,i,s){var n,a,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a){n in i||(i[n]=a[n]);}return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented());}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var r,o=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),r=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),r&&e.effects&&e.effects.effect[o]?s[t](n):o!==t&&s[o]?s[o](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i();});};});})(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 _mouseInit(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e);}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined;}),this.started=!1;},_mouseDestroy:function _mouseDestroy(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);},_mouseDown:function _mouseDown(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,n=1===i.which,a="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return n&&!a&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0;},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e);},this._mouseUpDelegate=function(e){return s._mouseUp(e);},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0;}},_mouseMove:function _mouseMove(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=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted);},_mouseUp:function _mouseUp(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 _mouseDistanceMet(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance;},_mouseDelayMet:function _mouseDelayMet(){return this.mouseDelayMet;},_mouseStart:function _mouseStart(){},_mouseDrag:function _mouseDrag(){},_mouseStop:function _mouseStop(){},_mouseCapture:function _mouseCapture(){return!0;}});})(jQuery);(function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)];}function s(e,i){return parseInt(t.css(e,i),10)||0;}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};}t.ui=t.ui||{};var a,o=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function scrollbarWidth(){if(a!==e)return a;var i,s,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),i=o.offsetWidth,n.css("overflow","scroll"),s=o.offsetWidth,i===s&&(s=n[0].clientWidth),n.remove(),a=i-s;},getScrollInfo:function getScrollInfo(e){var i=e.isWindow?"":e.element.css("overflow-x"),s=e.isWindow?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,a="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:a?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0};},getWithinInfo:function getWithinInfo(e){var i=t(e||window),s=t.isWindow(i[0]);return{element:i,isWindow:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s?i.width():i.outerWidth(),height:s?i.height():i.outerHeight()};}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var a,p,m,g,v,b,_=t(e.of),y=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(y),x=(e.collision||"flip").split(" "),k={};return b=n(_),_[0].preventDefault&&(e.at="left top"),p=b.width,m=b.height,g=b.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,i,s=(e[this]||"").split(" ");1===s.length&&(s=l.test(s[0])?s.concat(["center"]):c.test(s[0])?["center"].concat(s):["center","center"]),s[0]=l.test(s[0])?s[0]:"center",s[1]=c.test(s[1])?s[1]:"center",t=u.exec(s[0]),i=u.exec(s[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(s[0])[0],d.exec(s[1])[0]];}),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=m:"center"===e.at[1]&&(v.top+=m/2),a=i(k.at,p,m),v.left+=a[0],v.top+=a[1],this.each(function(){var n,l,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=s(this,"marginLeft"),b=s(this,"marginTop"),D=u+f+s(this,"marginRight")+w.width,T=d+b+s(this,"marginBottom")+w.height,C=t.extend({},v),M=i(k.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?C.left-=u:"center"===e.my[0]&&(C.left-=u/2),"bottom"===e.my[1]?C.top-=d:"center"===e.my[1]&&(C.top-=d/2),C.left+=M[0],C.top+=M[1],t.support.offsetFractions||(C.left=h(C.left),C.top=h(C.top)),n={marginLeft:f,marginTop:b},t.each(["left","top"],function(i,s){t.ui.position[x[i]]&&t.ui.position[x[i]][s](C,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:n,collisionWidth:D,collisionHeight:T,offset:[a[0]+M[0],a[1]+M[1]],my:e.my,at:e.at,within:y,elem:c});}),e.using&&(l=function l(t){var i=g.left-C.left,s=i+p-u,n=g.top-C.top,a=n+m-d,h={target:{element:_,left:g.left,top:g.top,width:p,height:m},element:{element:c,left:C.left,top:C.top,width:u,height:d},horizontal:0>s?"left":i>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};u>p&&p>r(i+s)&&(h.horizontal="center"),d>m&&m>r(n+a)&&(h.vertical="middle"),h.important=o(r(i),r(s))>o(r(n),r(a))?"horizontal":"vertical",e.using.call(this,t,h);}),c.offset(t.extend(C,{using:l}));});},t.ui.position={fit:{left:function left(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-a-n;e.collisionWidth>a?h>0&&0>=l?(i=t.left+h+e.collisionWidth-a-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+a-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=o(t.left-r,t.left);},top:function top(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-a-n;e.collisionHeight>a?h>0&&0>=l?(i=t.top+h+e.collisionHeight-a-n,t.top+=h-i):t.top=l>0&&0>=h?n:h>l?n+a-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=o(t.top-r,t.top);}},flip:{left:function left(t,e){var i,s,n=e.within,a=n.offset.left+n.scrollLeft,o=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-o-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-o-a,(0>i||r(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>r(s))&&(t.left+=d+p+f));},top:function top(t,e){var i,s,n=e.within,a=n.offset.top+n.scrollTop,o=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-o-h,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];0>c?(s=t.top+p+f+m+e.collisionHeight-o-a,t.top+p+f+m>c&&(0>s||r(c)>s)&&(t.top+=p+f+m)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+m-h,t.top+p+f+m>u&&(i>0||u>r(i))&&(t.top+=p+f+m));}},flipfit:{left:function left(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments);},top:function top(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments);}}},function(){var e,i,s,n,a,o=document.getElementsByTagName("body")[0],r=document.createElement("div");e=document.createElement(o?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(a in s){e.style[a]=s[a];}e.appendChild(r),i=o||document.documentElement,i.insertBefore(e,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=t(r).offset().left,t.support.offsetFractions=n>10&&11>n,e.innerHTML="",i.removeChild(e);}();})(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 _create(){"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 _destroy(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy();},_mouseCapture:function _mouseCapture(t){var i=this.options;return this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(e(i.iframeFix===!0?"iframe":i.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):!1);},_mouseStart:function _mouseStart(t){var i=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,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0);},_mouseDrag:function _mouseDrag(t,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",t,s)===!1)return this._mouseUp({}),!1;this.position=s.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 _mouseStop(t){var i=this,s=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(s=e.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"original"!==this.options.helper||e.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",t)!==!1&&i._clear();}):this._trigger("stop",t)!==!1&&this._clear(),!1):!1;},_mouseUp:function _mouseUp(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 cancel(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this;},_getHandle:function _getHandle(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0;},_createHelper:function _createHelper(t){var i=this.options,s=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s;},_adjustOffsetFromHelper:function _adjustOffsetFromHelper(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 _getParentOffset(){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 _getRelativeOffset(){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 _cacheMargins(){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 _cacheHelperProportions(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function _setContainment(){var t,i,s,n=this.options;return n.containment?"window"===n.containment?(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],undefined):"document"===n.containment?(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],undefined):n.containment.constructor===Array?(this.containment=n.containment,undefined):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=e(n.containment),s=i[0],s&&(t="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i),undefined):(this.containment=null,undefined);},_convertPositionTo:function _convertPositionTo(t,i){i||(i=this.position);var s="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:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*s};},_generatePosition:function _generatePosition(t){var i,s,n,a,o=this.options,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=t.pageX,l=t.pageY;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(h=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),o.grid&&(n=o.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-o.grid[1]:n+o.grid[1]:n,a=o.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,h=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.grid[0]:a+o.grid[0]:a)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)};},_clear:function _clear(){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 _trigger(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s]),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,i,s);},plugins:{},_uiHash:function _uiHash(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs};}}),e.ui.plugin.add("draggable","connectToSortable",{start:function start(t,i){var s=e(this).data("ui-draggable"),n=s.options,a=e.extend({},i,{item:s.element});s.sortables=[],e(n.connectToSortable).each(function(){var i=e.data(this,"ui-sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,a));});},stop:function stop(t,i){var s=e(this).data("ui-draggable"),n=e.extend({},i,{item:s.element});e.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.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"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,n));});},drag:function drag(t,i){var s=e(this).data("ui-draggable"),n=this;e.each(s.sortables,function(){var a=!1,o=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(a=!0,e.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==o&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(o.instance.element[0],this.instance.element[0])&&(a=!1),a;})),a?(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 i.helper[0];},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",t),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),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(),s._trigger("fromSortable",t),s.dropped=!1);});}}),e.ui.plugin.add("draggable","cursor",{start:function start(){var t=e("body"),i=e(this).data("ui-draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor")),t.css("cursor",i.cursor);},stop:function stop(){var t=e(this).data("ui-draggable").options;t._cursor&&e("body").css("cursor",t._cursor);}}),e.ui.plugin.add("draggable","opacity",{start:function start(t,i){var s=e(i.helper),n=e(this).data("ui-draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity);},stop:function stop(t,i){var s=e(this).data("ui-draggable").options;s._opacity&&e(i.helper).css("opacity",s._opacity);}}),e.ui.plugin.add("draggable","scroll",{start:function start(){var t=e(this).data("ui-draggable");t.scrollParent[0]!==document&&"HTML"!==t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset());},drag:function drag(t){var i=e(this).data("ui-draggable"),s=i.options,n=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-t.pageY<s.scrollSensitivity?i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-t.pageX<s.scrollSensitivity?i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(document).scrollTop()<s.scrollSensitivity?n=e(document).scrollTop(e(document).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<s.scrollSensitivity&&(n=e(document).scrollTop(e(document).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(document).scrollLeft()<s.scrollSensitivity?n=e(document).scrollLeft(e(document).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<s.scrollSensitivity&&(n=e(document).scrollLeft(e(document).scrollLeft()+s.scrollSpeed)))),n!==!1&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t);}}),e.ui.plugin.add("draggable","snap",{start:function start(){var t=e(this).data("ui-draggable"),i=t.options;t.snapElements=[],e(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=e(this),s=i.offset();this!==t.element[0]&&t.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:s.top,left:s.left});});},drag:function drag(t,i){var s,n,a,o,r,h,l,u,c,d,p=e(this).data("ui-draggable"),f=p.options,m=f.snapTolerance,g=i.offset.left,v=g+p.helperProportions.width,b=i.offset.top,y=b+p.helperProportions.height;for(c=p.snapElements.length-1;c>=0;c--){r=p.snapElements[c].left,h=r+p.snapElements[c].width,l=p.snapElements[c].top,u=l+p.snapElements[c].height,r-m>v||g>h+m||l-m>y||b>u+m||!e.contains(p.snapElements[c].item.ownerDocument,p.snapElements[c].item)?(p.snapElements[c].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item})),p.snapElements[c].snapping=!1):("inner"!==f.snapMode&&(s=m>=Math.abs(l-y),n=m>=Math.abs(u-b),a=m>=Math.abs(r-v),o=m>=Math.abs(h-g),s&&(i.position.top=p._convertPositionTo("relative",{top:l-p.helperProportions.height,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:u,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r-p.helperProportions.width}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h}).left-p.margins.left)),d=s||n||a||o,"outer"!==f.snapMode&&(s=m>=Math.abs(l-b),n=m>=Math.abs(u-y),a=m>=Math.abs(r-g),o=m>=Math.abs(h-v),s&&(i.position.top=p._convertPositionTo("relative",{top:l,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:u-p.helperProportions.height,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[c].snapping&&(s||n||a||o||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item})),p.snapElements[c].snapping=s||n||a||o||d);}}}),e.ui.plugin.add("draggable","stack",{start:function start(){var t,i=this.data("ui-draggable").options,s=e.makeArray(e(i.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0);});s.length&&(t=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(i){e(this).css("zIndex",t+i);}),this.css("zIndex",t+s.length));}}),e.ui.plugin.add("draggable","zIndex",{start:function start(t,i){var s=e(i.helper),n=e(this).data("ui-draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex);},stop:function stop(t,i){var s=e(this).data("ui-draggable").options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex);}});})(jQuery);(function(e){function t(e,t,i){return e>t&&t+i>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 _create(){var t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(i)?i:function(e){return e.is(i);},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 _destroy(){for(var t=0,i=e.ui.ddmanager.droppables[this.options.scope];i.length>t;t++){i[t]===this&&i.splice(t,1);}this.element.removeClass("ui-droppable ui-droppable-disabled");},_setOption:function _setOption(t,i){"accept"===t&&(this.accept=e.isFunction(i)?i:function(e){return e.is(i);}),e.Widget.prototype._setOption.apply(this,arguments);},_activate:function _activate(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i));},_deactivate:function _deactivate(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui(i));},_over:function _over(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)));},_out:function _out(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)));},_drop:function _drop(t,i){var s=i||e.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.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===s.options.scope&&t.accept.call(t.element[0],s.currentItem||s.element)&&e.ui.intersect(s,e.extend(t,{offset:t.element.offset()}),t.options.tolerance)?(n=!0,!1):undefined;}),n?!1:this.accept.call(this.element[0],s.currentItem||s.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(s)),this.element):!1):!1;},ui:function ui(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs};}}),e.ui.intersect=function(e,i,s){if(!i.offset)return!1;var n,a,o=(e.positionAbs||e.position.absolute).left,r=o+e.helperProportions.width,h=(e.positionAbs||e.position.absolute).top,l=h+e.helperProportions.height,u=i.offset.left,c=u+i.proportions.width,d=i.offset.top,p=d+i.proportions.height;switch(s){case"fit":return o>=u&&c>=r&&h>=d&&p>=l;case"intersect":return o+e.helperProportions.width/2>u&&c>r-e.helperProportions.width/2&&h+e.helperProportions.height/2>d&&p>l-e.helperProportions.height/2;case"pointer":return n=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,a=(e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,t(a,d,i.proportions.height)&&t(n,u,i.proportions.width);case"touch":return(h>=d&&p>=h||l>=d&&p>=l||d>h&&l>p)&&(o>=u&&c>=o||r>=u&&c>=r||u>o&&r>c);default:return!1;}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function prepareOffsets(t,i){var s,n,a=e.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,r=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(s=0;a.length>s;s++){if(!(a[s].options.disabled||t&&!a[s].accept.call(a[s].element[0],t.currentItem||t.element))){for(n=0;r.length>n;n++){if(r[n]===a[s].element[0]){a[s].proportions.height=0;continue e;}}a[s].visible="none"!==a[s].element.css("display"),a[s].visible&&("mousedown"===o&&a[s]._activate.call(a[s],i),a[s].offset=a[s].element.offset(),a[s].proportions={width:a[s].element[0].offsetWidth,height:a[s].element[0].offsetHeight});}}},drop:function drop(t,i){var s=!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)&&(s=this._drop.call(this,i)||s),!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,i)));}),s;},dragStart:function dragStart(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i);});},drag:function drag(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,a,o=e.ui.intersect(t,this,this.options.tolerance),r=!o&&this.isover?"isout":o&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,a=this.element.parents(":data(ui-droppable)").filter(function(){return e.data(this,"ui-droppable").options.scope===n;}),a.length&&(s=e.data(a[0],"ui-droppable"),s.greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)));}});},dragStop:function dragStop(t,i){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i);}};})(jQuery);(function(e){function t(e){return parseInt(e,10)||0;}function i(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 _create(){var t,i,s,n,a,o=this,r=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.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=r.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={},i=0;t.length>i;i++){s=e.trim(t[i]),a="ui-resizable-"+s,n=e("<div class='ui-resizable-handle "+a+"'></div>"),n.css({zIndex:r.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(n);}this._renderAxis=function(t){var i,s,n,a;t=t||this.element;for(i in this.handles){this.handles[i].constructor===String&&(this.handles[i]=e(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(s=e(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(n,a),this._proportionallyResize()),e(this.handles[i]).length;}},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=n&&n[1]?n[1]:"se");}),r.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){r.disabled||(e(this).removeClass("ui-resizable-autohide"),o._handles.show());}).mouseleave(function(){r.disabled||o.resizing||(e(this).addClass("ui-resizable-autohide"),o._handles.hide());})),this._mouseInit();},_destroy:function _destroy(){this._mouseDestroy();var t,i=function i(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&&(i(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),i(this.originalElement),this;},_mouseCapture:function _mouseCapture(t){var i,s,n=!1;for(i in this.handles){s=e(this.handles[i])[0],(s===t.target||e.contains(s,t.target))&&(n=!0);}return!this.options.disabled&&n;},_mouseStart:function _mouseStart(i){var s,n,a,o=this.options,r=this.element.position(),h=this.element;return this.resizing=!0,/absolute/.test(h.css("position"))?h.css({position:"absolute",top:h.css("top"),left:h.css("left")}):h.is(".ui-draggable")&&h.css({position:"absolute",top:r.top,left:r.left}),this._renderProxy(),s=t(this.helper.css("left")),n=t(this.helper.css("top")),o.containment&&(s+=e(o.containment).scrollLeft()||0,n+=e(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:n},this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalPosition={left:s,top:n},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,a=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===a?this.axis+"-resize":a),h.addClass("ui-resizable-resizing"),this._propagate("start",i),!0;},_mouseDrag:function _mouseDrag(t){var i,s=this.helper,n={},a=this.originalMousePosition,o=this.axis,r=this.position.top,h=this.position.left,l=this.size.width,u=this.size.height,c=t.pageX-a.left||0,d=t.pageY-a.top||0,p=this._change[o];return p?(i=p.apply(this,[t,c,d]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),this.position.top!==r&&(n.top=this.position.top+"px"),this.position.left!==h&&(n.left=this.position.left+"px"),this.size.width!==l&&(n.width=this.size.width+"px"),this.size.height!==u&&(n.height=this.size.height+"px"),s.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||this._trigger("resize",t,this.ui()),!1):!1;},_mouseStop:function _mouseStop(t){this.resizing=!1;var i,s,n,a,o,r,h,l=this.options,u=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&e.ui.hasScroll(i[0],"left")?0:u.sizeDiff.height,a=s?0:u.sizeDiff.width,o={width:u.helper.width()-a,height:u.helper.height()-n},r=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,h=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(e.extend(o,{top:h,left:r})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.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 _updateVirtualBoundaries(e){var t,s,n,a,o,r=this.options;o={minWidth:i(r.minWidth)?r.minWidth:0,maxWidth:i(r.maxWidth)?r.maxWidth:1/0,minHeight:i(r.minHeight)?r.minHeight:0,maxHeight:i(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,s=o.maxHeight*this.aspectRatio,a=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),n>o.minHeight&&(o.minHeight=n),o.maxWidth>s&&(o.maxWidth=s),o.maxHeight>a&&(o.maxHeight=a)),this._vBoundaries=o;},_updateCache:function _updateCache(e){this.offset=this.helper.offset(),i(e.left)&&(this.position.left=e.left),i(e.top)&&(this.position.top=e.top),i(e.height)&&(this.size.height=e.height),i(e.width)&&(this.size.width=e.width);},_updateRatio:function _updateRatio(e){var t=this.position,s=this.size,n=this.axis;return i(e.height)?e.width=e.height*this.aspectRatio:i(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(s.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(s.height-e.height),e.left=t.left+(s.width-e.width)),e;},_respectSize:function _respectSize(e){var t=this._vBoundaries,s=this.axis,n=i(e.width)&&t.maxWidth&&t.maxWidth<e.width,a=i(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=i(e.width)&&t.minWidth&&t.minWidth>e.width,r=i(e.height)&&t.minHeight&&t.minHeight>e.height,h=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,u=/sw|nw|w/.test(s),c=/nw|ne|n/.test(s);return o&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),a&&(e.height=t.maxHeight),o&&u&&(e.left=h-t.minWidth),n&&u&&(e.left=h-t.maxWidth),r&&c&&(e.top=l-t.minHeight),a&&c&&(e.top=l-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 _proportionallyResize(){if(this._proportionallyResizeElements.length){var e,t,i,s,n,a=this.helper||this.element;for(e=0;this._proportionallyResizeElements.length>e;e++){if(n=this._proportionallyResizeElements[e],!this.borderDif)for(this.borderDif=[],i=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],s=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],t=0;i.length>t;t++){this.borderDif[t]=(parseInt(i[t],10)||0)+(parseInt(s[t],10)||0);}n.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0});}}},_renderProxy:function _renderProxy(){var t=this.element,i=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:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element;},_change:{e:function e(_e2,t){return{width:this.originalSize.width+t};},w:function w(e,t){var i=this.originalSize,s=this.originalPosition;return{left:s.left+t,width:i.width-t};},n:function n(e,t,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i};},s:function s(e,t,i){return{height:this.originalSize.height+i};},se:function se(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,s]));},sw:function sw(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,s]));},ne:function ne(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]));},nw:function nw(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,s]));}},_propagate:function _propagate(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui());},plugins:{},ui:function ui(){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 stop(t){var i=e(this).data("ui-resizable"),s=i.options,n=i._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),o=a&&e.ui.hasScroll(n[0],"left")?0:i.sizeDiff.height,r=a?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-o},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(h,u&&l?{top:u,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function step(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&e(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",t);}});}}),e.ui.plugin.add("resizable","containment",{start:function start(){var i,s,n,a,o,r,h,l=e(this).data("ui-resizable"),u=l.options,c=l.element,d=u.containment,p=d instanceof e?d.get(0):/parent/.test(d)?c.parent().get(0):d;p&&(l.containerElement=e(p),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(i=e(p),s=[],e(["Top","Right","Left","Bottom"]).each(function(e,n){s[e]=t(i.css("padding"+n));}),l.containerOffset=i.offset(),l.containerPosition=i.position(),l.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},n=l.containerOffset,a=l.containerSize.height,o=l.containerSize.width,r=e.ui.hasScroll(p,"left")?p.scrollWidth:o,h=e.ui.hasScroll(p)?p.scrollHeight:a,l.parentData={element:p,left:n.left,top:n.top,width:r,height:h}));},resize:function resize(t){var i,s,n,a,o=e(this).data("ui-resizable"),r=o.options,h=o.containerOffset,l=o.position,u=o._aspectRatio||t.shiftKey,c={top:0,left:0},d=o.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(c=h),l.left<(o._helper?h.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-h.left:o.position.left-c.left),u&&(o.size.height=o.size.width/o.aspectRatio),o.position.left=r.helper?h.left:0),l.top<(o._helper?h.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-h.top:o.position.top),u&&(o.size.width=o.size.height*o.aspectRatio),o.position.top=o._helper?h.top:0),o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top,i=Math.abs((o._helper?o.offset.left-c.left:o.offset.left-c.left)+o.sizeDiff.width),s=Math.abs((o._helper?o.offset.top-c.top:o.offset.top-h.top)+o.sizeDiff.height),n=o.containerElement.get(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement.css("position")),n&&a&&(i-=o.parentData.left),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,u&&(o.size.height=o.size.width/o.aspectRatio)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,u&&(o.size.width=o.size.height*o.aspectRatio));},stop:function stop(){var t=e(this).data("ui-resizable"),i=t.options,s=t.containerOffset,n=t.containerPosition,a=t.containerElement,o=e(t.helper),r=o.offset(),h=o.outerWidth()-t.sizeDiff.width,l=o.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l}),t._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l});}}),e.ui.plugin.add("resizable","alsoResize",{start:function start(){var t=e(this).data("ui-resizable"),i=t.options,s=function s(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(i.alsoResize)||i.alsoResize.parentNode?s(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],s(i.alsoResize)):e.each(i.alsoResize,function(e){s(e);});},resize:function resize(t,i){var s=e(this).data("ui-resizable"),n=s.options,a=s.originalSize,o=s.originalPosition,r={height:s.size.height-a.height||0,width:s.size.width-a.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0},h=function h(t,s){e(t).each(function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),a={},o=s&&s.length?s:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){var i=(n[t]||0)+(r[t]||0);i&&i>=0&&(a[t]=i||null);}),t.css(a);});};"object"!=_typeof2(n.alsoResize)||n.alsoResize.nodeType?h(n.alsoResize):e.each(n.alsoResize,function(e,t){h(e,t);});},stop:function stop(){e(this).removeData("resizable-alsoresize");}}),e.ui.plugin.add("resizable","ghost",{start:function start(){var t=e(this).data("ui-resizable"),i=t.options,s=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),t.ghost.appendTo(t.helper);},resize:function resize(){var t=e(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width});},stop:function stop(){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 resize(){var t=e(this).data("ui-resizable"),i=t.options,s=t.size,n=t.originalSize,a=t.originalPosition,o=t.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,h=r[0]||1,l=r[1]||1,u=Math.round((s.width-n.width)/h)*h,c=Math.round((s.height-n.height)/l)*l,d=n.width+u,p=n.height+c,f=i.maxWidth&&d>i.maxWidth,m=i.maxHeight&&p>i.maxHeight,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=r,g&&(d+=h),v&&(p+=l),f&&(d-=h),m&&(p-=l),/^(se|s|e)$/.test(o)?(t.size.width=d,t.size.height=p):/^(ne)$/.test(o)?(t.size.width=d,t.size.height=p,t.position.top=a.top-c):/^(sw)$/.test(o)?(t.size.width=d,t.size.height=p,t.position.left=a.left-u):(t.size.width=d,t.size.height=p,t.position.top=a.top-c,t.position.left=a.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 _create(){var t,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t=e(i.options.filter,i.element[0]),t.addClass("ui-selectee"),t.each(function(){var t=e(this),i=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.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 _destroy(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy();},_mouseStart:function _mouseStart(t){var i=this,s=this.options;this.opos=[t.pageX,t.pageY],this.options.disabled||(this.selectees=e(s.filter,this.element[0]),this._trigger("start",t),e(s.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=e.data(this,"selectable-item");s.startselected=!0,t.metaKey||t.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",t,{unselecting:s.element}));}),e(t.target).parents().addBack().each(function(){var s,n=e.data(this,"selectable-item");return n?(s=!t.metaKey&&!t.ctrlKey||!n.$element.hasClass("ui-selected"),n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",t,{selecting:n.element}):i._trigger("unselecting",t,{unselecting:n.element}),!1):undefined;}));},_mouseDrag:function _mouseDrag(t){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,a=this.opos[0],o=this.opos[1],r=t.pageX,h=t.pageY;return a>r&&(i=r,r=a,a=i),o>h&&(i=h,h=o,o=i),this.helper.css({left:a,top:o,width:r-a,height:h-o}),this.selectees.each(function(){var i=e.data(this,"selectable-item"),l=!1;i&&i.element!==s.element[0]&&("touch"===n.tolerance?l=!(i.left>r||a>i.right||i.top>h||o>i.bottom):"fit"===n.tolerance&&(l=i.left>a&&r>i.right&&i.top>o&&h>i.bottom),l?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s._trigger("selecting",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",t,{unselecting:i.element}))),i.selected&&(t.metaKey||t.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",t,{unselecting:i.element})))));}),!1;}},_mouseStop:function _mouseStop(t){var i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",t,{unselected:s.element});}),e(".ui-selecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",t,{selected:s.element});}),this._trigger("stop",t),this.helper.remove(),!1;}});})(jQuery);(function(t){function e(t,e,i){return t>e&&e+i>t;}function i(t){return /left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"));}t.widget("ui.sortable",t.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 _create(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||i(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0;},_destroy:function _destroy(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--){this.items[t].item.removeData(this.widgetName+"-item");}return this;},_setOption:function _setOption(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments);},_mouseCapture:function _mouseCapture(e,i){var s=null,n=!1,a=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,a.widgetName+"-item")===a?(s=t(this),!1):undefined;}),t.data(e.target,a.widgetName+"-item")===a&&(s=t(e.target)),s?!this.options.handle||i||(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0);}),n)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1);},_mouseStart:function _mouseStart(e,i,s){var n,a,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),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},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.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(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",o.cursor),this.storedStylesheet=t("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(a)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--){this.containers[n]._trigger("activate",e,this._uiHash(this));}return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0;},_mouseDrag:function _mouseDrag(e){var i,s,n,a,o=this.options,r=!1;for(this.position=this._generatePosition(e),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-e.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-t(document).scrollTop()<o.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<o.scrollSensitivity&&(r=t(document).scrollTop(t(document).scrollTop()+o.scrollSpeed)),e.pageX-t(document).scrollLeft()<o.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<o.scrollSensitivity&&(r=t(document).scrollLeft(t(document).scrollLeft()+o.scrollSpeed))),r!==!1&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),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"),i=this.items.length-1;i>=0;i--){if(s=this.items[i],n=s.item[0],a=this._intersectsWithPointer(s),a&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],n):!0)){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break;}}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1;},_mouseStop:function _mouseStop(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),a=this.options.axis,o={};a&&"x"!==a||(o.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(o.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){s._clear(e);});}else this._clear(e,i);return!1;}},cancel:function cancel(){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 e=this.containers.length-1;e>=0;e--){this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].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(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this;},serialize:function serialize(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]));}),!s.length&&e.key&&s.push(e.key+"="),s.join("&");},toArray:function toArray(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"");}),s;},_intersectsWith:function _intersectsWith(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,a=t.left,o=a+t.width,r=t.top,h=r+t.height,l=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+l>r&&h>s+l,d="y"===this.options.axis||e+c>a&&o>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>a&&o>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&h>n-this.helperProportions.height/2;},_intersectsWithPointer:function _intersectsWithPointer(t){var i="x"===this.options.axis||e(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||e(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=i&&s,a=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return n?this.floating?o&&"right"===o||"down"===a?2:1:a&&("down"===a?2:1):!1;},_intersectsWithSides:function _intersectsWithSides(t){var i=e(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),s=e(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?"right"===a&&s||"left"===a&&!s:n&&("down"===n&&i||"up"===n&&!i);},_getDragVerticalDirection:function _getDragVerticalDirection(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up");},_getDragHorizontalDirection:function _getDragHorizontalDirection(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left");},refresh:function refresh(t){return this._refreshItems(t),this.refreshPositions(),this;},_connectWith:function _connectWith(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith;},_getItemsAsjQuery:function _getItemsAsjQuery(e){var i,s,n,a,o=[],r=[],h=this._connectWith();if(h&&e)for(i=h.length-1;i>=0;i--){for(n=t(h[i]),s=n.length-1;s>=0;s--){a=t.data(n[s],this.widgetFullName),a&&a!==this&&!a.options.disabled&&r.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);}}for(r.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=r.length-1;i>=0;i--){r[i][0].each(function(){o.push(this);});}return t(o);},_removeCurrentsFromItems:function _removeCurrentsFromItems(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++){if(e[i]===t.item[0])return!1;}return!0;});},_refreshItems:function _refreshItems(e){this.items=[],this.containers=[this];var i,s,n,a,o,r,h,l,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--){for(n=t(d[i]),s=n.length-1;s>=0;s--){a=t.data(n[s],this.widgetFullName),a&&a!==this&&!a.options.disabled&&(u.push([t.isFunction(a.options.items)?a.options.items.call(a.element[0],e,{item:this.currentItem}):t(a.options.items,a.element),a]),this.containers.push(a));}}for(i=u.length-1;i>=0;i--){for(o=u[i][1],r=u[i][0],s=0,l=r.length;l>s;s++){h=t(r[s]),h.data(this.widgetName+"-item",o),c.push({item:h,instance:o,width:0,height:0,left:0,top:0});}}},refreshPositions:function refreshPositions(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,n,a;for(i=this.items.length-1;i>=0;i--){s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),a=n.offset(),s.left=a.left,s.top=a.top);}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--){a=this.containers[i].element.offset(),this.containers[i].containerCache.left=a.left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();}return this;},_createPlaceholder:function _createPlaceholder(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function element(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===s?e.currentItem.children().each(function(){t("<td> </td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n);}):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n;},update:function update(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)));}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder);},_contactContainers:function _contactContainers(s){var n,a,o,r,h,l,c,u,d,p,f=null,m=null;for(n=this.containers.length-1;n>=0;n--){if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&t.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],m=n;}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",s,this._uiHash(this)),this.containers[n].containerCache.over=0);}if(f)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",s,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(o=1e4,r=null,p=f.floating||i(this.currentItem),h=p?"left":"top",l=p?"width":"height",c=this.positionAbs[h]+this.offset.click[h],a=this.items.length-1;a>=0;a--){t.contains(this.containers[m].element[0],this.items[a].item[0])&&this.items[a].item[0]!==this.currentItem[0]&&(!p||e(this.positionAbs.top+this.offset.click.top,this.items[a].top,this.items[a].height))&&(u=this.items[a].item.offset()[h],d=!1,Math.abs(u-c)>Math.abs(u+this.items[a][l]-c)&&(d=!0,u+=this.items[a][l]),o>Math.abs(u-c)&&(o=Math.abs(u-c),r=this.items[a],this.direction=d?"up":"down"));}if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[m])return;r?this._rearrange(s,r,null,!0):this._rearrange(s,null,this.containers[m].element,!0),this._trigger("change",s,this._uiHash()),this.containers[m]._trigger("change",s,this._uiHash(this)),this.currentContainer=this.containers[m],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[m]._trigger("over",s,this._uiHash(this)),this.containers[m].containerCache.over=1;}},_createHelper:function _createHelper(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[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")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s;},_adjustOffsetFromHelper:function _adjustOffsetFromHelper(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top);},_getParentOffset:function _getParentOffset(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};},_getRelativeOffset:function _getRelativeOffset(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};}return{top:0,left:0};},_cacheMargins:function _cacheMargins(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0};},_cacheHelperProportions:function _cacheHelperProportions(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function _setContainment(){var e,i,s,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,t("document"===n.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]);},_convertPositionTo:function _convertPositionTo(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())*s};},_generatePosition:function _generatePosition(e){var i,s,n=this.options,a=e.pageX,o=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(r[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&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1],o=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((a-this.originalPageX)/n.grid[0])*n.grid[0],a=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:r.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:r.scrollLeft())};},_rearrange:function _rearrange(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s);});},_clear:function _clear(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS){("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside));}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash());}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash());}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this));};}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this));};}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--){e||s.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this));};}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this));};}.call(this,this.containers[i])),this.containers[i].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(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;s.length>i;i++){s[i].call(this,t);}this._trigger("stop",t,this._uiHash());}return this.fromOutside=!1,!1;}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;s.length>i;i++){s[i].call(this,t);}this._trigger("stop",t,this._uiHash());}return this.fromOutside=!1,!0;},_trigger:function _trigger(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel();},_uiHash:function _uiHash(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null};}});})(jQuery);/*!
|
||
* Bootstrap v3.3.0 (http://getbootstrap.com)
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
*/ /*!
|
||
* Generated using the Bootstrap Customizer (http://v3.bootcss.com/customize/?id=035131508a4b1f7c1c5a)
|
||
* Config saved to config.json and https://gist.github.com/035131508a4b1f7c1c5a
|
||
*/if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery');}+function($){var version=$.fn.jquery.split(' ')[0].split('.');if(version[0]<2&&version[1]<9||version[0]==1&&version[1]==9&&version[2]<1){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher');}}(jQuery);/* ========================================================================
|
||
* Bootstrap: alert.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#alerts
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// ALERT CLASS DEFINITION
|
||
// ======================
|
||
var dismiss='[data-dismiss="alert"]';var Alert=function Alert(el){$(el).on('click',dismiss,this.close);};Alert.VERSION='3.3.0';Alert.TRANSITION_DURATION=150;Alert.prototype.close=function(e){var $this=$(this);var selector=$this.attr('data-target');if(!selector){selector=$this.attr('href');selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'');// strip for ie7
|
||
}var $parent=$(selector);if(e)e.preventDefault();if(!$parent.length){$parent=$this.closest('.alert');}$parent.trigger(e=$.Event('close.bs.alert'));if(e.isDefaultPrevented())return;$parent.removeClass('in');function removeElement(){// detach from parent, fire event then clean up data
|
||
$parent.detach().trigger('closed.bs.alert').remove();}$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement();};// ALERT PLUGIN DEFINITION
|
||
// =======================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.alert');if(!data)$this.data('bs.alert',data=new Alert(this));if(typeof option=='string')data[option].call($this);});}var old=$.fn.alert;$.fn.alert=Plugin;$.fn.alert.Constructor=Alert;// ALERT NO CONFLICT
|
||
// =================
|
||
$.fn.alert.noConflict=function(){$.fn.alert=old;return this;};// ALERT DATA-API
|
||
// ==============
|
||
$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close);}(jQuery);/* ========================================================================
|
||
* Bootstrap: button.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#buttons
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// BUTTON PUBLIC CLASS DEFINITION
|
||
// ==============================
|
||
var Button=function Button(element,options){this.$element=$(element);this.options=$.extend({},Button.DEFAULTS,options);this.isLoading=false;};Button.VERSION='3.3.0';Button.DEFAULTS={loadingText:'loading...'};Button.prototype.setState=function(state){var d='disabled';var $el=this.$element;var val=$el.is('input')?'val':'html';var data=$el.data();state=state+'Text';if(data.resetText==null)$el.data('resetText',$el[val]());// push to event loop to allow forms to submit
|
||
setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state]);if(state=='loadingText'){this.isLoading=true;$el.addClass(d).attr(d,d);}else if(this.isLoading){this.isLoading=false;$el.removeClass(d).removeAttr(d);}},this),0);};Button.prototype.toggle=function(){var changed=true;var $parent=this.$element.closest('[data-toggle="buttons"]');if($parent.length){var $input=this.$element.find('input');if($input.prop('type')=='radio'){if($input.prop('checked')&&this.$element.hasClass('active'))changed=false;else $parent.find('.active').removeClass('active');}if(changed)$input.prop('checked',!this.$element.hasClass('active')).trigger('change');}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'));}if(changed)this.$element.toggleClass('active');};// BUTTON PLUGIN DEFINITION
|
||
// ========================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.button');var options=_typeof2(option)=='object'&&option;if(!data)$this.data('bs.button',data=new Button(this,options));if(option=='toggle')data.toggle();else if(option)data.setState(option);});}var old=$.fn.button;$.fn.button=Plugin;$.fn.button.Constructor=Button;// BUTTON NO CONFLICT
|
||
// ==================
|
||
$.fn.button.noConflict=function(){$.fn.button=old;return this;};// BUTTON DATA-API
|
||
// ===============
|
||
$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target);if(!$btn.hasClass('btn'))$btn=$btn.closest('.btn');Plugin.call($btn,'toggle');e.preventDefault();}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',e.type=='focus');});}(jQuery);/* ========================================================================
|
||
* Bootstrap: carousel.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#carousel
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// CAROUSEL CLASS DEFINITION
|
||
// =========================
|
||
var Carousel=function Carousel(element,options){this.$element=$(element);this.$indicators=this.$element.find('.carousel-indicators');this.options=options;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this));this.options.pause=='hover'&&!('ontouchstart'in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this));};Carousel.VERSION='3.3.0';Carousel.TRANSITION_DURATION=600;Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true};Carousel.prototype.keydown=function(e){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return;}e.preventDefault();};Carousel.prototype.cycle=function(e){e||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval));return this;};Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item');return this.$items.index(item||this.$active);};Carousel.prototype.getItemForDirection=function(direction,active){var delta=direction=='prev'?-1:1;var activeIndex=this.getItemIndex(active);var itemIndex=(activeIndex+delta)%this.$items.length;return this.$items.eq(itemIndex);};Carousel.prototype.to=function(pos){var that=this;var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'));if(pos>this.$items.length-1||pos<0)return;if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos);});// yes, "slid"
|
||
if(activeIndex==pos)return this.pause().cycle();return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos));};Carousel.prototype.pause=function(e){e||(this.paused=true);if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end);this.cycle(true);}this.interval=clearInterval(this.interval);return this;};Carousel.prototype.next=function(){if(this.sliding)return;return this.slide('next');};Carousel.prototype.prev=function(){if(this.sliding)return;return this.slide('prev');};Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active');var $next=next||this.getItemForDirection(type,$active);var isCycling=this.interval;var direction=type=='next'?'left':'right';var fallback=type=='next'?'first':'last';var that=this;if(!$next.length){if(!this.options.wrap)return;$next=this.$element.find('.item')[fallback]();}if($next.hasClass('active'))return this.sliding=false;var relatedTarget=$next[0];var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction});this.$element.trigger(slideEvent);if(slideEvent.isDefaultPrevented())return;this.sliding=true;isCycling&&this.pause();if(this.$indicators.length){this.$indicators.find('.active').removeClass('active');var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)]);$nextIndicator&&$nextIndicator.addClass('active');}var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction});// yes, "slid"
|
||
if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type);$next[0].offsetWidth;// force reflow
|
||
$active.addClass(direction);$next.addClass(direction);$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active');$active.removeClass(['active',direction].join(' '));that.sliding=false;setTimeout(function(){that.$element.trigger(slidEvent);},0);}).emulateTransitionEnd(Carousel.TRANSITION_DURATION);}else{$active.removeClass('active');$next.addClass('active');this.sliding=false;this.$element.trigger(slidEvent);}isCycling&&this.cycle();return this;};// CAROUSEL PLUGIN DEFINITION
|
||
// ==========================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.carousel');var options=$.extend({},Carousel.DEFAULTS,$this.data(),_typeof2(option)=='object'&&option);var action=typeof option=='string'?option:options.slide;if(!data)$this.data('bs.carousel',data=new Carousel(this,options));if(typeof option=='number')data.to(option);else if(action)data[action]();else if(options.interval)data.pause().cycle();});}var old=$.fn.carousel;$.fn.carousel=Plugin;$.fn.carousel.Constructor=Carousel;// CAROUSEL NO CONFLICT
|
||
// ====================
|
||
$.fn.carousel.noConflict=function(){$.fn.carousel=old;return this;};// CAROUSEL DATA-API
|
||
// =================
|
||
var clickHandler=function clickHandler(e){var href;var $this=$(this);var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,''));// strip for ie7
|
||
if(!$target.hasClass('carousel'))return;var options=$.extend({},$target.data(),$this.data());var slideIndex=$this.attr('data-slide-to');if(slideIndex)options.interval=false;Plugin.call($target,options);if(slideIndex){$target.data('bs.carousel').to(slideIndex);}e.preventDefault();};$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler);$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this);Plugin.call($carousel,$carousel.data());});});}(jQuery);/* ========================================================================
|
||
* Bootstrap: dropdown.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#dropdowns
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// DROPDOWN CLASS DEFINITION
|
||
// =========================
|
||
var backdrop='.dropdown-backdrop';var toggle='[data-toggle="dropdown"]';var Dropdown=function Dropdown(element){$(element).on('click.bs.dropdown',this.toggle);};Dropdown.VERSION='3.3.0';Dropdown.prototype.toggle=function(e){var $this=$(this);if($this.is('.disabled, :disabled'))return;var $parent=getParent($this);var isActive=$parent.hasClass('open');clearMenus();if(!isActive){if('ontouchstart'in document.documentElement&&!$parent.closest('.navbar-nav').length){// if mobile we use a backdrop because click events don't delegate
|
||
$('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click',clearMenus);}var relatedTarget={relatedTarget:this};$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget));if(e.isDefaultPrevented())return;$this.trigger('focus').attr('aria-expanded','true');$parent.toggleClass('open').trigger('shown.bs.dropdown',relatedTarget);}return false;};Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which))return;var $this=$(this);e.preventDefault();e.stopPropagation();if($this.is('.disabled, :disabled'))return;var $parent=getParent($this);var isActive=$parent.hasClass('open');if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus');return $this.trigger('click');}var desc=' li:not(.divider):visible a';var $items=$parent.find('[role="menu"]'+desc+', [role="listbox"]'+desc);if(!$items.length)return;var index=$items.index(e.target);if(e.which==38&&index>0)index--;// up
|
||
if(e.which==40&&index<$items.length-1)index++;// down
|
||
if(!~index)index=0;$items.eq(index).trigger('focus');};function clearMenus(e){if(e&&e.which===3)return;$(backdrop).remove();$(toggle).each(function(){var $this=$(this);var $parent=getParent($this);var relatedTarget={relatedTarget:this};if(!$parent.hasClass('open'))return;$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget));if(e.isDefaultPrevented())return;$this.attr('aria-expanded','false');$parent.removeClass('open').trigger('hidden.bs.dropdown',relatedTarget);});}function getParent($this){var selector=$this.attr('data-target');if(!selector){selector=$this.attr('href');selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'');// strip for ie7
|
||
}var $parent=selector&&$(selector);return $parent&&$parent.length?$parent:$this.parent();}// DROPDOWN PLUGIN DEFINITION
|
||
// ==========================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.dropdown');if(!data)$this.data('bs.dropdown',data=new Dropdown(this));if(typeof option=='string')data[option].call($this);});}var old=$.fn.dropdown;$.fn.dropdown=Plugin;$.fn.dropdown.Constructor=Dropdown;// DROPDOWN NO CONFLICT
|
||
// ====================
|
||
$.fn.dropdown.noConflict=function(){$.fn.dropdown=old;return this;};// APPLY TO STANDARD DROPDOWN ELEMENTS
|
||
// ===================================
|
||
$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation();}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','[role="menu"]',Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','[role="listbox"]',Dropdown.prototype.keydown);}(jQuery);/* ========================================================================
|
||
* Bootstrap: modal.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#modals
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// MODAL CLASS DEFINITION
|
||
// ======================
|
||
var Modal=function Modal(element,options){this.options=options;this.$body=$(document.body);this.$element=$(element);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal');},this));}};Modal.VERSION='3.3.0';Modal.TRANSITION_DURATION=300;Modal.BACKDROP_TRANSITION_DURATION=150;Modal.DEFAULTS={backdrop:true,keyboard:true,show:true};Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget);};Modal.prototype.show=function(_relatedTarget){var that=this;var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget});this.$element.trigger(e);if(this.isShown||e.isDefaultPrevented())return;this.isShown=true;this.checkScrollbar();this.$body.addClass('modal-open');this.setScrollbar();this.escape();this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this));this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade');if(!that.$element.parent().length){that.$element.appendTo(that.$body);// don't move modals dom position
|
||
}that.$element.show().scrollTop(0);if(transition){that.$element[0].offsetWidth;// force reflow
|
||
}that.$element.addClass('in').attr('aria-hidden',false);that.enforceFocus();var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget});transition?that.$element.find('.modal-dialog')// wait for modal to slide in
|
||
.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e);}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e);});};Modal.prototype.hide=function(e){if(e)e.preventDefault();e=$.Event('hide.bs.modal');this.$element.trigger(e);if(!this.isShown||e.isDefaultPrevented())return;this.isShown=false;this.escape();$(document).off('focusin.bs.modal');this.$element.removeClass('in').attr('aria-hidden',true).off('click.dismiss.bs.modal');$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal();};Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal')// guard against infinite focus loop
|
||
.on('focusin.bs.modal',$.proxy(function(e){if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus');}},this));};Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide();},this));}else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal');}};Modal.prototype.hideModal=function(){var that=this;this.$element.hide();this.backdrop(function(){that.$body.removeClass('modal-open');that.resetScrollbar();that.$element.trigger('hidden.bs.modal');});};Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null;};Modal.prototype.backdrop=function(callback){var that=this;var animate=this.$element.hasClass('fade')?'fade':'';if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate;this.$backdrop=$('<div class="modal-backdrop '+animate+'" />').prependTo(this.$element).on('click.dismiss.bs.modal',$.proxy(function(e){if(e.target!==e.currentTarget)return;this.options.backdrop=='static'?this.$element[0].focus.call(this.$element[0]):this.hide.call(this);},this));if(doAnimate)this.$backdrop[0].offsetWidth;// force reflow
|
||
this.$backdrop.addClass('in');if(!callback)return;doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback();}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in');var callbackRemove=function callbackRemove(){that.removeBackdrop();callback&&callback();};$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove();}else if(callback){callback();}};Modal.prototype.checkScrollbar=function(){this.scrollbarWidth=this.measureScrollbar();};Modal.prototype.setScrollbar=function(){var bodyPad=parseInt(this.$body.css('padding-right')||0,10);if(this.scrollbarWidth)this.$body.css('padding-right',bodyPad+this.scrollbarWidth);};Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right','');};Modal.prototype.measureScrollbar=function(){// thx walsh
|
||
if(document.body.clientWidth>=window.innerWidth)return 0;var scrollDiv=document.createElement('div');scrollDiv.className='modal-scrollbar-measure';this.$body.append(scrollDiv);var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth;this.$body[0].removeChild(scrollDiv);return scrollbarWidth;};// MODAL PLUGIN DEFINITION
|
||
// =======================
|
||
function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var options=$.extend({},Modal.DEFAULTS,$this.data(),_typeof2(option)=='object'&&option);if(!data)$this.data('bs.modal',data=new Modal(this,options));if(typeof option=='string')data[option](_relatedTarget);else if(options.show)data.show(_relatedTarget);});}var old=$.fn.modal;$.fn.modal=Plugin;$.fn.modal.Constructor=Modal;// MODAL NO CONFLICT
|
||
// =================
|
||
$.fn.modal.noConflict=function(){$.fn.modal=old;return this;};// MODAL DATA-API
|
||
// ==============
|
||
$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this);var href=$this.attr('href');var $target=$($this.attr('data-target')||href&&href.replace(/.*(?=#[^\s]+$)/,''));// strip for ie7
|
||
var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data());if($this.is('a'))e.preventDefault();$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return;// only register focus restorer if modal will actually get shown
|
||
$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus');});});Plugin.call($target,option,this);});}(jQuery);/* ========================================================================
|
||
* Bootstrap: tooltip.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#tooltip
|
||
* Inspired by the original jQuery.tipsy by Jason Frame
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// TOOLTIP PUBLIC CLASS DEFINITION
|
||
// ===============================
|
||
var Tooltip=function Tooltip(element,options){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init('tooltip',element,options);};Tooltip.VERSION='3.3.0';Tooltip.TRANSITION_DURATION=150;Tooltip.DEFAULTS={animation:true,placement:'top',selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,container:false,viewport:{selector:'body',padding:0}};Tooltip.prototype.init=function(type,element,options){this.enabled=true;this.type=type;this.$element=$(element);this.options=this.getOptions(options);this.$viewport=this.options.viewport&&$(this.options.viewport.selector||this.options.viewport);var triggers=this.options.trigger.split(' ');for(var i=triggers.length;i--;){var trigger=triggers[i];if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this));}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin';var eventOut=trigger=='hover'?'mouseleave':'focusout';this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this));this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this));}}this.options.selector?this._options=$.extend({},this.options,{trigger:'manual',selector:''}):this.fixTitle();};Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS;};Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options);if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay};}return options;};Tooltip.prototype.getDelegateOptions=function(){var options={};var defaults=this.getDefaults();this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value;});return options;};Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type);if(self&&self.$tip&&self.$tip.is(':visible')){self.hoverState='in';return;}if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions());$(obj.currentTarget).data('bs.'+this.type,self);}clearTimeout(self.timeout);self.hoverState='in';if(!self.options.delay||!self.options.delay.show)return self.show();self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show();},self.options.delay.show);};Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type);if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions());$(obj.currentTarget).data('bs.'+this.type,self);}clearTimeout(self.timeout);self.hoverState='out';if(!self.options.delay||!self.options.delay.hide)return self.hide();self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide();},self.options.delay.hide);};Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!inDom)return;var that=this;var $tip=this.tip();var tipId=this.getUID(this.type);this.setContent();$tip.attr('id',tipId);this.$element.attr('aria-describedby',tipId);if(this.options.animation)$tip.addClass('fade');var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement;var autoToken=/\s?auto?\s?/i;var autoPlace=autoToken.test(placement);if(autoPlace)placement=placement.replace(autoToken,'')||'top';$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this);this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element);var pos=this.getPosition();var actualWidth=$tip[0].offsetWidth;var actualHeight=$tip[0].offsetHeight;if(autoPlace){var orgPlacement=placement;var $container=this.options.container?$(this.options.container):this.$element.parent();var containerDim=this.getPosition($container);placement=placement=='bottom'&&pos.bottom+actualHeight>containerDim.bottom?'top':placement=='top'&&pos.top-actualHeight<containerDim.top?'bottom':placement=='right'&&pos.right+actualWidth>containerDim.width?'left':placement=='left'&&pos.left-actualWidth<containerDim.left?'right':placement;$tip.removeClass(orgPlacement).addClass(placement);}var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight);this.applyPlacement(calculatedOffset,placement);var complete=function complete(){var prevHoverState=that.hoverState;that.$element.trigger('shown.bs.'+that.type);that.hoverState=null;if(prevHoverState=='out')that.leave(that);};$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete();}};Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip();var width=$tip[0].offsetWidth;var height=$tip[0].offsetHeight;// manually read margins because getBoundingClientRect includes difference
|
||
var marginTop=parseInt($tip.css('margin-top'),10);var marginLeft=parseInt($tip.css('margin-left'),10);// we must check for NaN for ie 8/9
|
||
if(isNaN(marginTop))marginTop=0;if(isNaN(marginLeft))marginLeft=0;offset.top=offset.top+marginTop;offset.left=offset.left+marginLeft;// $.fn.offset doesn't round pixel values
|
||
// so we use setOffset directly with our own function B-0
|
||
$.offset.setOffset($tip[0],$.extend({using:function using(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)});}},offset),0);$tip.addClass('in');// check to see if placing tip in new offset caused the tip to resize itself
|
||
var actualWidth=$tip[0].offsetWidth;var actualHeight=$tip[0].offsetHeight;if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight;}var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight);if(delta.left)offset.left+=delta.left;else offset.top+=delta.top;var isVertical=/top|bottom/.test(placement);var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight;var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight';$tip.offset(offset);this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical);};Tooltip.prototype.replaceArrow=function(delta,dimension,isHorizontal){this.arrow().css(isHorizontal?'left':'top',50*(1-delta/dimension)+'%').css(isHorizontal?'top':'left','');};Tooltip.prototype.setContent=function(){var $tip=this.tip();var title=this.getTitle();$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title);$tip.removeClass('fade in top bottom left right');};Tooltip.prototype.hide=function(callback){var that=this;var $tip=this.tip();var e=$.Event('hide.bs.'+this.type);function complete(){if(that.hoverState!='in')$tip.detach();that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type);callback&&callback();}this.$element.trigger(e);if(e.isDefaultPrevented())return;$tip.removeClass('in');$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete();this.hoverState=null;return this;};Tooltip.prototype.fixTitle=function(){var $e=this.$element;if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','');}};Tooltip.prototype.hasContent=function(){return this.getTitle();};Tooltip.prototype.getPosition=function($element){$element=$element||this.$element;var el=$element[0];var isBody=el.tagName=='BODY';var elRect=el.getBoundingClientRect();if(elRect.width==null){// width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
|
||
elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top});}var elOffset=isBody?{top:0,left:0}:$element.offset();var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()};var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null;return $.extend({},elRect,scroll,outerDims,elOffset);};Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:/* placement == 'right' */{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width};};Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0};if(!this.$viewport)return delta;var viewportPadding=this.options.viewport&&this.options.viewport.padding||0;var viewportDimensions=this.getPosition(this.$viewport);if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll;var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight;if(topEdgeOffset<viewportDimensions.top){// top overflow
|
||
delta.top=viewportDimensions.top-topEdgeOffset;}else if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height){// bottom overflow
|
||
delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset;}}else{var leftEdgeOffset=pos.left-viewportPadding;var rightEdgeOffset=pos.left+viewportPadding+actualWidth;if(leftEdgeOffset<viewportDimensions.left){// left overflow
|
||
delta.left=viewportDimensions.left-leftEdgeOffset;}else if(rightEdgeOffset>viewportDimensions.width){// right overflow
|
||
delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset;}}return delta;};Tooltip.prototype.getTitle=function(){var title;var $e=this.$element;var o=this.options;title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title);return title;};Tooltip.prototype.getUID=function(prefix){do{prefix+=~~(Math.random()*1000000);}while(document.getElementById(prefix));return prefix;};Tooltip.prototype.tip=function(){return this.$tip=this.$tip||$(this.options.template);};Tooltip.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow');};Tooltip.prototype.enable=function(){this.enabled=true;};Tooltip.prototype.disable=function(){this.enabled=false;};Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled;};Tooltip.prototype.toggle=function(e){var self=this;if(e){self=$(e.currentTarget).data('bs.'+this.type);if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions());$(e.currentTarget).data('bs.'+this.type,self);}}self.tip().hasClass('in')?self.leave(self):self.enter(self);};Tooltip.prototype.destroy=function(){var that=this;clearTimeout(this.timeout);this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type);});};// TOOLTIP PLUGIN DEFINITION
|
||
// =========================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tooltip');var options=_typeof2(option)=='object'&&option;var selector=options&&options.selector;if(!data&&option=='destroy')return;if(selector){if(!data)$this.data('bs.tooltip',data={});if(!data[selector])data[selector]=new Tooltip(this,options);}else{if(!data)$this.data('bs.tooltip',data=new Tooltip(this,options));}if(typeof option=='string')data[option]();});}var old=$.fn.tooltip;$.fn.tooltip=Plugin;$.fn.tooltip.Constructor=Tooltip;// TOOLTIP NO CONFLICT
|
||
// ===================
|
||
$.fn.tooltip.noConflict=function(){$.fn.tooltip=old;return this;};}(jQuery);/* ========================================================================
|
||
* Bootstrap: popover.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#popovers
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// POPOVER PUBLIC CLASS DEFINITION
|
||
// ===============================
|
||
var Popover=function Popover(element,options){this.init('popover',element,options);};if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js');Popover.VERSION='3.3.0';Popover.DEFAULTS=$.extend({},$.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>'});// NOTE: POPOVER EXTENDS tooltip.js
|
||
// ================================
|
||
Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype);Popover.prototype.constructor=Popover;Popover.prototype.getDefaults=function(){return Popover.DEFAULTS;};Popover.prototype.setContent=function(){var $tip=this.tip();var title=this.getTitle();var content=this.getContent();$tip.find('.popover-title')[this.options.html?'html':'text'](title);$tip.find('.popover-content').children().detach().end()[// we use append for html objects to maintain js events
|
||
this.options.html?typeof content=='string'?'html':'append':'text'](content);$tip.removeClass('fade top bottom left right in');// IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
|
||
// this manually by checking the contents.
|
||
if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide();};Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent();};Popover.prototype.getContent=function(){var $e=this.$element;var o=this.options;return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content);};Popover.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find('.arrow');};Popover.prototype.tip=function(){if(!this.$tip)this.$tip=$(this.options.template);return this.$tip;};// POPOVER PLUGIN DEFINITION
|
||
// =========================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.popover');var options=_typeof2(option)=='object'&&option;var selector=options&&options.selector;if(!data&&option=='destroy')return;if(selector){if(!data)$this.data('bs.popover',data={});if(!data[selector])data[selector]=new Popover(this,options);}else{if(!data)$this.data('bs.popover',data=new Popover(this,options));}if(typeof option=='string')data[option]();});}var old=$.fn.popover;$.fn.popover=Plugin;$.fn.popover.Constructor=Popover;// POPOVER NO CONFLICT
|
||
// ===================
|
||
$.fn.popover.noConflict=function(){$.fn.popover=old;return this;};}(jQuery);/* ========================================================================
|
||
* Bootstrap: tab.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#tabs
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// TAB CLASS DEFINITION
|
||
// ====================
|
||
var Tab=function Tab(element){this.element=$(element);};Tab.VERSION='3.3.0';Tab.TRANSITION_DURATION=150;Tab.prototype.show=function(){var $this=this.element;var $ul=$this.closest('ul:not(.dropdown-menu)');var selector=$this.data('target');if(!selector){selector=$this.attr('href');selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'');// strip for ie7
|
||
}if($this.parent('li').hasClass('active'))return;var $previous=$ul.find('.active:last a');var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]});var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]});$previous.trigger(hideEvent);$this.trigger(showEvent);if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return;var $target=$(selector);this.activate($this.closest('li'),$ul);this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]});$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]});});};Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active');var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length);function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false);element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true);if(transition){element[0].offsetWidth;// reflow for transition
|
||
element.addClass('in');}else{element.removeClass('fade');}if(element.parent('.dropdown-menu')){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true);}callback&&callback();}$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next();$active.removeClass('in');};// TAB PLUGIN DEFINITION
|
||
// =====================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this.data('bs.tab',data=new Tab(this));if(typeof option=='string')data[option]();});}var old=$.fn.tab;$.fn.tab=Plugin;$.fn.tab.Constructor=Tab;// TAB NO CONFLICT
|
||
// ===============
|
||
$.fn.tab.noConflict=function(){$.fn.tab=old;return this;};// TAB DATA-API
|
||
// ============
|
||
var clickHandler=function clickHandler(e){e.preventDefault();Plugin.call($(this),'show');};$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler);}(jQuery);/* ========================================================================
|
||
* Bootstrap: affix.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#affix
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// AFFIX CLASS DEFINITION
|
||
// ======================
|
||
var Affix=function Affix(element,options){this.options=$.extend({},Affix.DEFAULTS,options);this.$target=$(this.options.target).on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this));this.$element=$(element);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition();};Affix.VERSION='3.3.0';Affix.RESET='affix affix-top affix-bottom';Affix.DEFAULTS={offset:0,target:window};Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop();var position=this.$element.offset();var targetHeight=this.$target.height();if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false;if(this.affixed=='bottom'){if(offsetTop!=null)return scrollTop+this.unpin<=position.top?false:'bottom';return scrollTop+targetHeight<=scrollHeight-offsetBottom?false:'bottom';}var initializing=this.affixed==null;var colliderTop=initializing?scrollTop:position.top;var colliderHeight=initializing?targetHeight:height;if(offsetTop!=null&&colliderTop<=offsetTop)return'top';if(offsetBottom!=null&&colliderTop+colliderHeight>=scrollHeight-offsetBottom)return'bottom';return false;};Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(Affix.RESET).addClass('affix');var scrollTop=this.$target.scrollTop();var position=this.$element.offset();return this.pinnedOffset=position.top-scrollTop;};Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1);};Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return;var height=this.$element.height();var offset=this.options.offset;var offsetTop=offset.top;var offsetBottom=offset.bottom;var scrollHeight=$('body').height();if(_typeof2(offset)!='object')offsetBottom=offsetTop=offset;if(typeof offsetTop=='function')offsetTop=offset.top(this.$element);if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element);var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom);if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','');var affixType='affix'+(affix?'-'+affix:'');var e=$.Event(affixType+'.bs.affix');this.$element.trigger(e);if(e.isDefaultPrevented())return;this.affixed=affix;this.unpin=affix=='bottom'?this.getPinnedOffset():null;this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix');}if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom});}};// AFFIX PLUGIN DEFINITION
|
||
// =======================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.affix');var options=_typeof2(option)=='object'&&option;if(!data)$this.data('bs.affix',data=new Affix(this,options));if(typeof option=='string')data[option]();});}var old=$.fn.affix;$.fn.affix=Plugin;$.fn.affix.Constructor=Affix;// AFFIX NO CONFLICT
|
||
// =================
|
||
$.fn.affix.noConflict=function(){$.fn.affix=old;return this;};// AFFIX DATA-API
|
||
// ==============
|
||
$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this);var data=$spy.data();data.offset=data.offset||{};if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom;if(data.offsetTop!=null)data.offset.top=data.offsetTop;Plugin.call($spy,data);});});}(jQuery);/* ========================================================================
|
||
* Bootstrap: collapse.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#collapse
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// COLLAPSE PUBLIC CLASS DEFINITION
|
||
// ================================
|
||
var Collapse=function Collapse(element,options){this.$element=$(element);this.options=$.extend({},Collapse.DEFAULTS,options);this.$trigger=$(this.options.trigger).filter('[href="#'+element.id+'"], [data-target="#'+element.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getParent();}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger);}if(this.options.toggle)this.toggle();};Collapse.VERSION='3.3.0';Collapse.TRANSITION_DURATION=350;Collapse.DEFAULTS={toggle:true,trigger:'[data-toggle="collapse"]'};Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width');return hasWidth?'width':'height';};Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return;var activesData;var actives=this.$parent&&this.$parent.find('> .panel').children('.in, .collapsing');if(actives&&actives.length){activesData=actives.data('bs.collapse');if(activesData&&activesData.transitioning)return;}var startEvent=$.Event('show.bs.collapse');this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;if(actives&&actives.length){Plugin.call(actives,'hide');activesData||actives.data('bs.collapse',null);}var dimension=this.dimension();this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true);this.$trigger.removeClass('collapsed').attr('aria-expanded',true);this.transitioning=1;var complete=function complete(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('');this.transitioning=0;this.$element.trigger('shown.bs.collapse');};if(!$.support.transition)return complete.call(this);var scrollSize=$.camelCase(['scroll',dimension].join('-'));this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize]);};Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return;var startEvent=$.Event('hide.bs.collapse');this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var dimension=this.dimension();this.$element[dimension](this.$element[dimension]())[0].offsetHeight;this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false);this.$trigger.addClass('collapsed').attr('aria-expanded',false);this.transitioning=1;var complete=function complete(){this.transitioning=0;this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse');};if(!$.support.transition)return complete.call(this);this.$element[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION);};Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']();};Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element);this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element);},this)).end();};Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in');$element.attr('aria-expanded',isOpen);$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen);};function getTargetFromTrigger($trigger){var href;var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'');// strip for ie7
|
||
return $(target);}// COLLAPSE PLUGIN DEFINITION
|
||
// ==========================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.collapse');var options=$.extend({},Collapse.DEFAULTS,$this.data(),_typeof2(option)=='object'&&option);if(!data&&options.toggle&&option=='show')options.toggle=false;if(!data)$this.data('bs.collapse',data=new Collapse(this,options));if(typeof option=='string')data[option]();});}var old=$.fn.collapse;$.fn.collapse=Plugin;$.fn.collapse.Constructor=Collapse;// COLLAPSE NO CONFLICT
|
||
// ====================
|
||
$.fn.collapse.noConflict=function(){$.fn.collapse=old;return this;};// COLLAPSE DATA-API
|
||
// =================
|
||
$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this);if(!$this.attr('data-target'))e.preventDefault();var $target=getTargetFromTrigger($this);var data=$target.data('bs.collapse');var option=data?'toggle':$.extend({},$this.data(),{trigger:this});Plugin.call($target,option);});}(jQuery);/* ========================================================================
|
||
* Bootstrap: scrollspy.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#scrollspy
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// SCROLLSPY CLASS DEFINITION
|
||
// ==========================
|
||
function ScrollSpy(element,options){var process=$.proxy(this.process,this);this.$body=$('body');this.$scrollElement=$(element).is('body')?$(window):$(element);this.options=$.extend({},ScrollSpy.DEFAULTS,options);this.selector=(this.options.target||'')+' .nav li > a';this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on('scroll.bs.scrollspy',process);this.refresh();this.process();}ScrollSpy.VERSION='3.3.0';ScrollSpy.DEFAULTS={offset:10};ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight);};ScrollSpy.prototype.refresh=function(){var offsetMethod='offset';var offsetBase=0;if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position';offsetBase=this.$scrollElement.scrollTop();}this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();var self=this;this.$body.find(this.selector).map(function(){var $el=$(this);var href=$el.data('target')||$el.attr('href');var $href=/^#./.test(href)&&$(href);return $href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]]||null;}).sort(function(a,b){return a[0]-b[0];}).each(function(){self.offsets.push(this[0]);self.targets.push(this[1]);});};ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset;var scrollHeight=this.getScrollHeight();var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height();var offsets=this.offsets;var targets=this.targets;var activeTarget=this.activeTarget;var i;if(this.scrollHeight!=scrollHeight){this.refresh();}if(scrollTop>=maxScroll){return activeTarget!=(i=targets[targets.length-1])&&this.activate(i);}if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null;return this.clear();}for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(!offsets[i+1]||scrollTop<=offsets[i+1])&&this.activate(targets[i]);}};ScrollSpy.prototype.activate=function(target){this.activeTarget=target;this.clear();var selector=this.selector+'[data-target="'+target+'"],'+this.selector+'[href="'+target+'"]';var active=$(selector).parents('li').addClass('active');if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active');}active.trigger('activate.bs.scrollspy');};ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active');};// SCROLLSPY PLUGIN DEFINITION
|
||
// ===========================
|
||
function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.scrollspy');var options=_typeof2(option)=='object'&&option;if(!data)$this.data('bs.scrollspy',data=new ScrollSpy(this,options));if(typeof option=='string')data[option]();});}var old=$.fn.scrollspy;$.fn.scrollspy=Plugin;$.fn.scrollspy.Constructor=ScrollSpy;// SCROLLSPY NO CONFLICT
|
||
// =====================
|
||
$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old;return this;};// SCROLLSPY DATA-API
|
||
// ==================
|
||
$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this);Plugin.call($spy,$spy.data());});});}(jQuery);/* ========================================================================
|
||
* Bootstrap: transition.js v3.3.0
|
||
* http://getbootstrap.com/javascript/#transitions
|
||
* ========================================================================
|
||
* Copyright 2011-2014 Twitter, Inc.
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
* ======================================================================== */+function($){'use strict';// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
||
// ============================================================
|
||
function transitionEnd(){var el=document.createElement('bootstrap');var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]};}}return false;// explicit for ie8 ( ._.)
|
||
}// http://blog.alexmaccaw.com/css-transitions
|
||
$.fn.emulateTransitionEnd=function(duration){var called=false;var $el=this;$(this).one('bsTransitionEnd',function(){called=true;});var callback=function callback(){if(!called)$($el).trigger($.support.transition.end);};setTimeout(callback,duration);return this;};$(function(){$.support.transition=transitionEnd();if(!$.support.transition)return;$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function handle(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments);}};});}(jQuery);/*!
|
||
* Bootstrap Context Menu
|
||
* Author: @sydcanem
|
||
* https://github.com/sydcanem/bootstrap-contextmenu
|
||
*
|
||
* Inspired by Bootstrap's dropdown plugin.
|
||
* Bootstrap (http://getbootstrap.com).
|
||
*
|
||
* Licensed under MIT
|
||
* ========================================================= */;(function($){'use strict';/* CONTEXTMENU CLASS DEFINITION
|
||
* ============================ */var toggle='[data-toggle="context"]';var ContextMenu=function ContextMenu(element,options){this.$element=$(element);this.before=options.before||this.before;this.onItem=options.onItem||this.onItem;this.scopes=options.scopes||null;if(options.target){this.$element.data('target',options.target);}this.listen();};ContextMenu.prototype={constructor:ContextMenu,show:function show(e){var $menu,evt,tp,items,relatedTarget={relatedTarget:this};if(this.isDisabled())return;this.closemenu();if(!this.before.call(this,e,$(e.currentTarget)))return;$menu=this.getMenu();$menu.trigger(evt=$.Event('show.bs.context',relatedTarget));tp=this.getPosition(e,$menu);items='li:not(.divider)';$menu.attr('style','').css(tp).addClass('open').on('click.context.data-api',items,$.proxy(this.onItem,this,$(e.currentTarget))).trigger('shown.bs.context',relatedTarget);// Delegating the `closemenu` only on the currently opened menu.
|
||
// This prevents other opened menus from closing.
|
||
$('html').on('click.context.data-api',$menu.selector,$.proxy(this.closemenu,this));return false;},closemenu:function closemenu(e){var $menu,evt,items,relatedTarget;$menu=this.getMenu();if(!$menu.hasClass('open'))return;relatedTarget={relatedTarget:this};$menu.trigger(evt=$.Event('hide.bs.context',relatedTarget));items='li:not(.divider)';$menu.removeClass('open').off('click.context.data-api',items).trigger('hidden.bs.context',relatedTarget);$('html').off('click.context.data-api',$menu.selector);// Don't propagate click event so other currently
|
||
// opened menus won't close.
|
||
return false;},keydown:function keydown(e){if(e.which==27)this.closemenu(e);},before:function before(e){return true;},onItem:function onItem(e){return true;},listen:function listen(){this.$element.on('contextmenu.context.data-api',this.scopes,$.proxy(this.show,this));$('html').on('click.context.data-api',$.proxy(this.closemenu,this));$('html').on('keydown.context.data-api',$.proxy(this.keydown,this));},destroy:function destroy(){this.$element.off('.context.data-api').removeData('context');$('html').off('.context.data-api');},isDisabled:function isDisabled(){return this.$element.hasClass('disabled')||this.$element.attr('disabled');},getMenu:function getMenu(){var selector=this.$element.data('target'),$menu;if(!selector){selector=this.$element.attr('href');selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'');//strip for ie7
|
||
}$menu=$(selector);return $menu&&$menu.length?$menu:this.$element.find(selector);},getPosition:function getPosition(e,$menu){var mouseX=e.clientX,mouseY=e.clientY,boundsX=$(window).width(),boundsY=$(window).height(),menuWidth=$menu.find('.dropdown-menu').outerWidth(),menuHeight=$menu.find('.dropdown-menu').outerHeight(),tp={"position":"absolute","z-index":9999},Y,X,parentOffset;if(mouseY+menuHeight>boundsY){Y={"top":mouseY-menuHeight+$(window).scrollTop()};}else{Y={"top":mouseY+$(window).scrollTop()};}if(mouseX+menuWidth>boundsX&&mouseX-menuWidth>0){X={"left":mouseX-menuWidth+$(window).scrollLeft()};}else{X={"left":mouseX+$(window).scrollLeft()};}// If context-menu's parent is positioned using absolute or relative positioning,
|
||
// the calculated mouse position will be incorrect.
|
||
// Adjust the position of the menu by its offset parent position.
|
||
parentOffset=$menu.offsetParent().offset();X.left=X.left-parentOffset.left;Y.top=Y.top-parentOffset.top;return $.extend(tp,Y,X);}};/* CONTEXT MENU PLUGIN DEFINITION
|
||
* ========================== */$.fn.contextmenu=function(option,e){return this.each(function(){var $this=$(this),data=$this.data('context'),options=_typeof2(option)=='object'&&option;if(!data)$this.data('context',data=new ContextMenu($this,options));if(typeof option=='string')data[option].call(data,e);});};$.fn.contextmenu.Constructor=ContextMenu;/* APPLY TO STANDARD CONTEXT MENU ELEMENTS
|
||
* =================================== */$(document).on('contextmenu.context.data-api',function(){$(toggle).each(function(){var data=$(this).data('context');if(!data)return;data.closemenu();});}).on('contextmenu.context.data-api',toggle,function(e){$(this).contextmenu('show',e);e.preventDefault();e.stopPropagation();});})(jQuery);/*@preserve
|
||
* Tempus Dominus Bootstrap3 v5.0.0-alpha10 (https://tempusdominus.github.io/bootstrap-3/)
|
||
* Copyright 2016-2020 Jonathan Peterson
|
||
* Licensed under MIT (https://github.com/tempusdominus/bootstrap-3/blob/master/LICENSE)
|
||
*/if(typeof jQuery==='undefined'){throw new Error('Tempus Dominus Bootstrap3\'s requires jQuery. jQuery must be included before Tempus Dominus Bootstrap3\'s JavaScript.');}+function($){var version=$.fn.jquery.split(' ')[0].split('.');if(version[0]<2&&version[1]<9||version[0]===1&&version[1]===9&&version[2]<1||version[0]>=4){throw new Error('Tempus Dominus Bootstrap3\'s requires at least jQuery v3.0.0 but less than v4.0.0');}}(jQuery);if(typeof moment==='undefined'){throw new Error('Tempus Dominus Bootstrap3\'s requires moment.js. Moment.js must be included before Tempus Dominus Bootstrap3\'s JavaScript.');}var 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(){var _typeof=typeof Symbol==="function"&&_typeof2(Symbol.iterator)==="symbol"?function(obj){return _typeof2(obj);}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj);};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(_typeof2(call)==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+_typeof2(superClass));}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}// ReSharper disable once InconsistentNaming
|
||
var DateTimePicker=function($,moment){// ReSharper disable InconsistentNaming
|
||
var NAME='datetimepicker',DATA_KEY=''+NAME,EVENT_KEY='.'+DATA_KEY,DATA_API_KEY='.data-api',Selector={DATA_TOGGLE:'[data-toggle="'+DATA_KEY+'"]'},ClassName={INPUT:NAME+'-input'},Event={CHANGE:'change'+EVENT_KEY,BLUR:'blur'+EVENT_KEY,KEYUP:'keyup'+EVENT_KEY,KEYDOWN:'keydown'+EVENT_KEY,FOCUS:'focus'+EVENT_KEY,CLICK_DATA_API:'click'+EVENT_KEY+DATA_API_KEY,//emitted
|
||
UPDATE:'update'+EVENT_KEY,ERROR:'error'+EVENT_KEY,HIDE:'hide'+EVENT_KEY,SHOW:'show'+EVENT_KEY},DatePickerModes=[{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}],KeyMap={'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'},ViewModes=['times','days','months','years','decades'],keyState={},keyPressHandled={};var MinViewModeNumber=0,Default={timeZone:'',format:false,dayViewHeaderFormat:'MMMM YYYY',extraFormats:false,stepping:1,minDate:false,maxDate:false,useCurrent:true,collapse:true,locale:moment.locale(),defaultDate:false,disabledDates:false,enabledDates:false,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:false,sideBySide:false,daysOfWeekDisabled:false,calendarWeeks:false,viewMode:'days',toolbarPlacement:'default',buttons:{showToday:false,showClear:false,showClose:false},widgetPositioning:{horizontal:'auto',vertical:'auto'},widgetParent:null,ignoreReadonly:false,keepOpen:false,focusOnShow:true,inline:false,keepInvalid:false,keyBinds:{up:function up(){if(!this.widget){return false;}var d=this._dates[0]||this.getMoment();if(this.widget.find('.datepicker').is(':visible')){this.date(d.clone().subtract(7,'d'));}else{this.date(d.clone().add(this.stepping(),'m'));}return true;},down:function down(){if(!this.widget){this.show();return false;}var d=this._dates[0]||this.getMoment();if(this.widget.find('.datepicker').is(':visible')){this.date(d.clone().add(7,'d'));}else{this.date(d.clone().subtract(this.stepping(),'m'));}return true;},'control up':function controlUp(){if(!this.widget){return false;}var d=this._dates[0]||this.getMoment();if(this.widget.find('.datepicker').is(':visible')){this.date(d.clone().subtract(1,'y'));}else{this.date(d.clone().add(1,'h'));}return true;},'control down':function controlDown(){if(!this.widget){return false;}var d=this._dates[0]||this.getMoment();if(this.widget.find('.datepicker').is(':visible')){this.date(d.clone().add(1,'y'));}else{this.date(d.clone().subtract(1,'h'));}return true;},left:function left(){if(!this.widget){return false;}var d=this._dates[0]||this.getMoment();if(this.widget.find('.datepicker').is(':visible')){this.date(d.clone().subtract(1,'d'));}return true;},right:function right(){if(!this.widget){return false;}var d=this._dates[0]||this.getMoment();if(this.widget.find('.datepicker').is(':visible')){this.date(d.clone().add(1,'d'));}return true;},pageUp:function pageUp(){if(!this.widget){return false;}var d=this._dates[0]||this.getMoment();if(this.widget.find('.datepicker').is(':visible')){this.date(d.clone().subtract(1,'M'));}return true;},pageDown:function pageDown(){if(!this.widget){return false;}var d=this._dates[0]||this.getMoment();if(this.widget.find('.datepicker').is(':visible')){this.date(d.clone().add(1,'M'));}return true;},enter:function enter(){if(!this.widget){return false;}this.hide();return true;},escape:function escape(){if(!this.widget){return false;}this.hide();return true;},'control space':function controlSpace(){if(!this.widget){return false;}if(this.widget.find('.timepicker').is(':visible')){this.widget.find('.btn[data-action="togglePeriod"]').click();}return true;},t:function t(){if(!this.widget){return false;}this.date(this.getMoment());return true;},'delete':function _delete(){if(!this.widget){return false;}this.clear();return true;}},debug:false,allowInputToggle:false,disabledTimeIntervals:false,disabledHours:false,enabledHours:false,viewDate:false,allowMultidate:false,multidateSeparator:','};// ReSharper restore InconsistentNaming
|
||
// ReSharper disable once DeclarationHides
|
||
// ReSharper disable once InconsistentNaming
|
||
var DateTimePicker=function(){/** @namespace eData.dateOptions */ /** @namespace moment.tz */function DateTimePicker(element,options){_classCallCheck(this,DateTimePicker);this._options=this._getOptions(options);this._element=element;this._dates=[];this._datesFormatted=[];this._viewDate=null;this.unset=true;this.component=false;this.widget=false;this.use24Hours=null;this.actualFormat=null;this.parseFormats=null;this.currentViewMode=null;this._int();}/**
|
||
* @return {string}
|
||
*/ //private
|
||
DateTimePicker.prototype._int=function _int(){var targetInput=this._element.data('target-input');if(this._element.is('input')){this.input=this._element;}else if(targetInput!==undefined){if(targetInput==='nearest'){this.input=this._element.find('input');}else{this.input=$(targetInput);}}this._dates=[];this._dates[0]=this.getMoment();this._viewDate=this.getMoment().clone();$.extend(true,this._options,this._dataToOptions());this.options(this._options);this._initFormatting();if(this.input!==undefined&&this.input.is('input')&&this.input.val().trim().length!==0){this._setValue(this._parseInputDate(this.input.val().trim()),0);}else if(this._options.defaultDate&&this.input!==undefined&&this.input.attr('placeholder')===undefined){this._setValue(this._options.defaultDate,0);}if(this._options.inline){this.show();}};DateTimePicker.prototype._update=function _update(){if(!this.widget){return;}this._fillDate();this._fillTime();};DateTimePicker.prototype._setValue=function _setValue(targetMoment,index){var oldDate=this.unset?null:this._dates[index];var outpValue='';// case of calling setValue(null or false)
|
||
if(!targetMoment){if(!this._options.allowMultidate||this._dates.length===1){this.unset=true;this._dates=[];this._datesFormatted=[];}else{outpValue=this._element.data('date')+',';outpValue=outpValue.replace(oldDate.format(this.actualFormat)+',','').replace(',,','').replace(/,\s*$/,'');this._dates.splice(index,1);this._datesFormatted.splice(index,1);}if(this.input!==undefined){this.input.val(outpValue);this.input.trigger('input');}this._element.data('date',outpValue);this._notifyEvent({type:DateTimePicker.Event.CHANGE,date:false,oldDate:oldDate});this._update();return;}targetMoment=targetMoment.clone().locale(this._options.locale);if(this._hasTimeZone()){targetMoment.tz(this._options.timeZone);}if(this._options.stepping!==1){targetMoment.minutes(Math.round(targetMoment.minutes()/this._options.stepping)*this._options.stepping).seconds(0);}if(this._isValid(targetMoment)){this._dates[index]=targetMoment;this._datesFormatted[index]=targetMoment.format('YYYY-MM-DD');this._viewDate=targetMoment.clone();if(this._options.allowMultidate&&this._dates.length>1){for(var i=0;i<this._dates.length;i++){outpValue+=''+this._dates[i].format(this.actualFormat)+this._options.multidateSeparator;}outpValue=outpValue.replace(/,\s*$/,'');}else{outpValue=this._dates[index].format(this.actualFormat);}if(this.input!==undefined){this.input.val(outpValue);this.input.trigger('input');}this._element.data('date',outpValue);this.unset=false;this._update();this._notifyEvent({type:DateTimePicker.Event.CHANGE,date:this._dates[index].clone(),oldDate:oldDate});}else{if(!this._options.keepInvalid){if(this.input!==undefined){this.input.val(''+(this.unset?'':this._dates[index].format(this.actualFormat)));this.input.trigger('input');}}else{this._notifyEvent({type:DateTimePicker.Event.CHANGE,date:targetMoment,oldDate:oldDate});}this._notifyEvent({type:DateTimePicker.Event.ERROR,date:targetMoment,oldDate:oldDate});}};DateTimePicker.prototype._change=function _change(e){var val=$(e.target).val().trim(),parsedDate=val?this._parseInputDate(val):null;this._setValue(parsedDate);e.stopImmediatePropagation();return false;};//noinspection JSMethodCanBeStatic
|
||
DateTimePicker.prototype._getOptions=function _getOptions(options){options=$.extend(true,{},Default,options);return options;};DateTimePicker.prototype._hasTimeZone=function _hasTimeZone(){return moment.tz!==undefined&&this._options.timeZone!==undefined&&this._options.timeZone!==null&&this._options.timeZone!=='';};DateTimePicker.prototype._isEnabled=function _isEnabled(granularity){if(typeof granularity!=='string'||granularity.length>1){throw new TypeError('isEnabled expects a single character string parameter');}switch(granularity){case'y':return this.actualFormat.indexOf('Y')!==-1;case'M':return this.actualFormat.indexOf('M')!==-1;case'd':return this.actualFormat.toLowerCase().indexOf('d')!==-1;case'h':case'H':return this.actualFormat.toLowerCase().indexOf('h')!==-1;case'm':return this.actualFormat.indexOf('m')!==-1;case's':return this.actualFormat.indexOf('s')!==-1;case'a':case'A':return this.actualFormat.toLowerCase().indexOf('a')!==-1;default:return false;}};DateTimePicker.prototype._hasTime=function _hasTime(){return this._isEnabled('h')||this._isEnabled('m')||this._isEnabled('s');};DateTimePicker.prototype._hasDate=function _hasDate(){return this._isEnabled('y')||this._isEnabled('M')||this._isEnabled('d');};DateTimePicker.prototype._dataToOptions=function _dataToOptions(){var eData=this._element.data();var dataOptions={};if(eData.dateOptions&&eData.dateOptions instanceof Object){dataOptions=$.extend(true,dataOptions,eData.dateOptions);}$.each(this._options,function(key){var attributeName='date'+key.charAt(0).toUpperCase()+key.slice(1);//todo data api key
|
||
if(eData[attributeName]!==undefined){dataOptions[key]=eData[attributeName];}else{delete dataOptions[key];}});return dataOptions;};DateTimePicker.prototype._notifyEvent=function _notifyEvent(e){if(e.type===DateTimePicker.Event.CHANGE&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)){return;}this._element.trigger(e);};DateTimePicker.prototype._viewUpdate=function _viewUpdate(e){if(e==='y'){e='YYYY';}this._notifyEvent({type:DateTimePicker.Event.UPDATE,change:e,viewDate:this._viewDate.clone()});};DateTimePicker.prototype._showMode=function _showMode(dir){if(!this.widget){return;}if(dir){this.currentViewMode=Math.max(MinViewModeNumber,Math.min(3,this.currentViewMode+dir));}this.widget.find('.datepicker > div').hide().filter('.datepicker-'+DatePickerModes[this.currentViewMode].CLASS_NAME).show();};DateTimePicker.prototype._isInDisabledDates=function _isInDisabledDates(testDate){return this._options.disabledDates[testDate.format('YYYY-MM-DD')]===true;};DateTimePicker.prototype._isInEnabledDates=function _isInEnabledDates(testDate){return this._options.enabledDates[testDate.format('YYYY-MM-DD')]===true;};DateTimePicker.prototype._isInDisabledHours=function _isInDisabledHours(testDate){return this._options.disabledHours[testDate.format('H')]===true;};DateTimePicker.prototype._isInEnabledHours=function _isInEnabledHours(testDate){return this._options.enabledHours[testDate.format('H')]===true;};DateTimePicker.prototype._isValid=function _isValid(targetMoment,granularity){if(!targetMoment.isValid()){return false;}if(this._options.disabledDates&&granularity==='d'&&this._isInDisabledDates(targetMoment)){return false;}if(this._options.enabledDates&&granularity==='d'&&!this._isInEnabledDates(targetMoment)){return false;}if(this._options.minDate&&targetMoment.isBefore(this._options.minDate,granularity)){return false;}if(this._options.maxDate&&targetMoment.isAfter(this._options.maxDate,granularity)){return false;}if(this._options.daysOfWeekDisabled&&granularity==='d'&&this._options.daysOfWeekDisabled.indexOf(targetMoment.day())!==-1){return false;}if(this._options.disabledHours&&(granularity==='h'||granularity==='m'||granularity==='s')&&this._isInDisabledHours(targetMoment)){return false;}if(this._options.enabledHours&&(granularity==='h'||granularity==='m'||granularity==='s')&&!this._isInEnabledHours(targetMoment)){return false;}if(this._options.disabledTimeIntervals&&(granularity==='h'||granularity==='m'||granularity==='s')){var found=false;$.each(this._options.disabledTimeIntervals,function(){if(targetMoment.isBetween(this[0],this[1])){found=true;return false;}});if(found){return false;}}return true;};DateTimePicker.prototype._parseInputDate=function _parseInputDate(inputDate){if(this._options.parseInputDate===undefined){if(!moment.isMoment(inputDate)){inputDate=this.getMoment(inputDate);}}else{inputDate=this._options.parseInputDate(inputDate);}//inputDate.locale(this.options.locale);
|
||
return inputDate;};DateTimePicker.prototype._keydown=function _keydown(e){var handler=null,index=void 0,index2=void 0,keyBindKeys=void 0,allModifiersPressed=void 0;var pressedKeys=[],pressedModifiers={},currentKey=e.which,pressed='p';keyState[currentKey]=pressed;for(index in keyState){if(keyState.hasOwnProperty(index)&&keyState[index]===pressed){pressedKeys.push(index);if(parseInt(index,10)!==currentKey){pressedModifiers[index]=true;}}}for(index in this._options.keyBinds){if(this._options.keyBinds.hasOwnProperty(index)&&typeof this._options.keyBinds[index]==='function'){keyBindKeys=index.split(' ');if(keyBindKeys.length===pressedKeys.length&&KeyMap[currentKey]===keyBindKeys[keyBindKeys.length-1]){allModifiersPressed=true;for(index2=keyBindKeys.length-2;index2>=0;index2--){if(!(KeyMap[keyBindKeys[index2]]in pressedModifiers)){allModifiersPressed=false;break;}}if(allModifiersPressed){handler=this._options.keyBinds[index];break;}}}}if(handler){if(handler.call(this)){e.stopPropagation();e.preventDefault();}}};//noinspection JSMethodCanBeStatic,SpellCheckingInspection
|
||
DateTimePicker.prototype._keyup=function _keyup(e){keyState[e.which]='r';if(keyPressHandled[e.which]){keyPressHandled[e.which]=false;e.stopPropagation();e.preventDefault();}};DateTimePicker.prototype._indexGivenDates=function _indexGivenDates(givenDatesArray){// Store given enabledDates and disabledDates as keys.
|
||
// This way we can check their existence in O(1) time instead of looping through whole array.
|
||
// (for example: options.enabledDates['2014-02-27'] === true)
|
||
var givenDatesIndexed={},self=this;$.each(givenDatesArray,function(){var dDate=self._parseInputDate(this);if(dDate.isValid()){givenDatesIndexed[dDate.format('YYYY-MM-DD')]=true;}});return Object.keys(givenDatesIndexed).length?givenDatesIndexed:false;};DateTimePicker.prototype._indexGivenHours=function _indexGivenHours(givenHoursArray){// Store given enabledHours and disabledHours as keys.
|
||
// This way we can check their existence in O(1) time instead of looping through whole array.
|
||
// (for example: options.enabledHours['2014-02-27'] === true)
|
||
var givenHoursIndexed={};$.each(givenHoursArray,function(){givenHoursIndexed[this]=true;});return Object.keys(givenHoursIndexed).length?givenHoursIndexed:false;};DateTimePicker.prototype._initFormatting=function _initFormatting(){var format=this._options.format||'L LT',self=this;this.actualFormat=format.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(formatInput){return self._dates[0].localeData().longDateFormat(formatInput)||formatInput;//todo taking the first date should be ok
|
||
});this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[];if(this.parseFormats.indexOf(format)<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;if(this._isEnabled('y')){MinViewModeNumber=2;}if(this._isEnabled('M')){MinViewModeNumber=1;}if(this._isEnabled('d')){MinViewModeNumber=0;}this.currentViewMode=Math.max(MinViewModeNumber,this.currentViewMode);if(!this.unset){this._setValue(this._dates[0],0);}};/*
|
||
DateTimePicker.prototype._getLastPickedDate = function _getLastPickedDate() {
|
||
return this._dates[this._getLastPickedDateIndex()];
|
||
};
|
||
*/DateTimePicker.prototype._getLastPickedDate=function _getLastPickedDate(){var lastDate=this._dates[this._getLastPickedDateIndex()];if(typeof lastDate=="undefined"||lastDate==null){lastDate=this.getMoment();}return lastDate;};DateTimePicker.prototype._getLastPickedDateIndex=function _getLastPickedDateIndex(){return this._dates.length-1;};//public
|
||
DateTimePicker.prototype.getMoment=function getMoment(d){var returnMoment=void 0;if(d===undefined||d===null){returnMoment=moment();//TODO should this use format? and locale?
|
||
}else if(this._hasTimeZone()){// There is a string to parse and a default time zone
|
||
// parse with the tz function which takes a default time zone if it is not in the format string
|
||
returnMoment=moment.tz(d,this.parseFormats,this._options.useStrict,this._options.timeZone);}else{returnMoment=moment(d,this.parseFormats,this._options.useStrict);}if(this._hasTimeZone()){returnMoment.tz(this._options.timeZone);}return returnMoment;};DateTimePicker.prototype.toggle=function toggle(){return this.widget?this.hide():this.show();};DateTimePicker.prototype.ignoreReadonly=function ignoreReadonly(_ignoreReadonly){if(arguments.length===0){return this._options.ignoreReadonly;}if(typeof _ignoreReadonly!=='boolean'){throw new TypeError('ignoreReadonly () expects a boolean parameter');}this._options.ignoreReadonly=_ignoreReadonly;};DateTimePicker.prototype.options=function options(newOptions){if(arguments.length===0){return $.extend(true,{},this._options);}if(!(newOptions instanceof Object)){throw new TypeError('options() this.options parameter should be an object');}$.extend(true,this._options,newOptions);var self=this;$.each(this._options,function(key,value){if(self[key]!==undefined){self[key](value);}});};DateTimePicker.prototype.date=function date(newDate,index){index=index||0;if(arguments.length===0){if(this.unset){return null;}if(this._options.allowMultidate){return this._dates.join(this._options.multidateSeparator);}else{return this._dates[index].clone();}}if(newDate!==null&&typeof newDate!=='string'&&!moment.isMoment(newDate)&&!(newDate instanceof Date)){throw new TypeError('date() parameter must be one of [null, string, moment or Date]');}this._setValue(newDate===null?null:this._parseInputDate(newDate),index);};DateTimePicker.prototype.format=function format(newFormat){if(arguments.length===0){return this._options.format;}if(typeof newFormat!=='string'&&(typeof newFormat!=='boolean'||newFormat!==false)){throw new TypeError('format() expects a string or boolean:false parameter '+newFormat);}this._options.format=newFormat;if(this.actualFormat){this._initFormatting();// reinitialize formatting
|
||
}};DateTimePicker.prototype.timeZone=function timeZone(newZone){if(arguments.length===0){return this._options.timeZone;}if(typeof newZone!=='string'){throw new TypeError('newZone() expects a string parameter');}this._options.timeZone=newZone;};DateTimePicker.prototype.dayViewHeaderFormat=function dayViewHeaderFormat(newFormat){if(arguments.length===0){return this._options.dayViewHeaderFormat;}if(typeof newFormat!=='string'){throw new TypeError('dayViewHeaderFormat() expects a string parameter');}this._options.dayViewHeaderFormat=newFormat;};DateTimePicker.prototype.extraFormats=function extraFormats(formats){if(arguments.length===0){return this._options.extraFormats;}if(formats!==false&&!(formats instanceof Array)){throw new TypeError('extraFormats() expects an array or false parameter');}this._options.extraFormats=formats;if(this.parseFormats){this._initFormatting();// reinit formatting
|
||
}};DateTimePicker.prototype.disabledDates=function disabledDates(dates){if(arguments.length===0){return this._options.disabledDates?$.extend({},this._options.disabledDates):this._options.disabledDates;}if(!dates){this._options.disabledDates=false;this._update();return true;}if(!(dates instanceof Array)){throw new TypeError('disabledDates() expects an array parameter');}this._options.disabledDates=this._indexGivenDates(dates);this._options.enabledDates=false;this._update();};DateTimePicker.prototype.enabledDates=function enabledDates(dates){if(arguments.length===0){return this._options.enabledDates?$.extend({},this._options.enabledDates):this._options.enabledDates;}if(!dates){this._options.enabledDates=false;this._update();return true;}if(!(dates instanceof Array)){throw new TypeError('enabledDates() expects an array parameter');}this._options.enabledDates=this._indexGivenDates(dates);this._options.disabledDates=false;this._update();};DateTimePicker.prototype.daysOfWeekDisabled=function daysOfWeekDisabled(_daysOfWeekDisabled){if(arguments.length===0){return this._options.daysOfWeekDisabled.splice(0);}if(typeof _daysOfWeekDisabled==='boolean'&&!_daysOfWeekDisabled){this._options.daysOfWeekDisabled=false;this._update();return true;}if(!(_daysOfWeekDisabled instanceof Array)){throw new TypeError('daysOfWeekDisabled() expects an array parameter');}this._options.daysOfWeekDisabled=_daysOfWeekDisabled.reduce(function(previousValue,currentValue){currentValue=parseInt(currentValue,10);if(currentValue>6||currentValue<0||isNaN(currentValue)){return previousValue;}if(previousValue.indexOf(currentValue)===-1){previousValue.push(currentValue);}return previousValue;},[]).sort();if(this._options.useCurrent&&!this._options.keepInvalid){for(var i=0;i<this._dates.length;i++){var tries=0;while(!this._isValid(this._dates[i],'d')){this._dates[i].add(1,'d');if(tries===31){throw'Tried 31 times to find a valid date';}tries++;}this._setValue(this._dates[i],i);}}this._update();};DateTimePicker.prototype.maxDate=function maxDate(_maxDate){if(arguments.length===0){return this._options.maxDate?this._options.maxDate.clone():this._options.maxDate;}if(typeof _maxDate==='boolean'&&_maxDate===false){this._options.maxDate=false;this._update();return true;}if(typeof _maxDate==='string'){if(_maxDate==='now'||_maxDate==='moment'){_maxDate=this.getMoment();}}var parsedDate=this._parseInputDate(_maxDate);if(!parsedDate.isValid()){throw new TypeError('maxDate() Could not parse date parameter: '+_maxDate);}if(this._options.minDate&&parsedDate.isBefore(this._options.minDate)){throw new TypeError('maxDate() date parameter is before this.options.minDate: '+parsedDate.format(this.actualFormat));}this._options.maxDate=parsedDate;for(var i=0;i<this._dates.length;i++){if(this._options.useCurrent&&!this._options.keepInvalid&&this._dates[i].isAfter(_maxDate)){this._setValue(this._options.maxDate,i);}}if(this._viewDate.isAfter(parsedDate)){this._viewDate=parsedDate.clone().subtract(this._options.stepping,'m');}this._update();};DateTimePicker.prototype.minDate=function minDate(_minDate){if(arguments.length===0){return this._options.minDate?this._options.minDate.clone():this._options.minDate;}if(typeof _minDate==='boolean'&&_minDate===false){this._options.minDate=false;this._update();return true;}if(typeof _minDate==='string'){if(_minDate==='now'||_minDate==='moment'){_minDate=this.getMoment();}}var parsedDate=this._parseInputDate(_minDate);if(!parsedDate.isValid()){throw new TypeError('minDate() Could not parse date parameter: '+_minDate);}if(this._options.maxDate&&parsedDate.isAfter(this._options.maxDate)){throw new TypeError('minDate() date parameter is after this.options.maxDate: '+parsedDate.format(this.actualFormat));}this._options.minDate=parsedDate;for(var i=0;i<this._dates.length;i++){if(this._options.useCurrent&&!this._options.keepInvalid&&this._dates[i].isBefore(_minDate)){this._setValue(this._options.minDate,i);}}if(this._viewDate.isBefore(parsedDate)){this._viewDate=parsedDate.clone().add(this._options.stepping,'m');}this._update();};DateTimePicker.prototype.defaultDate=function defaultDate(_defaultDate){if(arguments.length===0){return this._options.defaultDate?this._options.defaultDate.clone():this._options.defaultDate;}if(!_defaultDate){this._options.defaultDate=false;return true;}if(typeof _defaultDate==='string'){if(_defaultDate==='now'||_defaultDate==='moment'){_defaultDate=this.getMoment();}else{_defaultDate=this.getMoment(_defaultDate);}}var parsedDate=this._parseInputDate(_defaultDate);if(!parsedDate.isValid()){throw new TypeError('defaultDate() Could not parse date parameter: '+_defaultDate);}if(!this._isValid(parsedDate)){throw new TypeError('defaultDate() date passed is invalid according to component setup validations');}this._options.defaultDate=parsedDate;if(this._options.defaultDate&&this._options.inline||this.input!==undefined&&this.input.val().trim()===''){this._setValue(this._options.defaultDate,0);}};DateTimePicker.prototype.locale=function locale(_locale){if(arguments.length===0){return this._options.locale;}if(!moment.localeData(_locale)){throw new TypeError('locale() locale '+_locale+' is not loaded from moment locales!');}this._options.locale=_locale;for(var i=0;i<this._dates.length;i++){this._dates[i].locale(this._options.locale);}this._viewDate.locale(this._options.locale);if(this.actualFormat){this._initFormatting();// reinitialize formatting
|
||
}if(this.widget){this.hide();this.show();}};DateTimePicker.prototype.stepping=function stepping(_stepping){if(arguments.length===0){return this._options.stepping;}_stepping=parseInt(_stepping,10);if(isNaN(_stepping)||_stepping<1){_stepping=1;}this._options.stepping=_stepping;};DateTimePicker.prototype.useCurrent=function useCurrent(_useCurrent){var useCurrentOptions=['year','month','day','hour','minute'];if(arguments.length===0){return this._options.useCurrent;}if(typeof _useCurrent!=='boolean'&&typeof _useCurrent!=='string'){throw new TypeError('useCurrent() expects a boolean or string parameter');}if(typeof _useCurrent==='string'&&useCurrentOptions.indexOf(_useCurrent.toLowerCase())===-1){throw new TypeError('useCurrent() expects a string parameter of '+useCurrentOptions.join(', '));}this._options.useCurrent=_useCurrent;};DateTimePicker.prototype.collapse=function collapse(_collapse){if(arguments.length===0){return this._options.collapse;}if(typeof _collapse!=='boolean'){throw new TypeError('collapse() expects a boolean parameter');}if(this._options.collapse===_collapse){return true;}this._options.collapse=_collapse;if(this.widget){this.hide();this.show();}};DateTimePicker.prototype.icons=function icons(_icons){if(arguments.length===0){return $.extend({},this._options.icons);}if(!(_icons instanceof Object)){throw new TypeError('icons() expects parameter to be an Object');}$.extend(this._options.icons,_icons);if(this.widget){this.hide();this.show();}};DateTimePicker.prototype.tooltips=function tooltips(_tooltips){if(arguments.length===0){return $.extend({},this._options.tooltips);}if(!(_tooltips instanceof Object)){throw new TypeError('tooltips() expects parameter to be an Object');}$.extend(this._options.tooltips,_tooltips);if(this.widget){this.hide();this.show();}};DateTimePicker.prototype.useStrict=function useStrict(_useStrict){if(arguments.length===0){return this._options.useStrict;}if(typeof _useStrict!=='boolean'){throw new TypeError('useStrict() expects a boolean parameter');}this._options.useStrict=_useStrict;};DateTimePicker.prototype.sideBySide=function sideBySide(_sideBySide){if(arguments.length===0){return this._options.sideBySide;}if(typeof _sideBySide!=='boolean'){throw new TypeError('sideBySide() expects a boolean parameter');}this._options.sideBySide=_sideBySide;if(this.widget){this.hide();this.show();}};DateTimePicker.prototype.viewMode=function viewMode(_viewMode){if(arguments.length===0){return this._options.viewMode;}if(typeof _viewMode!=='string'){throw new TypeError('viewMode() expects a string parameter');}if(DateTimePicker.ViewModes.indexOf(_viewMode)===-1){throw new TypeError('viewMode() parameter must be one of ('+DateTimePicker.ViewModes.join(', ')+') value');}this._options.viewMode=_viewMode;this.currentViewMode=Math.max(DateTimePicker.ViewModes.indexOf(_viewMode)-1,DateTimePicker.MinViewModeNumber);this._showMode();};DateTimePicker.prototype.calendarWeeks=function calendarWeeks(_calendarWeeks){if(arguments.length===0){return this._options.calendarWeeks;}if(typeof _calendarWeeks!=='boolean'){throw new TypeError('calendarWeeks() expects parameter to be a boolean value');}this._options.calendarWeeks=_calendarWeeks;this._update();};DateTimePicker.prototype.buttons=function buttons(_buttons){if(arguments.length===0){return $.extend({},this._options.buttons);}if(!(_buttons instanceof Object)){throw new TypeError('buttons() expects parameter to be an Object');}$.extend(this._options.buttons,_buttons);if(typeof this._options.buttons.showToday!=='boolean'){throw new TypeError('buttons.showToday expects a boolean parameter');}if(typeof this._options.buttons.showClear!=='boolean'){throw new TypeError('buttons.showClear expects a boolean parameter');}if(typeof this._options.buttons.showClose!=='boolean'){throw new TypeError('buttons.showClose expects a boolean parameter');}if(this.widget){this.hide();this.show();}};DateTimePicker.prototype.keepOpen=function keepOpen(_keepOpen){if(arguments.length===0){return this._options.keepOpen;}if(typeof _keepOpen!=='boolean'){throw new TypeError('keepOpen() expects a boolean parameter');}this._options.keepOpen=_keepOpen;};DateTimePicker.prototype.focusOnShow=function focusOnShow(_focusOnShow){if(arguments.length===0){return this._options.focusOnShow;}if(typeof _focusOnShow!=='boolean'){throw new TypeError('focusOnShow() expects a boolean parameter');}this._options.focusOnShow=_focusOnShow;};DateTimePicker.prototype.inline=function inline(_inline){if(arguments.length===0){return this._options.inline;}if(typeof _inline!=='boolean'){throw new TypeError('inline() expects a boolean parameter');}this._options.inline=_inline;};DateTimePicker.prototype.clear=function clear(){this._setValue(null);//todo
|
||
};DateTimePicker.prototype.keyBinds=function keyBinds(_keyBinds){if(arguments.length===0){return this._options.keyBinds;}this._options.keyBinds=_keyBinds;};DateTimePicker.prototype.debug=function debug(_debug){if(typeof _debug!=='boolean'){throw new TypeError('debug() expects a boolean parameter');}this._options.debug=_debug;};DateTimePicker.prototype.allowInputToggle=function allowInputToggle(_allowInputToggle){if(arguments.length===0){return this._options.allowInputToggle;}if(typeof _allowInputToggle!=='boolean'){throw new TypeError('allowInputToggle() expects a boolean parameter');}this._options.allowInputToggle=_allowInputToggle;};DateTimePicker.prototype.keepInvalid=function keepInvalid(_keepInvalid){if(arguments.length===0){return this._options.keepInvalid;}if(typeof _keepInvalid!=='boolean'){throw new TypeError('keepInvalid() expects a boolean parameter');}this._options.keepInvalid=_keepInvalid;};DateTimePicker.prototype.datepickerInput=function datepickerInput(_datepickerInput){if(arguments.length===0){return this._options.datepickerInput;}if(typeof _datepickerInput!=='string'){throw new TypeError('datepickerInput() expects a string parameter');}this._options.datepickerInput=_datepickerInput;};DateTimePicker.prototype.parseInputDate=function parseInputDate(_parseInputDate2){if(arguments.length===0){return this._options.parseInputDate;}if(typeof _parseInputDate2!=='function'){throw new TypeError('parseInputDate() should be as function');}this._options.parseInputDate=_parseInputDate2;};DateTimePicker.prototype.disabledTimeIntervals=function disabledTimeIntervals(_disabledTimeIntervals){if(arguments.length===0){return this._options.disabledTimeIntervals?$.extend({},this._options.disabledTimeIntervals):this._options.disabledTimeIntervals;}if(!_disabledTimeIntervals){this._options.disabledTimeIntervals=false;this._update();return true;}if(!(_disabledTimeIntervals instanceof Array)){throw new TypeError('disabledTimeIntervals() expects an array parameter');}this._options.disabledTimeIntervals=_disabledTimeIntervals;this._update();};DateTimePicker.prototype.disabledHours=function disabledHours(hours){if(arguments.length===0){return this._options.disabledHours?$.extend({},this._options.disabledHours):this._options.disabledHours;}if(!hours){this._options.disabledHours=false;this._update();return true;}if(!(hours instanceof Array)){throw new TypeError('disabledHours() expects an array parameter');}this._options.disabledHours=this._indexGivenHours(hours);this._options.enabledHours=false;if(this._options.useCurrent&&!this._options.keepInvalid){for(var i=0;i<this._dates.length;i++){var tries=0;while(!this._isValid(this._dates[i],'h')){this._dates[i].add(1,'h');if(tries===24){throw'Tried 24 times to find a valid date';}tries++;}this._setValue(this._dates[i],i);}}this._update();};DateTimePicker.prototype.enabledHours=function enabledHours(hours){if(arguments.length===0){return this._options.enabledHours?$.extend({},this._options.enabledHours):this._options.enabledHours;}if(!hours){this._options.enabledHours=false;this._update();return true;}if(!(hours instanceof Array)){throw new TypeError('enabledHours() expects an array parameter');}this._options.enabledHours=this._indexGivenHours(hours);this._options.disabledHours=false;if(this._options.useCurrent&&!this._options.keepInvalid){for(var i=0;i<this._dates.length;i++){var tries=0;while(!this._isValid(this._dates[i],'h')){this._dates[i].add(1,'h');if(tries===24){throw'Tried 24 times to find a valid date';}tries++;}this._setValue(this._dates[i],i);}}this._update();};DateTimePicker.prototype.viewDate=function viewDate(newDate){if(arguments.length===0){return this._viewDate.clone();}if(!newDate){this._viewDate=(this._dates[0]||this.getMoment()).clone();return true;}if(typeof newDate!=='string'&&!moment.isMoment(newDate)&&!(newDate instanceof Date)){throw new TypeError('viewDate() parameter must be one of [string, moment or Date]');}this._viewDate=this._parseInputDate(newDate);this._viewUpdate();};DateTimePicker.prototype.allowMultidate=function allowMultidate(_allowMultidate){if(typeof _allowMultidate!=='boolean'){throw new TypeError('allowMultidate() expects a boolean parameter');}this._options.allowMultidate=_allowMultidate;};DateTimePicker.prototype.multidateSeparator=function multidateSeparator(_multidateSeparator){if(arguments.length===0){return this._options.multidateSeparator;}if(typeof _multidateSeparator!=='string'||_multidateSeparator.length>1){throw new TypeError('multidateSeparator expects a single character string parameter');}this._options.multidateSeparator=_multidateSeparator;};_createClass(DateTimePicker,null,[{key:'NAME',get:function get(){return NAME;}/**
|
||
* @return {string}
|
||
*/},{key:'DATA_KEY',get:function get(){return DATA_KEY;}/**
|
||
* @return {string}
|
||
*/},{key:'EVENT_KEY',get:function get(){return EVENT_KEY;}/**
|
||
* @return {string}
|
||
*/},{key:'DATA_API_KEY',get:function get(){return DATA_API_KEY;}},{key:'DatePickerModes',get:function get(){return DatePickerModes;}},{key:'ViewModes',get:function get(){return ViewModes;}/**
|
||
* @return {number}
|
||
*/},{key:'MinViewModeNumber',get:function get(){return MinViewModeNumber;}},{key:'Event',get:function get(){return Event;}},{key:'Selector',get:function get(){return Selector;}},{key:'Default',get:function get(){return Default;},set:function set(value){Default=value;}},{key:'ClassName',get:function get(){return ClassName;}}]);return DateTimePicker;}();return DateTimePicker;}(jQuery,moment);//noinspection JSUnusedGlobalSymbols
|
||
/* global DateTimePicker */var TempusDominusBootstrap3=function($){// eslint-disable-line no-unused-vars
|
||
// ReSharper disable once InconsistentNaming
|
||
var JQUERY_NO_CONFLICT=$.fn[DateTimePicker.NAME],verticalModes=['top','bottom','auto'],horizontalModes=['left','right','auto'],toolbarPlacements=['default','top','bottom'],getSelectorFromElement=function getSelectorFromElement($element){var selector=$element.data('target'),$selector=void 0;if(!selector){selector=$element.attr('href')||'';selector=/^#[a-z]/i.test(selector)?selector:null;}$selector=$(selector);if($selector.length===0){return $selector;}if(!$selector.data(DateTimePicker.DATA_KEY)){$.extend({},$selector.data(),$(this).data());}return $selector;};// ReSharper disable once InconsistentNaming
|
||
var TempusDominusBootstrap3=function(_DateTimePicker){_inherits(TempusDominusBootstrap3,_DateTimePicker);function TempusDominusBootstrap3(element,options){_classCallCheck(this,TempusDominusBootstrap3);/*
|
||
$.extend(true, DateTimePicker.Default, {
|
||
icons: {
|
||
time: 'glyphicon glyphicon-time',
|
||
date: 'glyphicon glyphicon-calendar',
|
||
up: 'glyphicon glyphicon-chevron-up',
|
||
down: 'glyphicon glyphicon-chevron-down',
|
||
previous: 'glyphicon glyphicon-chevron-left',
|
||
next: 'glyphicon glyphicon-chevron-right',
|
||
today: 'glyphicon glyphicon-screenshot',
|
||
clear: 'glyphicon glyphicon-trash',
|
||
close: 'glyphicon glyphicon-remove'
|
||
}
|
||
});
|
||
*/var _this=_possibleConstructorReturn(this,_DateTimePicker.call(this,element,options));_this._init();return _this;}TempusDominusBootstrap3.prototype._init=function _init(){if(this._element.hasClass('input-group')){// in case there is more then one 'input-group-addon' Issue #48
|
||
var datepickerButton=this._element.find('.datepickerbutton');if(datepickerButton.length===0){this.component=this._element.find('.input-group-addon');}else{this.component=datepickerButton;}}};TempusDominusBootstrap3.prototype._getDatePickerTemplate=function _getDatePickerTemplate(){var headTemplate=$('<thead>').append($('<tr>').append($('<th>').addClass('prev').attr('data-action','previous').append($('<span>').addClass(this._options.icons.previous))).append($('<th>').addClass('picker-switch').attr('data-action','pickerSwitch').attr('colspan',''+(this._options.calendarWeeks?'6':'5'))).append($('<th>').addClass('next').attr('data-action','next').append($('<span>').addClass(this._options.icons.next)))),contTemplate=$('<tbody>').append($('<tr>').append($('<td>').attr('colspan',''+(this._options.calendarWeeks?'8':'7'))));return[$('<div>').addClass('datepicker-days').append($('<table>').addClass('table-condensed').append(headTemplate).append($('<tbody>'))),$('<div>').addClass('datepicker-months').append($('<table>').addClass('table-condensed').append(headTemplate.clone()).append(contTemplate.clone())),$('<div>').addClass('datepicker-years').append($('<table>').addClass('table-condensed').append(headTemplate.clone()).append(contTemplate.clone())),$('<div>').addClass('datepicker-decades').append($('<table>').addClass('table-condensed').append(headTemplate.clone()).append(contTemplate.clone()))];};TempusDominusBootstrap3.prototype._getTimePickerMainTemplate=function _getTimePickerMainTemplate(){var topRow=$('<tr>'),middleRow=$('<tr>'),bottomRow=$('<tr>');if(this._isEnabled('h')){topRow.append($('<td>').append($('<a>').attr({href:'#',tabindex:'-1','title':this._options.tooltips.incrementHour}).addClass('btn').attr('data-action','incrementHours').append($('<span>').addClass(this._options.icons.up))));middleRow.append($('<td>').append($('<span>').addClass('timepicker-hour').attr({'data-time-component':'hours','title':this._options.tooltips.pickHour}).attr('data-action','showHours')));bottomRow.append($('<td>').append($('<a>').attr({href:'#',tabindex:'-1','title':this._options.tooltips.decrementHour}).addClass('btn').attr('data-action','decrementHours').append($('<span>').addClass(this._options.icons.down))));}if(this._isEnabled('m')){if(this._isEnabled('h')){topRow.append($('<td>').addClass('separator'));middleRow.append($('<td>').addClass('separator').html(':'));bottomRow.append($('<td>').addClass('separator'));}topRow.append($('<td>').append($('<a>').attr({href:'#',tabindex:'-1','title':this._options.tooltips.incrementMinute}).addClass('btn').attr('data-action','incrementMinutes').append($('<span>').addClass(this._options.icons.up))));middleRow.append($('<td>').append($('<span>').addClass('timepicker-minute').attr({'data-time-component':'minutes','title':this._options.tooltips.pickMinute}).attr('data-action','showMinutes')));bottomRow.append($('<td>').append($('<a>').attr({href:'#',tabindex:'-1','title':this._options.tooltips.decrementMinute}).addClass('btn').attr('data-action','decrementMinutes').append($('<span>').addClass(this._options.icons.down))));}if(this._isEnabled('s')){if(this._isEnabled('m')){topRow.append($('<td>').addClass('separator'));middleRow.append($('<td>').addClass('separator').html(':'));bottomRow.append($('<td>').addClass('separator'));}topRow.append($('<td>').append($('<a>').attr({href:'#',tabindex:'-1','title':this._options.tooltips.incrementSecond}).addClass('btn').attr('data-action','incrementSeconds').append($('<span>').addClass(this._options.icons.up))));middleRow.append($('<td>').append($('<span>').addClass('timepicker-second').attr({'data-time-component':'seconds','title':this._options.tooltips.pickSecond}).attr('data-action','showSeconds')));bottomRow.append($('<td>').append($('<a>').attr({href:'#',tabindex:'-1','title':this._options.tooltips.decrementSecond}).addClass('btn').attr('data-action','decrementSeconds').append($('<span>').addClass(this._options.icons.down))));}if(!this.use24Hours){topRow.append($('<td>').addClass('separator'));middleRow.append($('<td>').append($('<button>').addClass('btn btn-primary').attr({'data-action':'togglePeriod',tabindex:'-1','title':this._options.tooltips.togglePeriod})));bottomRow.append($('<td>').addClass('separator'));}return $('<div>').addClass('timepicker-picker').append($('<table>').addClass('table-condensed').append([topRow,middleRow,bottomRow]));};TempusDominusBootstrap3.prototype._getTimePickerTemplate=function _getTimePickerTemplate(){var hoursView=$('<div>').addClass('timepicker-hours').append($('<table>').addClass('table-condensed')),minutesView=$('<div>').addClass('timepicker-minutes').append($('<table>').addClass('table-condensed')),secondsView=$('<div>').addClass('timepicker-seconds').append($('<table>').addClass('table-condensed')),ret=[this._getTimePickerMainTemplate()];if(this._isEnabled('h')){ret.push(hoursView);}if(this._isEnabled('m')){ret.push(minutesView);}if(this._isEnabled('s')){ret.push(secondsView);}return ret;};TempusDominusBootstrap3.prototype._getToolbar=function _getToolbar(){var row=[];if(this._options.buttons.showToday){row.push($('<td>').append($('<a>').attr({'data-action':'today','title':this._options.tooltips.today}).append($('<span>').addClass(this._options.icons.today))));}if(!this._options.sideBySide&&this._hasDate()&&this._hasTime()){row.push($('<td>').append($('<a>').attr({'data-action':'togglePicker','title':this._options.tooltips.selectTime}).append($('<span>').addClass(this._options.icons.time))));}if(this._options.buttons.showClear){row.push($('<td>').append($('<a>').attr({'data-action':'clear','title':this._options.tooltips.clear}).append($('<span>').addClass(this._options.icons.clear))));}if(this._options.buttons.showClose){row.push($('<td>').append($('<a>').attr({'data-action':'close','title':this._options.tooltips.close}).append($('<span>').addClass(this._options.icons.close))));}return row.length===0?'':$('<table>').addClass('table-condensed').append($('<tbody>').append($('<tr>').append(row)));};TempusDominusBootstrap3.prototype._getTemplate=function _getTemplate(){var template=$('<div>').addClass('bootstrap-datetimepicker-widget dropdown-menu'),dateView=$('<div>').addClass('datepicker').append(this._getDatePickerTemplate()),timeView=$('<div>').addClass('timepicker').append(this._getTimePickerTemplate()),content=$('<ul>').addClass('list-unstyled'),toolbar=$('<li>').addClass('picker-switch'+(this._options.collapse?' accordion-toggle':'')).append(this._getToolbar());if(this._options.inline){template.removeClass('dropdown-menu');}if(this.use24Hours){template.addClass('usetwentyfour');}if(this._isEnabled('s')&&!this.use24Hours){template.addClass('wider');}if(this._options.sideBySide&&this._hasDate()&&this._hasTime()){template.addClass('timepicker-sbs');if(this._options.toolbarPlacement==='top'){template.append(toolbar);}template.append($('<div>').addClass('row').append(dateView.addClass('col-md-6')).append(timeView.addClass('col-md-6')));if(this._options.toolbarPlacement==='bottom'||this._options.toolbarPlacement==='default'){template.append(toolbar);}return template;}if(this._options.toolbarPlacement==='top'){content.append(toolbar);}if(this._hasDate()){content.append($('<li>').addClass(this._options.collapse&&this._hasTime()?'collapse':'').addClass(this._options.collapse&&this._hasTime()&&this._options.viewMode==='days'?'in':'').append(dateView));}if(this._options.toolbarPlacement==='default'){content.append(toolbar);}if(this._hasTime()){content.append($('<li>').addClass(this._options.collapse&&this._hasDate()?'collapse':'').addClass(this._options.collapse&&this._hasDate()&&this._options.viewMode==='times'?'in':'').append(timeView));}if(this._options.toolbarPlacement==='bottom'){content.append(toolbar);}return template.append(content);};TempusDominusBootstrap3.prototype._place=function _place(e){var self=e&&e.data&&e.data.picker||this,vertical=self._options.widgetPositioning.vertical,horizontal=self._options.widgetPositioning.horizontal,parent=void 0;var position=(self.component||self._element).position(),offset=(self.component||self._element).offset();if(self._options.widgetParent){parent=self._options.widgetParent.append(self.widget);}else if(self._element.is('input')){parent=self._element.after(self.widget).parent();}else if(self._options.inline){parent=self._element.append(self.widget);return;}else{parent=self._element;self._element.children().first().after(self.widget);}// Top and bottom logic
|
||
if(vertical==='auto'){//noinspection JSValidateTypes
|
||
if(offset.top+self.widget.height()*1.5>=$(window).height()+$(window).scrollTop()&&self.widget.height()+self._element.outerHeight()<offset.top){vertical='top';}else{vertical='bottom';}}// Left and right logic
|
||
if(horizontal==='auto'){if(parent.width()<offset.left+self.widget.outerWidth()/2&&offset.left+self.widget.outerWidth()>$(window).width()){horizontal='right';}else{horizontal='left';}}if(vertical==='top'){self.widget.addClass('top').removeClass('bottom');}else{self.widget.addClass('bottom').removeClass('top');}if(horizontal==='right'){self.widget.addClass('pull-right');}else{self.widget.removeClass('pull-right');}// find the first parent element that has a static css positioning
|
||
if(parent.css('position')!=='static'){parent=parent.parents().filter(function(){return $(this).css('position')==='static';}).first();}if(parent.length===0){throw new Error('datetimepicker component should be placed within a static positioned container');}self.widget.css({top:vertical==='top'?'auto':position.top+self._element.outerHeight()+'px',bottom:vertical==='top'?parent.outerHeight()-(parent===self._element?0:position.top)+'px':'auto',left:horizontal==='left'?(parent===self._element?0:position.left)+'px':'auto',right:horizontal==='left'?'auto':parent.outerWidth()-self._element.outerWidth()-(parent===self._element?0:position.left)+'px'});};TempusDominusBootstrap3.prototype._fillDow=function _fillDow(){var row=$('<tr>'),currentDate=this._viewDate.clone().startOf('w').startOf('d');if(this._options.calendarWeeks===true){row.append($('<th>').addClass('cw').text('#'));}while(currentDate.isBefore(this._viewDate.clone().endOf('w'))){row.append($('<th>').addClass('dow').text(currentDate.format('dd')));currentDate.add(1,'d');}this.widget.find('.datepicker-days thead').append(row);};TempusDominusBootstrap3.prototype._fillMonths=function _fillMonths(){var spans=[],monthsShort=this._viewDate.clone().startOf('y').startOf('d');while(monthsShort.isSame(this._viewDate,'y')){spans.push($('<span>').attr('data-action','selectMonth').addClass('month').text(monthsShort.format('MMM')));monthsShort.add(1,'M');}this.widget.find('.datepicker-months td').empty().append(spans);};TempusDominusBootstrap3.prototype._updateMonths=function _updateMonths(){var self=this,monthsView=this.widget.find('.datepicker-months'),monthsViewHeader=monthsView.find('th'),months=monthsView.find('tbody').find('span');monthsViewHeader.eq(0).find('span').attr('title',this._options.tooltips.prevYear);monthsViewHeader.eq(1).attr('title',this._options.tooltips.selectYear);monthsViewHeader.eq(2).find('span').attr('title',this._options.tooltips.nextYear);monthsView.find('.disabled').removeClass('disabled');if(!this._isValid(this._viewDate.clone().subtract(1,'y'),'y')){monthsViewHeader.eq(0).addClass('disabled');}monthsViewHeader.eq(1).text(this._viewDate.year());if(!this._isValid(this._viewDate.clone().add(1,'y'),'y')){monthsViewHeader.eq(2).addClass('disabled');}months.removeClass('active');if(this._getLastPickedDate().isSame(this._viewDate,'y')&&!this.unset){months.eq(this._getLastPickedDate().month()).addClass('active');}months.each(function(index){if(!self._isValid(self._viewDate.clone().month(index),'M')){$(this).addClass('disabled');}});};TempusDominusBootstrap3.prototype._getStartEndYear=function _getStartEndYear(factor,year){var step=factor/10,startYear=Math.floor(year/factor)*factor,endYear=startYear+step*9,focusValue=Math.floor(year/step)*step;return[startYear,endYear,focusValue];};TempusDominusBootstrap3.prototype._updateYears=function _updateYears(){var yearsView=this.widget.find('.datepicker-years'),yearsViewHeader=yearsView.find('th'),yearCaps=this._getStartEndYear(10,this._viewDate.year()),startYear=this._viewDate.clone().year(yearCaps[0]),endYear=this._viewDate.clone().year(yearCaps[1]);var html='';yearsViewHeader.eq(0).find('span').attr('title',this._options.tooltips.prevDecade);yearsViewHeader.eq(1).attr('title',this._options.tooltips.selectDecade);yearsViewHeader.eq(2).find('span').attr('title',this._options.tooltips.nextDecade);yearsView.find('.disabled').removeClass('disabled');if(this._options.minDate&&this._options.minDate.isAfter(startYear,'y')){yearsViewHeader.eq(0).addClass('disabled');}yearsViewHeader.eq(1).text(startYear.year()+'-'+endYear.year());if(this._options.maxDate&&this._options.maxDate.isBefore(endYear,'y')){yearsViewHeader.eq(2).addClass('disabled');}html+='<span data-action="selectYear" class="year old">'+(startYear.year()-1)+'</span>';while(!startYear.isAfter(endYear,'y')){html+='<span data-action="selectYear" class="year'+(startYear.isSame(this._getLastPickedDate(),'y')&&!this.unset?' active':'')+(!this._isValid(startYear,'y')?' disabled':'')+'">'+startYear.year()+'</span>';startYear.add(1,'y');}html+='<span data-action="selectYear" class="year old">'+startYear.year()+'</span>';yearsView.find('td').html(html);};TempusDominusBootstrap3.prototype._updateDecades=function _updateDecades(){var decadesView=this.widget.find('.datepicker-decades'),decadesViewHeader=decadesView.find('th'),yearCaps=this._getStartEndYear(100,this._viewDate.year()),startDecade=this._viewDate.clone().year(yearCaps[0]),endDecade=this._viewDate.clone().year(yearCaps[1]);var minDateDecade=false,maxDateDecade=false,endDecadeYear=void 0,html='';decadesViewHeader.eq(0).find('span').attr('title',this._options.tooltips.prevCentury);decadesViewHeader.eq(2).find('span').attr('title',this._options.tooltips.nextCentury);decadesView.find('.disabled').removeClass('disabled');if(startDecade.year()===0||this._options.minDate&&this._options.minDate.isAfter(startDecade,'y')){decadesViewHeader.eq(0).addClass('disabled');}decadesViewHeader.eq(1).text(startDecade.year()+'-'+endDecade.year());if(this._options.maxDate&&this._options.maxDate.isBefore(endDecade,'y')){decadesViewHeader.eq(2).addClass('disabled');}if(startDecade.year()-10<0){html+='<span> </span>';}else{html+='<span data-action="selectDecade" class="decade old" data-selection="'+(startDecade.year()+6)+'">'+(startDecade.year()-10)+'</span>';}while(!startDecade.isAfter(endDecade,'y')){endDecadeYear=startDecade.year()+11;minDateDecade=this._options.minDate&&this._options.minDate.isAfter(startDecade,'y')&&this._options.minDate.year()<=endDecadeYear;maxDateDecade=this._options.maxDate&&this._options.maxDate.isAfter(startDecade,'y')&&this._options.maxDate.year()<=endDecadeYear;html+='<span data-action="selectDecade" class="decade'+(this._getLastPickedDate().isAfter(startDecade)&&this._getLastPickedDate().year()<=endDecadeYear?' active':'')+(!this._isValid(startDecade,'y')&&!minDateDecade&&!maxDateDecade?' disabled':'')+'" data-selection="'+(startDecade.year()+6)+'">'+startDecade.year()+'</span>';startDecade.add(10,'y');}html+='<span data-action="selectDecade" class="decade old" data-selection="'+(startDecade.year()+6)+'">'+startDecade.year()+'</span>';decadesView.find('td').html(html);};TempusDominusBootstrap3.prototype._fillDate=function _fillDate(){var daysView=this.widget.find('.datepicker-days'),daysViewHeader=daysView.find('th'),html=[];var currentDate=void 0,row=void 0,clsName=void 0,i=void 0;if(!this._hasDate()){return;}daysViewHeader.eq(0).find('span').attr('title',this._options.tooltips.prevMonth);daysViewHeader.eq(1).attr('title',this._options.tooltips.selectMonth);daysViewHeader.eq(2).find('span').attr('title',this._options.tooltips.nextMonth);daysView.find('.disabled').removeClass('disabled');daysViewHeader.eq(1).text(this._viewDate.format(this._options.dayViewHeaderFormat));if(!this._isValid(this._viewDate.clone().subtract(1,'M'),'M')){daysViewHeader.eq(0).addClass('disabled');}if(!this._isValid(this._viewDate.clone().add(1,'M'),'M')){daysViewHeader.eq(2).addClass('disabled');}currentDate=this._viewDate.clone().startOf('M').startOf('w').startOf('d');for(i=0;i<42;i++){//always display 42 days (should show 6 weeks)
|
||
if(currentDate.weekday()===0){row=$('<tr>');if(this._options.calendarWeeks){row.append('<td class="cw">'+currentDate.week()+'</td>');}html.push(row);}clsName='';if(currentDate.isBefore(this._viewDate,'M')){clsName+=' old';}if(currentDate.isAfter(this._viewDate,'M')){clsName+=' new';}if(this._options.allowMultidate){var index=this._datesFormatted.indexOf(currentDate.format('YYYY-MM-DD'));if(index!==-1){if(currentDate.isSame(this._datesFormatted[index],'d')&&!this.unset){clsName+=' active';}}}else{if(currentDate.isSame(this._getLastPickedDate(),'d')&&!this.unset){clsName+=' active';}}if(!this._isValid(currentDate,'d')){clsName+=' disabled';}if(currentDate.isSame(this.getMoment(),'d')){clsName+=' today';}if(currentDate.day()===0||currentDate.day()===6){clsName+=' weekend';}// 加入渲染回调函数
|
||
var currentDay=currentDate.format('L');if(typeof this._options.onSelectDay==='function'){clsName=this._options.onSelectDay(clsName,currentDay);}row.append('<td data-action="selectDay" data-day="'+currentDay+'" class="day'+clsName+'"><span>'+currentDate.date()+'</span></td>');currentDate.add(1,'d');}daysView.find('tbody').empty().append(html);this._updateMonths();this._updateYears();this._updateDecades();};TempusDominusBootstrap3.prototype._fillHours=function _fillHours(){var table=this.widget.find('.timepicker-hours table'),currentHour=this._viewDate.clone().startOf('d'),html=[];var row=$('<tr>');if(this._viewDate.hour()>11&&!this.use24Hours){currentHour.hour(12);}while(currentHour.isSame(this._viewDate,'d')&&(this.use24Hours||this._viewDate.hour()<12&¤tHour.hour()<12||this._viewDate.hour()>11)){if(currentHour.hour()%4===0){row=$('<tr>');html.push(row);}row.append('<td data-action="selectHour" class="hour'+(!this._isValid(currentHour,'h')?' disabled':'')+'">'+currentHour.format(this.use24Hours?'HH':'hh')+'</td>');currentHour.add(1,'h');}table.empty().append(html);};TempusDominusBootstrap3.prototype._fillMinutes=function _fillMinutes(){var table=this.widget.find('.timepicker-minutes table'),currentMinute=this._viewDate.clone().startOf('h'),html=[],step=this._options.stepping===1?5:this._options.stepping;var row=$('<tr>');while(this._viewDate.isSame(currentMinute,'h')){if(currentMinute.minute()%(step*4)===0){row=$('<tr>');html.push(row);}row.append('<td data-action="selectMinute" class="minute'+(!this._isValid(currentMinute,'m')?' disabled':'')+'">'+currentMinute.format('mm')+'</td>');currentMinute.add(step,'m');}table.empty().append(html);};TempusDominusBootstrap3.prototype._fillSeconds=function _fillSeconds(){var table=this.widget.find('.timepicker-seconds table'),currentSecond=this._viewDate.clone().startOf('m'),html=[];var row=$('<tr>');while(this._viewDate.isSame(currentSecond,'m')){if(currentSecond.second()%20===0){row=$('<tr>');html.push(row);}row.append('<td data-action="selectSecond" class="second'+(!this._isValid(currentSecond,'s')?' disabled':'')+'">'+currentSecond.format('ss')+'</td>');currentSecond.add(5,'s');}table.empty().append(html);};TempusDominusBootstrap3.prototype._fillTime=function _fillTime(){var toggle=void 0,newDate=void 0;var timeComponents=this.widget.find('.timepicker span[data-time-component]');if(!this.use24Hours){toggle=this.widget.find('.timepicker [data-action=togglePeriod]');newDate=this._getLastPickedDate().clone().add(this._getLastPickedDate().hours()>=12?-12:12,'h');toggle.text(this._getLastPickedDate().format('A'));if(this._isValid(newDate,'h')){toggle.removeClass('disabled');}else{toggle.addClass('disabled');}}timeComponents.filter('[data-time-component=hours]').text(this._getLastPickedDate().format(''+(this.use24Hours?'HH':'hh')));timeComponents.filter('[data-time-component=minutes]').text(this._getLastPickedDate().format('mm'));timeComponents.filter('[data-time-component=seconds]').text(this._getLastPickedDate().format('ss'));this._fillHours();this._fillMinutes();this._fillSeconds();};TempusDominusBootstrap3.prototype._doAction=function _doAction(e,action){var lastPicked=this._getLastPickedDate();if($(e.currentTarget).is('.disabled')){return false;}action=action||$(e.currentTarget).data('action');switch(action){case'next':{var navFnc=DateTimePicker.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.add(DateTimePicker.DatePickerModes[this.currentViewMode].NAV_STEP,navFnc);this._fillDate();this._viewUpdate(navFnc);break;}case'previous':{var _navFnc=DateTimePicker.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.subtract(DateTimePicker.DatePickerModes[this.currentViewMode].NAV_STEP,_navFnc);this._fillDate();this._viewUpdate(_navFnc);break;}case'pickerSwitch':this._showMode(1);break;case'selectMonth':var month=$(e.target).closest('tbody').find('span').index($(e.target));this._viewDate.month(month);if(this.currentViewMode===DateTimePicker.MinViewModeNumber){this._setValue(lastPicked.clone().year(this._viewDate.year()).month(this._viewDate.month()),this._getLastPickedDateIndex());if(!this._options.inline){this.hide();}}else{this._showMode(-1);this._fillDate();}this._viewUpdate('M');break;case'selectYear':{var year=parseInt($(e.target).text(),10)||0;this._viewDate.year(year);if(this.currentViewMode===DateTimePicker.MinViewModeNumber){this._setValue(lastPicked.clone().year(this._viewDate.year()),this._getLastPickedDateIndex());if(!this._options.inline){this.hide();}}else{this._showMode(-1);this._fillDate();}this._viewUpdate('YYYY');break;}case'selectDecade':{var _year=parseInt($(e.target).data('selection'),10)||0;this._viewDate.year(_year);if(this.currentViewMode===DateTimePicker.MinViewModeNumber){this._setValue(lastPicked.clone().year(this._viewDate.year()),this._getLastPickedDateIndex());if(!this._options.inline){this.hide();}}else{this._showMode(-1);this._fillDate();}this._viewUpdate('YYYY');break;}case'selectDay':{var day=this._viewDate.clone();if($(e.target).is('.old')){day.subtract(1,'M');}if($(e.target).is('.new')){day.add(1,'M');}var selectDate=day.date(parseInt($(e.target).text(),10)),index=-1;if(this._options.allowMultidate){index=this._datesFormatted.indexOf(selectDate.format('YYYY-MM-DD'));if(index!==-1){this._setValue(null,index);//deselect multidate
|
||
}else{this._setValue(selectDate,this._getLastPickedDateIndex()+1);}}else{this._setValue(selectDate,0);}if(!this._hasTime()&&!this._options.keepOpen&&!this._options.inline&&!this._options.allowMultidate){this.hide();}break;}case'incrementHours':{var newDate=lastPicked.clone().add(1,'h');if(this._isValid(newDate,'h')){this._setValue(newDate,this._getLastPickedDateIndex());}break;}case'incrementMinutes':{var _newDate=this._getLastPickedDate().clone().add(this._options.stepping,'m');if(this._isValid(_newDate,'m')){this._setValue(_newDate,this._getLastPickedDateIndex());}break;}case'incrementSeconds':{var _newDate2=this._getLastPickedDate().clone().add(1,'s');if(this._isValid(_newDate2,'s')){this._setValue(_newDate2,this._getLastPickedDateIndex());}break;}case'decrementHours':{var _newDate3=lastPicked.clone().subtract(1,'h');if(this._isValid(_newDate3,'h')){this._setValue(_newDate3,this._getLastPickedDateIndex());}break;}case'decrementMinutes':{var _newDate4=lastPicked.clone().subtract(this._options.stepping,'m');if(this._isValid(_newDate4,'m')){this._setValue(_newDate4,this._getLastPickedDateIndex());}break;}case'decrementSeconds':{var _newDate5=lastPicked.clone().subtract(1,'s');if(this._isValid(_newDate5,'s')){this._setValue(_newDate5,this._getLastPickedDateIndex());}break;}case'togglePeriod':{this._setValue(lastPicked.clone().add(lastPicked.hours()>=12?-12:12,'h'),this._getLastPickedDateIndex());break;}case'togglePicker':{var $this=$(e.target),$link=$this.closest('a'),$parent=$this.closest('ul'),expanded=$parent.find('.in'),closed=$parent.find('.collapse:not(.in)'),$span=$this.is('span')?$this:$this.find('span');var collapseData=void 0;if(expanded&&expanded.length){collapseData=expanded.data('collapse');if(collapseData&&collapseData.transitioning){return false;}if(expanded.collapse){// if collapse plugin is available through bootstrap.js then use it
|
||
expanded.collapse('hide');closed.collapse('show');}else{// otherwise just toggle in class on the two views
|
||
expanded.removeClass('in');closed.addClass('in');}$span.toggleClass(this._options.icons.time+' '+this._options.icons.date);if($span.hasClass(this._options.icons.date)){$link.attr('title',this._options.tooltips.selectDate);}else{$link.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 hour=parseInt($(e.target).text(),10);if(!this.use24Hours){if(lastPicked.hours()>=12){if(hour!==12){hour+=12;}}else{if(hour===12){hour=0;}}}this._setValue(lastPicked.clone().hours(hour),this._getLastPickedDateIndex());this._doAction(e,'showPicker');break;}case'selectMinute':this._setValue(lastPicked.clone().minutes(parseInt($(e.target).text(),10)),lastPicked);this._doAction(e,'showPicker');break;case'selectSecond':this._setValue(lastPicked.clone().seconds(parseInt($(e.target).text(),10)),this._getLastPickedDateIndex());this._doAction(e,'showPicker');break;case'clear':this.clear();break;case'today':{var todaysDate=this.getMoment();if(this._isValid(todaysDate,'d')){this._setValue(todaysDate,lastPicked);}break;}case'close':this.hide();break;}return false;};//public
|
||
TempusDominusBootstrap3.prototype.hide=function hide(){var transitioning=false;if(!this.widget){return;}// Ignore event if in the middle of a picker transition
|
||
this.widget.find('.collapse').each(function(){var collapseData=$(this).data('collapse');if(collapseData&&collapseData.transitioning){transitioning=true;return false;}return true;});if(transitioning){return;}if(this.component&&this.component.hasClass('btn')){this.component.toggleClass('active');}this.widget.hide();$(window).off('resize',this._place);this.widget.off('click','[data-action]');this.widget.off('mousedown',false);this.widget.remove();this.widget=false;this._notifyEvent({type:DateTimePicker.Event.HIDE,date:this._getLastPickedDate().clone()});if(this.input!==undefined){this.input.blur();}this._viewDate=this._getLastPickedDate().clone();};TempusDominusBootstrap3.prototype.show=function show(){var currentMoment=void 0;var useCurrentGranularity={'year':function year(m){return m.month(0).date(1).hours(0).seconds(0).minutes(0);},'month':function month(m){return m.date(1).hours(0).seconds(0).minutes(0);},'day':function day(m){return m.hours(0).seconds(0).minutes(0);},'hour':function hour(m){return m.seconds(0).minutes(0);},'minute':function minute(m){return m.seconds(0);}};if(this.input!==undefined){if(this.input.prop('disabled')||!this._options.ignoreReadonly&&this.input.prop('readonly')||this.widget){return;}if(this.input.val()!==undefined&&this.input.val().trim().length!==0){this._setValue(this._parseInputDate(this.input.val().trim()),0);}else if(this.unset&&this._options.useCurrent){currentMoment=this.getMoment();if(typeof this._options.useCurrent==='string'){currentMoment=useCurrentGranularity[this._options.useCurrent](currentMoment);}this._setValue(currentMoment,0);}}else if(this.unset&&this._options.useCurrent){currentMoment=this.getMoment();if(typeof this._options.useCurrent==='string'){currentMoment=useCurrentGranularity[this._options.useCurrent](currentMoment);}this._setValue(currentMoment,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();$(window).on('resize',{picker:this},this._place);this.widget.on('click','[data-action]',$.proxy(this._doAction,this));// this handles clicks on the widget
|
||
this.widget.on('mousedown',false);if(this.component&&this.component.hasClass('btn')){this.component.toggleClass('active');}this._place();this.widget.show();if(this.input!==undefined&&this._options.focusOnShow&&!this.input.is(':focus')){this.input.focus();}this._notifyEvent({type:DateTimePicker.Event.SHOW});};TempusDominusBootstrap3.prototype.destroy=function destroy(){this.hide();//todo doc off?
|
||
this._element.removeData(DateTimePicker.DATA_KEY);this._element.removeData('date');};TempusDominusBootstrap3.prototype.disable=function disable(){this.hide();if(this.component&&this.component.hasClass('btn')){this.component.addClass('disabled');}if(this.input!==undefined){this.input.prop('disabled',true);//todo disable this/comp if input is null
|
||
}};TempusDominusBootstrap3.prototype.enable=function enable(){if(this.component&&this.component.hasClass('btn')){this.component.removeClass('disabled');}if(this.input!==undefined){this.input.prop('disabled',false);//todo enable comp/this if input is null
|
||
}};TempusDominusBootstrap3.prototype.toolbarPlacement=function toolbarPlacement(_toolbarPlacement){if(arguments.length===0){return this._options.toolbarPlacement;}if(typeof _toolbarPlacement!=='string'){throw new TypeError('toolbarPlacement() expects a string parameter');}if(toolbarPlacements.indexOf(_toolbarPlacement)===-1){throw new TypeError('toolbarPlacement() parameter must be one of ('+toolbarPlacements.join(', ')+') value');}this._options.toolbarPlacement=_toolbarPlacement;if(this.widget){this.hide();this.show();}};TempusDominusBootstrap3.prototype.widgetPositioning=function widgetPositioning(_widgetPositioning){if(arguments.length===0){return $.extend({},this._options.widgetPositioning);}if({}.toString.call(_widgetPositioning)!=='[object Object]'){throw new TypeError('widgetPositioning() expects an object variable');}if(_widgetPositioning.horizontal){if(typeof _widgetPositioning.horizontal!=='string'){throw new TypeError('widgetPositioning() horizontal variable must be a string');}_widgetPositioning.horizontal=_widgetPositioning.horizontal.toLowerCase();if(horizontalModes.indexOf(_widgetPositioning.horizontal)===-1){throw new TypeError('widgetPositioning() expects horizontal parameter to be one of ('+horizontalModes.join(', ')+')');}this._options.widgetPositioning.horizontal=_widgetPositioning.horizontal;}if(_widgetPositioning.vertical){if(typeof _widgetPositioning.vertical!=='string'){throw new TypeError('widgetPositioning() vertical variable must be a string');}_widgetPositioning.vertical=_widgetPositioning.vertical.toLowerCase();if(verticalModes.indexOf(_widgetPositioning.vertical)===-1){throw new TypeError('widgetPositioning() expects vertical parameter to be one of ('+verticalModes.join(', ')+')');}this._options.widgetPositioning.vertical=_widgetPositioning.vertical;}this._update();};TempusDominusBootstrap3.prototype.widgetParent=function widgetParent(_widgetParent){if(arguments.length===0){return this._options.widgetParent;}if(typeof _widgetParent==='string'){_widgetParent=$(_widgetParent);}if(_widgetParent!==null&&typeof _widgetParent!=='string'&&!(_widgetParent instanceof $)){throw new TypeError('widgetParent() expects a string or a jQuery object parameter');}this._options.widgetParent=_widgetParent;if(this.widget){this.hide();this.show();}};//static
|
||
TempusDominusBootstrap3._jQueryHandleThis=function _jQueryHandleThis(me,option,argument){var data=$(me).data(DateTimePicker.DATA_KEY);if((typeof option==='undefined'?'undefined':_typeof(option))==='object'){$.extend({},DateTimePicker.Default,option);}if(!data){data=new TempusDominusBootstrap3($(me),option);$(me).data(DateTimePicker.DATA_KEY,data);}if(typeof option==='string'){if(data[option]===undefined){throw new Error('No method named "'+option+'"');}if(argument===undefined){return data[option]();}else{return data[option](argument);}}};TempusDominusBootstrap3._jQueryInterface=function _jQueryInterface(option,argument){if(this.length===1){return TempusDominusBootstrap3._jQueryHandleThis(this[0],option,argument);}return this.each(function(){TempusDominusBootstrap3._jQueryHandleThis(this,option,argument);});};return TempusDominusBootstrap3;}(DateTimePicker);/**
|
||
* ------------------------------------------------------------------------
|
||
* jQuery
|
||
* ------------------------------------------------------------------------
|
||
*/$(document).on(DateTimePicker.Event.CLICK_DATA_API,DateTimePicker.Selector.DATA_TOGGLE,function(){var $target=getSelectorFromElement($(this));if($target.length===0){return;}TempusDominusBootstrap3._jQueryInterface.call($target,'toggle');}).on(DateTimePicker.Event.CHANGE,'.'+DateTimePicker.ClassName.INPUT,function(event){var $target=getSelectorFromElement($(this));if($target.length===0){return;}TempusDominusBootstrap3._jQueryInterface.call($target,'_change',event);//todo multidate probably broke this
|
||
}).on(DateTimePicker.Event.BLUR,'.'+DateTimePicker.ClassName.INPUT,function(event){var $target=getSelectorFromElement($(this)),config=$target.data(DateTimePicker.DATA_KEY);if($target.length===0){return;}if(config._options.debug||window.debug){return;}TempusDominusBootstrap3._jQueryInterface.call($target,'hide',event);}).on(DateTimePicker.Event.KEYDOWN,'.'+DateTimePicker.ClassName.INPUT,function(event){var $target=getSelectorFromElement($(this));if($target.length===0){return;}TempusDominusBootstrap3._jQueryInterface.call($target,'_keydown',event);}).on(DateTimePicker.Event.KEYUP,'.'+DateTimePicker.ClassName.INPUT,function(event){var $target=getSelectorFromElement($(this));if($target.length===0){return;}TempusDominusBootstrap3._jQueryInterface.call($target,'_keyup',event);}).on(DateTimePicker.Event.FOCUS,'.'+DateTimePicker.ClassName.INPUT,function(event){var $target=getSelectorFromElement($(this)),config=$target.data(DateTimePicker.DATA_KEY);if($target.length===0){return;}if(!config._options.allowInputToggle){return;}TempusDominusBootstrap3._jQueryInterface.call($target,config,event);});$.fn[DateTimePicker.NAME]=TempusDominusBootstrap3._jQueryInterface;$.fn[DateTimePicker.NAME].Constructor=TempusDominusBootstrap3;$.fn[DateTimePicker.NAME].noConflict=function(){$.fn[DateTimePicker.NAME]=JQUERY_NO_CONFLICT;return TempusDominusBootstrap3._jQueryInterface;};return TempusDominusBootstrap3;}(jQuery);}();/*
|
||
*原版min文件与源码不否,因此重新进行了压缩
|
||
*/function QR8bitByte(a){this.mode=QRMode.MODE_8BIT_BYTE,this.data=a;}function QRCode(a,b){this.typeNumber=a,this.errorCorrectLevel=b,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array();}function QRPolynomial(a,b){var c,d;if(void 0==a.length){throw new Error(a.length+"/"+b);}for(c=0;c<a.length&&0==a[c];){c++;}for(this.num=new Array(a.length-c+b),d=0;d<a.length-c;d++){this.num[d]=a[d+c];}}function QRRSBlock(a,b){this.totalCount=a,this.dataCount=b;}function QRBitBuffer(){this.buffer=new Array(),this.length=0;}var QRMode,QRErrorCorrectLevel,QRMaskPattern,QRUtil,QRMath,i;for(function(a){a.fn.qrcode=function(b){var c,d;return"string"==typeof b&&(b={text:b}),b=a.extend({},{render:"canvas",width:256,height:256,imgWidth:b.width/2.5,imgHeight:b.height/2.5,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},b),c=function c(){var c,d,e,f,g,h,i,j,k,a=new QRCode(b.typeNumber,b.correctLevel);for(a.addData(b.text),a.make(),c=document.createElement("canvas"),c.width=b.width,c.height=b.height,d=c.getContext("2d"),b.src&&(e=new Image(),e.src=b.src,e.onload=function(){d.drawImage(e,(b.width-b.imgWidth)/2,(b.height-b.imgHeight)/2,b.imgWidth,b.imgHeight);}),f=b.width/a.getModuleCount(),g=b.height/a.getModuleCount(),h=0;h<a.getModuleCount();h++){for(i=0;i<a.getModuleCount();i++){d.fillStyle=a.isDark(h,i)?b.foreground:b.background,j=Math.ceil((i+1)*f)-Math.floor(i*f),k=Math.ceil((h+1)*f)-Math.floor(h*f),d.fillRect(Math.round(i*f),Math.round(h*g),j,k);}}return c;},d=function d(){var d,e,f,g,h,i,c=new QRCode(b.typeNumber,b.correctLevel);for(c.addData(b.text),c.make(),d=a("<table></table>").css("width",b.width+"px").css("height",b.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",b.background),e=b.width/c.getModuleCount(),f=b.height/c.getModuleCount(),g=0;g<c.getModuleCount();g++){for(h=a("<tr></tr>").css("height",f+"px").appendTo(d),i=0;i<c.getModuleCount();i++){a("<td></td>").css("width",e+"px").css("background-color",c.isDark(g,i)?b.foreground:b.background).appendTo(h);}}return d;},this.each(function(){var e="canvas"==b.render?c():d();a(e).appendTo(this);});};}(jQuery),QR8bitByte.prototype={getLength:function getLength(){return this.data.length;},write:function write(a){for(var b=0;b<this.data.length;b++){a.put(this.data.charCodeAt(b),8);}}},QRCode.prototype={addData:function addData(a){var b=new QR8bitByte(a);this.dataList.push(b),this.dataCache=null;},isDark:function isDark(a,b){if(0>a||this.moduleCount<=a||0>b||this.moduleCount<=b){throw new Error(a+","+b);}return this.modules[a][b];},getModuleCount:function getModuleCount(){return this.moduleCount;},make:function make(){var a,b,c,d,e,f;if(this.typeNumber<1){for(a=1,a=1;40>a;a++){for(b=QRRSBlock.getRSBlocks(a,this.errorCorrectLevel),c=new QRBitBuffer(),d=0,e=0;e<b.length;e++){d+=b[e].dataCount;}for(e=0;e<this.dataList.length;e++){f=this.dataList[e],c.put(f.mode,4),c.put(f.getLength(),QRUtil.getLengthInBits(f.mode,a)),f.write(c);}if(c.getLengthInBits()<=8*d){break;}}this.typeNumber=a;}this.makeImpl(!1,this.getBestMaskPattern());},makeImpl:function makeImpl(a,b){var c,d;for(this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount),c=0;c<this.moduleCount;c++){for(this.modules[c]=new Array(this.moduleCount),d=0;d<this.moduleCount;d++){this.modules[c][d]=null;}}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(a,b),this.typeNumber>=7&&this.setupTypeNumber(a),null==this.dataCache&&(this.dataCache=QRCode.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,b);},setupPositionProbePattern:function setupPositionProbePattern(a,b){var c,d;for(c=-1;7>=c;c++){if(!(-1>=a+c||this.moduleCount<=a+c)){for(d=-1;7>=d;d++){-1>=b+d||this.moduleCount<=b+d||(this.modules[a+c][b+d]=c>=0&&6>=c&&(0==d||6==d)||d>=0&&6>=d&&(0==c||6==c)||c>=2&&4>=c&&d>=2&&4>=d?!0:!1);}}}},getBestMaskPattern:function getBestMaskPattern(){var c,d,a=0,b=0;for(c=0;8>c;c++){this.makeImpl(!0,c),d=QRUtil.getLostPoint(this),(0==c||a>d)&&(a=d,b=c);}return b;},createMovieClip:function createMovieClip(a,b,c){var f,g,h,i,j,d=a.createEmptyMovieClip(b,c),e=1;for(this.make(),f=0;f<this.modules.length;f++){for(g=f*e,h=0;h<this.modules[f].length;h++){i=h*e,j=this.modules[f][h],j&&(d.beginFill(0,100),d.moveTo(i,g),d.lineTo(i+e,g),d.lineTo(i+e,g+e),d.lineTo(i,g+e),d.endFill());}}return d;},setupTimingPattern:function setupTimingPattern(){var a,b;for(a=8;a<this.moduleCount-8;a++){null==this.modules[a][6]&&(this.modules[a][6]=0==a%2);}for(b=8;b<this.moduleCount-8;b++){null==this.modules[6][b]&&(this.modules[6][b]=0==b%2);}},setupPositionAdjustPattern:function setupPositionAdjustPattern(){var b,c,d,e,f,g,a=QRUtil.getPatternPosition(this.typeNumber);for(b=0;b<a.length;b++){for(c=0;c<a.length;c++){if(d=a[b],e=a[c],null==this.modules[d][e]){for(f=-2;2>=f;f++){for(g=-2;2>=g;g++){this.modules[d+f][e+g]=-2==f||2==f||-2==g||2==g||0==f&&0==g?!0:!1;}}}}}},setupTypeNumber:function setupTypeNumber(a){var c,d,b=QRUtil.getBCHTypeNumber(this.typeNumber);for(c=0;18>c;c++){d=!a&&1==(1&b>>c),this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d;}for(c=0;18>c;c++){d=!a&&1==(1&b>>c),this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d;}},setupTypeInfo:function setupTypeInfo(a,b){var e,f,c=this.errorCorrectLevel<<3|b,d=QRUtil.getBCHTypeInfo(c);for(e=0;15>e;e++){f=!a&&1==(1&d>>e),6>e?this.modules[e][8]=f:8>e?this.modules[e+1][8]=f:this.modules[this.moduleCount-15+e][8]=f;}for(e=0;15>e;e++){f=!a&&1==(1&d>>e),8>e?this.modules[8][this.moduleCount-e-1]=f:9>e?this.modules[8][15-e-1+1]=f:this.modules[8][15-e-1]=f;}this.modules[this.moduleCount-8][8]=!a;},mapData:function mapData(a,b){var g,h,i,j,c=-1,d=this.moduleCount-1,e=7,f=0;for(g=this.moduleCount-1;g>0;g-=2){for(6==g&&g--;;){for(h=0;2>h;h++){null==this.modules[d][g-h]&&(i=!1,f<a.length&&(i=1==(1&a[f]>>>e)),j=QRUtil.getMask(b,d,g-h),j&&(i=!i),this.modules[d][g-h]=i,e--,-1==e&&(f++,e=7));}if(d+=c,0>d||this.moduleCount<=d){d-=c,c=-c;break;}}}}},QRCode.PAD0=236,QRCode.PAD1=17,QRCode.createData=function(a,b,c){var f,g,h,d=QRRSBlock.getRSBlocks(a,b),e=new QRBitBuffer();for(f=0;f<c.length;f++){g=c[f],e.put(g.mode,4),e.put(g.getLength(),QRUtil.getLengthInBits(g.mode,a)),g.write(e);}for(h=0,f=0;f<d.length;f++){h+=d[f].dataCount;}if(e.getLengthInBits()>8*h){throw new Error("code length overflow. ("+e.getLengthInBits()+">"+8*h+")");}for(e.getLengthInBits()+4<=8*h&&e.put(0,4);0!=e.getLengthInBits()%8;){e.putBit(!1);}for(;;){if(e.getLengthInBits()>=8*h){break;}if(e.put(QRCode.PAD0,8),e.getLengthInBits()>=8*h){break;}e.put(QRCode.PAD1,8);}return QRCode.createBytes(e,d);},QRCode.createBytes=function(a,b){var h,i,j,k,l,m,n,o,p,q,r,c=0,d=0,e=0,f=new Array(b.length),g=new Array(b.length);for(h=0;h<b.length;h++){for(i=b[h].dataCount,j=b[h].totalCount-i,d=Math.max(d,i),e=Math.max(e,j),f[h]=new Array(i),k=0;k<f[h].length;k++){f[h][k]=255&a.buffer[k+c];}for(c+=i,l=QRUtil.getErrorCorrectPolynomial(j),m=new QRPolynomial(f[h],l.getLength()-1),n=m.mod(l),g[h]=new Array(l.getLength()-1),k=0;k<g[h].length;k++){o=k+n.getLength()-g[h].length,g[h][k]=o>=0?n.get(o):0;}}for(p=0,k=0;k<b.length;k++){p+=b[k].totalCount;}for(q=new Array(p),r=0,k=0;d>k;k++){for(h=0;h<b.length;h++){k<f[h].length&&(q[r++]=f[h][k]);}}for(k=0;e>k;k++){for(h=0;h<b.length;h++){k<g[h].length&&(q[r++]=g[h][k]);}}return q;},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 getBCHTypeInfo(a){for(var b=a<<10;QRUtil.getBCHDigit(b)-QRUtil.getBCHDigit(QRUtil.G15)>=0;){b^=QRUtil.G15<<QRUtil.getBCHDigit(b)-QRUtil.getBCHDigit(QRUtil.G15);}return(a<<10|b)^QRUtil.G15_MASK;},getBCHTypeNumber:function getBCHTypeNumber(a){for(var b=a<<12;QRUtil.getBCHDigit(b)-QRUtil.getBCHDigit(QRUtil.G18)>=0;){b^=QRUtil.G18<<QRUtil.getBCHDigit(b)-QRUtil.getBCHDigit(QRUtil.G18);}return a<<12|b;},getBCHDigit:function getBCHDigit(a){for(var b=0;0!=a;){b++,a>>>=1;}return b;},getPatternPosition:function getPatternPosition(a){return QRUtil.PATTERN_POSITION_TABLE[a-1];},getMask:function getMask(a,b,c){switch(a){case QRMaskPattern.PATTERN000:return 0==(b+c)%2;case QRMaskPattern.PATTERN001:return 0==b%2;case QRMaskPattern.PATTERN010:return 0==c%3;case QRMaskPattern.PATTERN011:return 0==(b+c)%3;case QRMaskPattern.PATTERN100:return 0==(Math.floor(b/2)+Math.floor(c/3))%2;case QRMaskPattern.PATTERN101:return 0==b*c%2+b*c%3;case QRMaskPattern.PATTERN110:return 0==(b*c%2+b*c%3)%2;case QRMaskPattern.PATTERN111:return 0==(b*c%3+(b+c)%2)%2;default:throw new Error("bad maskPattern:"+a);}},getErrorCorrectPolynomial:function getErrorCorrectPolynomial(a){var c,b=new QRPolynomial([1],0);for(c=0;a>c;c++){b=b.multiply(new QRPolynomial([1,QRMath.gexp(c)],0));}return b;},getLengthInBits:function getLengthInBits(a,b){if(b>=1&&10>b){switch(a){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;case QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+a);}}else{if(27>b){switch(a){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:"+a);}}else{if(!(41>b)){throw new Error("type:"+b);}switch(a){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:"+a);}}}},getLostPoint:function getLostPoint(a){var d,e,f,g,h,i,j,k,l,b=a.getModuleCount(),c=0;for(d=0;b>d;d++){for(e=0;b>e;e++){for(f=0,g=a.isDark(d,e),h=-1;1>=h;h++){if(!(0>d+h||d+h>=b)){for(i=-1;1>=i;i++){0>e+i||e+i>=b||(0!=h||0!=i)&&g==a.isDark(d+h,e+i)&&f++;}}}f>5&&(c+=3+f-5);}}for(d=0;b-1>d;d++){for(e=0;b-1>e;e++){j=0,a.isDark(d,e)&&j++,a.isDark(d+1,e)&&j++,a.isDark(d,e+1)&&j++,a.isDark(d+1,e+1)&&j++,(0==j||4==j)&&(c+=3);}}for(d=0;b>d;d++){for(e=0;b-6>e;e++){a.isDark(d,e)&&!a.isDark(d,e+1)&&a.isDark(d,e+2)&&a.isDark(d,e+3)&&a.isDark(d,e+4)&&!a.isDark(d,e+5)&&a.isDark(d,e+6)&&(c+=40);}}for(e=0;b>e;e++){for(d=0;b-6>d;d++){a.isDark(d,e)&&!a.isDark(d+1,e)&&a.isDark(d+2,e)&&a.isDark(d+3,e)&&a.isDark(d+4,e)&&!a.isDark(d+5,e)&&a.isDark(d+6,e)&&(c+=40);}}for(k=0,e=0;b>e;e++){for(d=0;b>d;d++){a.isDark(d,e)&&k++;}}return l=Math.abs(100*k/b/b-50)/5,c+=10*l;}},QRMath={glog:function glog(a){if(1>a){throw new Error("glog("+a+")");}return QRMath.LOG_TABLE[a];},gexp:function gexp(a){for(;0>a;){a+=255;}for(;a>=256;){a-=255;}return QRMath.EXP_TABLE[a];},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 get(a){return this.num[a];},getLength:function getLength(){return this.num.length;},multiply:function multiply(a){var c,d,b=new Array(this.getLength()+a.getLength()-1);for(c=0;c<this.getLength();c++){for(d=0;d<a.getLength();d++){b[c+d]^=QRMath.gexp(QRMath.glog(this.get(c))+QRMath.glog(a.get(d)));}}return new QRPolynomial(b,0);},mod:function mod(a){var b,c,d;if(this.getLength()-a.getLength()<0){return this;}for(b=QRMath.glog(this.get(0))-QRMath.glog(a.get(0)),c=new Array(this.getLength()),d=0;d<this.getLength();d++){c[d]=this.get(d);}for(d=0;d<a.getLength();d++){c[d]^=QRMath.gexp(QRMath.glog(a.get(d))+b);}return new QRPolynomial(c,0).mod(a);}},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(a,b){var d,e,f,g,h,i,j,c=QRRSBlock.getRsBlockTable(a,b);if(void 0==c){throw new Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+b);}for(d=c.length/3,e=new Array(),f=0;d>f;f++){for(g=c[3*f+0],h=c[3*f+1],i=c[3*f+2],j=0;g>j;j++){e.push(new QRRSBlock(h,i));}}return e;},QRRSBlock.getRsBlockTable=function(a,b){switch(b){case QRErrorCorrectLevel.L:return QRRSBlock.RS_BLOCK_TABLE[4*(a-1)+0];case QRErrorCorrectLevel.M:return QRRSBlock.RS_BLOCK_TABLE[4*(a-1)+1];case QRErrorCorrectLevel.Q:return QRRSBlock.RS_BLOCK_TABLE[4*(a-1)+2];case QRErrorCorrectLevel.H:return QRRSBlock.RS_BLOCK_TABLE[4*(a-1)+3];default:return void 0;}},QRBitBuffer.prototype={get:function get(a){var b=Math.floor(a/8);return 1==(1&this.buffer[b]>>>7-a%8);},put:function put(a,b){for(var c=0;b>c;c++){this.putBit(1==(1&a>>>b-c-1));}},getLengthInBits:function getLengthInBits(){return this.length;},putBit:function putBit(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0),a&&(this.buffer[b]|=128>>>this.length%8),this.length++;}};/**
|
||
* 颜色拾取器
|
||
*
|
||
* @author hawind
|
||
* @url http://gdoo.net
|
||
* @name jquery.colorpicker.js
|
||
* @since 2020-11-16
|
||
*/(function($){var ColorHex=new Array('00','33','66','99','CC','FF');var SpColorHex=new Array('FF0000','00FF00','0000FF','FFFF00','00FFFF','FF00FF');$.fn.colorpicker=function(options){var opts=jQuery.extend({},jQuery.fn.colorpicker.defaults,options);initColor();return this.each(function(){var obj=$(this);obj.on(opts.event+'.colorpicker',function(){var $panel=$("#color-panel");// 定位
|
||
var ttop=$(this).offset().top;// 控件的定位点高
|
||
var thei=$(this).height();//控件本身的高
|
||
var tleft=$(this).offset().left;//控件的定位点宽
|
||
$panel.css({top:ttop+thei+15,left:tleft}).show();var target=opts.target?$(opts.target):obj;if(target.data("color")==null){target.data("color",target.css("color"));}if(target.data("value")==null){target.data("value",target.val());}$("#color-panel-reset").on("click.colorpicker",function(){target.css("color",target.data("color")).val(target.data("value"));var color=target.data("value");color=opts.ishex?color:getRGBColor(color);$panel.hide();opts.reset(obj,color);});$("#color-panel-body").off("click.colorpicker").on('mouseover.colorpicker','tr td',function(){var color=$(this).css("background-color");$("#color-panel-color").css("background",color);$("#color-panel-hex-color").val($(this).attr("rel"));}).on('click.colorpicker','tr td',function(){var color=$(this).attr("rel");color=opts.ishex?color:getRGBColor(color);if(opts.fillcolor)target.val(color);target.css("color",color);$panel.hide();$("#color-panel-reset").off("click.colorpicker");opts.change(obj,color);});setColor(target.val());});});function setColor(color){$("#color-panel-color").css("background",color);$("#color-panel-hex-color").val(color);}function initColor(){$("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 colorTable='';var colorValue='';for(i=0;i<2;i++){for(j=0;j<6;j++){colorTable=colorTable+'<tr height="12">';colorValue=i==0?ColorHex[j]+ColorHex[j]+ColorHex[j]:SpColorHex[j];colorTable=colorTable+'<td width="11" rel="#'+colorValue+'" style="background-color:#'+colorValue+'">';for(k=0;k<3;k++){for(l=0;l<6;l++){colorValue=ColorHex[k+i*3]+ColorHex[l]+ColorHex[j];colorTable=colorTable+'<td width="11" rel="#'+colorValue+'" style="background-color:#'+colorValue+'">';}}}}colorTable='<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;">'+colorTable+'</table>';var $panel=$("#color-panel");$panel.html(colorTable);$(document).on('mousedown.colorpicker',function(){$panel.hide();});$panel.on('mousedown.colorpicker',function(e){e.stopPropagation();});$("#color-panel-close").on('click.colorpicker',function(){$panel.hide();return false;});}function getRGBColor(color){var result;if(color&&color.constructor==Array&&color.length==3)color=color;if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))color=[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))color=[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))color=[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)];if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))color=[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)];return"rgb("+color[0]+","+color[1]+","+color[2]+")";}};jQuery.fn.colorpicker.defaults={ishex:true,// 是否使用16进制颜色值
|
||
fillcolor:false,// 是否将颜色值填充至对象的val中
|
||
target:null,// 目标对象
|
||
event:'click',// 颜色框显示的事件
|
||
change:function change(){},// 回调函数
|
||
reset:function reset(){}};})(jQuery);/*
|
||
* jQuery table2excel - v1.1.2
|
||
* jQuery plugin to export an .xls file in browser from an HTML table
|
||
* https://github.com/rainabba/jquery-table2excel
|
||
*
|
||
* Made by rainabba
|
||
* Under MIT License
|
||
*/ //table2excel.js
|
||
(function($,window,document,undefined){var pluginName="table2excel",defaults={exclude:".noExl",name:"Table2Excel",filename:"table2excel",fileext:".xls",exclude_img:true,exclude_links:true,exclude_inputs:true,preserveColors:false};// The actual plugin constructor
|
||
function Plugin(element,options){this.element=element;// jQuery has an extend method which merges the contents of two or
|
||
// more objects, storing the result in the first object. The first object
|
||
// is generally empty as we don't want to alter the default options for
|
||
// future instances of the plugin
|
||
//
|
||
this.settings=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init();}Plugin.prototype={init:function init(){var e=this;var utf8Heading="<meta http-equiv=\"content-type\" content=\"application/vnd.ms-excel; charset=UTF-8\">";e.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\">"+utf8Heading+"<head><!--[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]--></head><body>",table:{head:"<table>",tail:"</table>"},foot:"</body></html>"};e.tableRows=[];// Styling variables
|
||
var additionalStyles="";var compStyle=null;// get contents of table except for exclude
|
||
$(e.element).each(function(i,o){var tempRows="";$(o).find("tr").not(e.settings.exclude).each(function(i,p){// Reset for this row
|
||
additionalStyles="";// Preserve background and text colors on the row
|
||
if(e.settings.preserveColors){compStyle=getComputedStyle(p);additionalStyles+=compStyle&&compStyle.backgroundColor?"background-color: "+compStyle.backgroundColor+";":"";additionalStyles+=compStyle&&compStyle.color?"color: "+compStyle.color+";":"";}// Create HTML for Row
|
||
tempRows+="<tr style='"+additionalStyles+"'>";// Loop through each TH and TD
|
||
$(p).find("td,th").not(e.settings.exclude).each(function(i,q){// p did not exist, I corrected
|
||
// Reset for this column
|
||
additionalStyles="";// Preserve background and text colors on the row
|
||
if(e.settings.preserveColors){compStyle=getComputedStyle(q);additionalStyles+=compStyle&&compStyle.backgroundColor?"background-color: "+compStyle.backgroundColor+";":"";additionalStyles+=compStyle&&compStyle.color?"color: "+compStyle.color+";":"";}var rc={rows:$(this).attr("rowspan"),cols:$(this).attr("colspan"),flag:$(q).find(e.settings.exclude)};if(rc.flag.length>0){tempRows+="<td> </td>";// exclude it!!
|
||
}else{tempRows+="<td";if(rc.rows>0){tempRows+=" rowspan='"+rc.rows+"' ";}if(rc.cols>0){tempRows+=" colspan='"+rc.cols+"' ";}if(additionalStyles){tempRows+=" style='"+additionalStyles+"'";}tempRows+=">"+$(q).html()+"</td>";}});tempRows+="</tr>";});// exclude img tags
|
||
if(e.settings.exclude_img){tempRows=exclude_img(tempRows);}// exclude link tags
|
||
if(e.settings.exclude_links){tempRows=exclude_links(tempRows);}// exclude input tags
|
||
if(e.settings.exclude_inputs){tempRows=exclude_inputs(tempRows);}e.tableRows.push(tempRows);});e.tableToExcel(e.tableRows,e.settings.name,e.settings.sheetName);},tableToExcel:function tableToExcel(table,name,sheetName){var e=this,fullTemplate="",i,link,a;e.format=function(s,c){return s.replace(/{(\w+)}/g,function(m,p){return c[p];});};sheetName=typeof sheetName==="undefined"?"Sheet":sheetName;e.ctx={worksheet:name||"Worksheet",table:table,sheetName:sheetName};fullTemplate=e.template.head;if($.isArray(table)){Object.keys(table).forEach(function(i){//fullTemplate += e.template.sheet.head + "{worksheet" + i + "}" + e.template.sheet.tail;
|
||
fullTemplate+=e.template.sheet.head+sheetName+i+e.template.sheet.tail;});}fullTemplate+=e.template.mid;if($.isArray(table)){Object.keys(table).forEach(function(i){fullTemplate+=e.template.table.head+"{table"+i+"}"+e.template.table.tail;});}fullTemplate+=e.template.foot;for(i in table){e.ctx["table"+i]=table[i];}delete e.ctx.table;var isIE=navigator.appVersion.indexOf("MSIE 10")!==-1||navigator.userAgent.indexOf("Trident")!==-1&&navigator.userAgent.indexOf("rv:11")!==-1;// this works with IE10 and IE11 both :)
|
||
//if (typeof msie !== "undefined" && msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // this works ONLY with IE 11!!!
|
||
if(isIE){if(typeof Blob!=="undefined"){//use blobs if we can
|
||
fullTemplate=e.format(fullTemplate,e.ctx);// with this, works with IE
|
||
fullTemplate=[fullTemplate];//convert to array
|
||
var blob1=new Blob(fullTemplate,{type:"text/html"});window.navigator.msSaveBlob(blob1,getFileName(e.settings));}else{//otherwise use the iframe and save
|
||
//requires a blank iframe on page called txtArea1
|
||
txtArea1.document.open("text/html","replace");txtArea1.document.write(e.format(fullTemplate,e.ctx));txtArea1.document.close();txtArea1.focus();sa=txtArea1.document.execCommand("SaveAs",true,getFileName(e.settings));}}else{var blob=new Blob([e.format(fullTemplate,e.ctx)],{type:"application/vnd.ms-excel"});window.URL=window.URL||window.webkitURL;link=window.URL.createObjectURL(blob);a=document.createElement("a");a.download=getFileName(e.settings);a.href=link;document.body.appendChild(a);a.click();document.body.removeChild(a);}return true;}};function getFileName(settings){return settings.filename?settings.filename:"table2excel";}// Removes all img tags
|
||
function exclude_img(string){var _patt=/(\s+alt\s*=\s*"([^"]*)"|\s+alt\s*=\s*'([^']*)')/i;return string.replace(/<img[^>]*>/gi,function myFunction(x){var res=_patt.exec(x);if(res!==null&&res.length>=2){return res[2];}else{return"";}});}// Removes all link tags
|
||
function exclude_links(string){return string.replace(/<a[^>]*>|<\/a>/gi,"");}// Removes input params
|
||
function exclude_inputs(string){var _patt=/(\s+value\s*=\s*"([^"]*)"|\s+value\s*=\s*'([^']*)')/i;return string.replace(/<input[^>]*>|<\/input>/gi,function myFunction(x){var res=_patt.exec(x);if(res!==null&&res.length>=2){return res[2];}else{return"";}});}$.fn[pluginName]=function(options){var e=this;e.each(function(){if(!$.data(e,"plugin_"+pluginName)){$.data(e,"plugin_"+pluginName,new Plugin(this,options));}});// chain jQuery functions
|
||
return e;};})(jQuery,window,document);/*!
|
||
* Viewer.js v1.5.0
|
||
* https://fengyuanchen.github.io/viewerjs
|
||
*
|
||
* Copyright 2015-present Chen Fengyuan
|
||
* Released under the MIT license
|
||
*
|
||
* Date: 2019-11-23T05:10:26.193Z
|
||
*/(function(global,factory){(typeof exports==="undefined"?"undefined":_typeof2(exports))==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=global||self,global.Viewer=factory());})(this,function(){'use strict';function _typeof(obj){if(typeof Symbol==="function"&&_typeof2(Symbol.iterator)==="symbol"){_typeof=function _typeof(obj){return _typeof2(obj);};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj);};}return _typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});keys.push.apply(keys,symbols);}return keys;}function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys(Object(source),true).forEach(function(key){_defineProperty(target,key,source[key]);});}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));}else{ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}}return target;}var DEFAULTS={/**
|
||
* Enable a modal backdrop, specify `static` for a backdrop
|
||
* which doesn't close the modal on click.
|
||
* @type {boolean}
|
||
*/backdrop:true,/**
|
||
* Show the button on the top-right of the viewer.
|
||
* @type {boolean}
|
||
*/button:true,/**
|
||
* Show the navbar.
|
||
* @type {boolean | number}
|
||
*/navbar:true,/**
|
||
* Specify the visibility and the content of the title.
|
||
* @type {boolean | number | Function | Array}
|
||
*/title:true,/**
|
||
* Show the toolbar.
|
||
* @type {boolean | number | Object}
|
||
*/toolbar:true,/**
|
||
* Custom class name(s) to add to the viewer's root element.
|
||
* @type {string}
|
||
*/className:'',/**
|
||
* Define where to put the viewer in modal mode.
|
||
* @type {string | Element}
|
||
*/container:'body',/**
|
||
* Filter the images for viewing. Return true if the image is viewable.
|
||
* @type {Function}
|
||
*/filter:null,/**
|
||
* Enable to request fullscreen when play.
|
||
* @type {boolean}
|
||
*/fullscreen:true,/**
|
||
* Define the initial index of image for viewing.
|
||
* @type {number}
|
||
*/initialViewIndex:0,/**
|
||
* Enable inline mode.
|
||
* @type {boolean}
|
||
*/inline:false,/**
|
||
* The amount of time to delay between automatically cycling an image when playing.
|
||
* @type {number}
|
||
*/interval:5000,/**
|
||
* Enable keyboard support.
|
||
* @type {boolean}
|
||
*/keyboard:true,/**
|
||
* Indicate if show a loading spinner when load image or not.
|
||
* @type {boolean}
|
||
*/loading:true,/**
|
||
* Indicate if enable loop viewing or not.
|
||
* @type {boolean}
|
||
*/loop:true,/**
|
||
* Min width of the viewer in inline mode.
|
||
* @type {number}
|
||
*/minWidth:200,/**
|
||
* Min height of the viewer in inline mode.
|
||
* @type {number}
|
||
*/minHeight:100,/**
|
||
* Enable to move the image.
|
||
* @type {boolean}
|
||
*/movable:true,/**
|
||
* Enable to rotate the image.
|
||
* @type {boolean}
|
||
*/rotatable:true,/**
|
||
* Enable to scale the image.
|
||
* @type {boolean}
|
||
*/scalable:true,/**
|
||
* Enable to zoom the image.
|
||
* @type {boolean}
|
||
*/zoomable:true,/**
|
||
* Enable to zoom the current image by dragging on the touch screen.
|
||
* @type {boolean}
|
||
*/zoomOnTouch:true,/**
|
||
* Enable to zoom the image by wheeling mouse.
|
||
* @type {boolean}
|
||
*/zoomOnWheel:true,/**
|
||
* Enable to slide to the next or previous image by swiping on the touch screen.
|
||
* @type {boolean}
|
||
*/slideOnTouch:true,/**
|
||
* Indicate if toggle the image size between its natural size
|
||
* and initial size when double click on the image or not.
|
||
* @type {boolean}
|
||
*/toggleOnDblclick:true,/**
|
||
* Show the tooltip with image ratio (percentage) when zoom in or zoom out.
|
||
* @type {boolean}
|
||
*/tooltip:true,/**
|
||
* Enable CSS3 Transition for some special elements.
|
||
* @type {boolean}
|
||
*/transition:true,/**
|
||
* Define the CSS `z-index` value of viewer in modal mode.
|
||
* @type {number}
|
||
*/zIndex:2015,/**
|
||
* Define the CSS `z-index` value of viewer in inline mode.
|
||
* @type {number}
|
||
*/zIndexInline:0,/**
|
||
* Define the ratio when zoom the image by wheeling mouse.
|
||
* @type {number}
|
||
*/zoomRatio:0.1,/**
|
||
* Define the min ratio of the image when zoom out.
|
||
* @type {number}
|
||
*/minZoomRatio:0.01,/**
|
||
* Define the max ratio of the image when zoom in.
|
||
* @type {number}
|
||
*/maxZoomRatio:100,/**
|
||
* Define where to get the original image URL for viewing.
|
||
* @type {string | Function}
|
||
*/url:'src',/**
|
||
* Event shortcuts.
|
||
* @type {Function}
|
||
*/ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,zoom:null,zoomed:null};var TEMPLATE='<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 IS_BROWSER=typeof window!=='undefined'&&typeof window.document!=='undefined';var WINDOW=IS_BROWSER?window:{};var IS_TOUCH_DEVICE=IS_BROWSER?'ontouchstart'in WINDOW.document.documentElement:false;var HAS_POINTER_EVENT=IS_BROWSER?'PointerEvent'in WINDOW:false;var NAMESPACE='viewer';// Actions
|
||
var ACTION_MOVE='move';var ACTION_SWITCH='switch';var ACTION_ZOOM='zoom';// Classes
|
||
var CLASS_ACTIVE="".concat(NAMESPACE,"-active");var CLASS_CLOSE="".concat(NAMESPACE,"-close");var CLASS_FADE="".concat(NAMESPACE,"-fade");var CLASS_FIXED="".concat(NAMESPACE,"-fixed");var CLASS_FULLSCREEN="".concat(NAMESPACE,"-fullscreen");var CLASS_FULLSCREEN_EXIT="".concat(NAMESPACE,"-fullscreen-exit");var CLASS_HIDE="".concat(NAMESPACE,"-hide");var CLASS_HIDE_MD_DOWN="".concat(NAMESPACE,"-hide-md-down");var CLASS_HIDE_SM_DOWN="".concat(NAMESPACE,"-hide-sm-down");var CLASS_HIDE_XS_DOWN="".concat(NAMESPACE,"-hide-xs-down");var CLASS_IN="".concat(NAMESPACE,"-in");var CLASS_INVISIBLE="".concat(NAMESPACE,"-invisible");var CLASS_LOADING="".concat(NAMESPACE,"-loading");var CLASS_MOVE="".concat(NAMESPACE,"-move");var CLASS_OPEN="".concat(NAMESPACE,"-open");var CLASS_SHOW="".concat(NAMESPACE,"-show");var CLASS_TRANSITION="".concat(NAMESPACE,"-transition");// Events
|
||
var EVENT_CLICK='click';var EVENT_DBLCLICK='dblclick';var EVENT_DRAG_START='dragstart';var EVENT_HIDDEN='hidden';var EVENT_HIDE='hide';var EVENT_KEY_DOWN='keydown';var EVENT_LOAD='load';var EVENT_TOUCH_START=IS_TOUCH_DEVICE?'touchstart':'mousedown';var EVENT_TOUCH_MOVE=IS_TOUCH_DEVICE?'touchmove':'mousemove';var EVENT_TOUCH_END=IS_TOUCH_DEVICE?'touchend touchcancel':'mouseup';var EVENT_POINTER_DOWN=HAS_POINTER_EVENT?'pointerdown':EVENT_TOUCH_START;var EVENT_POINTER_MOVE=HAS_POINTER_EVENT?'pointermove':EVENT_TOUCH_MOVE;var EVENT_POINTER_UP=HAS_POINTER_EVENT?'pointerup pointercancel':EVENT_TOUCH_END;var EVENT_READY='ready';var EVENT_RESIZE='resize';var EVENT_SHOW='show';var EVENT_SHOWN='shown';var EVENT_TRANSITION_END='transitionend';var EVENT_VIEW='view';var EVENT_VIEWED='viewed';var EVENT_WHEEL='wheel';var EVENT_ZOOM='zoom';var EVENT_ZOOMED='zoomed';// Data keys
|
||
var DATA_ACTION="".concat(NAMESPACE,"Action");// RegExps
|
||
var REGEXP_SPACES=/\s\s*/;// Misc
|
||
var BUTTONS=['zoom-in','zoom-out','one-to-one','reset','prev','play','next','rotate-left','rotate-right','flip-horizontal','flip-vertical'];/**
|
||
* Check if the given value is a string.
|
||
* @param {*} value - The value to check.
|
||
* @returns {boolean} Returns `true` if the given value is a string, else `false`.
|
||
*/function isString(value){return typeof value==='string';}/**
|
||
* Check if the given value is not a number.
|
||
*/var isNaN=Number.isNaN||WINDOW.isNaN;/**
|
||
* Check if the given value is a number.
|
||
* @param {*} value - The value to check.
|
||
* @returns {boolean} Returns `true` if the given value is a number, else `false`.
|
||
*/function isNumber(value){return typeof value==='number'&&!isNaN(value);}/**
|
||
* Check if the given value is undefined.
|
||
* @param {*} value - The value to check.
|
||
* @returns {boolean} Returns `true` if the given value is undefined, else `false`.
|
||
*/function isUndefined(value){return typeof value==='undefined';}/**
|
||
* Check if the given value is an object.
|
||
* @param {*} value - The value to check.
|
||
* @returns {boolean} Returns `true` if the given value is an object, else `false`.
|
||
*/function isObject(value){return _typeof(value)==='object'&&value!==null;}var hasOwnProperty=Object.prototype.hasOwnProperty;/**
|
||
* Check if the given value is a plain object.
|
||
* @param {*} value - The value to check.
|
||
* @returns {boolean} Returns `true` if the given value is a plain object, else `false`.
|
||
*/function isPlainObject(value){if(!isObject(value)){return false;}try{var _constructor=value.constructor;var prototype=_constructor.prototype;return _constructor&&prototype&&hasOwnProperty.call(prototype,'isPrototypeOf');}catch(error){return false;}}/**
|
||
* Check if the given value is a function.
|
||
* @param {*} value - The value to check.
|
||
* @returns {boolean} Returns `true` if the given value is a function, else `false`.
|
||
*/function isFunction(value){return typeof value==='function';}/**
|
||
* Iterate the given data.
|
||
* @param {*} data - The data to iterate.
|
||
* @param {Function} callback - The process function for each element.
|
||
* @returns {*} The original data.
|
||
*/function forEach(data,callback){if(data&&isFunction(callback)){if(Array.isArray(data)||isNumber(data.length)/* array-like */){var length=data.length;var i;for(i=0;i<length;i+=1){if(callback.call(data,data[i],i,data)===false){break;}}}else if(isObject(data)){Object.keys(data).forEach(function(key){callback.call(data,data[key],key,data);});}}return data;}/**
|
||
* Extend the given object.
|
||
* @param {*} obj - The object to be extended.
|
||
* @param {*} args - The rest objects which will be merged to the first object.
|
||
* @returns {Object} The extended object.
|
||
*/var assign=Object.assign||function assign(obj){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}if(isObject(obj)&&args.length>0){args.forEach(function(arg){if(isObject(arg)){Object.keys(arg).forEach(function(key){obj[key]=arg[key];});}});}return obj;};var REGEXP_SUFFIX=/^(?:width|height|left|top|marginLeft|marginTop)$/;/**
|
||
* Apply styles to the given element.
|
||
* @param {Element} element - The target element.
|
||
* @param {Object} styles - The styles for applying.
|
||
*/function setStyle(element,styles){var style=element.style;forEach(styles,function(value,property){if(REGEXP_SUFFIX.test(property)&&isNumber(value)){value+='px';}style[property]=value;});}/**
|
||
* Escape a string for using in HTML.
|
||
* @param {String} value - The string to escape.
|
||
* @returns {String} Returns the escaped string.
|
||
*/function escapeHTMLEntities(value){return isString(value)?value.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,'&').replace(/"/g,'"').replace(/'/g,''').replace(/</g,'<').replace(/>/g,'>'):value;}/**
|
||
* Check if the given element has a special class.
|
||
* @param {Element} element - The element to check.
|
||
* @param {string} value - The class to search.
|
||
* @returns {boolean} Returns `true` if the special class was found.
|
||
*/function hasClass(element,value){if(!element||!value){return false;}return element.classList?element.classList.contains(value):element.className.indexOf(value)>-1;}/**
|
||
* Add classes to the given element.
|
||
* @param {Element} element - The target element.
|
||
* @param {string} value - The classes to be added.
|
||
*/function addClass(element,value){if(!element||!value){return;}if(isNumber(element.length)){forEach(element,function(elem){addClass(elem,value);});return;}if(element.classList){element.classList.add(value);return;}var className=element.className.trim();if(!className){element.className=value;}else if(className.indexOf(value)<0){element.className="".concat(className," ").concat(value);}}/**
|
||
* Remove classes from the given element.
|
||
* @param {Element} element - The target element.
|
||
* @param {string} value - The classes to be removed.
|
||
*/function removeClass(element,value){if(!element||!value){return;}if(isNumber(element.length)){forEach(element,function(elem){removeClass(elem,value);});return;}if(element.classList){element.classList.remove(value);return;}if(element.className.indexOf(value)>=0){element.className=element.className.replace(value,'');}}/**
|
||
* Add or remove classes from the given element.
|
||
* @param {Element} element - The target element.
|
||
* @param {string} value - The classes to be toggled.
|
||
* @param {boolean} added - Add only.
|
||
*/function toggleClass(element,value,added){if(!value){return;}if(isNumber(element.length)){forEach(element,function(elem){toggleClass(elem,value,added);});return;}// IE10-11 doesn't support the second parameter of `classList.toggle`
|
||
if(added){addClass(element,value);}else{removeClass(element,value);}}var REGEXP_HYPHENATE=/([a-z\d])([A-Z])/g;/**
|
||
* Transform the given string from camelCase to kebab-case
|
||
* @param {string} value - The value to transform.
|
||
* @returns {string} The transformed value.
|
||
*/function hyphenate(value){return value.replace(REGEXP_HYPHENATE,'$1-$2').toLowerCase();}/**
|
||
* Get data from the given element.
|
||
* @param {Element} element - The target element.
|
||
* @param {string} name - The data key to get.
|
||
* @returns {string} The data value.
|
||
*/function getData(element,name){if(isObject(element[name])){return element[name];}if(element.dataset){return element.dataset[name];}return element.getAttribute("data-".concat(hyphenate(name)));}/**
|
||
* Set data to the given element.
|
||
* @param {Element} element - The target element.
|
||
* @param {string} name - The data key to set.
|
||
* @param {string} data - The data value.
|
||
*/function setData(element,name,data){if(isObject(data)){element[name]=data;}else if(element.dataset){element.dataset[name]=data;}else{element.setAttribute("data-".concat(hyphenate(name)),data);}}var onceSupported=function(){var supported=false;if(IS_BROWSER){var once=false;var listener=function listener(){};var options=Object.defineProperty({},'once',{get:function get(){supported=true;return once;},/**
|
||
* This setter can fix a `TypeError` in strict mode
|
||
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
|
||
* @param {boolean} value - The value to set
|
||
*/set:function set(value){once=value;}});WINDOW.addEventListener('test',listener,options);WINDOW.removeEventListener('test',listener,options);}return supported;}();/**
|
||
* Remove event listener from the target element.
|
||
* @param {Element} element - The event target.
|
||
* @param {string} type - The event type(s).
|
||
* @param {Function} listener - The event listener.
|
||
* @param {Object} options - The event options.
|
||
*/function removeListener(element,type,listener){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var handler=listener;type.trim().split(REGEXP_SPACES).forEach(function(event){if(!onceSupported){var listeners=element.listeners;if(listeners&&listeners[event]&&listeners[event][listener]){handler=listeners[event][listener];delete listeners[event][listener];if(Object.keys(listeners[event]).length===0){delete listeners[event];}if(Object.keys(listeners).length===0){delete element.listeners;}}}element.removeEventListener(event,handler,options);});}/**
|
||
* Add event listener to the target element.
|
||
* @param {Element} element - The event target.
|
||
* @param {string} type - The event type(s).
|
||
* @param {Function} listener - The event listener.
|
||
* @param {Object} options - The event options.
|
||
*/function addListener(element,type,listener){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var _handler=listener;type.trim().split(REGEXP_SPACES).forEach(function(event){if(options.once&&!onceSupported){var _element$listeners=element.listeners,listeners=_element$listeners===void 0?{}:_element$listeners;_handler=function handler(){delete listeners[event][listener];element.removeEventListener(event,_handler,options);for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2];}listener.apply(element,args);};if(!listeners[event]){listeners[event]={};}if(listeners[event][listener]){element.removeEventListener(event,listeners[event][listener],options);}listeners[event][listener]=_handler;element.listeners=listeners;}element.addEventListener(event,_handler,options);});}/**
|
||
* Dispatch event on the target element.
|
||
* @param {Element} element - The event target.
|
||
* @param {string} type - The event type(s).
|
||
* @param {Object} data - The additional event data.
|
||
* @returns {boolean} Indicate if the event is default prevented or not.
|
||
*/function dispatchEvent(element,type,data){var event;// Event and CustomEvent on IE9-11 are global objects, not constructors
|
||
if(isFunction(Event)&&isFunction(CustomEvent)){event=new CustomEvent(type,{detail:data,bubbles:true,cancelable:true});}else{event=document.createEvent('CustomEvent');event.initCustomEvent(type,true,true,data);}return element.dispatchEvent(event);}/**
|
||
* Get the offset base on the document.
|
||
* @param {Element} element - The target element.
|
||
* @returns {Object} The offset data.
|
||
*/function getOffset(element){var box=element.getBoundingClientRect();return{left:box.left+(window.pageXOffset-document.documentElement.clientLeft),top:box.top+(window.pageYOffset-document.documentElement.clientTop)};}/**
|
||
* Get transforms base on the given object.
|
||
* @param {Object} obj - The target object.
|
||
* @returns {string} A string contains transform values.
|
||
*/function getTransforms(_ref){var rotate=_ref.rotate,scaleX=_ref.scaleX,scaleY=_ref.scaleY,translateX=_ref.translateX,translateY=_ref.translateY;var values=[];if(isNumber(translateX)&&translateX!==0){values.push("translateX(".concat(translateX,"px)"));}if(isNumber(translateY)&&translateY!==0){values.push("translateY(".concat(translateY,"px)"));}// Rotate should come first before scale to match orientation transform
|
||
if(isNumber(rotate)&&rotate!==0){values.push("rotate(".concat(rotate,"deg)"));}if(isNumber(scaleX)&&scaleX!==1){values.push("scaleX(".concat(scaleX,")"));}if(isNumber(scaleY)&&scaleY!==1){values.push("scaleY(".concat(scaleY,")"));}var transform=values.length?values.join(' '):'none';return{WebkitTransform:transform,msTransform:transform,transform:transform};}/**
|
||
* Get an image name from an image url.
|
||
* @param {string} url - The target url.
|
||
* @example
|
||
* // picture.jpg
|
||
* getImageNameFromURL('https://domain.com/path/to/picture.jpg?size=1280×960')
|
||
* @returns {string} A string contains the image name.
|
||
*/function getImageNameFromURL(url){return isString(url)?decodeURIComponent(url.replace(/^.*\//,'').replace(/[?&#].*$/,'')):'';}var IS_SAFARI=WINDOW.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(WINDOW.navigator.userAgent);/**
|
||
* Get an image's natural sizes.
|
||
* @param {string} image - The target image.
|
||
* @param {Function} callback - The callback function.
|
||
* @returns {HTMLImageElement} The new image.
|
||
*/function getImageNaturalSizes(image,callback){var newImage=document.createElement('img');// Modern browsers (except Safari)
|
||
if(image.naturalWidth&&!IS_SAFARI){callback(image.naturalWidth,image.naturalHeight);return newImage;}var body=document.body||document.documentElement;newImage.onload=function(){callback(newImage.width,newImage.height);if(!IS_SAFARI){body.removeChild(newImage);}};newImage.src=image.src;// iOS Safari will convert the image automatically
|
||
// with its orientation once append it into DOM
|
||
if(!IS_SAFARI){newImage.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;';body.appendChild(newImage);}return newImage;}/**
|
||
* Get the related class name of a responsive type number.
|
||
* @param {string} type - The responsive type.
|
||
* @returns {string} The related class name.
|
||
*/function getResponsiveClass(type){switch(type){case 2:return CLASS_HIDE_XS_DOWN;case 3:return CLASS_HIDE_SM_DOWN;case 4:return CLASS_HIDE_MD_DOWN;default:return'';}}/**
|
||
* Get the max ratio of a group of pointers.
|
||
* @param {string} pointers - The target pointers.
|
||
* @returns {number} The result ratio.
|
||
*/function getMaxZoomRatio(pointers){var pointers2=_objectSpread2({},pointers);var ratios=[];forEach(pointers,function(pointer,pointerId){delete pointers2[pointerId];forEach(pointers2,function(pointer2){var x1=Math.abs(pointer.startX-pointer2.startX);var y1=Math.abs(pointer.startY-pointer2.startY);var x2=Math.abs(pointer.endX-pointer2.endX);var y2=Math.abs(pointer.endY-pointer2.endY);var z1=Math.sqrt(x1*x1+y1*y1);var z2=Math.sqrt(x2*x2+y2*y2);var ratio=(z2-z1)/z1;ratios.push(ratio);});});ratios.sort(function(a,b){return Math.abs(a)<Math.abs(b);});return ratios[0];}/**
|
||
* Get a pointer from an event object.
|
||
* @param {Object} event - The target event object.
|
||
* @param {boolean} endOnly - Indicates if only returns the end point coordinate or not.
|
||
* @returns {Object} The result pointer contains start and/or end point coordinates.
|
||
*/function getPointer(_ref2,endOnly){var pageX=_ref2.pageX,pageY=_ref2.pageY;var end={endX:pageX,endY:pageY};return endOnly?end:_objectSpread2({timeStamp:Date.now(),startX:pageX,startY:pageY},end);}/**
|
||
* Get the center point coordinate of a group of pointers.
|
||
* @param {Object} pointers - The target pointers.
|
||
* @returns {Object} The center point coordinate.
|
||
*/function getPointersCenter(pointers){var pageX=0;var pageY=0;var count=0;forEach(pointers,function(_ref3){var startX=_ref3.startX,startY=_ref3.startY;pageX+=startX;pageY+=startY;count+=1;});pageX/=count;pageY/=count;return{pageX:pageX,pageY:pageY};}var render={render:function render(){this.initContainer();this.initViewer();this.initList();this.renderViewer();},initContainer:function initContainer(){this.containerData={width:window.innerWidth,height:window.innerHeight};},initViewer:function initViewer(){var options=this.options,parent=this.parent;var viewerData;if(options.inline){viewerData={width:Math.max(parent.offsetWidth,options.minWidth),height:Math.max(parent.offsetHeight,options.minHeight)};this.parentData=viewerData;}if(this.fulled||!viewerData){viewerData=this.containerData;}this.viewerData=assign({},viewerData);},renderViewer:function renderViewer(){if(this.options.inline&&!this.fulled){setStyle(this.viewer,this.viewerData);}},initList:function initList(){var _this=this;var element=this.element,options=this.options,list=this.list;var items=[];// initList may be called in this.update, so should keep idempotent
|
||
list.innerHTML='';forEach(this.images,function(image,index){var src=image.src;var alt=image.alt||getImageNameFromURL(src);var url=options.url;if(isString(url)){url=image.getAttribute(url);}else if(isFunction(url)){url=url.call(_this,image);}if(src||url){var item=document.createElement('li');var img=document.createElement('img');img.src=src||url;img.alt=alt;img.setAttribute('data-index',index);img.setAttribute('data-original-url',url||src);img.setAttribute('data-viewer-action','view');img.setAttribute('role','button');item.appendChild(img);list.appendChild(item);items.push(item);}});this.items=items;forEach(items,function(item){var image=item.firstElementChild;setData(image,'filled',true);if(options.loading){addClass(item,CLASS_LOADING);}addListener(image,EVENT_LOAD,function(event){if(options.loading){removeClass(item,CLASS_LOADING);}_this.loadImage(event);},{once:true});});if(options.transition){addListener(element,EVENT_VIEWED,function(){addClass(list,CLASS_TRANSITION);},{once:true});}},renderList:function renderList(index){var i=index||this.index;var width=this.items[i].offsetWidth||30;var outerWidth=width+1;// 1 pixel of `margin-left` width
|
||
// Place the active item in the center of the screen
|
||
setStyle(this.list,assign({width:outerWidth*this.length},getTransforms({translateX:(this.viewerData.width-width)/2-outerWidth*i})));},resetList:function resetList(){var list=this.list;list.innerHTML='';removeClass(list,CLASS_TRANSITION);setStyle(list,getTransforms({translateX:0}));},initImage:function initImage(done){var _this2=this;var options=this.options,image=this.image,viewerData=this.viewerData;var footerHeight=this.footer.offsetHeight;var viewerWidth=viewerData.width;var viewerHeight=Math.max(viewerData.height-footerHeight,footerHeight);var oldImageData=this.imageData||{};var sizingImage;this.imageInitializing={abort:function abort(){sizingImage.onload=null;}};sizingImage=getImageNaturalSizes(image,function(naturalWidth,naturalHeight){var aspectRatio=naturalWidth/naturalHeight;var width=viewerWidth;var height=viewerHeight;_this2.imageInitializing=false;if(viewerHeight*aspectRatio>viewerWidth){height=viewerWidth/aspectRatio;}else{width=viewerHeight*aspectRatio;}width=Math.min(width*0.9,naturalWidth);height=Math.min(height*0.9,naturalHeight);var imageData={naturalWidth:naturalWidth,naturalHeight:naturalHeight,aspectRatio:aspectRatio,ratio:width/naturalWidth,width:width,height:height,left:(viewerWidth-width)/2,top:(viewerHeight-height)/2};var initialImageData=assign({},imageData);if(options.rotatable){imageData.rotate=oldImageData.rotate||0;initialImageData.rotate=0;}if(options.scalable){imageData.scaleX=oldImageData.scaleX||1;imageData.scaleY=oldImageData.scaleY||1;initialImageData.scaleX=1;initialImageData.scaleY=1;}_this2.imageData=imageData;_this2.initialImageData=initialImageData;if(done){done();}});},renderImage:function renderImage(done){var _this3=this;var image=this.image,imageData=this.imageData;setStyle(image,assign({width:imageData.width,height:imageData.height,// XXX: Not to use translateX/Y to avoid image shaking when zooming
|
||
marginLeft:imageData.left,marginTop:imageData.top},getTransforms(imageData)));if(done){if((this.viewing||this.zooming)&&this.options.transition){var onTransitionEnd=function onTransitionEnd(){_this3.imageRendering=false;done();};this.imageRendering={abort:function abort(){removeListener(image,EVENT_TRANSITION_END,onTransitionEnd);}};addListener(image,EVENT_TRANSITION_END,onTransitionEnd,{once:true});}else{done();}}},resetImage:function resetImage(){// this.image only defined after viewed
|
||
if(this.viewing||this.viewed){var image=this.image;if(this.viewing){this.viewing.abort();}image.parentNode.removeChild(image);this.image=null;}}};var events={bind:function bind(){var options=this.options,viewer=this.viewer,canvas=this.canvas;var document=this.element.ownerDocument;addListener(viewer,EVENT_CLICK,this.onClick=this.click.bind(this));addListener(viewer,EVENT_DRAG_START,this.onDragStart=this.dragstart.bind(this));addListener(canvas,EVENT_POINTER_DOWN,this.onPointerDown=this.pointerdown.bind(this));addListener(document,EVENT_POINTER_MOVE,this.onPointerMove=this.pointermove.bind(this));addListener(document,EVENT_POINTER_UP,this.onPointerUp=this.pointerup.bind(this));addListener(document,EVENT_KEY_DOWN,this.onKeyDown=this.keydown.bind(this));addListener(window,EVENT_RESIZE,this.onResize=this.resize.bind(this));if(options.zoomable&&options.zoomOnWheel){addListener(viewer,EVENT_WHEEL,this.onWheel=this.wheel.bind(this),{passive:false,capture:true});}if(options.toggleOnDblclick){addListener(canvas,EVENT_DBLCLICK,this.onDblclick=this.dblclick.bind(this));}},unbind:function unbind(){var options=this.options,viewer=this.viewer,canvas=this.canvas;var document=this.element.ownerDocument;removeListener(viewer,EVENT_CLICK,this.onClick);removeListener(viewer,EVENT_DRAG_START,this.onDragStart);removeListener(canvas,EVENT_POINTER_DOWN,this.onPointerDown);removeListener(document,EVENT_POINTER_MOVE,this.onPointerMove);removeListener(document,EVENT_POINTER_UP,this.onPointerUp);removeListener(document,EVENT_KEY_DOWN,this.onKeyDown);removeListener(window,EVENT_RESIZE,this.onResize);if(options.zoomable&&options.zoomOnWheel){removeListener(viewer,EVENT_WHEEL,this.onWheel,{passive:false,capture:true});}if(options.toggleOnDblclick){removeListener(canvas,EVENT_DBLCLICK,this.onDblclick);}}};var handlers={click:function click(event){var target=event.target;var options=this.options,imageData=this.imageData;var action=getData(target,DATA_ACTION);// Cancel the emulated click when the native click event was triggered.
|
||
if(IS_TOUCH_DEVICE&&event.isTrusted&&target===this.canvas){clearTimeout(this.clickCanvasTimeout);}switch(action){case'mix':if(this.played){this.stop();}else if(options.inline){if(this.fulled){this.exit();}else{this.full();}}else{this.hide();}break;case'hide':this.hide();break;case'view':this.view(getData(target,'index'));break;case'zoom-in':this.zoom(0.1,true);break;case'zoom-out':this.zoom(-0.1,true);break;case'one-to-one':this.toggle();break;case'reset':this.reset();break;case'prev':this.prev(options.loop);break;case'play':this.play(options.fullscreen);break;case'next':this.next(options.loop);break;case'rotate-left':this.rotate(-90);break;case'rotate-right':this.rotate(90);break;case'flip-horizontal':this.scaleX(-imageData.scaleX||-1);break;case'flip-vertical':this.scaleY(-imageData.scaleY||-1);break;default:if(this.played){this.stop();}}},dblclick:function dblclick(event){event.preventDefault();if(this.viewed&&event.target===this.image){// Cancel the emulated double click when the native dblclick event was triggered.
|
||
if(IS_TOUCH_DEVICE&&event.isTrusted){clearTimeout(this.doubleClickImageTimeout);}this.toggle();}},load:function load(){var _this=this;if(this.timeout){clearTimeout(this.timeout);this.timeout=false;}var element=this.element,options=this.options,image=this.image,index=this.index,viewerData=this.viewerData;removeClass(image,CLASS_INVISIBLE);if(options.loading){removeClass(this.canvas,CLASS_LOADING);}image.style.cssText='height:0;'+"margin-left:".concat(viewerData.width/2,"px;")+"margin-top:".concat(viewerData.height/2,"px;")+'max-width:none!important;'+'position:absolute;'+'width:0;';this.initImage(function(){toggleClass(image,CLASS_MOVE,options.movable);toggleClass(image,CLASS_TRANSITION,options.transition);_this.renderImage(function(){_this.viewed=true;_this.viewing=false;if(isFunction(options.viewed)){addListener(element,EVENT_VIEWED,options.viewed,{once:true});}dispatchEvent(element,EVENT_VIEWED,{originalImage:_this.images[index],index:index,image:image});});});},loadImage:function loadImage(event){var image=event.target;var parent=image.parentNode;var parentWidth=parent.offsetWidth||30;var parentHeight=parent.offsetHeight||50;var filled=!!getData(image,'filled');getImageNaturalSizes(image,function(naturalWidth,naturalHeight){var aspectRatio=naturalWidth/naturalHeight;var width=parentWidth;var height=parentHeight;if(parentHeight*aspectRatio>parentWidth){if(filled){width=parentHeight*aspectRatio;}else{height=parentWidth/aspectRatio;}}else if(filled){height=parentWidth/aspectRatio;}else{width=parentHeight*aspectRatio;}setStyle(image,assign({width:width,height:height},getTransforms({translateX:(parentWidth-width)/2,translateY:(parentHeight-height)/2})));});},keydown:function keydown(event){var options=this.options;if(!this.fulled||!options.keyboard){return;}switch(event.keyCode||event.which||event.charCode){// Escape
|
||
case 27:if(this.played){this.stop();}else if(options.inline){if(this.fulled){this.exit();}}else{this.hide();}break;// Space
|
||
case 32:if(this.played){this.stop();}break;// ArrowLeft
|
||
case 37:this.prev(options.loop);break;// ArrowUp
|
||
case 38:// Prevent scroll on Firefox
|
||
event.preventDefault();// Zoom in
|
||
this.zoom(options.zoomRatio,true);break;// ArrowRight
|
||
case 39:this.next(options.loop);break;// ArrowDown
|
||
case 40:// Prevent scroll on Firefox
|
||
event.preventDefault();// Zoom out
|
||
this.zoom(-options.zoomRatio,true);break;// Ctrl + 0
|
||
case 48:// Fall through
|
||
// Ctrl + 1
|
||
// eslint-disable-next-line no-fallthrough
|
||
case 49:if(event.ctrlKey){event.preventDefault();this.toggle();}break;}},dragstart:function dragstart(event){if(event.target.tagName.toLowerCase()==='img'){event.preventDefault();}},pointerdown:function pointerdown(event){var options=this.options,pointers=this.pointers;var buttons=event.buttons,button=event.button;if(!this.viewed||this.showing||this.viewing||this.hiding// Handle mouse event and pointer event and ignore touch event
|
||
||(event.type==='mousedown'||event.type==='pointerdown'&&event.pointerType==='mouse')&&(// No primary button (Usually the left button)
|
||
isNumber(buttons)&&buttons!==1||isNumber(button)&&button!==0// Open context menu
|
||
||event.ctrlKey)){return;}// Prevent default behaviours as page zooming in touch devices.
|
||
event.preventDefault();if(event.changedTouches){forEach(event.changedTouches,function(touch){pointers[touch.identifier]=getPointer(touch);});}else{pointers[event.pointerId||0]=getPointer(event);}var action=options.movable?ACTION_MOVE:false;if(options.zoomOnTouch&&options.zoomable&&Object.keys(pointers).length>1){action=ACTION_ZOOM;}else if(options.slideOnTouch&&(event.pointerType==='touch'||event.type==='touchstart')&&this.isSwitchable()){action=ACTION_SWITCH;}if(options.transition&&(action===ACTION_MOVE||action===ACTION_ZOOM)){removeClass(this.image,CLASS_TRANSITION);}this.action=action;},pointermove:function pointermove(event){var pointers=this.pointers,action=this.action;if(!this.viewed||!action){return;}event.preventDefault();if(event.changedTouches){forEach(event.changedTouches,function(touch){assign(pointers[touch.identifier]||{},getPointer(touch,true));});}else{assign(pointers[event.pointerId||0]||{},getPointer(event,true));}this.change(event);},pointerup:function pointerup(event){var _this2=this;var options=this.options,action=this.action,pointers=this.pointers;var pointer;if(event.changedTouches){forEach(event.changedTouches,function(touch){pointer=pointers[touch.identifier];delete pointers[touch.identifier];});}else{pointer=pointers[event.pointerId||0];delete pointers[event.pointerId||0];}if(!action){return;}event.preventDefault();if(options.transition&&(action===ACTION_MOVE||action===ACTION_ZOOM)){addClass(this.image,CLASS_TRANSITION);}this.action=false;// Emulate click and double click in touch devices to support backdrop and image zooming (#210).
|
||
if(IS_TOUCH_DEVICE&&action!==ACTION_ZOOM&&pointer&&Date.now()-pointer.timeStamp<500){clearTimeout(this.clickCanvasTimeout);clearTimeout(this.doubleClickImageTimeout);if(options.toggleOnDblclick&&this.viewed&&event.target===this.image){if(this.imageClicked){this.imageClicked=false;// This timeout will be cleared later when a native dblclick event is triggering
|
||
this.doubleClickImageTimeout=setTimeout(function(){dispatchEvent(_this2.image,EVENT_DBLCLICK);},50);}else{this.imageClicked=true;// The default timing of a double click in Windows is 500 ms
|
||
this.doubleClickImageTimeout=setTimeout(function(){_this2.imageClicked=false;},500);}}else{this.imageClicked=false;if(options.backdrop&&options.backdrop!=='static'&&event.target===this.canvas){// This timeout will be cleared later when a native click event is triggering
|
||
this.clickCanvasTimeout=setTimeout(function(){dispatchEvent(_this2.canvas,EVENT_CLICK);},50);}}}},resize:function resize(){var _this3=this;if(!this.isShown||this.hiding){return;}this.initContainer();this.initViewer();this.renderViewer();this.renderList();if(this.viewed){this.initImage(function(){_this3.renderImage();});}if(this.played){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return;}forEach(this.player.getElementsByTagName('img'),function(image){addListener(image,EVENT_LOAD,_this3.loadImage.bind(_this3),{once:true});dispatchEvent(image,EVENT_LOAD);});}},wheel:function wheel(event){var _this4=this;if(!this.viewed){return;}event.preventDefault();// Limit wheel speed to prevent zoom too fast
|
||
if(this.wheeling){return;}this.wheeling=true;setTimeout(function(){_this4.wheeling=false;},50);var ratio=Number(this.options.zoomRatio)||0.1;var delta=1;if(event.deltaY){delta=event.deltaY>0?1:-1;}else if(event.wheelDelta){delta=-event.wheelDelta/120;}else if(event.detail){delta=event.detail>0?1:-1;}this.zoom(-delta*ratio,true,event);}};var methods={/** Show the viewer (only available in modal mode)
|
||
* @param {boolean} [immediate=false] - Indicates if show the viewer immediately or not.
|
||
* @returns {Viewer} this
|
||
*/show:function show(){var immediate=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var element=this.element,options=this.options;if(options.inline||this.showing||this.isShown||this.showing){return this;}if(!this.ready){this.build();if(this.ready){this.show(immediate);}return this;}if(isFunction(options.show)){addListener(element,EVENT_SHOW,options.show,{once:true});}if(dispatchEvent(element,EVENT_SHOW)===false||!this.ready){return this;}if(this.hiding){this.transitioning.abort();}this.showing=true;this.open();var viewer=this.viewer;removeClass(viewer,CLASS_HIDE);if(options.transition&&!immediate){var shown=this.shown.bind(this);this.transitioning={abort:function abort(){removeListener(viewer,EVENT_TRANSITION_END,shown);removeClass(viewer,CLASS_IN);}};addClass(viewer,CLASS_TRANSITION);// Force reflow to enable CSS3 transition
|
||
viewer.initialOffsetWidth=viewer.offsetWidth;addListener(viewer,EVENT_TRANSITION_END,shown,{once:true});addClass(viewer,CLASS_IN);}else{addClass(viewer,CLASS_IN);this.shown();}return this;},/**
|
||
* Hide the viewer (only available in modal mode)
|
||
* @param {boolean} [immediate=false] - Indicates if hide the viewer immediately or not.
|
||
* @returns {Viewer} this
|
||
*/hide:function hide(){var immediate=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var element=this.element,options=this.options;if(options.inline||this.hiding||!(this.isShown||this.showing)){return this;}if(isFunction(options.hide)){addListener(element,EVENT_HIDE,options.hide,{once:true});}if(dispatchEvent(element,EVENT_HIDE)===false){return this;}if(this.showing){this.transitioning.abort();}this.hiding=true;if(this.played){this.stop();}else if(this.viewing){this.viewing.abort();}var viewer=this.viewer;if(options.transition&&!immediate){var hidden=this.hidden.bind(this);var hide=function hide(){// XXX: It seems the `event.stopPropagation()` method does not work here
|
||
setTimeout(function(){addListener(viewer,EVENT_TRANSITION_END,hidden,{once:true});removeClass(viewer,CLASS_IN);},0);};this.transitioning={abort:function abort(){if(this.viewed){removeListener(this.image,EVENT_TRANSITION_END,hide);}else{removeListener(viewer,EVENT_TRANSITION_END,hidden);}}};// Note that the `CLASS_TRANSITION` class will be removed on pointer down (#255)
|
||
if(this.viewed&&hasClass(this.image,CLASS_TRANSITION)){addListener(this.image,EVENT_TRANSITION_END,hide,{once:true});this.zoomTo(0,false,false,true);}else{hide();}}else{removeClass(viewer,CLASS_IN);this.hidden();}return this;},/**
|
||
* View one of the images with image's index
|
||
* @param {number} index - The index of the image to view.
|
||
* @returns {Viewer} this
|
||
*/view:function view(){var _this=this;var index=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.options.initialViewIndex;index=Number(index)||0;if(this.hiding||this.played||index<0||index>=this.length||this.viewed&&index===this.index){return this;}if(!this.isShown){this.index=index;return this.show();}if(this.viewing){this.viewing.abort();}var element=this.element,options=this.options,title=this.title,canvas=this.canvas;var item=this.items[index];var img=item.querySelector('img');var url=getData(img,'originalUrl');var alt=img.getAttribute('alt');var image=document.createElement('img');image.src=url;image.alt=alt;if(isFunction(options.view)){addListener(element,EVENT_VIEW,options.view,{once:true});}if(dispatchEvent(element,EVENT_VIEW,{originalImage:this.images[index],index:index,image:image})===false||!this.isShown||this.hiding||this.played){return this;}this.image=image;removeClass(this.items[this.index],CLASS_ACTIVE);addClass(item,CLASS_ACTIVE);this.viewed=false;this.index=index;this.imageData={};addClass(image,CLASS_INVISIBLE);if(options.loading){addClass(canvas,CLASS_LOADING);}canvas.innerHTML='';canvas.appendChild(image);// Center current item
|
||
this.renderList();// Clear title
|
||
title.innerHTML='';// Generate title after viewed
|
||
var onViewed=function onViewed(){var imageData=_this.imageData;var render=Array.isArray(options.title)?options.title[1]:options.title;title.innerHTML=escapeHTMLEntities(isFunction(render)?render.call(_this,image,imageData):"".concat(alt," (").concat(imageData.naturalWidth," \xD7 ").concat(imageData.naturalHeight,")"));};var onLoad;addListener(element,EVENT_VIEWED,onViewed,{once:true});this.viewing={abort:function abort(){removeListener(element,EVENT_VIEWED,onViewed);if(image.complete){if(this.imageRendering){this.imageRendering.abort();}else if(this.imageInitializing){this.imageInitializing.abort();}}else{// Cancel download to save bandwidth.
|
||
image.src='';removeListener(image,EVENT_LOAD,onLoad);if(this.timeout){clearTimeout(this.timeout);}}}};if(image.complete){this.load();}else{addListener(image,EVENT_LOAD,onLoad=this.load.bind(this),{once:true});if(this.timeout){clearTimeout(this.timeout);}// Make the image visible if it fails to load within 1s
|
||
this.timeout=setTimeout(function(){removeClass(image,CLASS_INVISIBLE);_this.timeout=false;},1000);}return this;},/**
|
||
* View the previous image
|
||
* @param {boolean} [loop=false] - Indicate if view the last one
|
||
* when it is the first one at present.
|
||
* @returns {Viewer} this
|
||
*/prev:function prev(){var loop=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var index=this.index-1;if(index<0){index=loop?this.length-1:0;}this.view(index);return this;},/**
|
||
* View the next image
|
||
* @param {boolean} [loop=false] - Indicate if view the first one
|
||
* when it is the last one at present.
|
||
* @returns {Viewer} this
|
||
*/next:function next(){var loop=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var maxIndex=this.length-1;var index=this.index+1;if(index>maxIndex){index=loop?0:maxIndex;}this.view(index);return this;},/**
|
||
* Move the image with relative offsets.
|
||
* @param {number} offsetX - The relative offset distance on the x-axis.
|
||
* @param {number} offsetY - The relative offset distance on the y-axis.
|
||
* @returns {Viewer} this
|
||
*/move:function move(offsetX,offsetY){var imageData=this.imageData;this.moveTo(isUndefined(offsetX)?offsetX:imageData.left+Number(offsetX),isUndefined(offsetY)?offsetY:imageData.top+Number(offsetY));return this;},/**
|
||
* Move the image to an absolute point.
|
||
* @param {number} x - The x-axis coordinate.
|
||
* @param {number} [y=x] - The y-axis coordinate.
|
||
* @returns {Viewer} this
|
||
*/moveTo:function moveTo(x){var y=arguments.length>1&&arguments[1]!==undefined?arguments[1]:x;var imageData=this.imageData;x=Number(x);y=Number(y);if(this.viewed&&!this.played&&this.options.movable){var changed=false;if(isNumber(x)){imageData.left=x;changed=true;}if(isNumber(y)){imageData.top=y;changed=true;}if(changed){this.renderImage();}}return this;},/**
|
||
* Zoom the image with a relative ratio.
|
||
* @param {number} ratio - The target ratio.
|
||
* @param {boolean} [hasTooltip=false] - Indicates if it has a tooltip or not.
|
||
* @param {Event} [_originalEvent=null] - The original event if any.
|
||
* @returns {Viewer} this
|
||
*/zoom:function zoom(ratio){var hasTooltip=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var _originalEvent=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var imageData=this.imageData;ratio=Number(ratio);if(ratio<0){ratio=1/(1-ratio);}else{ratio=1+ratio;}this.zoomTo(imageData.width*ratio/imageData.naturalWidth,hasTooltip,_originalEvent);return this;},/**
|
||
* Zoom the image to an absolute ratio.
|
||
* @param {number} ratio - The target ratio.
|
||
* @param {boolean} [hasTooltip=false] - Indicates if it has a tooltip or not.
|
||
* @param {Event} [_originalEvent=null] - The original event if any.
|
||
* @param {Event} [_zoomable=false] - Indicates if the current zoom is available or not.
|
||
* @returns {Viewer} this
|
||
*/zoomTo:function zoomTo(ratio){var _this2=this;var hasTooltip=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var _originalEvent=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var _zoomable=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var element=this.element,options=this.options,pointers=this.pointers,imageData=this.imageData;var width=imageData.width,height=imageData.height,left=imageData.left,top=imageData.top,naturalWidth=imageData.naturalWidth,naturalHeight=imageData.naturalHeight;ratio=Math.max(0,ratio);if(isNumber(ratio)&&this.viewed&&!this.played&&(_zoomable||options.zoomable)){if(!_zoomable){var minZoomRatio=Math.max(0.01,options.minZoomRatio);var maxZoomRatio=Math.min(100,options.maxZoomRatio);ratio=Math.min(Math.max(ratio,minZoomRatio),maxZoomRatio);}if(_originalEvent&&ratio>0.95&&ratio<1.05){ratio=1;}var newWidth=naturalWidth*ratio;var newHeight=naturalHeight*ratio;var offsetWidth=newWidth-width;var offsetHeight=newHeight-height;var oldRatio=width/naturalWidth;if(isFunction(options.zoom)){addListener(element,EVENT_ZOOM,options.zoom,{once:true});}if(dispatchEvent(element,EVENT_ZOOM,{ratio:ratio,oldRatio:oldRatio,originalEvent:_originalEvent})===false){return this;}this.zooming=true;if(_originalEvent){var offset=getOffset(this.viewer);var center=pointers&&Object.keys(pointers).length?getPointersCenter(pointers):{pageX:_originalEvent.pageX,pageY:_originalEvent.pageY};// Zoom from the triggering point of the event
|
||
imageData.left-=offsetWidth*((center.pageX-offset.left-left)/width);imageData.top-=offsetHeight*((center.pageY-offset.top-top)/height);}else{// Zoom from the center of the image
|
||
imageData.left-=offsetWidth/2;imageData.top-=offsetHeight/2;}imageData.width=newWidth;imageData.height=newHeight;imageData.ratio=ratio;this.renderImage(function(){_this2.zooming=false;if(isFunction(options.zoomed)){addListener(element,EVENT_ZOOMED,options.zoomed,{once:true});}dispatchEvent(element,EVENT_ZOOMED,{ratio:ratio,oldRatio:oldRatio,originalEvent:_originalEvent});});if(hasTooltip){this.tooltip();}}return this;},/**
|
||
* Rotate the image with a relative degree.
|
||
* @param {number} degree - The rotate degree.
|
||
* @returns {Viewer} this
|
||
*/rotate:function rotate(degree){this.rotateTo((this.imageData.rotate||0)+Number(degree));return this;},/**
|
||
* Rotate the image to an absolute degree.
|
||
* @param {number} degree - The rotate degree.
|
||
* @returns {Viewer} this
|
||
*/rotateTo:function rotateTo(degree){var imageData=this.imageData;degree=Number(degree);if(isNumber(degree)&&this.viewed&&!this.played&&this.options.rotatable){imageData.rotate=degree;this.renderImage();}return this;},/**
|
||
* Scale the image on the x-axis.
|
||
* @param {number} scaleX - The scale ratio on the x-axis.
|
||
* @returns {Viewer} this
|
||
*/scaleX:function scaleX(_scaleX){this.scale(_scaleX,this.imageData.scaleY);return this;},/**
|
||
* Scale the image on the y-axis.
|
||
* @param {number} scaleY - The scale ratio on the y-axis.
|
||
* @returns {Viewer} this
|
||
*/scaleY:function scaleY(_scaleY){this.scale(this.imageData.scaleX,_scaleY);return this;},/**
|
||
* Scale the image.
|
||
* @param {number} scaleX - The scale ratio on the x-axis.
|
||
* @param {number} [scaleY=scaleX] - The scale ratio on the y-axis.
|
||
* @returns {Viewer} this
|
||
*/scale:function scale(scaleX){var scaleY=arguments.length>1&&arguments[1]!==undefined?arguments[1]:scaleX;var imageData=this.imageData;scaleX=Number(scaleX);scaleY=Number(scaleY);if(this.viewed&&!this.played&&this.options.scalable){var changed=false;if(isNumber(scaleX)){imageData.scaleX=scaleX;changed=true;}if(isNumber(scaleY)){imageData.scaleY=scaleY;changed=true;}if(changed){this.renderImage();}}return this;},/**
|
||
* Play the images
|
||
* @param {boolean} [fullscreen=false] - Indicate if request fullscreen or not.
|
||
* @returns {Viewer} this
|
||
*/play:function play(){var _this3=this;var fullscreen=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this.isShown||this.played){return this;}var options=this.options,player=this.player;var onLoad=this.loadImage.bind(this);var list=[];var total=0;var index=0;this.played=true;this.onLoadWhenPlay=onLoad;if(fullscreen){this.requestFullscreen();}addClass(player,CLASS_SHOW);forEach(this.items,function(item,i){var img=item.querySelector('img');var image=document.createElement('img');image.src=getData(img,'originalUrl');image.alt=img.getAttribute('alt');total+=1;addClass(image,CLASS_FADE);toggleClass(image,CLASS_TRANSITION,options.transition);if(hasClass(item,CLASS_ACTIVE)){addClass(image,CLASS_IN);index=i;}list.push(image);addListener(image,EVENT_LOAD,onLoad,{once:true});player.appendChild(image);});if(isNumber(options.interval)&&options.interval>0){var play=function play(){_this3.playing=setTimeout(function(){removeClass(list[index],CLASS_IN);index+=1;index=index<total?index:0;addClass(list[index],CLASS_IN);play();},options.interval);};if(total>1){play();}}return this;},// Stop play
|
||
stop:function stop(){var _this4=this;if(!this.played){return this;}var player=this.player;this.played=false;clearTimeout(this.playing);forEach(player.getElementsByTagName('img'),function(image){removeListener(image,EVENT_LOAD,_this4.onLoadWhenPlay);});removeClass(player,CLASS_SHOW);player.innerHTML='';this.exitFullscreen();return this;},// Enter modal mode (only available in inline mode)
|
||
full:function full(){var _this5=this;var options=this.options,viewer=this.viewer,image=this.image,list=this.list;if(!this.isShown||this.played||this.fulled||!options.inline){return this;}this.fulled=true;this.open();addClass(this.button,CLASS_FULLSCREEN_EXIT);if(options.transition){removeClass(list,CLASS_TRANSITION);if(this.viewed){removeClass(image,CLASS_TRANSITION);}}addClass(viewer,CLASS_FIXED);viewer.setAttribute('style','');setStyle(viewer,{zIndex:options.zIndex});this.initContainer();this.viewerData=assign({},this.containerData);this.renderList();if(this.viewed){this.initImage(function(){_this5.renderImage(function(){if(options.transition){setTimeout(function(){addClass(image,CLASS_TRANSITION);addClass(list,CLASS_TRANSITION);},0);}});});}return this;},// Exit modal mode (only available in inline mode)
|
||
exit:function exit(){var _this6=this;var options=this.options,viewer=this.viewer,image=this.image,list=this.list;if(!this.isShown||this.played||!this.fulled||!options.inline){return this;}this.fulled=false;this.close();removeClass(this.button,CLASS_FULLSCREEN_EXIT);if(options.transition){removeClass(list,CLASS_TRANSITION);if(this.viewed){removeClass(image,CLASS_TRANSITION);}}removeClass(viewer,CLASS_FIXED);setStyle(viewer,{zIndex:options.zIndexInline});this.viewerData=assign({},this.parentData);this.renderViewer();this.renderList();if(this.viewed){this.initImage(function(){_this6.renderImage(function(){if(options.transition){setTimeout(function(){addClass(image,CLASS_TRANSITION);addClass(list,CLASS_TRANSITION);},0);}});});}return this;},// Show the current ratio of the image with percentage
|
||
tooltip:function tooltip(){var _this7=this;var options=this.options,tooltipBox=this.tooltipBox,imageData=this.imageData;if(!this.viewed||this.played||!options.tooltip){return this;}tooltipBox.textContent="".concat(Math.round(imageData.ratio*100),"%");if(!this.tooltipping){if(options.transition){if(this.fading){dispatchEvent(tooltipBox,EVENT_TRANSITION_END);}addClass(tooltipBox,CLASS_SHOW);addClass(tooltipBox,CLASS_FADE);addClass(tooltipBox,CLASS_TRANSITION);// Force reflow to enable CSS3 transition
|
||
tooltipBox.initialOffsetWidth=tooltipBox.offsetWidth;addClass(tooltipBox,CLASS_IN);}else{addClass(tooltipBox,CLASS_SHOW);}}else{clearTimeout(this.tooltipping);}this.tooltipping=setTimeout(function(){if(options.transition){addListener(tooltipBox,EVENT_TRANSITION_END,function(){removeClass(tooltipBox,CLASS_SHOW);removeClass(tooltipBox,CLASS_FADE);removeClass(tooltipBox,CLASS_TRANSITION);_this7.fading=false;},{once:true});removeClass(tooltipBox,CLASS_IN);_this7.fading=true;}else{removeClass(tooltipBox,CLASS_SHOW);}_this7.tooltipping=false;},1000);return this;},// Toggle the image size between its natural size and initial size
|
||
toggle:function toggle(){if(this.imageData.ratio===1){this.zoomTo(this.initialImageData.ratio,true);}else{this.zoomTo(1,true);}return this;},// Reset the image to its initial state
|
||
reset:function reset(){if(this.viewed&&!this.played){this.imageData=assign({},this.initialImageData);this.renderImage();}return this;},// Update viewer when images changed
|
||
update:function update(){var element=this.element,options=this.options,isImg=this.isImg;// Destroy viewer if the target image was deleted
|
||
if(isImg&&!element.parentNode){return this.destroy();}var images=[];forEach(isImg?[element]:element.querySelectorAll('img'),function(image){if(options.filter){if(options.filter(image)){images.push(image);}}else{images.push(image);}});if(!images.length){return this;}this.images=images;this.length=images.length;if(this.ready){var indexes=[];forEach(this.items,function(item,i){var img=item.querySelector('img');var image=images[i];if(image&&img){if(image.src!==img.src){indexes.push(i);}}else{indexes.push(i);}});setStyle(this.list,{width:'auto'});this.initList();if(this.isShown){if(this.length){if(this.viewed){var index=indexes.indexOf(this.index);if(index>=0){this.viewed=false;this.view(Math.max(this.index-(index+1),0));}else{addClass(this.items[this.index],CLASS_ACTIVE);}}}else{this.image=null;this.viewed=false;this.index=0;this.imageData={};this.canvas.innerHTML='';this.title.innerHTML='';}}}else{this.build();}return this;},// Destroy the viewer
|
||
destroy:function destroy(){var element=this.element,options=this.options;if(!element[NAMESPACE]){return this;}this.destroyed=true;if(this.ready){if(this.played){this.stop();}if(options.inline){if(this.fulled){this.exit();}this.unbind();}else if(this.isShown){if(this.viewing){if(this.imageRendering){this.imageRendering.abort();}else if(this.imageInitializing){this.imageInitializing.abort();}}if(this.hiding){this.transitioning.abort();}this.hidden();}else if(this.showing){this.transitioning.abort();this.hidden();}this.ready=false;this.viewer.parentNode.removeChild(this.viewer);}else if(options.inline){if(this.delaying){this.delaying.abort();}else if(this.initializing){this.initializing.abort();}}if(!options.inline){removeListener(element,EVENT_CLICK,this.onStart);}element[NAMESPACE]=undefined;return this;}};var others={open:function open(){var body=this.body;addClass(body,CLASS_OPEN);body.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyPaddingRight)||0),"px");},close:function close(){var body=this.body;removeClass(body,CLASS_OPEN);body.style.paddingRight=this.initialBodyPaddingRight;},shown:function shown(){var element=this.element,options=this.options;this.fulled=true;this.isShown=true;this.render();this.bind();this.showing=false;if(isFunction(options.shown)){addListener(element,EVENT_SHOWN,options.shown,{once:true});}if(dispatchEvent(element,EVENT_SHOWN)===false){return;}if(this.ready&&this.isShown&&!this.hiding){this.view(this.index);}},hidden:function hidden(){var element=this.element,options=this.options;this.fulled=false;this.viewed=false;this.isShown=false;this.close();this.unbind();addClass(this.viewer,CLASS_HIDE);this.resetList();this.resetImage();this.hiding=false;if(!this.destroyed){if(isFunction(options.hidden)){addListener(element,EVENT_HIDDEN,options.hidden,{once:true});}dispatchEvent(element,EVENT_HIDDEN);}},requestFullscreen:function requestFullscreen(){var document=this.element.ownerDocument;if(this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){var documentElement=document.documentElement;// Element.requestFullscreen()
|
||
if(documentElement.requestFullscreen){documentElement.requestFullscreen();}else if(documentElement.webkitRequestFullscreen){documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);}else if(documentElement.mozRequestFullScreen){documentElement.mozRequestFullScreen();}else if(documentElement.msRequestFullscreen){documentElement.msRequestFullscreen();}}},exitFullscreen:function exitFullscreen(){var document=this.element.ownerDocument;if(this.fulled&&(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){// Document.exitFullscreen()
|
||
if(document.exitFullscreen){document.exitFullscreen();}else if(document.webkitExitFullscreen){document.webkitExitFullscreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();}else if(document.msExitFullscreen){document.msExitFullscreen();}}},change:function change(event){var options=this.options,pointers=this.pointers;var pointer=pointers[Object.keys(pointers)[0]];var offsetX=pointer.endX-pointer.startX;var offsetY=pointer.endY-pointer.startY;switch(this.action){// Move the current image
|
||
case ACTION_MOVE:this.move(offsetX,offsetY);break;// Zoom the current image
|
||
case ACTION_ZOOM:this.zoom(getMaxZoomRatio(pointers),false,event);break;case ACTION_SWITCH:{this.action='switched';var absoluteOffsetX=Math.abs(offsetX);if(absoluteOffsetX>1&&absoluteOffsetX>Math.abs(offsetY)){// Empty `pointers` as `touchend` event will not be fired after swiped in iOS browsers.
|
||
this.pointers={};if(offsetX>1){this.prev(options.loop);}else if(offsetX<-1){this.next(options.loop);}}break;}}// Override
|
||
forEach(pointers,function(p){p.startX=p.endX;p.startY=p.endY;});},isSwitchable:function isSwitchable(){var imageData=this.imageData,viewerData=this.viewerData;return this.length>1&&imageData.left>=0&&imageData.top>=0&&imageData.width<=viewerData.width&&imageData.height<=viewerData.height;}};var AnotherViewer=WINDOW.Viewer;var Viewer=/*#__PURE__*/function(){/**
|
||
* Create a new Viewer.
|
||
* @param {Element} element - The target element for viewing.
|
||
* @param {Object} [options={}] - The configuration options.
|
||
*/function Viewer(element){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Viewer);if(!element||element.nodeType!==1){throw new Error('The first argument is required and must be an element.');}this.element=element;this.options=assign({},DEFAULTS,isPlainObject(options)&&options);this.action=false;this.fading=false;this.fulled=false;this.hiding=false;this.imageClicked=false;this.imageData={};this.index=this.options.initialViewIndex;this.isImg=false;this.isShown=false;this.length=0;this.played=false;this.playing=false;this.pointers={};this.ready=false;this.showing=false;this.timeout=false;this.tooltipping=false;this.viewed=false;this.viewing=false;this.wheeling=false;this.zooming=false;this.init();}_createClass(Viewer,[{key:"init",value:function init(){var _this=this;var element=this.element,options=this.options;if(element[NAMESPACE]){return;}element[NAMESPACE]=this;var isImg=element.tagName.toLowerCase()==='img';var images=[];forEach(isImg?[element]:element.querySelectorAll('img'),function(image){if(isFunction(options.filter)){if(options.filter.call(_this,image)){images.push(image);}}else{images.push(image);}});this.isImg=isImg;this.length=images.length;this.images=images;var ownerDocument=element.ownerDocument;var body=ownerDocument.body||ownerDocument.documentElement;this.body=body;this.scrollbarWidth=window.innerWidth-ownerDocument.documentElement.clientWidth;this.initialBodyPaddingRight=window.getComputedStyle(body).paddingRight;// Override `transition` option if it is not supported
|
||
if(isUndefined(document.createElement(NAMESPACE).style.transition)){options.transition=false;}if(options.inline){var count=0;var progress=function progress(){count+=1;if(count===_this.length){var timeout;_this.initializing=false;_this.delaying={abort:function abort(){clearTimeout(timeout);}};// build asynchronously to keep `this.viewer` is accessible in `ready` event handler.
|
||
timeout=setTimeout(function(){_this.delaying=false;_this.build();},0);}};this.initializing={abort:function abort(){forEach(images,function(image){if(!image.complete){removeListener(image,EVENT_LOAD,progress);}});}};forEach(images,function(image){if(image.complete){progress();}else{addListener(image,EVENT_LOAD,progress,{once:true});}});}else{addListener(element,EVENT_CLICK,this.onStart=function(_ref){var target=_ref.target;if(target.tagName.toLowerCase()==='img'&&(!isFunction(options.filter)||options.filter.call(_this,target))){_this.view(_this.images.indexOf(target));}});}}},{key:"build",value:function build(){if(this.ready){return;}var element=this.element,options=this.options;var parent=element.parentNode;var template=document.createElement('div');template.innerHTML=TEMPLATE;var viewer=template.querySelector(".".concat(NAMESPACE,"-container"));var title=viewer.querySelector(".".concat(NAMESPACE,"-title"));var toolbar=viewer.querySelector(".".concat(NAMESPACE,"-toolbar"));var navbar=viewer.querySelector(".".concat(NAMESPACE,"-navbar"));var button=viewer.querySelector(".".concat(NAMESPACE,"-button"));var canvas=viewer.querySelector(".".concat(NAMESPACE,"-canvas"));this.parent=parent;this.viewer=viewer;this.title=title;this.toolbar=toolbar;this.navbar=navbar;this.button=button;this.canvas=canvas;this.footer=viewer.querySelector(".".concat(NAMESPACE,"-footer"));this.tooltipBox=viewer.querySelector(".".concat(NAMESPACE,"-tooltip"));this.player=viewer.querySelector(".".concat(NAMESPACE,"-player"));this.list=viewer.querySelector(".".concat(NAMESPACE,"-list"));addClass(title,!options.title?CLASS_HIDE:getResponsiveClass(Array.isArray(options.title)?options.title[0]:options.title));addClass(navbar,!options.navbar?CLASS_HIDE:getResponsiveClass(options.navbar));toggleClass(button,CLASS_HIDE,!options.button);if(options.backdrop){addClass(viewer,"".concat(NAMESPACE,"-backdrop"));if(!options.inline&&options.backdrop!=='static'){setData(canvas,DATA_ACTION,'hide');}}if(isString(options.className)&&options.className){// In case there are multiple class names
|
||
options.className.split(REGEXP_SPACES).forEach(function(className){addClass(viewer,className);});}if(options.toolbar){var list=document.createElement('ul');var custom=isPlainObject(options.toolbar);var zoomButtons=BUTTONS.slice(0,3);var rotateButtons=BUTTONS.slice(7,9);var scaleButtons=BUTTONS.slice(9);if(!custom){addClass(toolbar,getResponsiveClass(options.toolbar));}forEach(custom?options.toolbar:BUTTONS,function(value,index){var deep=custom&&isPlainObject(value);var name=custom?hyphenate(index):value;var show=deep&&!isUndefined(value.show)?value.show:value;if(!show||!options.zoomable&&zoomButtons.indexOf(name)!==-1||!options.rotatable&&rotateButtons.indexOf(name)!==-1||!options.scalable&&scaleButtons.indexOf(name)!==-1){return;}var size=deep&&!isUndefined(value.size)?value.size:value;var click=deep&&!isUndefined(value.click)?value.click:value;var item=document.createElement('li');item.setAttribute('role','button');addClass(item,"".concat(NAMESPACE,"-").concat(name));if(!isFunction(click)){setData(item,DATA_ACTION,name);}if(isNumber(show)){addClass(item,getResponsiveClass(show));}if(['small','large'].indexOf(size)!==-1){addClass(item,"".concat(NAMESPACE,"-").concat(size));}else if(name==='play'){addClass(item,"".concat(NAMESPACE,"-large"));}if(isFunction(click)){addListener(item,EVENT_CLICK,click);}list.appendChild(item);});toolbar.appendChild(list);}else{addClass(toolbar,CLASS_HIDE);}if(!options.rotatable){var rotates=toolbar.querySelectorAll('li[class*="rotate"]');addClass(rotates,CLASS_INVISIBLE);forEach(rotates,function(rotate){toolbar.appendChild(rotate);});}if(options.inline){addClass(button,CLASS_FULLSCREEN);setStyle(viewer,{zIndex:options.zIndexInline});if(window.getComputedStyle(parent).position==='static'){setStyle(parent,{position:'relative'});}parent.insertBefore(viewer,element.nextSibling);}else{addClass(button,CLASS_CLOSE);addClass(viewer,CLASS_FIXED);addClass(viewer,CLASS_FADE);addClass(viewer,CLASS_HIDE);setStyle(viewer,{zIndex:options.zIndex});var container=options.container;if(isString(container)){container=element.ownerDocument.querySelector(container);}if(!container){container=this.body;}container.appendChild(viewer);}if(options.inline){this.render();this.bind();this.isShown=true;}this.ready=true;if(isFunction(options.ready)){addListener(element,EVENT_READY,options.ready,{once:true});}if(dispatchEvent(element,EVENT_READY)===false){this.ready=false;return;}if(this.ready&&options.inline){this.view(this.index);}}/**
|
||
* Get the no conflict viewer class.
|
||
* @returns {Viewer} The viewer class.
|
||
*/}],[{key:"noConflict",value:function noConflict(){window.Viewer=AnotherViewer;return Viewer;}/**
|
||
* Change the default options.
|
||
* @param {Object} options - The new default options.
|
||
*/},{key:"setDefaults",value:function setDefaults(options){assign(DEFAULTS,isPlainObject(options)&&options);}}]);return Viewer;}();assign(Viewer.prototype,render,events,handlers,methods,others);return Viewer;});/*
|
||
* Toastr
|
||
* Copyright 2012-2015
|
||
* Authors: John Papa, Hans Fjällemark, and Tim Ferrell.
|
||
* All Rights Reserved.
|
||
* Use, reproduction, distribution, and modification of this code is subject to the terms and
|
||
* conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
|
||
*
|
||
* ARIA Support: Greta Krafsig
|
||
*
|
||
* Project: https://github.com/CodeSeven/toastr
|
||
*/ /* global define */(function(define){define(['jquery'],function($){return function(){var $container;var listener;var toastId=0;var toastType={error:'error',info:'info',success:'success',warning:'warning'};var toastr={clear:clear,remove:remove,error:error,getContainer:getContainer,info:info,options:{},subscribe:subscribe,success:success,version:'2.1.3',warning:warning};var previousToast;return toastr;////////////////
|
||
function error(message,title,optionsOverride){return notify({type:toastType.error,iconClass:getOptions().iconClasses.error,message:message,optionsOverride:optionsOverride,title:title});}function getContainer(options,create){if(!options){options=getOptions();}$container=$('#'+options.containerId);if($container.length){return $container;}if(create){$container=createContainer(options);}return $container;}function info(message,title,optionsOverride){return notify({type:toastType.info,iconClass:getOptions().iconClasses.info,message:message,optionsOverride:optionsOverride,title:title});}function subscribe(callback){listener=callback;}function success(message,title,optionsOverride){return notify({type:toastType.success,iconClass:getOptions().iconClasses.success,message:message,optionsOverride:optionsOverride,title:title});}function warning(message,title,optionsOverride){return notify({type:toastType.warning,iconClass:getOptions().iconClasses.warning,message:message,optionsOverride:optionsOverride,title:title});}function clear($toastElement,clearOptions){var options=getOptions();if(!$container){getContainer(options);}if(!clearToast($toastElement,options,clearOptions)){clearContainer(options);}}function remove($toastElement){var options=getOptions();if(!$container){getContainer(options);}if($toastElement&&$(':focus',$toastElement).length===0){removeToast($toastElement);return;}if($container.children().length){$container.remove();}}// internal functions
|
||
function clearContainer(options){var toastsToClear=$container.children();for(var i=toastsToClear.length-1;i>=0;i--){clearToast($(toastsToClear[i]),options);}}function clearToast($toastElement,options,clearOptions){var force=clearOptions&&clearOptions.force?clearOptions.force:false;if($toastElement&&(force||$(':focus',$toastElement).length===0)){$toastElement[options.hideMethod]({duration:options.hideDuration,easing:options.hideEasing,complete:function complete(){removeToast($toastElement);}});return true;}return false;}function createContainer(options){$container=$('<div/>').attr('id',options.containerId).addClass(options.positionClass);$container.appendTo($(options.target));return $container;}function getDefaults(){return{tapToDismiss:true,toastClass:'toast',containerId:'toast-container',debug:false,showMethod:'fadeIn',//fadeIn, slideDown, and show are built into jQuery
|
||
showDuration:300,showEasing:'swing',//swing and linear are built into jQuery
|
||
onShown:undefined,hideMethod:'fadeOut',hideDuration:1000,hideEasing:'swing',onHidden:undefined,closeMethod:false,closeDuration:false,closeEasing:false,closeOnHover:true,extendedTimeOut:1000,iconClasses:{error:'toast-error',info:'toast-info',success:'toast-success',warning:'toast-warning'},iconClass:'toast-info',positionClass:'toast-top-right',timeOut:5000,// Set timeOut and extendedTimeOut to 0 to make it sticky
|
||
titleClass:'toast-title',messageClass:'toast-message',escapeHtml:false,target:'body',closeHtml:'<button type="button">×</button>',closeClass:'toast-close-button',newestOnTop:true,preventDuplicates:false,progressBar:false,progressClass:'toast-progress',rtl:false};}function publish(args){if(!listener){return;}listener(args);}function notify(map){var options=getOptions();var iconClass=map.iconClass||options.iconClass;if(typeof map.optionsOverride!=='undefined'){options=$.extend(options,map.optionsOverride);iconClass=map.optionsOverride.iconClass||iconClass;}if(shouldExit(options,map)){return;}toastId++;$container=getContainer(options,true);var intervalId=null;var $toastElement=$('<div/>');var $titleElement=$('<div/>');var $messageElement=$('<div/>');var $progressElement=$('<div/>');var $closeElement=$(options.closeHtml);var progressBar={intervalId:null,hideEta:null,maxHideTime:null};var response={toastId:toastId,state:'visible',startTime:new Date(),options:options,map:map};personalizeToast();displayToast();handleEvents();publish(response);if(options.debug&&console){console.log(response);}return $toastElement;function escapeHtml(source){if(source==null){source='';}return source.replace(/&/g,'&').replace(/"/g,'"').replace(/'/g,''').replace(/</g,'<').replace(/>/g,'>');}function personalizeToast(){setIcon();setTitle();setMessage();setCloseButton();setProgressBar();setRTL();setSequence();setAria();}function setAria(){var ariaValue='';switch(map.iconClass){case'toast-success':case'toast-info':ariaValue='polite';break;default:ariaValue='assertive';}$toastElement.attr('aria-live',ariaValue);}function handleEvents(){if(options.closeOnHover){$toastElement.hover(stickAround,delayedHideToast);}if(!options.onclick&&options.tapToDismiss){$toastElement.click(hideToast);}if(options.closeButton&&$closeElement){$closeElement.click(function(event){if(event.stopPropagation){event.stopPropagation();}else if(event.cancelBubble!==undefined&&event.cancelBubble!==true){event.cancelBubble=true;}if(options.onCloseClick){options.onCloseClick(event);}hideToast(true);});}if(options.onclick){$toastElement.click(function(event){options.onclick(event);hideToast();});}}function displayToast(){$toastElement.hide();$toastElement[options.showMethod]({duration:options.showDuration,easing:options.showEasing,complete:options.onShown});if(options.timeOut>0){intervalId=setTimeout(hideToast,options.timeOut);progressBar.maxHideTime=parseFloat(options.timeOut);progressBar.hideEta=new Date().getTime()+progressBar.maxHideTime;if(options.progressBar){progressBar.intervalId=setInterval(updateProgress,10);}}}function setIcon(){if(map.iconClass){$toastElement.addClass(options.toastClass).addClass(iconClass);}}function setSequence(){if(options.newestOnTop){$container.prepend($toastElement);}else{$container.append($toastElement);}}function setTitle(){if(map.title){var suffix=map.title;if(options.escapeHtml){suffix=escapeHtml(map.title);}$titleElement.append(suffix).addClass(options.titleClass);$toastElement.append($titleElement);}}function setMessage(){if(map.message){var suffix=map.message;if(options.escapeHtml){suffix=escapeHtml(map.message);}$messageElement.append(suffix).addClass(options.messageClass);$toastElement.append($messageElement);}}function setCloseButton(){if(options.closeButton){$closeElement.addClass(options.closeClass).attr('role','button');$toastElement.prepend($closeElement);}}function setProgressBar(){if(options.progressBar){$progressElement.addClass(options.progressClass);$toastElement.prepend($progressElement);}}function setRTL(){if(options.rtl){$toastElement.addClass('rtl');}}function shouldExit(options,map){if(options.preventDuplicates){if(map.message===previousToast){return true;}else{previousToast=map.message;}}return false;}function hideToast(override){var method=override&&options.closeMethod!==false?options.closeMethod:options.hideMethod;var duration=override&&options.closeDuration!==false?options.closeDuration:options.hideDuration;var easing=override&&options.closeEasing!==false?options.closeEasing:options.hideEasing;if($(':focus',$toastElement).length&&!override){return;}clearTimeout(progressBar.intervalId);return $toastElement[method]({duration:duration,easing:easing,complete:function complete(){removeToast($toastElement);clearTimeout(intervalId);if(options.onHidden&&response.state!=='hidden'){options.onHidden();}response.state='hidden';response.endTime=new Date();publish(response);}});}function delayedHideToast(){if(options.timeOut>0||options.extendedTimeOut>0){intervalId=setTimeout(hideToast,options.extendedTimeOut);progressBar.maxHideTime=parseFloat(options.extendedTimeOut);progressBar.hideEta=new Date().getTime()+progressBar.maxHideTime;}}function stickAround(){clearTimeout(intervalId);progressBar.hideEta=0;$toastElement.stop(true,true)[options.showMethod]({duration:options.showDuration,easing:options.showEasing});}function updateProgress(){var percentage=(progressBar.hideEta-new Date().getTime())/progressBar.maxHideTime*100;$progressElement.width(percentage+'%');}}function getOptions(){return $.extend({},getDefaults(),toastr.options);}function removeToast($toastElement){if(!$container){$container=getContainer();}if($toastElement.is(':visible')){return;}$toastElement.remove();$toastElement=null;if($container.children().length===0){$container.remove();previousToast=undefined;}}}();});})(typeof define==='function'&&define.amd?define:function(deps,factory){if(typeof module!=='undefined'&&module.exports){//Node
|
||
module.exports=factory(require('jquery'));}else{window.toastr=factory(window.jQuery);}});(function(){$.fn.Paging=function(settings){var arr=[];$(this).each(function(){var options=$.extend({target:$(this)},settings);var lz=new Paging();lz.init(options);arr.push(lz);});return arr;};function Paging(){var rnd=Math.random().toString().replace('.','');this.id='paging_'+rnd;}Paging.prototype={init:function init(settings){this.settings=$.extend({callback:null,pagesize:10,current:1,prevTpl:"上一页",nextTpl:"下一页",firstTpl:"首页",lastTpl:"末页",ellipseTpl:"...",toolbar:true,hash:false,pageSizeList:[5,10,15,20]},settings);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 render(ops){this.count=ops.count||this.settings.count;this.pagesize=ops.pagesize||this.settings.pagesize;this.current=ops.current||this.settings.current;this.pagecount=Math.ceil(this.count/this.pagesize);if(ops.count===0){this.count=0;this.pagecount=0;this.current=0;}this.format();},bindEvent:function bindEvent(){var me=this;this.container.on('click','li.js-page-action, li.ui-pager',function(e){if($(this).hasClass('ui-pager-disabled')||$(this).hasClass('focus')){return false;}if($(this).hasClass('js-page-action')){if($(this).hasClass('js-page-first')){me.current=1;}if($(this).hasClass('js-page-prev')){me.current=Math.max(1,me.current-1);}if($(this).hasClass('js-page-next')){me.current=Math.min(me.pagecount,me.current+1);}if($(this).hasClass('js-page-last')){me.current=me.pagecount;}}else if($(this).data('page')){me.current=parseInt($(this).data('page'));}me.go();});},go:function go(p){var me=this;this.current=p||this.current;this.current=Math.max(1,me.current);this.current=Math.min(this.current,me.pagecount);this.format();if(this.settings.hash){Query.setHash({page:this.current});}this.settings.callback&&this.settings.callback(this.current,this.pagesize,this.pagecount);},changePagesize:function changePagesize(ps){this.render({pagesize:ps});this.settings.callback&&this.settings.callback(this.current,this.pagesize,this.pagecount);},format:function format(){var html='<ul>';html+='<li class="js-page-first js-page-action ui-pager">'+this.settings.firstTpl+'</li>';html+='<li class="js-page-prev js-page-action ui-pager">'+this.settings.prevTpl+'</li>';if(this.pagecount>3){// html += '<li data-page="1" class="ui-pager">1</li>';
|
||
if(this.current<=1){html+='<li data-page="1" class="ui-pager">1</li>';html+='<li data-page="2" class="ui-pager">2</li>';html+='<li data-page="3" class="ui-pager">3</li>';// html += '<li class="ui-paging-ellipse">' + this.settings.ellipseTpl + '</li>';
|
||
}else if(this.current>1&&this.current<=this.pagecount-1){// html += '<li>' + this.settings.ellipseTpl + '</li>';
|
||
html+='<li data-page="'+(this.current-1)+'" class="ui-pager">'+(this.current-1)+'</li>';html+='<li data-page="'+this.current+'" class="ui-pager">'+this.current+'</li>';html+='<li data-page="'+(this.current+1)+'" class="ui-pager">'+(this.current+1)+'</li>';// html += '<li class="ui-paging-ellipse" class="ui-pager">' + this.settings.ellipseTpl + '</li>';
|
||
}else{//html += '<li class="ui-paging-ellipse" >' + this.settings.ellipseTpl + '</li>';
|
||
for(var i=this.pagecount-2;i<this.pagecount+1;i++){html+='<li data-page="'+i+'" class="ui-pager">'+i+'</li>';}}// html += '<li data-page="' + this.pagecount + '" class="ui-pager">' + this.pagecount + '</li>';
|
||
}else{for(var i=1;i<=this.pagecount;i++){html+='<li data-page="'+i+'" class="ui-pager">'+i+'</li>';}}html+='<li class="js-page-next js-page-action ui-pager">'+this.settings.nextTpl+'</li>';html+='<li class="js-page-last js-page-action ui-pager">'+this.settings.lastTpl+'</li>';html+='</ul>';html+='<div class="js-page-total">共'+this.count+'条记录 '+this.current+'/'+this.pagecount+'页</div>';$(this.container[0]).html(html);if(this.current==0||this.current==1){$('.js-page-prev',this.container).addClass('ui-pager-disabled');$('.js-page-first',this.container).addClass('ui-pager-disabled');}if(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');if(this.settings.toolbar){this.bindToolbar();}},bindToolbar:function bindToolbar(){var me=this;var html=$('<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>');var sel=$('.ui-select-pagesize',html);var str='';for(var i=0,l=this.settings.pageSizeList.length;i<l;i++){str+='<option value="'+this.settings.pageSizeList[i]+'">'+this.settings.pageSizeList[i]+'条/页</option>';}sel.html(str);sel.val(this.pagesize);$('input',html).val(this.current);$('input',html).click(function(){$(this).select();}).keydown(function(e){if(e.keyCode==13){var current=parseInt($(this).val())||1;me.go(current);}});$('a',html).click(function(){var current=parseInt($(this).prev().val())||1;me.go(current);});sel.change(function(){me.changePagesize($(this).val());});this.container.children('ul').append(html);}};return Paging;})();/*!
|
||
* Select2 4.0.5
|
||
* https://select2.github.io
|
||
*
|
||
* Released under the MIT license
|
||
* https://github.com/select2/select2/blob/master/LICENSE.md
|
||
*/(function(factory){if(typeof define==='function'&&define.amd){// AMD. Register as an anonymous module.
|
||
define(['jquery'],factory);}else if((typeof module==="undefined"?"undefined":_typeof2(module))==='object'&&module.exports){// Node/CommonJS
|
||
module.exports=function(root,jQuery){if(jQuery===undefined){// require('jQuery') returns a factory that requires window to
|
||
// build a jQuery instance, we normalize how we use modules
|
||
// that require this pattern but the window provided is a noop
|
||
// if it's defined (how jquery works)
|
||
if(typeof window!=='undefined'){jQuery=require('jquery');}else{jQuery=require('jquery')(root);}}factory(jQuery);return jQuery;};}else{// Browser globals
|
||
factory(jQuery);}})(function(jQuery){// This is needed so we can catch the AMD loader configuration and use it
|
||
// The inner file should be wrapped (by `banner.start.js`) in a function that
|
||
// returns the AMD loader references.
|
||
var S2=function(){// Restore the Select2 AMD loader so it can be used
|
||
// Needed mostly in the language files, where the loader is not inserted
|
||
if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var S2=jQuery.fn.select2.amd;}var S2;(function(){if(!S2||!S2.requirejs){if(!S2){S2={};}else{require=S2;}/**
|
||
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
|
||
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
|
||
*/ //Going sloppy to avoid 'use strict' string cost, but strict practices should
|
||
//be followed.
|
||
/*global setTimeout: false */var requirejs,require,define;(function(undef){var main,_req,makeMap,handlers,defined={},waiting={},config={},defining={},hasOwn=Object.prototype.hasOwnProperty,aps=[].slice,jsSuffixRegExp=/\.js$/;function hasProp(obj,prop){return hasOwn.call(obj,prop);}/**
|
||
* Given a relative module name, like ./something, normalize it to
|
||
* a real name that can be mapped to a path.
|
||
* @param {String} name the relative name
|
||
* @param {String} baseName a real name that the name arg is relative
|
||
* to.
|
||
* @returns {String} normalized name
|
||
*/function normalize(name,baseName){var nameParts,nameSegment,mapValue,foundMap,lastIndex,foundI,foundStarMap,starI,i,j,part,normalizedBaseParts,baseParts=baseName&&baseName.split("/"),map=config.map,starMap=map&&map['*']||{};//Adjust any relative paths.
|
||
if(name){name=name.split('/');lastIndex=name.length-1;// If wanting node ID compatibility, strip .js from end
|
||
// of IDs. Have to do this here, and not in nameToUrl
|
||
// because node allows either .js or non .js to map
|
||
// to same file.
|
||
if(config.nodeIdCompat&&jsSuffixRegExp.test(name[lastIndex])){name[lastIndex]=name[lastIndex].replace(jsSuffixRegExp,'');}// Starts with a '.' so need the baseName
|
||
if(name[0].charAt(0)==='.'&&baseParts){//Convert baseName to array, and lop off the last part,
|
||
//so that . matches that 'directory' and not name of the baseName's
|
||
//module. For instance, baseName of 'one/two/three', maps to
|
||
//'one/two/three.js', but we want the directory, 'one/two' for
|
||
//this normalization.
|
||
normalizedBaseParts=baseParts.slice(0,baseParts.length-1);name=normalizedBaseParts.concat(name);}//start trimDots
|
||
for(i=0;i<name.length;i++){part=name[i];if(part==='.'){name.splice(i,1);i-=1;}else if(part==='..'){// If at the start, or previous value is still ..,
|
||
// keep them so that when converted to a path it may
|
||
// still work when converted to a path, even though
|
||
// as an ID it is less than ideal. In larger point
|
||
// releases, may be better to just kick out an error.
|
||
if(i===0||i===1&&name[2]==='..'||name[i-1]==='..'){continue;}else if(i>0){name.splice(i-1,2);i-=2;}}}//end trimDots
|
||
name=name.join('/');}//Apply map config if available.
|
||
if((baseParts||starMap)&&map){nameParts=name.split('/');for(i=nameParts.length;i>0;i-=1){nameSegment=nameParts.slice(0,i).join("/");if(baseParts){//Find the longest baseName segment match in the config.
|
||
//So, do joins on the biggest to smallest lengths of baseParts.
|
||
for(j=baseParts.length;j>0;j-=1){mapValue=map[baseParts.slice(0,j).join('/')];//baseName segment has config, find if it has one for
|
||
//this name.
|
||
if(mapValue){mapValue=mapValue[nameSegment];if(mapValue){//Match, update name to the new value.
|
||
foundMap=mapValue;foundI=i;break;}}}}if(foundMap){break;}//Check for a star map match, but just hold on to it,
|
||
//if there is a shorter segment match later in a matching
|
||
//config, then favor over this star map.
|
||
if(!foundStarMap&&starMap&&starMap[nameSegment]){foundStarMap=starMap[nameSegment];starI=i;}}if(!foundMap&&foundStarMap){foundMap=foundStarMap;foundI=starI;}if(foundMap){nameParts.splice(0,foundI,foundMap);name=nameParts.join('/');}}return name;}function makeRequire(relName,forceSync){return function(){//A version of a require function that passes a moduleName
|
||
//value for items that may need to
|
||
//look up paths relative to the moduleName
|
||
var args=aps.call(arguments,0);//If first arg is not require('string'), and there is only
|
||
//one arg, it is the array form without a callback. Insert
|
||
//a null so that the following concat is correct.
|
||
if(typeof args[0]!=='string'&&args.length===1){args.push(null);}return _req.apply(undef,args.concat([relName,forceSync]));};}function makeNormalize(relName){return function(name){return normalize(name,relName);};}function makeLoad(depName){return function(value){defined[depName]=value;};}function callDep(name){if(hasProp(waiting,name)){var args=waiting[name];delete waiting[name];defining[name]=true;main.apply(undef,args);}if(!hasProp(defined,name)&&!hasProp(defining,name)){throw new Error('No '+name);}return defined[name];}//Turns a plugin!resource to [plugin, resource]
|
||
//with the plugin being undefined if the name
|
||
//did not have a plugin prefix.
|
||
function splitPrefix(name){var prefix,index=name?name.indexOf('!'):-1;if(index>-1){prefix=name.substring(0,index);name=name.substring(index+1,name.length);}return[prefix,name];}//Creates a parts array for a relName where first part is plugin ID,
|
||
//second part is resource ID. Assumes relName has already been normalized.
|
||
function makeRelParts(relName){return relName?splitPrefix(relName):[];}/**
|
||
* Makes a name map, normalizing the name, and using a plugin
|
||
* for normalization if necessary. Grabs a ref to plugin
|
||
* too, as an optimization.
|
||
*/makeMap=function makeMap(name,relParts){var plugin,parts=splitPrefix(name),prefix=parts[0],relResourceName=relParts[1];name=parts[1];if(prefix){prefix=normalize(prefix,relResourceName);plugin=callDep(prefix);}//Normalize according
|
||
if(prefix){if(plugin&&plugin.normalize){name=plugin.normalize(name,makeNormalize(relResourceName));}else{name=normalize(name,relResourceName);}}else{name=normalize(name,relResourceName);parts=splitPrefix(name);prefix=parts[0];name=parts[1];if(prefix){plugin=callDep(prefix);}}//Using ridiculous property names for space reasons
|
||
return{f:prefix?prefix+'!'+name:name,//fullName
|
||
n:name,pr:prefix,p:plugin};};function makeConfig(name){return function(){return config&&config.config&&config.config[name]||{};};}handlers={require:function require(name){return makeRequire(name);},exports:function exports(name){var e=defined[name];if(typeof e!=='undefined'){return e;}else{return defined[name]={};}},module:function module(name){return{id:name,uri:'',exports:defined[name],config:makeConfig(name)};}};main=function main(name,deps,callback,relName){var cjsModule,depName,ret,map,i,relParts,args=[],callbackType=_typeof2(callback),usingExports;//Use name if no relName
|
||
relName=relName||name;relParts=makeRelParts(relName);//Call the callback to define the module, if necessary.
|
||
if(callbackType==='undefined'||callbackType==='function'){//Pull out the defined dependencies and pass the ordered
|
||
//values to the callback.
|
||
//Default to [require, exports, module] if no deps
|
||
deps=!deps.length&&callback.length?['require','exports','module']:deps;for(i=0;i<deps.length;i+=1){map=makeMap(deps[i],relParts);depName=map.f;//Fast path CommonJS standard dependencies.
|
||
if(depName==="require"){args[i]=handlers.require(name);}else if(depName==="exports"){//CommonJS module spec 1.1
|
||
args[i]=handlers.exports(name);usingExports=true;}else if(depName==="module"){//CommonJS module spec 1.1
|
||
cjsModule=args[i]=handlers.module(name);}else if(hasProp(defined,depName)||hasProp(waiting,depName)||hasProp(defining,depName)){args[i]=callDep(depName);}else if(map.p){map.p.load(map.n,makeRequire(relName,true),makeLoad(depName),{});args[i]=defined[depName];}else{throw new Error(name+' missing '+depName);}}ret=callback?callback.apply(defined[name],args):undefined;if(name){//If setting exports via "module" is in play,
|
||
//favor that over return value and exports. After that,
|
||
//favor a non-undefined return value over exports use.
|
||
if(cjsModule&&cjsModule.exports!==undef&&cjsModule.exports!==defined[name]){defined[name]=cjsModule.exports;}else if(ret!==undef||!usingExports){//Use the return value from the function.
|
||
defined[name]=ret;}}}else if(name){//May just be an object definition for the module. Only
|
||
//worry about defining if have a module name.
|
||
defined[name]=callback;}};requirejs=require=_req=function req(deps,callback,relName,forceSync,alt){if(typeof deps==="string"){if(handlers[deps]){//callback in this case is really relName
|
||
return handlers[deps](callback);}//Just return the module wanted. In this scenario, the
|
||
//deps arg is the module name, and second arg (if passed)
|
||
//is just the relName.
|
||
//Normalize module name, if it contains . or ..
|
||
return callDep(makeMap(deps,makeRelParts(callback)).f);}else if(!deps.splice){//deps is a config object, not an array.
|
||
config=deps;if(config.deps){_req(config.deps,config.callback);}if(!callback){return;}if(callback.splice){//callback is an array, which means it is a dependency list.
|
||
//Adjust args if there are dependencies
|
||
deps=callback;callback=relName;relName=null;}else{deps=undef;}}//Support require(['a'])
|
||
callback=callback||function(){};//If relName is a function, it is an errback handler,
|
||
//so remove it.
|
||
if(typeof relName==='function'){relName=forceSync;forceSync=alt;}//Simulate async callback;
|
||
if(forceSync){main(undef,deps,callback,relName);}else{//Using a non-zero value because of concern for what old browsers
|
||
//do, and latest browsers "upgrade" to 4 if lower value is used:
|
||
//http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout:
|
||
//If want a value immediately, use require('id') instead -- something
|
||
//that works in almond on the global level, but not guaranteed and
|
||
//unlikely to work in other AMD implementations.
|
||
setTimeout(function(){main(undef,deps,callback,relName);},4);}return _req;};/**
|
||
* Just drops the config on the floor, but returns req in case
|
||
* the config return value is used.
|
||
*/_req.config=function(cfg){return _req(cfg);};/**
|
||
* Expose module registry for debugging and tooling
|
||
*/requirejs._defined=defined;define=function define(name,deps,callback){if(typeof name!=='string'){throw new Error('See almond README: incorrect module build, no module name');}//This module may not have dependencies
|
||
if(!deps.splice){//deps is not an array, so probably means
|
||
//an object literal or factory function for
|
||
//the value. Adjust args.
|
||
callback=deps;deps=[];}if(!hasProp(defined,name)&&!hasProp(waiting,name)){waiting[name]=[name,deps,callback];}};define.amd={jQuery:true};})();S2.requirejs=requirejs;S2.require=require;S2.define=define;}})();S2.define("almond",function(){});/* global jQuery:false, $:false */S2.define('jquery',[],function(){var _$=jQuery||$;if(_$==null&&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.');}return _$;});S2.define('select2/utils',['jquery'],function($){var Utils={};Utils.Extend=function(ChildClass,SuperClass){var __hasProp={}.hasOwnProperty;function BaseConstructor(){this.constructor=ChildClass;}for(var key in SuperClass){if(__hasProp.call(SuperClass,key)){ChildClass[key]=SuperClass[key];}}BaseConstructor.prototype=SuperClass.prototype;ChildClass.prototype=new BaseConstructor();ChildClass.__super__=SuperClass.prototype;return ChildClass;};function getMethods(theClass){var proto=theClass.prototype;var methods=[];for(var methodName in proto){var m=proto[methodName];if(typeof m!=='function'){continue;}if(methodName==='constructor'){continue;}methods.push(methodName);}return methods;}Utils.Decorate=function(SuperClass,DecoratorClass){var decoratedMethods=getMethods(DecoratorClass);var superMethods=getMethods(SuperClass);function DecoratedClass(){var unshift=Array.prototype.unshift;var argCount=DecoratorClass.prototype.constructor.length;var calledConstructor=SuperClass.prototype.constructor;if(argCount>0){unshift.call(arguments,SuperClass.prototype.constructor);calledConstructor=DecoratorClass.prototype.constructor;}calledConstructor.apply(this,arguments);}DecoratorClass.displayName=SuperClass.displayName;function ctr(){this.constructor=DecoratedClass;}DecoratedClass.prototype=new ctr();for(var m=0;m<superMethods.length;m++){var superMethod=superMethods[m];DecoratedClass.prototype[superMethod]=SuperClass.prototype[superMethod];}var calledMethod=function calledMethod(methodName){// Stub out the original method if it's not decorating an actual method
|
||
var originalMethod=function originalMethod(){};if(methodName in DecoratedClass.prototype){originalMethod=DecoratedClass.prototype[methodName];}var decoratedMethod=DecoratorClass.prototype[methodName];return function(){var unshift=Array.prototype.unshift;unshift.call(arguments,originalMethod);return decoratedMethod.apply(this,arguments);};};for(var d=0;d<decoratedMethods.length;d++){var decoratedMethod=decoratedMethods[d];DecoratedClass.prototype[decoratedMethod]=calledMethod(decoratedMethod);}return DecoratedClass;};var Observable=function Observable(){this.listeners={};};Observable.prototype.on=function(event,callback){this.listeners=this.listeners||{};if(event in this.listeners){this.listeners[event].push(callback);}else{this.listeners[event]=[callback];}};Observable.prototype.trigger=function(event){var slice=Array.prototype.slice;var params=slice.call(arguments,1);this.listeners=this.listeners||{};// Params should always come in as an array
|
||
if(params==null){params=[];}// If there are no arguments to the event, use a temporary object
|
||
if(params.length===0){params.push({});}// Set the `_type` of the first object to the event
|
||
params[0]._type=event;if(event in this.listeners){this.invoke(this.listeners[event],slice.call(arguments,1));}if('*'in this.listeners){this.invoke(this.listeners['*'],arguments);}};Observable.prototype.invoke=function(listeners,params){for(var i=0,len=listeners.length;i<len;i++){listeners[i].apply(this,params);}};Utils.Observable=Observable;Utils.generateChars=function(length){var chars='';for(var i=0;i<length;i++){var randomChar=Math.floor(Math.random()*36);chars+=randomChar.toString(36);}return chars;};Utils.bind=function(func,context){return function(){func.apply(context,arguments);};};Utils._convertData=function(data){for(var originalKey in data){var keys=originalKey.split('-');var dataLevel=data;if(keys.length===1){continue;}for(var k=0;k<keys.length;k++){var key=keys[k];// Lowercase the first letter
|
||
// By default, dash-separated becomes camelCase
|
||
key=key.substring(0,1).toLowerCase()+key.substring(1);if(!(key in dataLevel)){dataLevel[key]={};}if(k==keys.length-1){dataLevel[key]=data[originalKey];}dataLevel=dataLevel[key];}delete data[originalKey];}return data;};Utils.hasScroll=function(index,el){// Adapted from the function created by @ShadowScripter
|
||
// and adapted by @BillBarry on the Stack Exchange Code Review website.
|
||
// The original code can be found at
|
||
// http://codereview.stackexchange.com/q/13338
|
||
// and was designed to be used with the Sizzle selector engine.
|
||
var $el=$(el);var overflowX=el.style.overflowX;var overflowY=el.style.overflowY;//Check both x and y declarations
|
||
if(overflowX===overflowY&&(overflowY==='hidden'||overflowY==='visible')){return false;}if(overflowX==='scroll'||overflowY==='scroll'){return true;}return $el.innerHeight()<el.scrollHeight||$el.innerWidth()<el.scrollWidth;};Utils.escapeMarkup=function(markup){var replaceMap={'\\':'\','&':'&','<':'<','>':'>','"':'"','\'':''','/':'/'};// Do not try to escape the markup if it's not a string
|
||
if(typeof markup!=='string'){return markup;}return String(markup).replace(/[&<>"'\/\\]/g,function(match){return replaceMap[match];});};// Append an array of jQuery nodes to a given element.
|
||
Utils.appendMany=function($element,$nodes){// jQuery 1.7.x does not support $.fn.append() with an array
|
||
// Fall back to a jQuery object collection using $.fn.add()
|
||
if($.fn.jquery.substr(0,3)==='1.7'){var $jqNodes=$();$.map($nodes,function(node){$jqNodes=$jqNodes.add(node);});$nodes=$jqNodes;}$element.append($nodes);};return Utils;});S2.define('select2/results',['jquery','./utils'],function($,Utils){function Results($element,options,dataAdapter){this.$element=$element;this.data=dataAdapter;this.options=options;Results.__super__.constructor.call(this);}Utils.Extend(Results,Utils.Observable);Results.prototype.render=function(){var $results=$('<ul class="select2-results__options" role="tree"></ul>');if(this.options.get('multiple')){$results.attr('aria-multiselectable','true');}this.$results=$results;return $results;};Results.prototype.clear=function(){this.$results.empty();};Results.prototype.displayMessage=function(params){var escapeMarkup=this.options.get('escapeMarkup');this.clear();this.hideLoading();var $message=$('<li role="treeitem" aria-live="assertive"'+' class="select2-results__option"></li>');var message=this.options.get('translations').get(params.message);$message.append(escapeMarkup(message(params.args)));$message[0].className+=' select2-results__message';this.$results.append($message);};Results.prototype.hideMessages=function(){this.$results.find('.select2-results__message').remove();};Results.prototype.append=function(data){this.hideLoading();var $options=[];if(data.results==null||data.results.length===0){if(this.$results.children().length===0){this.trigger('results:message',{message:'noResults'});}return;}data.results=this.sort(data.results);for(var d=0;d<data.results.length;d++){var item=data.results[d];var $option=this.option(item);$options.push($option);}this.$results.append($options);};Results.prototype.position=function($results,$dropdown){var $resultsContainer=$dropdown.find('.select2-results');$resultsContainer.append($results);};Results.prototype.sort=function(data){var sorter=this.options.get('sorter');return sorter(data);};Results.prototype.highlightFirstItem=function(){var $options=this.$results.find('.select2-results__option[aria-selected]');var $selected=$options.filter('[aria-selected=true]');// Check if there are any selected options
|
||
if($selected.length>0){// If there are selected options, highlight the first
|
||
$selected.first().trigger('mouseenter');}else{// If there are no selected options, highlight the first option
|
||
// in the dropdown
|
||
$options.first().trigger('mouseenter');}this.ensureHighlightVisible();};Results.prototype.setClasses=function(){var self=this;this.data.current(function(selected){var selectedIds=$.map(selected,function(s){return s.id.toString();});var $options=self.$results.find('.select2-results__option[aria-selected]');$options.each(function(){var $option=$(this);var item=$.data(this,'data');// id needs to be converted to a string when comparing
|
||
var id=''+item.id;if(item.element!=null&&item.element.selected||item.element==null&&$.inArray(id,selectedIds)>-1){$option.attr('aria-selected','true');}else{$option.attr('aria-selected','false');}});});};Results.prototype.showLoading=function(params){this.hideLoading();var loadingMore=this.options.get('translations').get('searching');var loading={disabled:true,loading:true,text:loadingMore(params)};var $loading=this.option(loading);$loading.className+=' loading-results';this.$results.prepend($loading);};Results.prototype.hideLoading=function(){this.$results.find('.loading-results').remove();};Results.prototype.option=function(data){var option=document.createElement('li');option.className='select2-results__option';var attrs={'role':'treeitem','aria-selected':'false'};if(data.disabled){delete attrs['aria-selected'];attrs['aria-disabled']='true';}if(data.id==null){delete attrs['aria-selected'];}if(data._resultId!=null){option.id=data._resultId;}if(data.title){option.title=data.title;}if(data.children){attrs.role='group';attrs['aria-label']=data.text;delete attrs['aria-selected'];}for(var attr in attrs){var val=attrs[attr];option.setAttribute(attr,val);}if(data.children){var $option=$(option);var label=document.createElement('strong');label.className='select2-results__group';var $label=$(label);this.template(data,label);var $children=[];for(var c=0;c<data.children.length;c++){var child=data.children[c];var $child=this.option(child);$children.push($child);}var $childrenContainer=$('<ul></ul>',{'class':'select2-results__options select2-results__options--nested'});$childrenContainer.append($children);$option.append(label);$option.append($childrenContainer);}else{this.template(data,option);}$.data(option,'data',data);return option;};Results.prototype.bind=function(container,$container){var self=this;var id=container.id+'-results';this.$results.attr('id',id);container.on('results:all',function(params){self.clear();self.append(params.data);if(container.isOpen()){self.setClasses();self.highlightFirstItem();}});container.on('results:append',function(params){self.append(params.data);if(container.isOpen()){self.setClasses();}});container.on('query',function(params){self.hideMessages();self.showLoading(params);});container.on('select',function(){if(!container.isOpen()){return;}self.setClasses();self.highlightFirstItem();});container.on('unselect',function(){if(!container.isOpen()){return;}self.setClasses();self.highlightFirstItem();});container.on('open',function(){// When the dropdown is open, aria-expended="true"
|
||
self.$results.attr('aria-expanded','true');self.$results.attr('aria-hidden','false');self.setClasses();self.ensureHighlightVisible();});container.on('close',function(){// When the dropdown is closed, aria-expended="false"
|
||
self.$results.attr('aria-expanded','false');self.$results.attr('aria-hidden','true');self.$results.removeAttr('aria-activedescendant');});container.on('results:toggle',function(){var $highlighted=self.getHighlightedResults();if($highlighted.length===0){return;}$highlighted.trigger('mouseup');});container.on('results:select',function(){var $highlighted=self.getHighlightedResults();if($highlighted.length===0){return;}var data=$highlighted.data('data');if($highlighted.attr('aria-selected')=='true'){self.trigger('close',{});}else{self.trigger('select',{data:data});}});container.on('results:previous',function(){var $highlighted=self.getHighlightedResults();var $options=self.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);// If we are already at te top, don't move further
|
||
if(currentIndex===0){return;}var nextIndex=currentIndex-1;// If none are highlighted, highlight the first
|
||
if($highlighted.length===0){nextIndex=0;}var $next=$options.eq(nextIndex);$next.trigger('mouseenter');var currentOffset=self.$results.offset().top;var nextTop=$next.offset().top;var nextOffset=self.$results.scrollTop()+(nextTop-currentOffset);if(nextIndex===0){self.$results.scrollTop(0);}else if(nextTop-currentOffset<0){self.$results.scrollTop(nextOffset);}});container.on('results:next',function(){var $highlighted=self.getHighlightedResults();var $options=self.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);var nextIndex=currentIndex+1;// If we are at the last option, stay there
|
||
if(nextIndex>=$options.length){return;}var $next=$options.eq(nextIndex);$next.trigger('mouseenter');var currentOffset=self.$results.offset().top+self.$results.outerHeight(false);var nextBottom=$next.offset().top+$next.outerHeight(false);var nextOffset=self.$results.scrollTop()+nextBottom-currentOffset;if(nextIndex===0){self.$results.scrollTop(0);}else if(nextBottom>currentOffset){self.$results.scrollTop(nextOffset);}});container.on('results:focus',function(params){params.element.addClass('select2-results__option--highlighted');});container.on('results:message',function(params){self.displayMessage(params);});if($.fn.mousewheel){this.$results.on('mousewheel',function(e){var top=self.$results.scrollTop();var bottom=self.$results.get(0).scrollHeight-top+e.deltaY;var isAtTop=e.deltaY>0&&top-e.deltaY<=0;var isAtBottom=e.deltaY<0&&bottom<=self.$results.height();if(isAtTop){self.$results.scrollTop(0);e.preventDefault();e.stopPropagation();}else if(isAtBottom){self.$results.scrollTop(self.$results.get(0).scrollHeight-self.$results.height());e.preventDefault();e.stopPropagation();}});}this.$results.on('mouseup','.select2-results__option[aria-selected]',function(evt){var $this=$(this);var data=$this.data('data');if($this.attr('aria-selected')==='true'){if(self.options.get('multiple')){self.trigger('unselect',{originalEvent:evt,data:data});}else{self.trigger('close',{});}return;}self.trigger('select',{originalEvent:evt,data:data});});this.$results.on('mouseenter','.select2-results__option[aria-selected]',function(evt){var data=$(this).data('data');self.getHighlightedResults().removeClass('select2-results__option--highlighted');self.trigger('results:focus',{data:data,element:$(this)});});};Results.prototype.getHighlightedResults=function(){var $highlighted=this.$results.find('.select2-results__option--highlighted');return $highlighted;};Results.prototype.destroy=function(){this.$results.remove();};Results.prototype.ensureHighlightVisible=function(){var $highlighted=this.getHighlightedResults();if($highlighted.length===0){return;}var $options=this.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);var currentOffset=this.$results.offset().top;var nextTop=$highlighted.offset().top;var nextOffset=this.$results.scrollTop()+(nextTop-currentOffset);var offsetDelta=nextTop-currentOffset;nextOffset-=$highlighted.outerHeight(false)*2;if(currentIndex<=2){this.$results.scrollTop(0);}else if(offsetDelta>this.$results.outerHeight()||offsetDelta<0){this.$results.scrollTop(nextOffset);}};Results.prototype.template=function(result,container){var template=this.options.get('templateResult');var escapeMarkup=this.options.get('escapeMarkup');var content=template(result,container);if(content==null){container.style.display='none';}else if(typeof content==='string'){container.innerHTML=escapeMarkup(content);}else{$(container).append(content);}};return Results;});S2.define('select2/keys',[],function(){var KEYS={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};return KEYS;});S2.define('select2/selection/base',['jquery','../utils','../keys'],function($,Utils,KEYS){function BaseSelection($element,options){this.$element=$element;this.options=options;BaseSelection.__super__.constructor.call(this);}Utils.Extend(BaseSelection,Utils.Observable);BaseSelection.prototype.render=function(){var $selection=$('<span class="select2-selection" role="combobox" '+' aria-haspopup="true" aria-expanded="false">'+'</span>');this._tabindex=0;if(this.$element.data('old-tabindex')!=null){this._tabindex=this.$element.data('old-tabindex');}else if(this.$element.attr('tabindex')!=null){this._tabindex=this.$element.attr('tabindex');}$selection.attr('title',this.$element.attr('title'));$selection.attr('tabindex',this._tabindex);this.$selection=$selection;return $selection;};BaseSelection.prototype.bind=function(container,$container){var self=this;var id=container.id+'-container';var resultsId=container.id+'-results';this.container=container;this.$selection.on('focus',function(evt){self.trigger('focus',evt);});this.$selection.on('blur',function(evt){self._handleBlur(evt);});this.$selection.on('keydown',function(evt){self.trigger('keypress',evt);if(evt.which===KEYS.SPACE){evt.preventDefault();}});container.on('results:focus',function(params){self.$selection.attr('aria-activedescendant',params.data._resultId);});container.on('selection:update',function(params){self.update(params.data);});container.on('open',function(){// When the dropdown is open, aria-expanded="true"
|
||
self.$selection.attr('aria-expanded','true');self.$selection.attr('aria-owns',resultsId);self._attachCloseHandler(container);});container.on('close',function(){// When the dropdown is closed, aria-expanded="false"
|
||
self.$selection.attr('aria-expanded','false');self.$selection.removeAttr('aria-activedescendant');self.$selection.removeAttr('aria-owns');self.$selection.focus();self._detachCloseHandler(container);});container.on('enable',function(){self.$selection.attr('tabindex',self._tabindex);});container.on('disable',function(){self.$selection.attr('tabindex','-1');});};BaseSelection.prototype._handleBlur=function(evt){var self=this;// This needs to be delayed as the active element is the body when the tab
|
||
// key is pressed, possibly along with others.
|
||
window.setTimeout(function(){// Don't trigger `blur` if the focus is still in the selection
|
||
if(document.activeElement==self.$selection[0]||$.contains(self.$selection[0],document.activeElement)){return;}self.trigger('blur',evt);},1);};BaseSelection.prototype._attachCloseHandler=function(container){var self=this;$(document.body).on('mousedown.select2.'+container.id,function(e){var $target=$(e.target);var $select=$target.closest('.select2');var $all=$('.select2.select2-container--open');$all.each(function(){var $this=$(this);if(this==$select[0]){return;}var $element=$this.data('element');$element.select2('close');});});};BaseSelection.prototype._detachCloseHandler=function(container){$(document.body).off('mousedown.select2.'+container.id);};BaseSelection.prototype.position=function($selection,$container){var $selectionContainer=$container.find('.selection');$selectionContainer.append($selection);};BaseSelection.prototype.destroy=function(){this._detachCloseHandler(this.container);};BaseSelection.prototype.update=function(data){throw new Error('The `update` method must be defined in child classes.');};return BaseSelection;});S2.define('select2/selection/single',['jquery','./base','../utils','../keys'],function($,BaseSelection,Utils,KEYS){function SingleSelection(){SingleSelection.__super__.constructor.apply(this,arguments);}Utils.Extend(SingleSelection,BaseSelection);SingleSelection.prototype.render=function(){var $selection=SingleSelection.__super__.render.call(this);$selection.addClass('select2-selection--single');$selection.html('<span class="select2-selection__rendered"></span>'+'<span class="select2-selection__arrow" role="presentation">'+'<b role="presentation"></b>'+'</span>');return $selection;};SingleSelection.prototype.bind=function(container,$container){var self=this;SingleSelection.__super__.bind.apply(this,arguments);var id=container.id+'-container';this.$selection.find('.select2-selection__rendered').attr('id',id);this.$selection.attr('aria-labelledby',id);this.$selection.on('mousedown',function(evt){// Only respond to left clicks
|
||
if(evt.which!==1){return;}self.trigger('toggle',{originalEvent:evt});});this.$selection.on('focus',function(evt){// User focuses on the container
|
||
});this.$selection.on('blur',function(evt){// User exits the container
|
||
});container.on('focus',function(evt){if(!container.isOpen()){self.$selection.focus();}});container.on('selection:update',function(params){self.update(params.data);});};SingleSelection.prototype.clear=function(){this.$selection.find('.select2-selection__rendered').empty();};SingleSelection.prototype.display=function(data,container){var template=this.options.get('templateSelection');var escapeMarkup=this.options.get('escapeMarkup');return escapeMarkup(template(data,container));};SingleSelection.prototype.selectionContainer=function(){return $('<span></span>');};SingleSelection.prototype.update=function(data){if(data.length===0){this.clear();return;}var selection=data[0];var $rendered=this.$selection.find('.select2-selection__rendered');var formatted=this.display(selection,$rendered);$rendered.empty().append(formatted);$rendered.prop('title',selection.title||selection.text);};return SingleSelection;});S2.define('select2/selection/multiple',['jquery','./base','../utils'],function($,BaseSelection,Utils){function MultipleSelection($element,options){MultipleSelection.__super__.constructor.apply(this,arguments);}Utils.Extend(MultipleSelection,BaseSelection);MultipleSelection.prototype.render=function(){var $selection=MultipleSelection.__super__.render.call(this);$selection.addClass('select2-selection--multiple');$selection.html('<ul class="select2-selection__rendered"></ul>');return $selection;};MultipleSelection.prototype.bind=function(container,$container){var self=this;MultipleSelection.__super__.bind.apply(this,arguments);this.$selection.on('click',function(evt){self.trigger('toggle',{originalEvent:evt});});this.$selection.on('click','.select2-selection__choice__remove',function(evt){// Ignore the event if it is disabled
|
||
if(self.options.get('disabled')){return;}var $remove=$(this);var $selection=$remove.parent();var data=$selection.data('data');self.trigger('unselect',{originalEvent:evt,data:data});});};MultipleSelection.prototype.clear=function(){this.$selection.find('.select2-selection__rendered').empty();};MultipleSelection.prototype.display=function(data,container){var template=this.options.get('templateSelection');var escapeMarkup=this.options.get('escapeMarkup');return escapeMarkup(template(data,container));};MultipleSelection.prototype.selectionContainer=function(){var $container=$('<li class="select2-selection__choice">'+'<span class="select2-selection__choice__remove" role="presentation">'+'×'+'</span>'+'</li>');return $container;};MultipleSelection.prototype.update=function(data){this.clear();if(data.length===0){return;}var $selections=[];for(var d=0;d<data.length;d++){var selection=data[d];var $selection=this.selectionContainer();var formatted=this.display(selection,$selection);$selection.append(formatted);$selection.prop('title',selection.title||selection.text);$selection.data('data',selection);$selections.push($selection);}var $rendered=this.$selection.find('.select2-selection__rendered');Utils.appendMany($rendered,$selections);};return MultipleSelection;});S2.define('select2/selection/placeholder',['../utils'],function(Utils){function Placeholder(decorated,$element,options){this.placeholder=this.normalizePlaceholder(options.get('placeholder'));decorated.call(this,$element,options);}Placeholder.prototype.normalizePlaceholder=function(_,placeholder){if(typeof placeholder==='string'){placeholder={id:'',text:placeholder};}return placeholder;};Placeholder.prototype.createPlaceholder=function(decorated,placeholder){var $placeholder=this.selectionContainer();$placeholder.html(this.display(placeholder));$placeholder.addClass('select2-selection__placeholder').removeClass('select2-selection__choice');return $placeholder;};Placeholder.prototype.update=function(decorated,data){var singlePlaceholder=data.length==1&&data[0].id!=this.placeholder.id;var multipleSelections=data.length>1;if(multipleSelections||singlePlaceholder){return decorated.call(this,data);}this.clear();var $placeholder=this.createPlaceholder(this.placeholder);this.$selection.find('.select2-selection__rendered').append($placeholder);};return Placeholder;});S2.define('select2/selection/allowClear',['jquery','../keys'],function($,KEYS){function AllowClear(){}AllowClear.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);if(this.placeholder==null){if(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(evt){self._handleClear(evt);});container.on('keypress',function(evt){self._handleKeyboardClear(evt,container);});};AllowClear.prototype._handleClear=function(_,evt){// Ignore the event if it is disabled
|
||
if(this.options.get('disabled')){return;}var $clear=this.$selection.find('.select2-selection__clear');// Ignore the event if nothing has been selected
|
||
if($clear.length===0){return;}evt.stopPropagation();var data=$clear.data('data');for(var d=0;d<data.length;d++){var unselectData={data:data[d]};// Trigger the `unselect` event, so people can prevent it from being
|
||
// cleared.
|
||
this.trigger('unselect',unselectData);// If the event was prevented, don't clear it out.
|
||
if(unselectData.prevented){return;}}this.$element.val(this.placeholder.id).trigger('change');this.trigger('toggle',{});};AllowClear.prototype._handleKeyboardClear=function(_,evt,container){if(container.isOpen()){return;}if(evt.which==KEYS.DELETE||evt.which==KEYS.BACKSPACE){this._handleClear(evt);}};AllowClear.prototype.update=function(decorated,data){decorated.call(this,data);if(this.$selection.find('.select2-selection__placeholder').length>0||data.length===0){return;}var $remove=$('<span class="select2-selection__clear">'+'×'+'</span>');$remove.data('data',data);this.$selection.find('.select2-selection__rendered').prepend($remove);};return AllowClear;});S2.define('select2/selection/search',['jquery','../utils','../keys'],function($,Utils,KEYS){function Search(decorated,$element,options){decorated.call(this,$element,options);}Search.prototype.render=function(decorated){var $search=$('<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=$search;this.$search=$search.find('input');var $rendered=decorated.call(this);this._transferTabIndex();return $rendered;};Search.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('open',function(){self.$search.trigger('focus');});container.on('close',function(){self.$search.val('');self.$search.removeAttr('aria-activedescendant');self.$search.trigger('focus');});container.on('enable',function(){self.$search.prop('disabled',false);self._transferTabIndex();});container.on('disable',function(){self.$search.prop('disabled',true);});container.on('focus',function(evt){self.$search.trigger('focus');});container.on('results:focus',function(params){self.$search.attr('aria-activedescendant',params.id);});this.$selection.on('focusin','.select2-search--inline',function(evt){self.trigger('focus',evt);});this.$selection.on('focusout','.select2-search--inline',function(evt){self._handleBlur(evt);});this.$selection.on('keydown','.select2-search--inline',function(evt){evt.stopPropagation();self.trigger('keypress',evt);self._keyUpPrevented=evt.isDefaultPrevented();var key=evt.which;if(key===KEYS.BACKSPACE&&self.$search.val()===''){var $previousChoice=self.$searchContainer.prev('.select2-selection__choice');if($previousChoice.length>0){var item=$previousChoice.data('data');self.searchRemoveChoice(item);evt.preventDefault();}}});// Try to detect the IE version should the `documentMode` property that
|
||
// is stored on the document. This is only implemented in IE and is
|
||
// slightly cleaner than doing a user agent check.
|
||
// This property is not available in Edge, but Edge also doesn't have
|
||
// this bug.
|
||
var msie=document.documentMode;var disableInputEvents=msie&&msie<=11;// Workaround for browsers which do not support the `input` event
|
||
// This will prevent double-triggering of events for browsers which support
|
||
// both the `keyup` and `input` events.
|
||
this.$selection.on('input.searchcheck','.select2-search--inline',function(evt){// IE will trigger the `input` event when a placeholder is used on a
|
||
// search box. To get around this issue, we are forced to ignore all
|
||
// `input` events in IE and keep using `keyup`.
|
||
if(disableInputEvents){self.$selection.off('input.search input.searchcheck');return;}// Unbind the duplicated `keyup` event
|
||
self.$selection.off('keyup.search');});this.$selection.on('keyup.search input.search','.select2-search--inline',function(evt){// IE will trigger the `input` event when a placeholder is used on a
|
||
// search box. To get around this issue, we are forced to ignore all
|
||
// `input` events in IE and keep using `keyup`.
|
||
if(disableInputEvents&&evt.type==='input'){self.$selection.off('input.search input.searchcheck');return;}var key=evt.which;// We can freely ignore events from modifier keys
|
||
if(key==KEYS.SHIFT||key==KEYS.CTRL||key==KEYS.ALT){return;}// Tabbing will be handled during the `keydown` phase
|
||
if(key==KEYS.TAB){return;}self.handleSearch(evt);});};/**
|
||
* This method will transfer the tabindex attribute from the rendered
|
||
* selection to the search box. This allows for the search box to be used as
|
||
* the primary focus instead of the selection container.
|
||
*
|
||
* @private
|
||
*/Search.prototype._transferTabIndex=function(decorated){this.$search.attr('tabindex',this.$selection.attr('tabindex'));this.$selection.attr('tabindex','-1');};Search.prototype.createPlaceholder=function(decorated,placeholder){this.$search.attr('placeholder',placeholder.text);};Search.prototype.update=function(decorated,data){var searchHadFocus=this.$search[0]==document.activeElement;this.$search.attr('placeholder','');decorated.call(this,data);this.$selection.find('.select2-selection__rendered').append(this.$searchContainer);this.resizeSearch();if(searchHadFocus){this.$search.focus();}};Search.prototype.handleSearch=function(){this.resizeSearch();if(!this._keyUpPrevented){var input=this.$search.val();this.trigger('query',{term:input});}this._keyUpPrevented=false;};Search.prototype.searchRemoveChoice=function(decorated,item){this.trigger('unselect',{data:item});this.$search.val(item.text);this.handleSearch();};Search.prototype.resizeSearch=function(){this.$search.css('width','25px');var width='';if(this.$search.attr('placeholder')!==''){width=this.$selection.find('.select2-selection__rendered').innerWidth();}else{var minimumWidth=this.$search.val().length+1;width=minimumWidth*0.75+'em';}this.$search.css('width',width);};return Search;});S2.define('select2/selection/eventRelay',['jquery'],function($){function EventRelay(){}EventRelay.prototype.bind=function(decorated,container,$container){var self=this;var relayEvents=['open','opening','close','closing','select','selecting','unselect','unselecting'];var preventableEvents=['opening','closing','selecting','unselecting'];decorated.call(this,container,$container);container.on('*',function(name,params){// Ignore events that should not be relayed
|
||
if($.inArray(name,relayEvents)===-1){return;}// The parameters should always be an object
|
||
params=params||{};// Generate the jQuery event for the Select2 event
|
||
var evt=$.Event('select2:'+name,{params:params});self.$element.trigger(evt);// Only handle preventable events if it was one
|
||
if($.inArray(name,preventableEvents)===-1){return;}params.prevented=evt.isDefaultPrevented();});};return EventRelay;});S2.define('select2/translation',['jquery','require'],function($,require){function Translation(dict){this.dict=dict||{};}Translation.prototype.all=function(){return this.dict;};Translation.prototype.get=function(key){return this.dict[key];};Translation.prototype.extend=function(translation){this.dict=$.extend({},translation.all(),this.dict);};// Static functions
|
||
Translation._cache={};Translation.loadPath=function(path){if(!(path in Translation._cache)){var translations=require(path);Translation._cache[path]=translations;}return new Translation(Translation._cache[path]);};return Translation;});S2.define('select2/diacritics',[],function(){var diacritics={"\u24B6":'A',"\uFF21":'A',"\xC0":'A',"\xC1":'A',"\xC2":'A',"\u1EA6":'A',"\u1EA4":'A',"\u1EAA":'A',"\u1EA8":'A',"\xC3":'A',"\u0100":'A',"\u0102":'A',"\u1EB0":'A',"\u1EAE":'A',"\u1EB4":'A',"\u1EB2":'A',"\u0226":'A',"\u01E0":'A',"\xC4":'A',"\u01DE":'A',"\u1EA2":'A',"\xC5":'A',"\u01FA":'A',"\u01CD":'A',"\u0200":'A',"\u0202":'A',"\u1EA0":'A',"\u1EAC":'A',"\u1EB6":'A',"\u1E00":'A',"\u0104":'A',"\u023A":'A',"\u2C6F":'A',"\uA732":'AA',"\xC6":'AE',"\u01FC":'AE',"\u01E2":'AE',"\uA734":'AO',"\uA736":'AU',"\uA738":'AV',"\uA73A":'AV',"\uA73C":'AY',"\u24B7":'B',"\uFF22":'B',"\u1E02":'B',"\u1E04":'B',"\u1E06":'B',"\u0243":'B',"\u0182":'B',"\u0181":'B',"\u24B8":'C',"\uFF23":'C',"\u0106":'C',"\u0108":'C',"\u010A":'C',"\u010C":'C',"\xC7":'C',"\u1E08":'C',"\u0187":'C',"\u023B":'C',"\uA73E":'C',"\u24B9":'D',"\uFF24":'D',"\u1E0A":'D',"\u010E":'D',"\u1E0C":'D',"\u1E10":'D',"\u1E12":'D',"\u1E0E":'D',"\u0110":'D',"\u018B":'D',"\u018A":'D',"\u0189":'D',"\uA779":'D',"\u01F1":'DZ',"\u01C4":'DZ',"\u01F2":'Dz',"\u01C5":'Dz',"\u24BA":'E',"\uFF25":'E',"\xC8":'E',"\xC9":'E',"\xCA":'E',"\u1EC0":'E',"\u1EBE":'E',"\u1EC4":'E',"\u1EC2":'E',"\u1EBC":'E',"\u0112":'E',"\u1E14":'E',"\u1E16":'E',"\u0114":'E',"\u0116":'E',"\xCB":'E',"\u1EBA":'E',"\u011A":'E',"\u0204":'E',"\u0206":'E',"\u1EB8":'E',"\u1EC6":'E',"\u0228":'E',"\u1E1C":'E',"\u0118":'E',"\u1E18":'E',"\u1E1A":'E',"\u0190":'E',"\u018E":'E',"\u24BB":'F',"\uFF26":'F',"\u1E1E":'F',"\u0191":'F',"\uA77B":'F',"\u24BC":'G',"\uFF27":'G',"\u01F4":'G',"\u011C":'G',"\u1E20":'G',"\u011E":'G',"\u0120":'G',"\u01E6":'G',"\u0122":'G',"\u01E4":'G',"\u0193":'G',"\uA7A0":'G',"\uA77D":'G',"\uA77E":'G',"\u24BD":'H',"\uFF28":'H',"\u0124":'H',"\u1E22":'H',"\u1E26":'H',"\u021E":'H',"\u1E24":'H',"\u1E28":'H',"\u1E2A":'H',"\u0126":'H',"\u2C67":'H',"\u2C75":'H',"\uA78D":'H',"\u24BE":'I',"\uFF29":'I',"\xCC":'I',"\xCD":'I',"\xCE":'I',"\u0128":'I',"\u012A":'I',"\u012C":'I',"\u0130":'I',"\xCF":'I',"\u1E2E":'I',"\u1EC8":'I',"\u01CF":'I',"\u0208":'I',"\u020A":'I',"\u1ECA":'I',"\u012E":'I',"\u1E2C":'I',"\u0197":'I',"\u24BF":'J',"\uFF2A":'J',"\u0134":'J',"\u0248":'J',"\u24C0":'K',"\uFF2B":'K',"\u1E30":'K',"\u01E8":'K',"\u1E32":'K',"\u0136":'K',"\u1E34":'K',"\u0198":'K',"\u2C69":'K',"\uA740":'K',"\uA742":'K',"\uA744":'K',"\uA7A2":'K',"\u24C1":'L',"\uFF2C":'L',"\u013F":'L',"\u0139":'L',"\u013D":'L',"\u1E36":'L',"\u1E38":'L',"\u013B":'L',"\u1E3C":'L',"\u1E3A":'L',"\u0141":'L',"\u023D":'L',"\u2C62":'L',"\u2C60":'L',"\uA748":'L',"\uA746":'L',"\uA780":'L',"\u01C7":'LJ',"\u01C8":'Lj',"\u24C2":'M',"\uFF2D":'M',"\u1E3E":'M',"\u1E40":'M',"\u1E42":'M',"\u2C6E":'M',"\u019C":'M',"\u24C3":'N',"\uFF2E":'N',"\u01F8":'N',"\u0143":'N',"\xD1":'N',"\u1E44":'N',"\u0147":'N',"\u1E46":'N',"\u0145":'N',"\u1E4A":'N',"\u1E48":'N',"\u0220":'N',"\u019D":'N',"\uA790":'N',"\uA7A4":'N',"\u01CA":'NJ',"\u01CB":'Nj',"\u24C4":'O',"\uFF2F":'O',"\xD2":'O',"\xD3":'O',"\xD4":'O',"\u1ED2":'O',"\u1ED0":'O',"\u1ED6":'O',"\u1ED4":'O',"\xD5":'O',"\u1E4C":'O',"\u022C":'O',"\u1E4E":'O',"\u014C":'O',"\u1E50":'O',"\u1E52":'O',"\u014E":'O',"\u022E":'O',"\u0230":'O',"\xD6":'O',"\u022A":'O',"\u1ECE":'O',"\u0150":'O',"\u01D1":'O',"\u020C":'O',"\u020E":'O',"\u01A0":'O',"\u1EDC":'O',"\u1EDA":'O',"\u1EE0":'O',"\u1EDE":'O',"\u1EE2":'O',"\u1ECC":'O',"\u1ED8":'O',"\u01EA":'O',"\u01EC":'O',"\xD8":'O',"\u01FE":'O',"\u0186":'O',"\u019F":'O',"\uA74A":'O',"\uA74C":'O',"\u01A2":'OI',"\uA74E":'OO',"\u0222":'OU',"\u24C5":'P',"\uFF30":'P',"\u1E54":'P',"\u1E56":'P',"\u01A4":'P',"\u2C63":'P',"\uA750":'P',"\uA752":'P',"\uA754":'P',"\u24C6":'Q',"\uFF31":'Q',"\uA756":'Q',"\uA758":'Q',"\u024A":'Q',"\u24C7":'R',"\uFF32":'R',"\u0154":'R',"\u1E58":'R',"\u0158":'R',"\u0210":'R',"\u0212":'R',"\u1E5A":'R',"\u1E5C":'R',"\u0156":'R',"\u1E5E":'R',"\u024C":'R',"\u2C64":'R',"\uA75A":'R',"\uA7A6":'R',"\uA782":'R',"\u24C8":'S',"\uFF33":'S',"\u1E9E":'S',"\u015A":'S',"\u1E64":'S',"\u015C":'S',"\u1E60":'S',"\u0160":'S',"\u1E66":'S',"\u1E62":'S',"\u1E68":'S',"\u0218":'S',"\u015E":'S',"\u2C7E":'S',"\uA7A8":'S',"\uA784":'S',"\u24C9":'T',"\uFF34":'T',"\u1E6A":'T',"\u0164":'T',"\u1E6C":'T',"\u021A":'T',"\u0162":'T',"\u1E70":'T',"\u1E6E":'T',"\u0166":'T',"\u01AC":'T',"\u01AE":'T',"\u023E":'T',"\uA786":'T',"\uA728":'TZ',"\u24CA":'U',"\uFF35":'U',"\xD9":'U',"\xDA":'U',"\xDB":'U',"\u0168":'U',"\u1E78":'U',"\u016A":'U',"\u1E7A":'U',"\u016C":'U',"\xDC":'U',"\u01DB":'U',"\u01D7":'U',"\u01D5":'U',"\u01D9":'U',"\u1EE6":'U',"\u016E":'U',"\u0170":'U',"\u01D3":'U',"\u0214":'U',"\u0216":'U',"\u01AF":'U',"\u1EEA":'U',"\u1EE8":'U',"\u1EEE":'U',"\u1EEC":'U',"\u1EF0":'U',"\u1EE4":'U',"\u1E72":'U',"\u0172":'U',"\u1E76":'U',"\u1E74":'U',"\u0244":'U',"\u24CB":'V',"\uFF36":'V',"\u1E7C":'V',"\u1E7E":'V',"\u01B2":'V',"\uA75E":'V',"\u0245":'V',"\uA760":'VY',"\u24CC":'W',"\uFF37":'W',"\u1E80":'W',"\u1E82":'W',"\u0174":'W',"\u1E86":'W',"\u1E84":'W',"\u1E88":'W',"\u2C72":'W',"\u24CD":'X',"\uFF38":'X',"\u1E8A":'X',"\u1E8C":'X',"\u24CE":'Y',"\uFF39":'Y',"\u1EF2":'Y',"\xDD":'Y',"\u0176":'Y',"\u1EF8":'Y',"\u0232":'Y',"\u1E8E":'Y',"\u0178":'Y',"\u1EF6":'Y',"\u1EF4":'Y',"\u01B3":'Y',"\u024E":'Y',"\u1EFE":'Y',"\u24CF":'Z',"\uFF3A":'Z',"\u0179":'Z',"\u1E90":'Z',"\u017B":'Z',"\u017D":'Z',"\u1E92":'Z',"\u1E94":'Z',"\u01B5":'Z',"\u0224":'Z',"\u2C7F":'Z',"\u2C6B":'Z',"\uA762":'Z',"\u24D0":'a',"\uFF41":'a',"\u1E9A":'a',"\xE0":'a',"\xE1":'a',"\xE2":'a',"\u1EA7":'a',"\u1EA5":'a',"\u1EAB":'a',"\u1EA9":'a',"\xE3":'a',"\u0101":'a',"\u0103":'a',"\u1EB1":'a',"\u1EAF":'a',"\u1EB5":'a',"\u1EB3":'a',"\u0227":'a',"\u01E1":'a',"\xE4":'a',"\u01DF":'a',"\u1EA3":'a',"\xE5":'a',"\u01FB":'a',"\u01CE":'a',"\u0201":'a',"\u0203":'a',"\u1EA1":'a',"\u1EAD":'a',"\u1EB7":'a',"\u1E01":'a',"\u0105":'a',"\u2C65":'a',"\u0250":'a',"\uA733":'aa',"\xE6":'ae',"\u01FD":'ae',"\u01E3":'ae',"\uA735":'ao',"\uA737":'au',"\uA739":'av',"\uA73B":'av',"\uA73D":'ay',"\u24D1":'b',"\uFF42":'b',"\u1E03":'b',"\u1E05":'b',"\u1E07":'b',"\u0180":'b',"\u0183":'b',"\u0253":'b',"\u24D2":'c',"\uFF43":'c',"\u0107":'c',"\u0109":'c',"\u010B":'c',"\u010D":'c',"\xE7":'c',"\u1E09":'c',"\u0188":'c',"\u023C":'c',"\uA73F":'c',"\u2184":'c',"\u24D3":'d',"\uFF44":'d',"\u1E0B":'d',"\u010F":'d',"\u1E0D":'d',"\u1E11":'d',"\u1E13":'d',"\u1E0F":'d',"\u0111":'d',"\u018C":'d',"\u0256":'d',"\u0257":'d',"\uA77A":'d',"\u01F3":'dz',"\u01C6":'dz',"\u24D4":'e',"\uFF45":'e',"\xE8":'e',"\xE9":'e',"\xEA":'e',"\u1EC1":'e',"\u1EBF":'e',"\u1EC5":'e',"\u1EC3":'e',"\u1EBD":'e',"\u0113":'e',"\u1E15":'e',"\u1E17":'e',"\u0115":'e',"\u0117":'e',"\xEB":'e',"\u1EBB":'e',"\u011B":'e',"\u0205":'e',"\u0207":'e',"\u1EB9":'e',"\u1EC7":'e',"\u0229":'e',"\u1E1D":'e',"\u0119":'e',"\u1E19":'e',"\u1E1B":'e',"\u0247":'e',"\u025B":'e',"\u01DD":'e',"\u24D5":'f',"\uFF46":'f',"\u1E1F":'f',"\u0192":'f',"\uA77C":'f',"\u24D6":'g',"\uFF47":'g',"\u01F5":'g',"\u011D":'g',"\u1E21":'g',"\u011F":'g',"\u0121":'g',"\u01E7":'g',"\u0123":'g',"\u01E5":'g',"\u0260":'g',"\uA7A1":'g',"\u1D79":'g',"\uA77F":'g',"\u24D7":'h',"\uFF48":'h',"\u0125":'h',"\u1E23":'h',"\u1E27":'h',"\u021F":'h',"\u1E25":'h',"\u1E29":'h',"\u1E2B":'h',"\u1E96":'h',"\u0127":'h',"\u2C68":'h',"\u2C76":'h',"\u0265":'h',"\u0195":'hv',"\u24D8":'i',"\uFF49":'i',"\xEC":'i',"\xED":'i',"\xEE":'i',"\u0129":'i',"\u012B":'i',"\u012D":'i',"\xEF":'i',"\u1E2F":'i',"\u1EC9":'i',"\u01D0":'i',"\u0209":'i',"\u020B":'i',"\u1ECB":'i',"\u012F":'i',"\u1E2D":'i',"\u0268":'i',"\u0131":'i',"\u24D9":'j',"\uFF4A":'j',"\u0135":'j',"\u01F0":'j',"\u0249":'j',"\u24DA":'k',"\uFF4B":'k',"\u1E31":'k',"\u01E9":'k',"\u1E33":'k',"\u0137":'k',"\u1E35":'k',"\u0199":'k',"\u2C6A":'k',"\uA741":'k',"\uA743":'k',"\uA745":'k',"\uA7A3":'k',"\u24DB":'l',"\uFF4C":'l',"\u0140":'l',"\u013A":'l',"\u013E":'l',"\u1E37":'l',"\u1E39":'l',"\u013C":'l',"\u1E3D":'l',"\u1E3B":'l',"\u017F":'l',"\u0142":'l',"\u019A":'l',"\u026B":'l',"\u2C61":'l',"\uA749":'l',"\uA781":'l',"\uA747":'l',"\u01C9":'lj',"\u24DC":'m',"\uFF4D":'m',"\u1E3F":'m',"\u1E41":'m',"\u1E43":'m',"\u0271":'m',"\u026F":'m',"\u24DD":'n',"\uFF4E":'n',"\u01F9":'n',"\u0144":'n',"\xF1":'n',"\u1E45":'n',"\u0148":'n',"\u1E47":'n',"\u0146":'n',"\u1E4B":'n',"\u1E49":'n',"\u019E":'n',"\u0272":'n',"\u0149":'n',"\uA791":'n',"\uA7A5":'n',"\u01CC":'nj',"\u24DE":'o',"\uFF4F":'o',"\xF2":'o',"\xF3":'o',"\xF4":'o',"\u1ED3":'o',"\u1ED1":'o',"\u1ED7":'o',"\u1ED5":'o',"\xF5":'o',"\u1E4D":'o',"\u022D":'o',"\u1E4F":'o',"\u014D":'o',"\u1E51":'o',"\u1E53":'o',"\u014F":'o',"\u022F":'o',"\u0231":'o',"\xF6":'o',"\u022B":'o',"\u1ECF":'o',"\u0151":'o',"\u01D2":'o',"\u020D":'o',"\u020F":'o',"\u01A1":'o',"\u1EDD":'o',"\u1EDB":'o',"\u1EE1":'o',"\u1EDF":'o',"\u1EE3":'o',"\u1ECD":'o',"\u1ED9":'o',"\u01EB":'o',"\u01ED":'o',"\xF8":'o',"\u01FF":'o',"\u0254":'o',"\uA74B":'o',"\uA74D":'o',"\u0275":'o',"\u01A3":'oi',"\u0223":'ou',"\uA74F":'oo',"\u24DF":'p',"\uFF50":'p',"\u1E55":'p',"\u1E57":'p',"\u01A5":'p',"\u1D7D":'p',"\uA751":'p',"\uA753":'p',"\uA755":'p',"\u24E0":'q',"\uFF51":'q',"\u024B":'q',"\uA757":'q',"\uA759":'q',"\u24E1":'r',"\uFF52":'r',"\u0155":'r',"\u1E59":'r',"\u0159":'r',"\u0211":'r',"\u0213":'r',"\u1E5B":'r',"\u1E5D":'r',"\u0157":'r',"\u1E5F":'r',"\u024D":'r',"\u027D":'r',"\uA75B":'r',"\uA7A7":'r',"\uA783":'r',"\u24E2":'s',"\uFF53":'s',"\xDF":'s',"\u015B":'s',"\u1E65":'s',"\u015D":'s',"\u1E61":'s',"\u0161":'s',"\u1E67":'s',"\u1E63":'s',"\u1E69":'s',"\u0219":'s',"\u015F":'s',"\u023F":'s',"\uA7A9":'s',"\uA785":'s',"\u1E9B":'s',"\u24E3":'t',"\uFF54":'t',"\u1E6B":'t',"\u1E97":'t',"\u0165":'t',"\u1E6D":'t',"\u021B":'t',"\u0163":'t',"\u1E71":'t',"\u1E6F":'t',"\u0167":'t',"\u01AD":'t',"\u0288":'t',"\u2C66":'t',"\uA787":'t',"\uA729":'tz',"\u24E4":'u',"\uFF55":'u',"\xF9":'u',"\xFA":'u',"\xFB":'u',"\u0169":'u',"\u1E79":'u',"\u016B":'u',"\u1E7B":'u',"\u016D":'u',"\xFC":'u',"\u01DC":'u',"\u01D8":'u',"\u01D6":'u',"\u01DA":'u',"\u1EE7":'u',"\u016F":'u',"\u0171":'u',"\u01D4":'u',"\u0215":'u',"\u0217":'u',"\u01B0":'u',"\u1EEB":'u',"\u1EE9":'u',"\u1EEF":'u',"\u1EED":'u',"\u1EF1":'u',"\u1EE5":'u',"\u1E73":'u',"\u0173":'u',"\u1E77":'u',"\u1E75":'u',"\u0289":'u',"\u24E5":'v',"\uFF56":'v',"\u1E7D":'v',"\u1E7F":'v',"\u028B":'v',"\uA75F":'v',"\u028C":'v',"\uA761":'vy',"\u24E6":'w',"\uFF57":'w',"\u1E81":'w',"\u1E83":'w',"\u0175":'w',"\u1E87":'w',"\u1E85":'w',"\u1E98":'w',"\u1E89":'w',"\u2C73":'w',"\u24E7":'x',"\uFF58":'x',"\u1E8B":'x',"\u1E8D":'x',"\u24E8":'y',"\uFF59":'y',"\u1EF3":'y',"\xFD":'y',"\u0177":'y',"\u1EF9":'y',"\u0233":'y',"\u1E8F":'y',"\xFF":'y',"\u1EF7":'y',"\u1E99":'y',"\u1EF5":'y',"\u01B4":'y',"\u024F":'y',"\u1EFF":'y',"\u24E9":'z',"\uFF5A":'z',"\u017A":'z',"\u1E91":'z',"\u017C":'z',"\u017E":'z',"\u1E93":'z',"\u1E95":'z',"\u01B6":'z',"\u0225":'z',"\u0240":'z',"\u2C6C":'z',"\uA763":'z',"\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038A":"\u0399","\u03AA":"\u0399","\u038C":"\u039F","\u038E":"\u03A5","\u03AB":"\u03A5","\u038F":"\u03A9","\u03AC":"\u03B1","\u03AD":"\u03B5","\u03AE":"\u03B7","\u03AF":"\u03B9","\u03CA":"\u03B9","\u0390":"\u03B9","\u03CC":"\u03BF","\u03CD":"\u03C5","\u03CB":"\u03C5","\u03B0":"\u03C5","\u03C9":"\u03C9","\u03C2":"\u03C3"};return diacritics;});S2.define('select2/data/base',['../utils'],function(Utils){function BaseAdapter($element,options){BaseAdapter.__super__.constructor.call(this);}Utils.Extend(BaseAdapter,Utils.Observable);BaseAdapter.prototype.current=function(callback){throw new Error('The `current` method must be defined in child classes.');};BaseAdapter.prototype.query=function(params,callback){throw new Error('The `query` method must be defined in child classes.');};BaseAdapter.prototype.bind=function(container,$container){// Can be implemented in subclasses
|
||
};BaseAdapter.prototype.destroy=function(){// Can be implemented in subclasses
|
||
};BaseAdapter.prototype.generateResultId=function(container,data){var id=container.id+'-result-';id+=Utils.generateChars(4);if(data.id!=null){id+='-'+data.id.toString();}else{id+='-'+Utils.generateChars(4);}return id;};return BaseAdapter;});S2.define('select2/data/select',['./base','../utils','jquery'],function(BaseAdapter,Utils,$){function SelectAdapter($element,options){this.$element=$element;this.options=options;SelectAdapter.__super__.constructor.call(this);}Utils.Extend(SelectAdapter,BaseAdapter);SelectAdapter.prototype.current=function(callback){var data=[];var self=this;this.$element.find(':selected').each(function(){var $option=$(this);var option=self.item($option);data.push(option);});callback(data);};SelectAdapter.prototype.select=function(data){var self=this;data.selected=true;// If data.element is a DOM node, use it instead
|
||
if($(data.element).is('option')){data.element.selected=true;this.$element.trigger('change');return;}if(this.$element.prop('multiple')){this.current(function(currentData){var val=[];data=[data];data.push.apply(data,currentData);for(var d=0;d<data.length;d++){var id=data[d].id;if($.inArray(id,val)===-1){val.push(id);}}self.$element.val(val);self.$element.trigger('change');});}else{var val=data.id;this.$element.val(val);this.$element.trigger('change');}};SelectAdapter.prototype.unselect=function(data){var self=this;if(!this.$element.prop('multiple')){return;}data.selected=false;if($(data.element).is('option')){data.element.selected=false;this.$element.trigger('change');return;}this.current(function(currentData){var val=[];for(var d=0;d<currentData.length;d++){var id=currentData[d].id;if(id!==data.id&&$.inArray(id,val)===-1){val.push(id);}}self.$element.val(val);self.$element.trigger('change');});};SelectAdapter.prototype.bind=function(container,$container){var self=this;this.container=container;container.on('select',function(params){self.select(params.data);});container.on('unselect',function(params){self.unselect(params.data);});};SelectAdapter.prototype.destroy=function(){// Remove anything added to child elements
|
||
this.$element.find('*').each(function(){// Remove any custom data set by Select2
|
||
$.removeData(this,'data');});};SelectAdapter.prototype.query=function(params,callback){var data=[];var self=this;var $options=this.$element.children();$options.each(function(){var $option=$(this);if(!$option.is('option')&&!$option.is('optgroup')){return;}var option=self.item($option);var matches=self.matches(params,option);if(matches!==null){data.push(matches);}});callback({results:data});};SelectAdapter.prototype.addOptions=function($options){Utils.appendMany(this.$element,$options);};SelectAdapter.prototype.option=function(data){var option;if(data.children){option=document.createElement('optgroup');option.label=data.text;}else{option=document.createElement('option');if(option.textContent!==undefined){option.textContent=data.text;}else{option.innerText=data.text;}}if(data.id!==undefined){option.value=data.id;}if(data.disabled){option.disabled=true;}if(data.selected){option.selected=true;}if(data.title){option.title=data.title;}var $option=$(option);var normalizedData=this._normalizeItem(data);normalizedData.element=option;// Override the option's data with the combined data
|
||
$.data(option,'data',normalizedData);return $option;};SelectAdapter.prototype.item=function($option){var data={};data=$.data($option[0],'data');if(data!=null){return data;}if($option.is('option')){data={id:$option.val(),text:$option.text(),disabled:$option.prop('disabled'),selected:$option.prop('selected'),title:$option.prop('title')};}else if($option.is('optgroup')){data={text:$option.prop('label'),children:[],title:$option.prop('title')};var $children=$option.children('option');var children=[];for(var c=0;c<$children.length;c++){var $child=$($children[c]);var child=this.item($child);children.push(child);}data.children=children;}data=this._normalizeItem(data);data.element=$option[0];$.data($option[0],'data',data);return data;};SelectAdapter.prototype._normalizeItem=function(item){if(!$.isPlainObject(item)){item={id:item,text:item};}item=$.extend({},{text:''},item);var defaults={selected:false,disabled:false};if(item.id!=null){item.id=item.id.toString();}if(item.text!=null){item.text=item.text.toString();}if(item._resultId==null&&item.id&&this.container!=null){item._resultId=this.generateResultId(this.container,item);}return $.extend({},defaults,item);};SelectAdapter.prototype.matches=function(params,data){var matcher=this.options.get('matcher');return matcher(params,data);};return SelectAdapter;});S2.define('select2/data/array',['./select','../utils','jquery'],function(SelectAdapter,Utils,$){function ArrayAdapter($element,options){var data=options.get('data')||[];ArrayAdapter.__super__.constructor.call(this,$element,options);this.addOptions(this.convertToOptions(data));}Utils.Extend(ArrayAdapter,SelectAdapter);ArrayAdapter.prototype.select=function(data){var $option=this.$element.find('option').filter(function(i,elm){return elm.value==data.id.toString();});if($option.length===0){$option=this.option(data);this.addOptions($option);}ArrayAdapter.__super__.select.call(this,data);};ArrayAdapter.prototype.convertToOptions=function(data){var self=this;var $existing=this.$element.find('option');var existingIds=$existing.map(function(){return self.item($(this)).id;}).get();var $options=[];// Filter out all items except for the one passed in the argument
|
||
function onlyItem(item){return function(){return $(this).val()==item.id;};}for(var d=0;d<data.length;d++){var item=this._normalizeItem(data[d]);// Skip items which were pre-loaded, only merge the data
|
||
if($.inArray(item.id,existingIds)>=0){var $existingOption=$existing.filter(onlyItem(item));var existingData=this.item($existingOption);var newData=$.extend(true,{},item,existingData);var $newOption=this.option(newData);$existingOption.replaceWith($newOption);continue;}var $option=this.option(item);if(item.children){var $children=this.convertToOptions(item.children);Utils.appendMany($option,$children);}$options.push($option);}return $options;};return ArrayAdapter;});S2.define('select2/data/ajax',['./array','../utils','jquery'],function(ArrayAdapter,Utils,$){function AjaxAdapter($element,options){this.ajaxOptions=this._applyDefaults(options.get('ajax'));if(this.ajaxOptions.processResults!=null){this.processResults=this.ajaxOptions.processResults;}AjaxAdapter.__super__.constructor.call(this,$element,options);}Utils.Extend(AjaxAdapter,ArrayAdapter);AjaxAdapter.prototype._applyDefaults=function(options){var defaults={data:function data(params){return $.extend({},params,{q:params.term});},transport:function transport(params,success,failure){var $request=$.ajax(params);$request.then(success);$request.fail(failure);return $request;}};return $.extend({},defaults,options,true);};AjaxAdapter.prototype.processResults=function(results){return results;};AjaxAdapter.prototype.query=function(params,callback){var matches=[];var self=this;if(this._request!=null){// JSONP requests cannot always be aborted
|
||
if($.isFunction(this._request.abort)){this._request.abort();}this._request=null;}var options=$.extend({type:'GET'},this.ajaxOptions);if(typeof options.url==='function'){options.url=options.url.call(this.$element,params);}if(typeof options.data==='function'){options.data=options.data.call(this.$element,params);}function request(){var $request=options.transport(options,function(data){var results=self.processResults(data,params);if(self.options.get('debug')&&window.console&&console.error){// Check to make sure that the response included a `results` key.
|
||
if(!results||!results.results||!$.isArray(results.results)){console.error('Select2: The AJAX results did not return an array in the '+'`results` key of the response.');}}callback(results);},function(){// Attempt to detect if a request was aborted
|
||
// Only works if the transport exposes a status property
|
||
if($request.status&&$request.status==='0'){return;}self.trigger('results:message',{message:'errorLoading'});});self._request=$request;}if(this.ajaxOptions.delay){// if (this.ajaxOptions.delay && params.term != null) {
|
||
if(this._queryTimeout){window.clearTimeout(this._queryTimeout);}this._queryTimeout=window.setTimeout(request,this.ajaxOptions.delay);}else{request();}};return AjaxAdapter;});S2.define('select2/data/tags',['jquery'],function($){function Tags(decorated,$element,options){var tags=options.get('tags');var createTag=options.get('createTag');if(createTag!==undefined){this.createTag=createTag;}var insertTag=options.get('insertTag');if(insertTag!==undefined){this.insertTag=insertTag;}decorated.call(this,$element,options);if($.isArray(tags)){for(var t=0;t<tags.length;t++){var tag=tags[t];var item=this._normalizeItem(tag);var $option=this.option(item);this.$element.append($option);}}}Tags.prototype.query=function(decorated,params,callback){var self=this;this._removeOldTags();if(params.term==null||params.page!=null){decorated.call(this,params,callback);return;}function wrapper(obj,child){var data=obj.results;for(var i=0;i<data.length;i++){var option=data[i];var checkChildren=option.children!=null&&!wrapper({results:option.children},true);var optionText=(option.text||'').toUpperCase();var paramsTerm=(params.term||'').toUpperCase();var checkText=optionText===paramsTerm;if(checkText||checkChildren){if(child){return false;}obj.data=data;callback(obj);return;}}if(child){return true;}var tag=self.createTag(params);if(tag!=null){var $option=self.option(tag);$option.attr('data-select2-tag',true);self.addOptions([$option]);self.insertTag(data,tag);}obj.results=data;callback(obj);}decorated.call(this,params,wrapper);};Tags.prototype.createTag=function(decorated,params){var term=$.trim(params.term);if(term===''){return null;}return{id:term,text:term};};Tags.prototype.insertTag=function(_,data,tag){data.unshift(tag);};Tags.prototype._removeOldTags=function(_){var tag=this._lastTag;var $options=this.$element.find('option[data-select2-tag]');$options.each(function(){if(this.selected){return;}$(this).remove();});};return Tags;});S2.define('select2/data/tokenizer',['jquery'],function($){function Tokenizer(decorated,$element,options){var tokenizer=options.get('tokenizer');if(tokenizer!==undefined){this.tokenizer=tokenizer;}decorated.call(this,$element,options);}Tokenizer.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);this.$search=container.dropdown.$search||container.selection.$search||$container.find('.select2-search__field');};Tokenizer.prototype.query=function(decorated,params,callback){var self=this;function createAndSelect(data){// Normalize the data object so we can use it for checks
|
||
var item=self._normalizeItem(data);// Check if the data object already exists as a tag
|
||
// Select it if it doesn't
|
||
var $existingOptions=self.$element.find('option').filter(function(){return $(this).val()===item.id;});// If an existing option wasn't found for it, create the option
|
||
if(!$existingOptions.length){var $option=self.option(item);$option.attr('data-select2-tag',true);self._removeOldTags();self.addOptions([$option]);}// Select the item, now that we know there is an option for it
|
||
select(item);}function select(data){self.trigger('select',{data:data});}params.term=params.term||'';var tokenData=this.tokenizer(params,this.options,createAndSelect);if(tokenData.term!==params.term){// Replace the search term if we have the search box
|
||
if(this.$search.length){this.$search.val(tokenData.term);this.$search.focus();}params.term=tokenData.term;}decorated.call(this,params,callback);};Tokenizer.prototype.tokenizer=function(_,params,options,callback){var separators=options.get('tokenSeparators')||[];var term=params.term;var i=0;var createTag=this.createTag||function(params){return{id:params.term,text:params.term};};while(i<term.length){var termChar=term[i];if($.inArray(termChar,separators)===-1){i++;continue;}var part=term.substr(0,i);var partParams=$.extend({},params,{term:part});var data=createTag(partParams);if(data==null){i++;continue;}callback(data);// Reset the term to not include the tokenized portion
|
||
term=term.substr(i+1)||'';i=0;}return{term:term};};return Tokenizer;});S2.define('select2/data/minimumInputLength',[],function(){function MinimumInputLength(decorated,$e,options){this.minimumInputLength=options.get('minimumInputLength');decorated.call(this,$e,options);}MinimumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||'';if(params.term.length<this.minimumInputLength){this.trigger('results:message',{message:'inputTooShort',args:{minimum:this.minimumInputLength,input:params.term,params:params}});return;}decorated.call(this,params,callback);};return MinimumInputLength;});S2.define('select2/data/maximumInputLength',[],function(){function MaximumInputLength(decorated,$e,options){this.maximumInputLength=options.get('maximumInputLength');decorated.call(this,$e,options);}MaximumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||'';if(this.maximumInputLength>0&¶ms.term.length>this.maximumInputLength){this.trigger('results:message',{message:'inputTooLong',args:{maximum:this.maximumInputLength,input:params.term,params:params}});return;}decorated.call(this,params,callback);};return MaximumInputLength;});S2.define('select2/data/maximumSelectionLength',[],function(){function MaximumSelectionLength(decorated,$e,options){this.maximumSelectionLength=options.get('maximumSelectionLength');decorated.call(this,$e,options);}MaximumSelectionLength.prototype.query=function(decorated,params,callback){var self=this;this.current(function(currentData){var count=currentData!=null?currentData.length:0;if(self.maximumSelectionLength>0&&count>=self.maximumSelectionLength){self.trigger('results:message',{message:'maximumSelected',args:{maximum:self.maximumSelectionLength}});return;}decorated.call(self,params,callback);});};return MaximumSelectionLength;});S2.define('select2/dropdown',['jquery','./utils'],function($,Utils){function Dropdown($element,options){this.$element=$element;this.options=options;Dropdown.__super__.constructor.call(this);}Utils.Extend(Dropdown,Utils.Observable);Dropdown.prototype.render=function(){var $dropdown=$('<span class="select2-dropdown">'+'<span class="select2-results"></span>'+'</span>');$dropdown.attr('dir',this.options.get('dir'));this.$dropdown=$dropdown;return $dropdown;};Dropdown.prototype.bind=function(){// Should be implemented in subclasses
|
||
};Dropdown.prototype.position=function($dropdown,$container){// Should be implmented in subclasses
|
||
};Dropdown.prototype.destroy=function(){// Remove the dropdown from the DOM
|
||
this.$dropdown.remove();};return Dropdown;});S2.define('select2/dropdown/search',['jquery','../utils'],function($,Utils){function Search(){}Search.prototype.render=function(decorated){var $rendered=decorated.call(this);var $search=$('<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>');this.$searchContainer=$search;this.$search=$search.find('input');$rendered.prepend($search);return $rendered;};Search.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);this.$search.on('keydown',function(evt){self.trigger('keypress',evt);self._keyUpPrevented=evt.isDefaultPrevented();});// Workaround for browsers which do not support the `input` event
|
||
// This will prevent double-triggering of events for browsers which support
|
||
// both the `keyup` and `input` events.
|
||
this.$search.on('input',function(evt){// Unbind the duplicated `keyup` event
|
||
$(this).off('keyup');});this.$search.on('keyup input',function(evt){self.handleSearch(evt);});container.on('open',function(){self.$search.attr('tabindex',0);self.$search.focus();window.setTimeout(function(){self.$search.focus();},0);});container.on('close',function(){self.$search.attr('tabindex',-1);self.$search.val('');});container.on('focus',function(){if(!container.isOpen()){self.$search.focus();}});container.on('results:all',function(params){if(params.query.term==null||params.query.term===''){var showSearch=self.showSearch(params);if(showSearch){self.$searchContainer.removeClass('select2-search--hide');}else{self.$searchContainer.addClass('select2-search--hide');}}});};Search.prototype.handleSearch=function(evt){if(!this._keyUpPrevented){var input=this.$search.val();this.trigger('query',{term:input});}this._keyUpPrevented=false;};Search.prototype.showSearch=function(_,params){return true;};return Search;});S2.define('select2/dropdown/hidePlaceholder',[],function(){function HidePlaceholder(decorated,$element,options,dataAdapter){this.placeholder=this.normalizePlaceholder(options.get('placeholder'));decorated.call(this,$element,options,dataAdapter);}HidePlaceholder.prototype.append=function(decorated,data){data.results=this.removePlaceholder(data.results);decorated.call(this,data);};HidePlaceholder.prototype.normalizePlaceholder=function(_,placeholder){if(typeof placeholder==='string'){placeholder={id:'',text:placeholder};}return placeholder;};HidePlaceholder.prototype.removePlaceholder=function(_,data){var modifiedData=data.slice(0);for(var d=data.length-1;d>=0;d--){var item=data[d];if(this.placeholder.id===item.id){modifiedData.splice(d,1);}}return modifiedData;};return HidePlaceholder;});S2.define('select2/dropdown/infiniteScroll',['jquery'],function($){function InfiniteScroll(decorated,$element,options,dataAdapter){this.lastParams={};decorated.call(this,$element,options,dataAdapter);this.$loadingMore=this.createLoadingMore();this.loading=false;}InfiniteScroll.prototype.append=function(decorated,data){this.$loadingMore.remove();this.loading=false;decorated.call(this,data);if(this.showLoadingMore(data)){this.$results.append(this.$loadingMore);}};InfiniteScroll.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('query',function(params){self.lastParams=params;self.loading=true;});container.on('query:append',function(params){self.lastParams=params;self.loading=true;});this.$results.on('scroll',function(){var isLoadMoreVisible=$.contains(document.documentElement,self.$loadingMore[0]);if(self.loading||!isLoadMoreVisible){return;}var currentOffset=self.$results.offset().top+self.$results.outerHeight(false);var loadingMoreOffset=self.$loadingMore.offset().top+self.$loadingMore.outerHeight(false);if(currentOffset+50>=loadingMoreOffset){self.loadMore();}});};InfiniteScroll.prototype.loadMore=function(){this.loading=true;var params=$.extend({},{page:1},this.lastParams);params.page++;this.trigger('query:append',params);};InfiniteScroll.prototype.showLoadingMore=function(_,data){return data.pagination&&data.pagination.more;};InfiniteScroll.prototype.createLoadingMore=function(){var $option=$('<li '+'class="select2-results__option select2-results__option--load-more"'+'role="treeitem" aria-disabled="true"></li>');var message=this.options.get('translations').get('loadingMore');$option.html(message(this.lastParams));return $option;};return InfiniteScroll;});S2.define('select2/dropdown/attachBody',['jquery','../utils'],function($,Utils){function AttachBody(decorated,$element,options){this.$dropdownParent=options.get('dropdownParent')||$(document.body);decorated.call(this,$element,options);}AttachBody.prototype.bind=function(decorated,container,$container){var self=this;var setupResultsEvents=false;decorated.call(this,container,$container);container.on('open',function(){self._showDropdown();self._attachPositioningHandler(container);if(!setupResultsEvents){setupResultsEvents=true;container.on('results:all',function(){self._positionDropdown();self._resizeDropdown();});container.on('results:append',function(){self._positionDropdown();self._resizeDropdown();});}});container.on('close',function(){self._hideDropdown();self._detachPositioningHandler(container);});this.$dropdownContainer.on('mousedown',function(evt){evt.stopPropagation();});};AttachBody.prototype.destroy=function(decorated){decorated.call(this);this.$dropdownContainer.remove();};AttachBody.prototype.position=function(decorated,$dropdown,$container){// Clone all of the container classes
|
||
$dropdown.attr('class',$container.attr('class'));$dropdown.removeClass('select2');$dropdown.addClass('select2-container--open');$dropdown.css({position:'absolute',top:-999999});this.$container=$container;};AttachBody.prototype.render=function(decorated){var $container=$('<span></span>');var $dropdown=decorated.call(this);$container.append($dropdown);this.$dropdownContainer=$container;return $container;};AttachBody.prototype._hideDropdown=function(decorated){this.$dropdownContainer.detach();};AttachBody.prototype._attachPositioningHandler=function(decorated,container){var self=this;var scrollEvent='scroll.select2.'+container.id;var resizeEvent='resize.select2.'+container.id;var orientationEvent='orientationchange.select2.'+container.id;var $watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.each(function(){$(this).data('select2-scroll-position',{x:$(this).scrollLeft(),y:$(this).scrollTop()});});$watchers.on(scrollEvent,function(ev){var position=$(this).data('select2-scroll-position');$(this).scrollTop(position.y);});$(window).on(scrollEvent+' '+resizeEvent+' '+orientationEvent,function(e){self._positionDropdown();self._resizeDropdown();});};AttachBody.prototype._detachPositioningHandler=function(decorated,container){var scrollEvent='scroll.select2.'+container.id;var resizeEvent='resize.select2.'+container.id;var orientationEvent='orientationchange.select2.'+container.id;var $watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.off(scrollEvent);$(window).off(scrollEvent+' '+resizeEvent+' '+orientationEvent);};AttachBody.prototype._positionDropdown=function(){var $window=$(window);var isCurrentlyAbove=this.$dropdown.hasClass('select2-dropdown--above');var isCurrentlyBelow=this.$dropdown.hasClass('select2-dropdown--below');var newDirection=null;var offset=this.$container.offset();offset.bottom=offset.top+this.$container.outerHeight(false);var container={height:this.$container.outerHeight(false)};container.top=offset.top;container.bottom=offset.top+container.height;var dropdown={height:this.$dropdown.outerHeight(false)};var viewport={top:$window.scrollTop(),bottom:$window.scrollTop()+$window.height()};var enoughRoomAbove=viewport.top<offset.top-dropdown.height;var enoughRoomBelow=viewport.bottom>offset.bottom+dropdown.height;var css={left:offset.left,top:container.bottom};// Determine what the parent element is to use for calciulating the offset
|
||
var $offsetParent=this.$dropdownParent;// For statically positoned elements, we need to get the element
|
||
// that is determining the offset
|
||
if($offsetParent.css('position')==='static'){$offsetParent=$offsetParent.offsetParent();}var parentOffset=$offsetParent.offset();css.top-=parentOffset.top;css.left-=parentOffset.left;if(!isCurrentlyAbove&&!isCurrentlyBelow){newDirection='below';}if(!enoughRoomBelow&&enoughRoomAbove&&!isCurrentlyAbove){newDirection='above';}else if(!enoughRoomAbove&&enoughRoomBelow&&isCurrentlyAbove){newDirection='below';}if(newDirection=='above'||isCurrentlyAbove&&newDirection!=='below'){css.top=container.top-parentOffset.top-dropdown.height;}if(newDirection!=null){this.$dropdown.removeClass('select2-dropdown--below select2-dropdown--above').addClass('select2-dropdown--'+newDirection);this.$container.removeClass('select2-container--below select2-container--above').addClass('select2-container--'+newDirection);}this.$dropdownContainer.css(css);};AttachBody.prototype._resizeDropdown=function(){var css={width:this.$container.outerWidth(false)+'px'};if(this.options.get('dropdownAutoWidth')){css.minWidth=css.width;css.position='relative';css.width='auto';}this.$dropdown.css(css);};AttachBody.prototype._showDropdown=function(decorated){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown();};return AttachBody;});S2.define('select2/dropdown/minimumResultsForSearch',[],function(){function countResults(data){var count=0;for(var d=0;d<data.length;d++){var item=data[d];if(item.children){count+=countResults(item.children);}else{count++;}}return count;}function MinimumResultsForSearch(decorated,$element,options,dataAdapter){this.minimumResultsForSearch=options.get('minimumResultsForSearch');if(this.minimumResultsForSearch<0){this.minimumResultsForSearch=Infinity;}decorated.call(this,$element,options,dataAdapter);}MinimumResultsForSearch.prototype.showSearch=function(decorated,params){if(countResults(params.data.results)<this.minimumResultsForSearch){return false;}return decorated.call(this,params);};return MinimumResultsForSearch;});S2.define('select2/dropdown/selectOnClose',[],function(){function SelectOnClose(){}SelectOnClose.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('close',function(params){self._handleSelectOnClose(params);});};SelectOnClose.prototype._handleSelectOnClose=function(_,params){if(params&¶ms.originalSelect2Event!=null){var event=params.originalSelect2Event;// Don't select an item if the close event was triggered from a select or
|
||
// unselect event
|
||
if(event._type==='select'||event._type==='unselect'){return;}}var $highlightedResults=this.getHighlightedResults();// Only select highlighted results
|
||
if($highlightedResults.length<1){return;}var data=$highlightedResults.data('data');// Don't re-select already selected resulte
|
||
if(data.element!=null&&data.element.selected||data.element==null&&data.selected){return;}this.trigger('select',{data:data});};return SelectOnClose;});S2.define('select2/dropdown/closeOnSelect',[],function(){function CloseOnSelect(){}CloseOnSelect.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('select',function(evt){self._selectTriggered(evt);});container.on('unselect',function(evt){self._selectTriggered(evt);});};CloseOnSelect.prototype._selectTriggered=function(_,evt){var originalEvent=evt.originalEvent;// Don't close if the control key is being held
|
||
if(originalEvent&&originalEvent.ctrlKey){return;}this.trigger('close',{originalEvent:originalEvent,originalSelect2Event:evt});};return CloseOnSelect;});S2.define('select2/i18n/en',[],function(){// English
|
||
return{errorLoading:function errorLoading(){return'The results could not be loaded.';},inputTooLong:function inputTooLong(args){var overChars=args.input.length-args.maximum;var message='Please delete '+overChars+' character';if(overChars!=1){message+='s';}return message;},inputTooShort:function inputTooShort(args){var remainingChars=args.minimum-args.input.length;var message='Please enter '+remainingChars+' or more characters';return message;},loadingMore:function loadingMore(){return'Loading more results…';},maximumSelected:function maximumSelected(args){var message='You can only select '+args.maximum+' item';if(args.maximum!=1){message+='s';}return message;},noResults:function noResults(){return'No results found';},searching:function searching(){return'Searching…';}};});S2.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($,require,ResultsList,SingleSelection,MultipleSelection,Placeholder,AllowClear,SelectionSearch,EventRelay,Utils,Translation,DIACRITICS,SelectData,ArrayData,AjaxData,Tags,Tokenizer,MinimumInputLength,MaximumInputLength,MaximumSelectionLength,Dropdown,DropdownSearch,HidePlaceholder,InfiniteScroll,AttachBody,MinimumResultsForSearch,SelectOnClose,CloseOnSelect,EnglishTranslation){function Defaults(){this.reset();}Defaults.prototype.apply=function(options){options=$.extend(true,{},this.defaults,options);if(options.dataAdapter==null){if(options.ajax!=null){options.dataAdapter=AjaxData;}else if(options.data!=null){options.dataAdapter=ArrayData;}else{options.dataAdapter=SelectData;}if(options.minimumInputLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MinimumInputLength);}if(options.maximumInputLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumInputLength);}if(options.maximumSelectionLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumSelectionLength);}if(options.tags){options.dataAdapter=Utils.Decorate(options.dataAdapter,Tags);}if(options.tokenSeparators!=null||options.tokenizer!=null){options.dataAdapter=Utils.Decorate(options.dataAdapter,Tokenizer);}if(options.query!=null){var Query=require(options.amdBase+'compat/query');options.dataAdapter=Utils.Decorate(options.dataAdapter,Query);}if(options.initSelection!=null){var InitSelection=require(options.amdBase+'compat/initSelection');options.dataAdapter=Utils.Decorate(options.dataAdapter,InitSelection);}}if(options.resultsAdapter==null){options.resultsAdapter=ResultsList;if(options.ajax!=null){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,InfiniteScroll);}if(options.placeholder!=null){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,HidePlaceholder);}if(options.selectOnClose){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,SelectOnClose);}}if(options.dropdownAdapter==null){if(options.multiple){options.dropdownAdapter=Dropdown;}else{var SearchableDropdown=Utils.Decorate(Dropdown,DropdownSearch);options.dropdownAdapter=SearchableDropdown;}if(options.minimumResultsForSearch!==0){options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,MinimumResultsForSearch);}if(options.closeOnSelect){options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,CloseOnSelect);}if(options.dropdownCssClass!=null||options.dropdownCss!=null||options.adaptDropdownCssClass!=null){var DropdownCSS=require(options.amdBase+'compat/dropdownCss');options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,DropdownCSS);}options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,AttachBody);}if(options.selectionAdapter==null){if(options.multiple){options.selectionAdapter=MultipleSelection;}else{options.selectionAdapter=SingleSelection;}// Add the placeholder mixin if a placeholder was specified
|
||
if(options.placeholder!=null){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,Placeholder);}if(options.allowClear){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,AllowClear);}if(options.multiple){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,SelectionSearch);}if(options.containerCssClass!=null||options.containerCss!=null||options.adaptContainerCssClass!=null){var ContainerCSS=require(options.amdBase+'compat/containerCss');options.selectionAdapter=Utils.Decorate(options.selectionAdapter,ContainerCSS);}options.selectionAdapter=Utils.Decorate(options.selectionAdapter,EventRelay);}if(typeof options.language==='string'){// Check if the language is specified with a region
|
||
if(options.language.indexOf('-')>0){// Extract the region information if it is included
|
||
var languageParts=options.language.split('-');var baseLanguage=languageParts[0];options.language=[options.language,baseLanguage];}else{options.language=[options.language];}}if($.isArray(options.language)){var languages=new Translation();options.language.push('en');var languageNames=options.language;for(var l=0;l<languageNames.length;l++){var name=languageNames[l];var language={};try{// Try to load it with the original name
|
||
language=Translation.loadPath(name);}catch(e){try{// If we couldn't load it, check if it wasn't the full path
|
||
name=this.defaults.amdLanguageBase+name;language=Translation.loadPath(name);}catch(ex){// The translation could not be loaded at all. Sometimes this is
|
||
// because of a configuration problem, other times this can be
|
||
// because of how Select2 helps load all possible translation files.
|
||
if(options.debug&&window.console&&console.warn){console.warn('Select2: The language file for "'+name+'" could not be '+'automatically loaded. A fallback will be used instead.');}continue;}}languages.extend(language);}options.translations=languages;}else{var baseTranslation=Translation.loadPath(this.defaults.amdLanguageBase+'en');var customTranslation=new Translation(options.language);customTranslation.extend(baseTranslation);options.translations=customTranslation;}return options;};Defaults.prototype.reset=function(){function stripDiacritics(text){// Used 'uni range + named function' from http://jsperf.com/diacritics/18
|
||
function match(a){return DIACRITICS[a]||a;}return text.replace(/[^\u0000-\u007E]/g,match);}function matcher(params,data){// Always return the object if there is nothing to compare
|
||
if($.trim(params.term)===''){return data;}// Do a recursive check for options with children
|
||
if(data.children&&data.children.length>0){// Clone the data object if there are children
|
||
// This is required as we modify the object to remove any non-matches
|
||
var match=$.extend(true,{},data);// Check each child of the option
|
||
for(var c=data.children.length-1;c>=0;c--){var child=data.children[c];var matches=matcher(params,child);// If there wasn't a match, remove the object in the array
|
||
if(matches==null){match.children.splice(c,1);}}// If any children matched, return the new object
|
||
if(match.children.length>0){return match;}// If there were no matching children, check just the plain object
|
||
return matcher(params,match);}var original=stripDiacritics(data.text).toUpperCase();var term=stripDiacritics(params.term).toUpperCase();// Check if the text contains the term
|
||
if(original.indexOf(term)>-1){return data;}// If it doesn't contain the term, don't return anything
|
||
return null;}this.defaults={amdBase:'./',amdLanguageBase:'./i18n/',closeOnSelect:true,debug:false,dropdownAutoWidth:false,escapeMarkup:Utils.escapeMarkup,language:EnglishTranslation,matcher:matcher,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:false,sorter:function sorter(data){return data;},templateResult:function templateResult(result){return result.text;},templateSelection:function templateSelection(selection){return selection.text;},theme:'default',width:'resolve'};};Defaults.prototype.set=function(key,value){var camelKey=$.camelCase(key);var data={};data[camelKey]=value;var convertedData=Utils._convertData(data);$.extend(this.defaults,convertedData);};var defaults=new Defaults();return defaults;});S2.define('select2/options',['require','jquery','./defaults','./utils'],function(require,$,Defaults,Utils){function Options(options,$element){this.options=options;if($element!=null){this.fromElement($element);}this.options=Defaults.apply(this.options);if($element&&$element.is('input')){var InputCompat=require(this.get('amdBase')+'compat/inputData');this.options.dataAdapter=Utils.Decorate(this.options.dataAdapter,InputCompat);}}Options.prototype.fromElement=function($e){var excludedData=['select2'];if(this.options.multiple==null){this.options.multiple=$e.prop('multiple');}if(this.options.disabled==null){this.options.disabled=$e.prop('disabled');}if(this.options.language==null){if($e.prop('lang')){this.options.language=$e.prop('lang').toLowerCase();}else if($e.closest('[lang]').prop('lang')){this.options.language=$e.closest('[lang]').prop('lang');}}if(this.options.dir==null){if($e.prop('dir')){this.options.dir=$e.prop('dir');}else if($e.closest('[dir]').prop('dir')){this.options.dir=$e.closest('[dir]').prop('dir');}else{this.options.dir='ltr';}}$e.prop('disabled',this.options.disabled);$e.prop('multiple',this.options.multiple);if($e.data('select2Tags')){if(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',true);}if($e.data('ajaxUrl')){if(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 dataset={};// Prefer the element's `dataset` attribute if it exists
|
||
// jQuery 1.x does not correctly handle data attributes with multiple dashes
|
||
if($.fn.jquery&&$.fn.jquery.substr(0,2)=='1.'&&$e[0].dataset){dataset=$.extend(true,{},$e[0].dataset,$e.data());}else{dataset=$e.data();}var data=$.extend(true,{},dataset);data=Utils._convertData(data);for(var key in data){if($.inArray(key,excludedData)>-1){continue;}if($.isPlainObject(this.options[key])){$.extend(this.options[key],data[key]);}else{this.options[key]=data[key];}}return this;};Options.prototype.get=function(key){return this.options[key];};Options.prototype.set=function(key,val){this.options[key]=val;};return Options;});S2.define('select2/core',['jquery','./options','./utils','./keys'],function($,Options,Utils,KEYS){var Select2=function Select2($element,options){if($element.data('select2')!=null){$element.data('select2').destroy();}this.$element=$element;this.id=this._generateId($element);options=options||{};this.options=new Options(options,$element);Select2.__super__.constructor.call(this);// Set up the tabindex
|
||
var tabindex=$element.attr('tabindex')||0;$element.data('old-tabindex',tabindex);$element.attr('tabindex','-1');// Set up containers and adapters
|
||
var DataAdapter=this.options.get('dataAdapter');this.dataAdapter=new DataAdapter($element,this.options);var $container=this.render();this._placeContainer($container);var SelectionAdapter=this.options.get('selectionAdapter');this.selection=new SelectionAdapter($element,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,$container);var DropdownAdapter=this.options.get('dropdownAdapter');this.dropdown=new DropdownAdapter($element,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,$container);var ResultsAdapter=this.options.get('resultsAdapter');this.results=new ResultsAdapter($element,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);// Bind events
|
||
var self=this;// Bind the container to all of the adapters
|
||
this._bindAdapters();// Register any DOM event handlers
|
||
this._registerDomEvents();// Register any internal event handlers
|
||
this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();// Set the initial state
|
||
this.dataAdapter.current(function(initialData){self.trigger('selection:update',{data:initialData});});// Hide the original select
|
||
$element.addClass('select2-hidden-accessible');$element.attr('aria-hidden','true');// Synchronize any monitored attributes
|
||
this._syncAttributes();$element.data('select2',this);};Utils.Extend(Select2,Utils.Observable);Select2.prototype._generateId=function($element){var id='';if($element.attr('id')!=null){id=$element.attr('id');}else if($element.attr('name')!=null){id=$element.attr('name')+'-'+Utils.generateChars(2);}else{id=Utils.generateChars(4);}id=id.replace(/(:|\.|\[|\]|,)/g,'');id='select2-'+id;return id;};Select2.prototype._placeContainer=function($container){$container.insertAfter(this.$element);var width=this._resolveWidth(this.$element,this.options.get('width'));if(width!=null){$container.css('width',width);}};Select2.prototype._resolveWidth=function($element,method){var WIDTH=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(method=='resolve'){var styleWidth=this._resolveWidth($element,'style');if(styleWidth!=null){return styleWidth;}return this._resolveWidth($element,'element');}if(method=='element'){var elementWidth=$element.outerWidth(false);if(elementWidth<=0){return'auto';}return elementWidth+'px';}if(method=='style'){var style=$element.attr('style');if(typeof style!=='string'){return null;}var attrs=style.split(';');for(var i=0,l=attrs.length;i<l;i=i+1){var attr=attrs[i].replace(/\s/g,'');var matches=attr.match(WIDTH);if(matches!==null&&matches.length>=1){return matches[1];}}return null;}return method;};Select2.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);};Select2.prototype._registerDomEvents=function(){var self=this;this.$element.on('change.select2',function(){self.dataAdapter.current(function(data){self.trigger('selection:update',{data:data});});});this.$element.on('focus.select2',function(evt){self.trigger('focus',evt);});this._syncA=Utils.bind(this._syncAttributes,this);this._syncS=Utils.bind(this._syncSubtree,this);if(this.$element[0].attachEvent){this.$element[0].attachEvent('onpropertychange',this._syncA);}var observer=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(observer!=null){this._observer=new observer(function(mutations){$.each(mutations,self._syncA);$.each(mutations,self._syncS);});this._observer.observe(this.$element[0],{attributes:true,childList:true,subtree:false});}else if(this.$element[0].addEventListener){this.$element[0].addEventListener('DOMAttrModified',self._syncA,false);this.$element[0].addEventListener('DOMNodeInserted',self._syncS,false);this.$element[0].addEventListener('DOMNodeRemoved',self._syncS,false);}};Select2.prototype._registerDataEvents=function(){var self=this;this.dataAdapter.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerSelectionEvents=function(){var self=this;var nonRelayEvents=['toggle','focus'];this.selection.on('toggle',function(){self.toggleDropdown();});this.selection.on('focus',function(params){self.focus(params);});this.selection.on('*',function(name,params){if($.inArray(name,nonRelayEvents)!==-1){return;}self.trigger(name,params);});};Select2.prototype._registerDropdownEvents=function(){var self=this;this.dropdown.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerResultsEvents=function(){var self=this;this.results.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerEvents=function(){var self=this;self.lastPage=1;self.lastResults=null;self.lastTerm=null;this.on('open',function(){self.$container.addClass('select2-container--open');});this.on('close',function(){self.$container.removeClass('select2-container--open');});this.on('enable',function(){self.$container.removeClass('select2-container--disabled');});this.on('disable',function(){self.$container.addClass('select2-container--disabled');});this.on('blur',function(){self.$container.removeClass('select2-container--focus');});this.on('query',function(params){if(!self.isOpen()){self.trigger('open',{});// 单选设置输入值
|
||
if(self.dropdown.$search!==undefined){self.dropdown.$search.val(self.lastTerm);}}// 改造搜索前显示
|
||
if(self.options.options.resultCache==true&&self.lastResults&¶ms.term==undefined){params.page=self.lastPage;self.trigger('results:all',{data:self.lastResults,query:params});}else{self.lastTerm=params.term;self.lastPage=1;this.dataAdapter.query(params,function(data){self.lastResults=data;self.trigger('results:all',{data:data,query:params});});}});this.on('query:append',function(params){if(self.lastPage<params.page){self.lastPage=params.page;this.dataAdapter.query(params,function(data){$.each(data.results,function(k,v){self.lastResults.results.push(v);});self.lastResults.pagination.more=data.pagination.more;self.trigger('results:append',{data:data,query:params});});}});this.on('keypress',function(evt){var key=evt.which;if(self.isOpen()){if(key===KEYS.ESC||key===KEYS.TAB||key===KEYS.UP&&evt.altKey){self.close();evt.preventDefault();}else if(key===KEYS.ENTER){self.trigger('results:select',{});evt.preventDefault();}else if(key===KEYS.SPACE&&evt.ctrlKey){self.trigger('results:toggle',{});evt.preventDefault();}else if(key===KEYS.UP){self.trigger('results:previous',{});evt.preventDefault();}else if(key===KEYS.DOWN){self.trigger('results:next',{});evt.preventDefault();}}else{if(key===KEYS.ENTER||key===KEYS.SPACE||key===KEYS.DOWN&&evt.altKey){self.open();evt.preventDefault();}}});};Select2.prototype._syncAttributes=function(){this.options.set('disabled',this.$element.prop('disabled'));if(this.options.get('disabled')){if(this.isOpen()){this.close();}this.trigger('disable',{});}else{this.trigger('enable',{});}};Select2.prototype._syncSubtree=function(evt,mutations){var changed=false;var self=this;// Ignore any mutation events raised for elements that aren't options or
|
||
// optgroups. This handles the case when the select element is destroyed
|
||
if(evt&&evt.target&&evt.target.nodeName!=='OPTION'&&evt.target.nodeName!=='OPTGROUP'){return;}if(!mutations){// If mutation events aren't supported, then we can only assume that the
|
||
// change affected the selections
|
||
changed=true;}else if(mutations.addedNodes&&mutations.addedNodes.length>0){for(var n=0;n<mutations.addedNodes.length;n++){var node=mutations.addedNodes[n];if(node.selected){changed=true;}}}else if(mutations.removedNodes&&mutations.removedNodes.length>0){changed=true;}// Only re-pull the data if we think there is a change
|
||
if(changed){this.dataAdapter.current(function(currentData){self.trigger('selection:update',{data:currentData});});}};/**
|
||
* Override the trigger method to automatically trigger pre-events when
|
||
* there are events that can be prevented.
|
||
*/Select2.prototype.trigger=function(name,args){var actualTrigger=Select2.__super__.trigger;var preTriggerMap={'open':'opening','close':'closing','select':'selecting','unselect':'unselecting'};if(args===undefined){args={};}if(name in preTriggerMap){var preTriggerName=preTriggerMap[name];var preTriggerArgs={prevented:false,name:name,args:args};actualTrigger.call(this,preTriggerName,preTriggerArgs);if(preTriggerArgs.prevented){args.prevented=true;return;}}actualTrigger.call(this,name,args);};Select2.prototype.toggleDropdown=function(){if(this.options.get('disabled')){return;}if(this.isOpen()){this.close();}else{this.open();}};Select2.prototype.open=function(){if(this.isOpen()){return;}this.trigger('query',{});};Select2.prototype.close=function(){if(!this.isOpen()){return;}this.trigger('close',{});};Select2.prototype.isOpen=function(){return this.$container.hasClass('select2-container--open');};Select2.prototype.hasFocus=function(){return this.$container.hasClass('select2-container--focus');};Select2.prototype.focus=function(data){// No need to re-trigger focus events if we are already focused
|
||
if(this.hasFocus()){return;}this.$container.addClass('select2-container--focus');this.trigger('focus',{});};Select2.prototype.enable=function(args){if(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.');}if(args==null||args.length===0){args=[true];}var disabled=!args[0];this.$element.prop('disabled',disabled);};Select2.prototype.data=function(){if(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 data=[];this.dataAdapter.current(function(currentData){data=currentData;});return data;};Select2.prototype.val=function(args){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.');}if(args==null||args.length===0){return this.$element.val();}var newVal=args[0];if($.isArray(newVal)){newVal=$.map(newVal,function(obj){return obj.toString();});}this.$element.val(newVal).trigger('change');};Select2.prototype.destroy=function(){this.$container.remove();if(this.$element[0].detachEvent){this.$element[0].detachEvent('onpropertychange',this._syncA);}if(this._observer!=null){this._observer.disconnect();this._observer=null;}else if(this.$element[0].removeEventListener){this.$element[0].removeEventListener('DOMAttrModified',this._syncA,false);this.$element[0].removeEventListener('DOMNodeInserted',this._syncS,false);this.$element[0].removeEventListener('DOMNodeRemoved',this._syncS,false);}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;};Select2.prototype.render=function(){var $container=$('<span class="select2 select2-container">'+'<span class="selection"></span>'+'<span class="dropdown-wrapper" aria-hidden="true"></span>'+'</span>');$container.attr('dir',this.options.get('dir'));this.$container=$container;this.$container.addClass('select2-container--'+this.options.get('theme'));$container.data('element',this.$element);return $container;};return Select2;});S2.define('select2/compat/utils',['jquery'],function($){function syncCssClasses($dest,$src,adapter){var classes,replacements=[],adapted;classes=$.trim($dest.attr('class'));if(classes){classes=''+classes;// for IE which returns object
|
||
$(classes.split(/\s+/)).each(function(){// Save all Select2 classes
|
||
if(this.indexOf('select2-')===0){replacements.push(this);}});}classes=$.trim($src.attr('class'));if(classes){classes=''+classes;// for IE which returns object
|
||
$(classes.split(/\s+/)).each(function(){// Only adapt non-Select2 classes
|
||
if(this.indexOf('select2-')!==0){adapted=adapter(this);if(adapted!=null){replacements.push(adapted);}}});}$dest.attr('class',replacements.join(' '));}return{syncCssClasses:syncCssClasses};});S2.define('select2/compat/containerCss',['jquery','./utils'],function($,CompatUtils){// No-op CSS adapter that discards all classes by default
|
||
function _containerAdapter(clazz){return null;}function ContainerCSS(){}ContainerCSS.prototype.render=function(decorated){var $container=decorated.call(this);var containerCssClass=this.options.get('containerCssClass')||'';if($.isFunction(containerCssClass)){containerCssClass=containerCssClass(this.$element);}var containerCssAdapter=this.options.get('adaptContainerCssClass');containerCssAdapter=containerCssAdapter||_containerAdapter;if(containerCssClass.indexOf(':all:')!==-1){containerCssClass=containerCssClass.replace(':all:','');var _cssAdapter=containerCssAdapter;containerCssAdapter=function containerCssAdapter(clazz){var adapted=_cssAdapter(clazz);if(adapted!=null){// Append the old one along with the adapted one
|
||
return adapted+' '+clazz;}return clazz;};}var containerCss=this.options.get('containerCss')||{};if($.isFunction(containerCss)){containerCss=containerCss(this.$element);}CompatUtils.syncCssClasses($container,this.$element,containerCssAdapter);$container.css(containerCss);$container.addClass(containerCssClass);return $container;};return ContainerCSS;});S2.define('select2/compat/dropdownCss',['jquery','./utils'],function($,CompatUtils){// No-op CSS adapter that discards all classes by default
|
||
function _dropdownAdapter(clazz){return null;}function DropdownCSS(){}DropdownCSS.prototype.render=function(decorated){var $dropdown=decorated.call(this);var dropdownCssClass=this.options.get('dropdownCssClass')||'';if($.isFunction(dropdownCssClass)){dropdownCssClass=dropdownCssClass(this.$element);}var dropdownCssAdapter=this.options.get('adaptDropdownCssClass');dropdownCssAdapter=dropdownCssAdapter||_dropdownAdapter;if(dropdownCssClass.indexOf(':all:')!==-1){dropdownCssClass=dropdownCssClass.replace(':all:','');var _cssAdapter=dropdownCssAdapter;dropdownCssAdapter=function dropdownCssAdapter(clazz){var adapted=_cssAdapter(clazz);if(adapted!=null){// Append the old one along with the adapted one
|
||
return adapted+' '+clazz;}return clazz;};}var dropdownCss=this.options.get('dropdownCss')||{};if($.isFunction(dropdownCss)){dropdownCss=dropdownCss(this.$element);}CompatUtils.syncCssClasses($dropdown,this.$element,dropdownCssAdapter);$dropdown.css(dropdownCss);$dropdown.addClass(dropdownCssClass);return $dropdown;};return DropdownCSS;});S2.define('select2/compat/initSelection',['jquery'],function($){function InitSelection(decorated,$element,options){if(options.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=options.get('initSelection');this._isInitialized=false;decorated.call(this,$element,options);}InitSelection.prototype.current=function(decorated,callback){var self=this;if(this._isInitialized){decorated.call(this,callback);return;}this.initSelection.call(null,this.$element,function(data){self._isInitialized=true;if(!$.isArray(data)){data=[data];}callback(data);});};return InitSelection;});S2.define('select2/compat/inputData',['jquery'],function($){function InputData(decorated,$element,options){this._currentData=[];this._valueSeparator=options.get('valueSeparator')||',';if($element.prop('type')==='hidden'){if(options.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.');}}decorated.call(this,$element,options);}InputData.prototype.current=function(_,callback){function getSelected(data,selectedIds){var selected=[];if(data.selected||$.inArray(data.id,selectedIds)!==-1){data.selected=true;selected.push(data);}else{data.selected=false;}if(data.children){selected.push.apply(selected,getSelected(data.children,selectedIds));}return selected;}var selected=[];for(var d=0;d<this._currentData.length;d++){var data=this._currentData[d];selected.push.apply(selected,getSelected(data,this.$element.val().split(this._valueSeparator)));}callback(selected);};InputData.prototype.select=function(_,data){if(!this.options.get('multiple')){this.current(function(allData){$.map(allData,function(data){data.selected=false;});});this.$element.val(data.id);this.$element.trigger('change');}else{var value=this.$element.val();value+=this._valueSeparator+data.id;this.$element.val(value);this.$element.trigger('change');}};InputData.prototype.unselect=function(_,data){var self=this;data.selected=false;this.current(function(allData){var values=[];for(var d=0;d<allData.length;d++){var item=allData[d];if(data.id==item.id){continue;}values.push(item.id);}self.$element.val(values.join(self._valueSeparator));self.$element.trigger('change');});};InputData.prototype.query=function(_,params,callback){var results=[];for(var d=0;d<this._currentData.length;d++){var data=this._currentData[d];var matches=this.matches(params,data);if(matches!==null){results.push(matches);}}callback({results:results});};InputData.prototype.addOptions=function(_,$options){var options=$.map($options,function($option){return $.data($option[0],'data');});this._currentData.push.apply(this._currentData,options);};return InputData;});S2.define('select2/compat/matcher',['jquery'],function($){function oldMatcher(matcher){function wrappedMatcher(params,data){var match=$.extend(true,{},data);if(params.term==null||$.trim(params.term)===''){return match;}if(data.children){for(var c=data.children.length-1;c>=0;c--){var child=data.children[c];// Check if the child object matches
|
||
// The old matcher returned a boolean true or false
|
||
var doesMatch=matcher(params.term,child.text,child);// If the child didn't match, pop it off
|
||
if(!doesMatch){match.children.splice(c,1);}}if(match.children.length>0){return match;}}if(matcher(params.term,data.text,data)){return match;}return null;}return wrappedMatcher;}return oldMatcher;});S2.define('select2/compat/query',[],function(){function Query(decorated,$element,options){if(options.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.');}decorated.call(this,$element,options);}Query.prototype.query=function(_,params,callback){params.callback=callback;var query=this.options.get('query');query.call(null,params);};return Query;});S2.define('select2/dropdown/attachContainer',[],function(){function AttachContainer(decorated,$element,options){decorated.call(this,$element,options);}AttachContainer.prototype.position=function(decorated,$dropdown,$container){var $dropdownContainer=$container.find('.dropdown-wrapper');$dropdownContainer.append($dropdown);$dropdown.addClass('select2-dropdown--below');$container.addClass('select2-container--below');};return AttachContainer;});S2.define('select2/dropdown/stopPropagation',[],function(){function StopPropagation(){}StopPropagation.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);var stoppedEvents=['blur','change','click','dblclick','focus','focusin','focusout','input','keydown','keyup','keypress','mousedown','mouseenter','mouseleave','mousemove','mouseover','mouseup','search','touchend','touchstart'];this.$dropdown.on(stoppedEvents.join(' '),function(evt){evt.stopPropagation();});};return StopPropagation;});S2.define('select2/selection/stopPropagation',[],function(){function StopPropagation(){}StopPropagation.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);var stoppedEvents=['blur','change','click','dblclick','focus','focusin','focusout','input','keydown','keyup','keypress','mousedown','mouseenter','mouseleave','mousemove','mouseover','mouseup','search','touchend','touchstart'];this.$selection.on(stoppedEvents.join(' '),function(evt){evt.stopPropagation();});};return StopPropagation;});/*!
|
||
* jQuery Mousewheel 3.1.13
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*/(function(factory){if(typeof S2.define==='function'&&S2.define.amd){// AMD. Register as an anonymous module.
|
||
S2.define('jquery-mousewheel',['jquery'],factory);}else if((typeof exports==="undefined"?"undefined":_typeof2(exports))==='object'){// Node/CommonJS style for Browserify
|
||
module.exports=factory;}else{// Browser globals
|
||
factory(jQuery);}})(function($){var toFix=['wheel','mousewheel','DOMMouseScroll','MozMousePixelScroll'],toBind='onwheel'in document||document.documentMode>=9?['wheel']:['mousewheel','DomMouseScroll','MozMousePixelScroll'],slice=Array.prototype.slice,nullLowestDeltaTimeout,lowestDelta;if($.event.fixHooks){for(var i=toFix.length;i;){$.event.fixHooks[toFix[--i]]=$.event.mouseHooks;}}var special=$.event.special.mousewheel={version:'3.1.12',setup:function setup(){if(this.addEventListener){for(var i=toBind.length;i;){this.addEventListener(toBind[--i],handler,false);}}else{this.onmousewheel=handler;}// Store the line height and page height for this particular element
|
||
$.data(this,'mousewheel-line-height',special.getLineHeight(this));$.data(this,'mousewheel-page-height',special.getPageHeight(this));},teardown:function teardown(){if(this.removeEventListener){for(var i=toBind.length;i;){this.removeEventListener(toBind[--i],handler,false);}}else{this.onmousewheel=null;}// Clean up the data we added to the element
|
||
$.removeData(this,'mousewheel-line-height');$.removeData(this,'mousewheel-page-height');},getLineHeight:function getLineHeight(elem){var $elem=$(elem),$parent=$elem['offsetParent'in $.fn?'offsetParent':'parent']();if(!$parent.length){$parent=$('body');}return parseInt($parent.css('fontSize'),10)||parseInt($elem.css('fontSize'),10)||16;},getPageHeight:function getPageHeight(elem){return $(elem).height();},settings:{adjustOldDeltas:true,// see shouldAdjustOldDeltas() below
|
||
normalizeOffset:true// calls getBoundingClientRect for each event
|
||
}};$.fn.extend({mousewheel:function mousewheel(fn){return fn?this.bind('mousewheel',fn):this.trigger('mousewheel');},unmousewheel:function unmousewheel(fn){return this.unbind('mousewheel',fn);}});function handler(event){var orgEvent=event||window.event,args=slice.call(arguments,1),delta=0,deltaX=0,deltaY=0,absDelta=0,offsetX=0,offsetY=0;event=$.event.fix(orgEvent);event.type='mousewheel';// Old school scrollwheel delta
|
||
if('detail'in orgEvent){deltaY=orgEvent.detail*-1;}if('wheelDelta'in orgEvent){deltaY=orgEvent.wheelDelta;}if('wheelDeltaY'in orgEvent){deltaY=orgEvent.wheelDeltaY;}if('wheelDeltaX'in orgEvent){deltaX=orgEvent.wheelDeltaX*-1;}// Firefox < 17 horizontal scrolling related to DOMMouseScroll event
|
||
if('axis'in orgEvent&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS){deltaX=deltaY*-1;deltaY=0;}// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
|
||
delta=deltaY===0?deltaX:deltaY;// New school wheel delta (wheel event)
|
||
if('deltaY'in orgEvent){deltaY=orgEvent.deltaY*-1;delta=deltaY;}if('deltaX'in orgEvent){deltaX=orgEvent.deltaX;if(deltaY===0){delta=deltaX*-1;}}// No change actually happened, no reason to go any further
|
||
if(deltaY===0&&deltaX===0){return;}// Need to convert lines and pages to pixels if we aren't already in pixels
|
||
// There are three delta modes:
|
||
// * deltaMode 0 is by pixels, nothing to do
|
||
// * deltaMode 1 is by lines
|
||
// * deltaMode 2 is by pages
|
||
if(orgEvent.deltaMode===1){var lineHeight=$.data(this,'mousewheel-line-height');delta*=lineHeight;deltaY*=lineHeight;deltaX*=lineHeight;}else if(orgEvent.deltaMode===2){var pageHeight=$.data(this,'mousewheel-page-height');delta*=pageHeight;deltaY*=pageHeight;deltaX*=pageHeight;}// Store lowest absolute delta to normalize the delta values
|
||
absDelta=Math.max(Math.abs(deltaY),Math.abs(deltaX));if(!lowestDelta||absDelta<lowestDelta){lowestDelta=absDelta;// Adjust older deltas if necessary
|
||
if(shouldAdjustOldDeltas(orgEvent,absDelta)){lowestDelta/=40;}}// Adjust older deltas if necessary
|
||
if(shouldAdjustOldDeltas(orgEvent,absDelta)){// Divide all the things by 40!
|
||
delta/=40;deltaX/=40;deltaY/=40;}// Get a whole, normalized value for the deltas
|
||
delta=Math[delta>=1?'floor':'ceil'](delta/lowestDelta);deltaX=Math[deltaX>=1?'floor':'ceil'](deltaX/lowestDelta);deltaY=Math[deltaY>=1?'floor':'ceil'](deltaY/lowestDelta);// Normalise offsetX and offsetY properties
|
||
if(special.settings.normalizeOffset&&this.getBoundingClientRect){var boundingRect=this.getBoundingClientRect();offsetX=event.clientX-boundingRect.left;offsetY=event.clientY-boundingRect.top;}// Add information to the event object
|
||
event.deltaX=deltaX;event.deltaY=deltaY;event.deltaFactor=lowestDelta;event.offsetX=offsetX;event.offsetY=offsetY;// Go ahead and set deltaMode to 0 since we converted to pixels
|
||
// Although this is a little odd since we overwrite the deltaX/Y
|
||
// properties with normalized deltas.
|
||
event.deltaMode=0;// Add event and delta to the front of the arguments
|
||
args.unshift(event,delta,deltaX,deltaY);// Clearout lowestDelta after sometime to better
|
||
// handle multiple device types that give different
|
||
// a different lowestDelta
|
||
// Ex: trackpad = 3 and mouse wheel = 120
|
||
if(nullLowestDeltaTimeout){clearTimeout(nullLowestDeltaTimeout);}nullLowestDeltaTimeout=setTimeout(nullLowestDelta,200);return($.event.dispatch||$.event.handle).apply(this,args);}function nullLowestDelta(){lowestDelta=null;}function shouldAdjustOldDeltas(orgEvent,absDelta){// If this is an older event and the delta is divisable by 120,
|
||
// then we are assuming that the browser is treating this as an
|
||
// older mouse wheel event and that we should divide the deltas
|
||
// by 40 to try and get a more usable deltaFactor.
|
||
// Side note, this actually impacts the reported scroll distance
|
||
// in older browsers and can cause scrolling to be slower than native.
|
||
// Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
|
||
return special.settings.adjustOldDeltas&&orgEvent.type==='mousewheel'&&absDelta%120===0;}});S2.define('jquery.select2',['jquery','jquery-mousewheel','./select2/core','./select2/defaults'],function($,_,Select2,Defaults){if($.fn.select2==null){// All methods that should return the element
|
||
var thisMethods=['open','close','destroy'];$.fn.select2=function(options){options=options||{};if(_typeof2(options)==='object'){this.each(function(){var instanceOptions=$.extend(true,{},options);var instance=new Select2($(this),instanceOptions);});return this;}else if(typeof options==='string'){var ret;var args=Array.prototype.slice.call(arguments,1);this.each(function(){var instance=$(this).data('select2');if(instance==null&&window.console&&console.error){console.error('The select2(\''+options+'\') method was called on an '+'element that is not using Select2.');}ret=instance[options].apply(instance,args);});// Check if we should be returning `this`
|
||
if($.inArray(options,thisMethods)>-1){return this;}return ret;}else{throw new Error('Invalid arguments for Select2: '+options);}};}if($.fn.select2.defaults==null){$.fn.select2.defaults=Defaults;}return Select2;});// Return the AMD loader configuration so it can be used outside of this file
|
||
return{define:S2.define,require:S2.require};}();// Autoload the jQuery bindings
|
||
// We know that all of the modules exist above this, so we're safe
|
||
var select2=S2.require('jquery.select2');// Hold the AMD module references on the jQuery function that was just loaded
|
||
// This allows Select2 to use the internal loader outside of this file, such
|
||
// as in the language files.
|
||
jQuery.fn.select2.amd=S2;// Return the Select2 instance for anyone who is importing it.
|
||
return select2;});/*! Select2 4.0.5 | https://github.com/select2/select2/blob/master/LICENSE.md */(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function errorLoading(){return"无法载入结果。";},inputTooLong:function inputTooLong(e){var t=e.input.length-e.maximum,n="请删除"+t+"个字符";return n;},inputTooShort:function inputTooShort(e){var t=e.minimum-e.input.length,n="请再输入至少"+t+"个字符";return n;},loadingMore:function loadingMore(){return"载入更多结果…";},maximumSelected:function maximumSelected(e){var t="最多只能选择"+e.maximum+"个项目";return t;},noResults:function noResults(){return"未找到结果";},searching:function searching(){return"搜索中…";}};}),{define:e.define,require:e.require};})();/*
|
||
http://www.popub.net/script/pcasunzip.html
|
||
*/var PCAD="北京市$市辖区,东城区,西城区,朝阳区,丰台区,石景山区,海淀区,门头沟区,房山区,通州区,顺义区,昌平区,大兴区,怀柔区,平谷区|市辖县,密云县,延庆县#天津市$市辖区,和平区,河东区,河西区,南开区,河北区,红桥区,东丽区,西青区,津南区,北辰区,武清区,宝坻区,滨海新区|市辖县,宁河县,静海县,蓟县#河北省$石家庄市,市辖区,长安区,桥东区,桥西区,新华区,井陉矿区,裕华区,井陉县,正定县,栾城县,行唐县,灵寿县,高邑县,深泽县,赞皇县,无极县,平山县,元氏县,赵县,辛集市,藁城市,晋州市,新乐市,鹿泉市|唐山市,市辖区,路南区,路北区,古冶区,开平区,丰南区,丰润区,滦县,滦南县,乐亭县,迁西县,玉田县,唐海县,遵化市,迁安市|秦皇岛市,市辖区,海港区,山海关区,北戴河区,青龙满族自治县,昌黎县,抚宁县,卢龙县|邯郸市,市辖区,邯山区,丛台区,复兴区,峰峰矿区,邯郸县,临漳县,成安县,大名县,涉县,磁县,肥乡县,永年县,邱县,鸡泽县,广平县,馆陶县,魏县,曲周县,武安市|邢台市,市辖区,桥东区,桥西区,邢台县,临城县,内丘县,柏乡县,隆尧县,任县,南和县,宁晋县,巨鹿县,新河县,广宗县,平乡县,威县,清河县,临西县,南宫市,沙河市|保定市,市辖区,新市区,北市区,南市区,满城县,清苑县,涞水县,阜平县,徐水县,定兴县,唐县,高阳县,容城县,涞源县,望都县,安新县,易县,曲阳县,蠡县,顺平县,博野县,雄县,涿州市,定州市,安国市,高碑店市|张家口市,市辖区,桥东区,桥西区,宣化区,下花园区,宣化县,张北县,康保县,沽源县,尚义县,蔚县,阳原县,怀安县,万全县,怀来县,涿鹿县,赤城县,崇礼县|承德市,市辖区,双桥区,双滦区,鹰手营子矿区,承德县,兴隆县,平泉县,滦平县,隆化县,丰宁满族自治县,宽城满族自治县,围场满族蒙古族自治县|沧州市,市辖区,新华区,运河区,沧县,青县,东光县,海兴县,盐山县,肃宁县,南皮县,吴桥县,献县,孟村回族自治县,泊头市,任丘市,黄骅市,河间市|廊坊市,市辖区,安次区,广阳区,固安县,永清县,香河县,大城县,文安县,大厂回族自治县,霸州市,三河市|衡水市,市辖区,桃城区,枣强县,武邑县,武强县,饶阳县,安平县,故城县,景县,阜城县,冀州市,深州市#山西省$太原市,市辖区,小店区,迎泽区,杏花岭区,尖草坪区,万柏林区,晋源区,清徐县,阳曲县,娄烦县,古交市|大同市,市辖区,城区,矿区,南郊区,新荣区,阳高县,天镇县,广灵县,灵丘县,浑源县,左云县,大同县|阳泉市,市辖区,城区,矿区,郊区,平定县,盂县|长治市,市辖区,城区,郊区,长治县,襄垣县,屯留县,平顺县,黎城县,壶关县,长子县,武乡县,沁县,沁源县,潞城市|晋城市,市辖区,城区,沁水县,阳城县,陵川县,泽州县,高平市|朔州市,市辖区,朔城区,平鲁区,山阴县,应县,右玉县,怀仁县|晋中市,市辖区,榆次区,榆社县,左权县,和顺县,昔阳县,寿阳县,太谷县,祁县,平遥县,灵石县,介休市|运城市,市辖区,盐湖区,临猗县,万荣县,闻喜县,稷山县,新绛县,绛县,垣曲县,夏县,平陆县,芮城县,永济市,河津市|忻州市,市辖区,忻府区,定襄县,五台县,代县,繁峙县,宁武县,静乐县,神池县,五寨县,岢岚县,河曲县,保德县,偏关县,原平市|临汾市,市辖区,尧都区,曲沃县,翼城县,襄汾县,洪洞县,古县,安泽县,浮山县,吉县,乡宁县,大宁县,隰县,永和县,蒲县,汾西县,侯马市,霍州市|吕梁市,市辖区,离石区,文水县,交城县,兴县,临县,柳林县,石楼县,岚县,方山县,中阳县,交口县,孝义市,汾阳市#内蒙古自治区$呼和浩特市,市辖区,新城区,回民区,玉泉区,赛罕区,土默特左旗,托克托县,和林格尔县,清水河县,武川县|包头市,市辖区,东河区,昆都仑区,青山区,石拐区,白云鄂博矿区,九原区,土默特右旗,固阳县,达尔罕茂明安联合旗|乌海市,市辖区,海勃湾区,海南区,乌达区|赤峰市,市辖区,红山区,元宝山区,松山区,阿鲁科尔沁旗,巴林左旗,巴林右旗,林西县,克什克腾旗,翁牛特旗,喀喇沁旗,宁城县,敖汉旗|通辽市,市辖区,科尔沁区,科尔沁左翼中旗,科尔沁左翼后旗,开鲁县,库伦旗,奈曼旗,扎鲁特旗,霍林郭勒市|鄂尔多斯市,市辖区,东胜区,达拉特旗,准格尔旗,鄂托克前旗,鄂托克旗,杭锦旗,乌审旗,伊金霍洛旗|呼伦贝尔市,市辖区,海拉尔区,阿荣旗,莫力达瓦达斡尔族自治旗,鄂伦春自治旗,鄂温克族自治旗,陈巴尔虎旗,新巴尔虎左旗,新巴尔虎右旗,满洲里市,牙克石市,扎兰屯市,额尔古纳市,根河市|巴彦淖尔市,市辖区,临河区,五原县,磴口县,乌拉特前旗,乌拉特中旗,乌拉特后旗,杭锦后旗|乌兰察布市,市辖区,集宁区,卓资县,化德县,商都县,兴和县,凉城县,察哈尔右翼前旗,察哈尔右翼中旗,察哈尔右翼后旗,四子王旗,丰镇市|兴安盟,乌兰浩特市,阿尔山市,科尔沁右翼前旗,科尔沁右翼中旗,扎赉特旗,突泉县|锡林郭勒盟,二连浩特市,锡林浩特市,阿巴嘎旗,苏尼特左旗,苏尼特右旗,东乌珠穆沁旗,西乌珠穆沁旗,太仆寺旗,镶黄旗,正镶白旗,正蓝旗,多伦县|阿拉善盟,阿拉善左旗,阿拉善右旗,额济纳旗#辽宁省$沈阳市,市辖区,和平区,沈河区,大东区,皇姑区,铁西区,苏家屯区,东陵区,沈北新区,于洪区,辽中县,康平县,法库县,新民市|大连市,市辖区,中山区,西岗区,沙河口区,甘井子区,旅顺口区,金州区,长海县,瓦房店市,普兰店市,庄河市|鞍山市,市辖区,铁东区,铁西区,立山区,千山区,台安县,岫岩满族自治县,海城市|抚顺市,市辖区,新抚区,东洲区,望花区,顺城区,抚顺县,新宾满族自治县,清原满族自治县|本溪市,市辖区,平山区,溪湖区,明山区,南芬区,本溪满族自治县,桓仁满族自治县|丹东市,市辖区,元宝区,振兴区,振安区,宽甸满族自治县,东港市,凤城市|锦州市,市辖区,古塔区,凌河区,太和区,黑山县,义县,凌海市,北镇市|营口市,市辖区,站前区,西市区,鲅鱼圈区,老边区,盖州市,大石桥市|阜新市,市辖区,海州区,新邱区,太平区,清河门区,细河区,阜新蒙古族自治县,彰武县|辽阳市,市辖区,白塔区,文圣区,宏伟区,弓长岭区,太子河区,辽阳县,灯塔市|盘锦市,市辖区,双台子区,兴隆台区,大洼县,盘山县|铁岭市,市辖区,银州区,清河区,铁岭县,西丰县,昌图县,调兵山市,开原市|朝阳市,市辖区,双塔区,龙城区,朝阳县,建平县,喀喇沁左翼蒙古族自治县,北票市,凌源市|葫芦岛市,市辖区,连山区,龙港区,南票区,绥中县,建昌县,兴城市#吉林省$长春市,市辖区,南关区,宽城区,朝阳区,二道区,绿园区,双阳区,农安县,九台市,榆树市,德惠市|吉林市,市辖区,昌邑区,龙潭区,船营区,丰满区,永吉县,蛟河市,桦甸市,舒兰市,磐石市|四平市,市辖区,铁西区,铁东区,梨树县,伊通满族自治县,公主岭市,双辽市|辽源市,市辖区,龙山区,西安区,东丰县,东辽县|通化市,市辖区,东昌区,二道江区,通化县,辉南县,柳河县,梅河口市,集安市|白山市,市辖区,八道江区,江源区,抚松县,靖宇县,长白朝鲜族自治县,临江市|松原市,市辖区,宁江区,前郭尔罗斯蒙古族自治县,长岭县,乾安县,扶余县|白城市,市辖区,洮北区,镇赉县,通榆县,洮南市,大安市|延边朝鲜族自治州,延吉市,图们市,敦化市,珲春市,龙井市,和龙市,汪清县,安图县#黑龙江省$哈尔滨市,市辖区,道里区,南岗区,道外区,平房区,松北区,香坊区,呼兰区,阿城区,依兰县,方正县,宾县,巴彦县,木兰县,通河县,延寿县,双城市,尚志市,五常市|齐齐哈尔市,市辖区,龙沙区,建华区,铁锋区,昂昂溪区,富拉尔基区,碾子山区,梅里斯达斡尔族区,龙江县,依安县,泰来县,甘南县,富裕县,克山县,克东县,拜泉县,讷河市|鸡西市,市辖区,鸡冠区,恒山区,滴道区,梨树区,城子河区,麻山区,鸡东县,虎林市,密山市|鹤岗市,市辖区,向阳区,工农区,南山区,兴安区,东山区,兴山区,萝北县,绥滨县|双鸭山市,市辖区,尖山区,岭东区,四方台区,宝山区,集贤县,友谊县,宝清县,饶河县|大庆市,市辖区,萨尔图区,龙凤区,让胡路区,红岗区,大同区,肇州县,肇源县,林甸县,杜尔伯特蒙古族自治县|伊春市,市辖区,伊春区,南岔区,友好区,西林区,翠峦区,新青区,美溪区,金山屯区,五营区,乌马河区,汤旺河区,带岭区,乌伊岭区,红星区,上甘岭区,嘉荫县,铁力市|佳木斯市,市辖区,向阳区,前进区,东风区,郊区,桦南县,桦川县,汤原县,抚远县,同江市,富锦市|七台河市,市辖区,新兴区,桃山区,茄子河区,勃利县|牡丹江市,市辖区,东安区,阳明区,爱民区,西安区,东宁县,林口县,绥芬河市,海林市,宁安市,穆棱市|黑河市,市辖区,爱辉区,嫩江县,逊克县,孙吴县,北安市,五大连池市|绥化市,市辖区,北林区,望奎县,兰西县,青冈县,庆安县,明水县,绥棱县,安达市,肇东市,海伦市|大兴安岭地区,呼玛县,塔河县,漠河县#上海市$市辖区,黄浦区,徐汇区,长宁区,静安区,普陀区,闸北区,虹口区,杨浦区,闵行区,宝山区,嘉定区,浦东新区,金山区,松江区,青浦区,奉贤区|市辖县,崇明县#江苏省$南京市,市辖区,玄武区,白下区,秦淮区,建邺区,鼓楼区,下关区,浦口区,栖霞区,雨花台区,江宁区,六合区,溧水县,高淳县|无锡市,市辖区,崇安区,南长区,北塘区,锡山区,惠山区,滨湖区,江阴市,宜兴市|徐州市,市辖区,鼓楼区,云龙区,贾汪区,泉山区,铜山区,丰县,沛县,睢宁县,新沂市,邳州市|常州市,市辖区,天宁区,钟楼区,戚墅堰区,新北区,武进区,溧阳市,金坛市|苏州市,市辖区,沧浪区,平江区,金阊区,虎丘区,吴中区,相城区,常熟市,张家港市,昆山市,吴江市,太仓市|南通市,市辖区,崇川区,港闸区,通州区,海安县,如东县,启东市,如皋市,海门市|连云港市,市辖区,连云区,新浦区,海州区,赣榆县,东海县,灌云县,灌南县|淮安市,市辖区,清河区,楚州区,淮阴区,清浦区,涟水县,洪泽县,盱眙县,金湖县|盐城市,市辖区,亭湖区,盐都区,响水县,滨海县,阜宁县,射阳县,建湖县,东台市,大丰市|扬州市,市辖区,广陵区,邗江区,江都区,宝应县,仪征市,高邮市|镇江市,市辖区,京口区,润州区,丹徒区,丹阳市,扬中市,句容市|泰州市,市辖区,海陵区,高港区,兴化市,靖江市,泰兴市,姜堰市|宿迁市,市辖区,宿城区,宿豫区,沭阳县,泗阳县,泗洪县#浙江省$杭州市,市辖区,上城区,下城区,江干区,拱墅区,西湖区,滨江区,萧山区,余杭区,桐庐县,淳安县,建德市,富阳市,临安市|宁波市,市辖区,海曙区,江东区,江北区,北仑区,镇海区,鄞州区,象山县,宁海县,余姚市,慈溪市,奉化市|温州市,市辖区,鹿城区,龙湾区,瓯海区,洞头县,永嘉县,平阳县,苍南县,文成县,泰顺县,瑞安市,乐清市|嘉兴市,市辖区,南湖区,秀洲区,嘉善县,海盐县,海宁市,平湖市,桐乡市|湖州市,市辖区,吴兴区,南浔区,德清县,长兴县,安吉县|绍兴市,市辖区,越城区,绍兴县,新昌县,诸暨市,上虞市,嵊州市|金华市,市辖区,婺城区,金东区,武义县,浦江县,磐安县,兰溪市,义乌市,东阳市,永康市|衢州市,市辖区,柯城区,衢江区,常山县,开化县,龙游县,江山市|舟山市,市辖区,定海区,普陀区,岱山县,嵊泗县|台州市,市辖区,椒江区,黄岩区,路桥区,玉环县,三门县,天台县,仙居县,温岭市,临海市|丽水市,市辖区,莲都区,青田县,缙云县,遂昌县,松阳县,云和县,庆元县,景宁畲族自治县,龙泉市#安徽省$合肥市,市辖区,瑶海区,庐阳区,蜀山区,包河区,长丰县,肥东县,肥西县,庐江县,巢湖市|芜湖市,市辖区,镜湖区,弋江区,鸠江区,三山区,芜湖县,繁昌县,南陵县,无为县|蚌埠市,市辖区,龙子湖区,蚌山区,禹会区,淮上区,怀远县,五河县,固镇县|淮南市,市辖区,大通区,田家庵区,谢家集区,八公山区,潘集区,凤台县|马鞍山市,市辖区,金家庄区,花山区,雨山区,当涂县,含山县,和县|淮北市,市辖区,杜集区,相山区,烈山区,濉溪县|铜陵市,市辖区,铜官山区,狮子山区,郊区,铜陵县|安庆市,市辖区,迎江区,大观区,宜秀区,怀宁县,枞阳县,潜山县,太湖县,宿松县,望江县,岳西县,桐城市|黄山市,市辖区,屯溪区,黄山区,徽州区,歙县,休宁县,黟县,祁门县|滁州市,市辖区,琅琊区,南谯区,来安县,全椒县,定远县,凤阳县,天长市,明光市|阜阳市,市辖区,颍州区,颍东区,颍泉区,临泉县,太和县,阜南县,颍上县,界首市|宿州市,市辖区,埇桥区,砀山县,萧县,灵璧县,泗县|六安市,市辖区,金安区,裕安区,寿县,霍邱县,舒城县,金寨县,霍山县|亳州市,市辖区,谯城区,涡阳县,蒙城县,利辛县|池州市,市辖区,贵池区,东至县,石台县,青阳县|宣城市,市辖区,宣州区,郎溪县,广德县,泾县,绩溪县,旌德县,宁国市#福建省$福州市,市辖区,鼓楼区,台江区,仓山区,马尾区,晋安区,闽侯县,连江县,罗源县,闽清县,永泰县,平潭县,福清市,长乐市|厦门市,市辖区,思明区,海沧区,湖里区,集美区,同安区,翔安区|莆田市,市辖区,城厢区,涵江区,荔城区,秀屿区,仙游县|三明市,市辖区,梅列区,三元区,明溪县,清流县,宁化县,大田县,尤溪县,沙县,将乐县,泰宁县,建宁县,永安市|泉州市,市辖区,鲤城区,丰泽区,洛江区,泉港区,惠安县,安溪县,永春县,德化县,金门县,石狮市,晋江市,南安市|漳州市,市辖区,芗城区,龙文区,云霄县,漳浦县,诏安县,长泰县,东山县,南靖县,平和县,华安县,龙海市|南平市,市辖区,延平区,顺昌县,浦城县,光泽县,松溪县,政和县,邵武市,武夷山市,建瓯市,建阳市|龙岩市,市辖区,新罗区,长汀县,永定县,上杭县,武平县,连城县,漳平市|宁德市,市辖区,蕉城区,霞浦县,古田县,屏南县,寿宁县,周宁县,柘荣县,福安市,福鼎市#江西省$南昌市,市辖区,东湖区,西湖区,青云谱区,湾里区,青山湖区,南昌县,新建县,安义县,进贤县|景德镇市,市辖区,昌江区,珠山区,浮梁县,乐平市|萍乡市,市辖区,安源区,湘东区,莲花县,上栗县,芦溪县|九江市,市辖区,庐山区,浔阳区,九江县,武宁县,修水县,永修县,德安县,星子县,都昌县,湖口县,彭泽县,瑞昌市,共青城市|新余市,市辖区,渝水区,分宜县|鹰潭市,市辖区,月湖区,余江县,贵溪市|赣州市,市辖区,章贡区,赣县,信丰县,大余县,上犹县,崇义县,安远县,龙南县,定南县,全南县,宁都县,于都县,兴国县,会昌县,寻乌县,石城县,瑞金市,南康市|吉安市,市辖区,吉州区,青原区,吉安县,吉水县,峡江县,新干县,永丰县,泰和县,遂川县,万安县,安福县,永新县,井冈山市|宜春市,市辖区,袁州区,奉新县,万载县,上高县,宜丰县,靖安县,铜鼓县,丰城市,樟树市,高安市|抚州市,市辖区,临川区,南城县,黎川县,南丰县,崇仁县,乐安县,宜黄县,金溪县,资溪县,东乡县,广昌县|上饶市,市辖区,信州区,上饶县,广丰县,玉山县,铅山县,横峰县,弋阳县,余干县,鄱阳县,万年县,婺源县,德兴市#山东省$济南市,市辖区,历下区,市中区,槐荫区,天桥区,历城区,长清区,平阴县,济阳县,商河县,章丘市|青岛市,市辖区,市南区,市北区,四方区,黄岛区,崂山区,李沧区,城阳区,胶州市,即墨市,平度市,胶南市,莱西市|淄博市,市辖区,淄川区,张店区,博山区,临淄区,周村区,桓台县,高青县,沂源县|枣庄市,市辖区,市中区,薛城区,峄城区,台儿庄区,山亭区,滕州市|东营市,市辖区,东营区,河口区,垦利县,利津县,广饶县|烟台市,市辖区,芝罘区,福山区,牟平区,莱山区,长岛县,龙口市,莱阳市,莱州市,蓬莱市,招远市,栖霞市,海阳市|潍坊市,市辖区,潍城区,寒亭区,坊子区,奎文区,临朐县,昌乐县,青州市,诸城市,寿光市,安丘市,高密市,昌邑市|济宁市,市辖区,市中区,任城区,微山县,鱼台县,金乡县,嘉祥县,汶上县,泗水县,梁山县,曲阜市,兖州市,邹城市|泰安市,市辖区,泰山区,岱岳区,宁阳县,东平县,新泰市,肥城市|威海市,市辖区,环翠区,文登市,荣成市,乳山市|日照市,市辖区,东港区,岚山区,五莲县,莒县|莱芜市,市辖区,莱城区,钢城区|临沂市,市辖区,兰山区,罗庄区,河东区,沂南县,郯城县,沂水县,苍山县,费县,平邑县,莒南县,蒙阴县,临沭县|德州市,市辖区,德城区,陵县,宁津县,庆云县,临邑县,齐河县,平原县,夏津县,武城县,乐陵市,禹城市|聊城市,市辖区,东昌府区,阳谷县,莘县,茌平县,东阿县,冠县,高唐县,临清市|滨州市,市辖区,滨城区,惠民县,阳信县,无棣县,沾化县,博兴县,邹平县|菏泽市,市辖区,牡丹区,曹县,单县,成武县,巨野县,郓城县,鄄城县,定陶县,东明县#河南省$郑州市,市辖区,中原区,二七区,管城回族区,金水区,上街区,惠济区,中牟县,巩义市,荥阳市,新密市,新郑市,登封市|开封市,市辖区,龙亭区,顺河回族区,鼓楼区,禹王台区,金明区,杞县,通许县,尉氏县,开封县,兰考县|洛阳市,市辖区,老城区,西工区,瀍河回族区,涧西区,吉利区,洛龙区,孟津县,新安县,栾川县,嵩县,汝阳县,宜阳县,洛宁县,伊川县,偃师市|平顶山市,市辖区,新华区,卫东区,石龙区,湛河区,宝丰县,叶县,鲁山县,郏县,舞钢市,汝州市|安阳市,市辖区,文峰区,北关区,殷都区,龙安区,安阳县,汤阴县,滑县,内黄县,林州市|鹤壁市,市辖区,鹤山区,山城区,淇滨区,浚县,淇县|新乡市,市辖区,红旗区,卫滨区,凤泉区,牧野区,新乡县,获嘉县,原阳县,延津县,封丘县,长垣县,卫辉市,辉县市|焦作市,市辖区,解放区,中站区,马村区,山阳区,修武县,博爱县,武陟县,温县,沁阳市,孟州市|濮阳市,市辖区,华龙区,清丰县,南乐县,范县,台前县,濮阳县|许昌市,市辖区,魏都区,许昌县,鄢陵县,襄城县,禹州市,长葛市|漯河市,市辖区,源汇区,郾城区,召陵区,舞阳县,临颍县|三门峡市,市辖区,湖滨区,渑池县,陕县,卢氏县,义马市,灵宝市|南阳市,市辖区,宛城区,卧龙区,南召县,方城县,西峡县,镇平县,内乡县,淅川县,社旗县,唐河县,新野县,桐柏县,邓州市|商丘市,市辖区,梁园区,睢阳区,民权县,睢县,宁陵县,柘城县,虞城县,夏邑县,永城市|信阳市,市辖区,浉河区,平桥区,罗山县,光山县,新县,商城县,固始县,潢川县,淮滨县,息县|周口市,市辖区,川汇区,扶沟县,西华县,商水县,沈丘县,郸城县,淮阳县,太康县,鹿邑县,项城市|驻马店市,市辖区,驿城区,西平县,上蔡县,平舆县,正阳县,确山县,泌阳县,汝南县,遂平县,新蔡县|省直辖县级行政区划,济源市#湖北省$武汉市,市辖区,江岸区,江汉区,硚口区,汉阳区,武昌区,青山区,洪山区,东西湖区,汉南区,蔡甸区,江夏区,黄陂区,新洲区|黄石市,市辖区,黄石港区,西塞山区,下陆区,铁山区,阳新县,大冶市|十堰市,市辖区,茅箭区,张湾区,郧县,郧西县,竹山县,竹溪县,房县,丹江口市|宜昌市,市辖区,西陵区,伍家岗区,点军区,猇亭区,夷陵区,远安县,兴山县,秭归县,长阳土家族自治县,五峰土家族自治县,宜都市,当阳市,枝江市|襄阳市,市辖区,襄城区,樊城区,襄州区,南漳县,谷城县,保康县,老河口市,枣阳市,宜城市|鄂州市,市辖区,梁子湖区,华容区,鄂城区|荆门市,市辖区,东宝区,掇刀区,京山县,沙洋县,钟祥市|孝感市,市辖区,孝南区,孝昌县,大悟县,云梦县,应城市,安陆市,汉川市|荆州市,市辖区,沙市区,荆州区,公安县,监利县,江陵县,石首市,洪湖市,松滋市|黄冈市,市辖区,黄州区,团风县,红安县,罗田县,英山县,浠水县,蕲春县,黄梅县,麻城市,武穴市|咸宁市,市辖区,咸安区,嘉鱼县,通城县,崇阳县,通山县,赤壁市|随州市,市辖区,曾都区,随县,广水市|恩施土家族苗族自治州,恩施市,利川市,建始县,巴东县,宣恩县,咸丰县,来凤县,鹤峰县|省直辖县级行政区划,仙桃市,潜江市,天门市,神农架林区#湖南省$长沙市,市辖区,芙蓉区,天心区,岳麓区,开福区,雨花区,望城区,长沙县,宁乡县,浏阳市|株洲市,市辖区,荷塘区,芦淞区,石峰区,天元区,株洲县,攸县,茶陵县,炎陵县,醴陵市|湘潭市,市辖区,雨湖区,岳塘区,湘潭县,湘乡市,韶山市|衡阳市,市辖区,珠晖区,雁峰区,石鼓区,蒸湘区,南岳区,衡阳县,衡南县,衡山县,衡东县,祁东县,耒阳市,常宁市|邵阳市,市辖区,双清区,大祥区,北塔区,邵东县,新邵县,邵阳县,隆回县,洞口县,绥宁县,新宁县,城步苗族自治县,武冈市|岳阳市,市辖区,岳阳楼区,云溪区,君山区,岳阳县,华容县,湘阴县,平江县,汨罗市,临湘市|常德市,市辖区,武陵区,鼎城区,安乡县,汉寿县,澧县,临澧县,桃源县,石门县,津市市|张家界市,市辖区,永定区,武陵源区,慈利县,桑植县|益阳市,市辖区,资阳区,赫山区,南县,桃江县,安化县,沅江市|郴州市,市辖区,北湖区,苏仙区,桂阳县,宜章县,永兴县,嘉禾县,临武县,汝城县,桂东县,安仁县,资兴市|永州市,市辖区,零陵区,冷水滩区,祁阳县,东安县,双牌县,道县,江永县,宁远县,蓝山县,新田县,江华瑶族自治县|怀化市,市辖区,鹤城区,中方县,沅陵县,辰溪县,溆浦县,会同县,麻阳苗族自治县,新晃侗族自治县,芷江侗族自治县,靖州苗族侗族自治县,通道侗族自治县,洪江市|娄底市,市辖区,娄星区,双峰县,新化县,冷水江市,涟源市|湘西土家族苗族自治州,吉首市,泸溪县,凤凰县,花垣县,保靖县,古丈县,永顺县,龙山县#广东省$广州市,市辖区,荔湾区,越秀区,海珠区,天河区,白云区,黄埔区,番禺区,花都区,南沙区,萝岗区,增城市,从化市|韶关市,市辖区,武江区,浈江区,曲江区,始兴县,仁化县,翁源县,乳源瑶族自治县,新丰县,乐昌市,南雄市|深圳市,市辖区,罗湖区,福田区,南山区,宝安区,龙岗区,盐田区|珠海市,市辖区,香洲区,斗门区,金湾区|汕头市,市辖区,龙湖区,金平区,濠江区,潮阳区,潮南区,澄海区,南澳县|佛山市,市辖区,禅城区,南海区,顺德区,三水区,高明区|江门市,市辖区,蓬江区,江海区,新会区,台山市,开平市,鹤山市,恩平市|湛江市,市辖区,赤坎区,霞山区,坡头区,麻章区,遂溪县,徐闻县,廉江市,雷州市,吴川市|茂名市,市辖区,茂南区,茂港区,电白县,高州市,化州市,信宜市|肇庆市,市辖区,端州区,鼎湖区,广宁县,怀集县,封开县,德庆县,高要市,四会市|惠州市,市辖区,惠城区,惠阳区,博罗县,惠东县,龙门县|梅州市,市辖区,梅江区,梅县,大埔县,丰顺县,五华县,平远县,蕉岭县,兴宁市|汕尾市,市辖区,城区,海丰县,陆河县,陆丰市|河源市,市辖区,源城区,紫金县,龙川县,连平县,和平县,东源县|阳江市,市辖区,江城区,阳西县,阳东县,阳春市|清远市,市辖区,清城区,佛冈县,阳山县,连山壮族瑶族自治县,连南瑶族自治县,清新县,英德市,连州市|东莞市|中山市|潮州市,市辖区,湘桥区,潮安县,饶平县|揭阳市,市辖区,榕城区,揭东县,揭西县,惠来县,普宁市|云浮市,市辖区,云城区,新兴县,郁南县,云安县,罗定市#广西壮族自治区$南宁市,市辖区,兴宁区,青秀区,江南区,西乡塘区,良庆区,邕宁区,武鸣县,隆安县,马山县,上林县,宾阳县,横县|柳州市,市辖区,城中区,鱼峰区,柳南区,柳北区,柳江县,柳城县,鹿寨县,融安县,融水苗族自治县,三江侗族自治县|桂林市,市辖区,秀峰区,叠彩区,象山区,七星区,雁山区,阳朔县,临桂县,灵川县,全州县,兴安县,永福县,灌阳县,龙胜各族自治县,资源县,平乐县,荔蒲县,恭城瑶族自治县|梧州市,市辖区,万秀区,蝶山区,长洲区,苍梧县,藤县,蒙山县,岑溪市|北海市,市辖区,海城区,银海区,铁山港区,合浦县|防城港市,市辖区,港口区,防城区,上思县,东兴市|钦州市,市辖区,钦南区,钦北区,灵山县,浦北县|贵港市,市辖区,港北区,港南区,覃塘区,平南县,桂平市|玉林市,市辖区,玉州区,容县,陆川县,博白县,兴业县,北流市|百色市,市辖区,右江区,田阳县,田东县,平果县,德保县,靖西县,那坡县,凌云县,乐业县,田林县,西林县,隆林各族自治县|贺州市,市辖区,八步区,昭平县,钟山县,富川瑶族自治县|河池市,市辖区,金城江区,南丹县,天峨县,凤山县,东兰县,罗城仫佬族自治县,环江毛南族自治县,巴马瑶族自治县,都安瑶族自治县,大化瑶族自治县,宜州市|来宾市,市辖区,兴宾区,忻城县,象州县,武宣县,金秀瑶族自治县,合山市|崇左市,市辖区,江洲区,扶绥县,宁明县,龙州县,大新县,天等县,凭祥市#海南省$海口市,市辖区,秀英区,龙华区,琼山区,美兰区|三亚市,市辖区|省直辖县级行政区划,五指山市,琼海市,儋州市,文昌市,万宁市,东方市,定安县,屯昌县,澄迈县,临高县,白沙黎族自治县,昌江黎族自治县,乐东黎族自治县,陵水黎族自治县,保亭黎族苗族自治县,琼中黎族苗族自治县,西沙群岛,南沙群岛,中沙群岛的岛礁及其海域#重庆市$市辖区,万州区,涪陵区,渝中区,大渡口区,江北区,沙坪坝区,九龙坡区,南岸区,北碚区,綦江区,大足区,渝北区,巴南区,黔江区,长寿区,江津区,合川区,永川区,南川区|市辖县,潼南县,铜梁县,荣昌县,璧山县,梁平县,城口县,丰都县,垫江县,武隆县,忠县,开县,云阳县,奉节县,巫山县,巫溪县,石柱土家族自治县,秀山土家族苗族自治县,酉阳土家族苗族自治县,彭水苗族土家族自治县#四川省$成都市,市辖区,锦江区,青羊区,金牛区,武侯区,成华区,龙泉驿区,青白江区,新都区,温江区,金堂县,双流县,郫县,大邑县,蒲江县,新津县,都江堰市,彭州市,邛崃市,崇州市|自贡市,市辖区,自流井区,贡井区,大安区,沿滩区,荣县,富顺县|攀枝花市,市辖区,东区,西区,仁和区,米易县,盐边县|泸州市,市辖区,江阳区,纳溪区,龙马潭区,泸县,合江县,叙永县,古蔺县|德阳市,市辖区,旌阳区,中江县,罗江县,广汉市,什邡市,绵竹市|绵阳市,市辖区,涪城区,游仙区,三台县,盐亭县,安县,梓潼县,北川羌族自治县,平武县,江油市|广元市,市辖区,利州区,元坝区,朝天区,旺苍县,青川县,剑阁县,苍溪县|遂宁市,市辖区,船山区,安居区,蓬溪县,射洪县,大英县|内江市,市辖区,市中区,东兴区,威远县,资中县,隆昌县|乐山市,市辖区,市中区,沙湾区,五通桥区,金口河区,犍为县,井研县,夹江县,沐川县,峨边彝族自治县,马边彝族自治县,峨眉山市|南充市,市辖区,顺庆区,高坪区,嘉陵区,南部县,营山县,蓬安县,仪陇县,西充县,阆中市|眉山市,市辖区,东坡区,仁寿县,彭山县,洪雅县,丹棱县,青神县|宜宾市,市辖区,翠屏区,南溪区,宜宾县,江安县,长宁县,高县,珙县,筠连县,兴文县,屏山县|广安市,市辖区,广安区,岳池县,武胜县,邻水县,华蓥市|达州市,市辖区,通川区,达县,宣汉县,开江县,大竹县,渠县,万源市|雅安市,市辖区,雨城区,名山县,荥经县,汉源县,石棉县,天全县,芦山县,宝兴县|巴中市,市辖区,巴州区,通江县,南江县,平昌县|资阳市,市辖区,雁江区,安岳县,乐至县,简阳市|阿坝藏族羌族自治州,汶川县,理县,茂县,松潘县,九寨沟县,金川县,小金县,黑水县,马尔康县,壤塘县,阿坝县,若尔盖县,红原县|甘孜藏族自治州,康定县,泸定县,丹巴县,九龙县,雅江县,道孚县,炉霍县,甘孜县,新龙县,德格县,白玉县,石渠县,色达县,理塘县,巴塘县,乡城县,稻城县,得荣县|凉山彝族自治州,西昌市,木里藏族自治县,盐源县,德昌县,会理县,会东县,宁南县,普格县,布拖县,金阳县,昭觉县,喜德县,冕宁县,越西县,甘洛县,美姑县,雷波县#贵州省$贵阳市,市辖区,南明区,云岩区,花溪区,乌当区,白云区,小河区,开阳县,息烽县,修文县,清镇市|六盘水市,钟山区,六枝特区,水城县,盘县|遵义市,市辖区,红花岗区,汇川区,遵义县,桐梓县,绥阳县,正安县,道真仡佬族苗族自治县,务川仡佬族苗族自治县,凤冈县,湄潭县,余庆县,习水县,赤水市,仁怀市|安顺市,市辖区,西秀区,平坝县,普定县,镇宁布依族苗族自治县,关岭布依族苗族自治县,紫云苗族布依族自治县|毕节市,市辖区,七星关区,大方县,黔西县,金沙县,织金县,纳雍县,威宁彝族回族苗族自治县,赫章县|铜仁市,市辖区,碧江区,万山区,江口县,玉屏侗族自治县,石阡县,思南县,印江土家族苗族自治县,德江县,沿河土家族自治县,松桃苗族自治县|黔西南布依族苗族自治州,兴义市,兴仁县,普安县,晴隆县,贞丰县,望谟县,册亨县,安龙县|黔东南苗族侗族自治州,凯里市,黄平县,施秉县,三穗县,镇远县,岑巩县,天柱县,锦屏县,剑河县,台江县,黎平县,榕江县,从江县,雷山县,麻江县,丹寨县|黔南布依族苗族自治州,都匀市,福泉市,荔波县,贵定县,瓮安县,独山县,平塘县,罗甸县,长顺县,龙里县,惠水县,三都水族自治县#云南省$昆明市,市辖区,五华区,盘龙区,官渡区,西山区,东川区,呈贡区,晋宁县,富民县,宜良县,石林彝族自治县,嵩明县,禄劝彝族苗族自治县,寻甸回族彝族自治县,安宁市|曲靖市,市辖区,麒麟区,马龙县,陆良县,师宗县,罗平县,富源县,会泽县,沾益县,宣威市|玉溪市,市辖区,红塔区,江川县,澄江县,通海县,华宁县,易门县,峨山彝族自治县,新平彝族傣族自治县,元江哈尼族彝族傣族自治县|保山市,市辖区,隆阳区,施甸县,腾冲县,龙陵县,昌宁县|昭通市,市辖区,昭阳区,鲁甸县,巧家县,盐津县,大关县,永善县,绥江县,镇雄县,彝良县,威信县,水富县|丽江市,市辖区,古城区,玉龙纳西族自治县,永胜县,华坪县,宁蒗彝族自治县|普洱市,市辖区,思茅区,宁洱哈尼族彝族自治县,墨江哈尼族自治县,景东彝族自治县,景谷傣族彝族自治县,镇沅彝族哈尼族拉祜族自治县,江城哈尼族彝族自治县,孟连傣族拉祜族佤族自治县,澜沧拉祜族自治县,西盟佤族自治县|临沧市,市辖区,临翔区,凤庆县,云县,永德县,镇康县,双江拉祜族佤族布朗族傣族自治县,耿马傣族佤族自治县,沧源佤族自治县|楚雄彝族自治州,楚雄市,双柏县,牟定县,南华县,姚安县,大姚县,永仁县,元谋县,武定县,禄丰县|红河哈尼族彝族自治州,个旧市,开远市,蒙自市,屏边苗族自治县,建水县,石屏县,弥勒县,泸西县,元阳县,红河县,金平苗族瑶族傣族自治县,绿春县,河口瑶族自治县|文山壮族苗族自治州,文山市,砚山县,西畴县,麻栗坡县,马关县,丘北县,广南县,富宁县|西双版纳傣族自治州,景洪市,勐海县,勐腊县|大理白族自治州,大理市,漾濞彝族自治县,祥云县,宾川县,弥渡县,南涧彝族自治县,巍山彝族回族自治县,永平县,云龙县,洱源县,剑川县,鹤庆县|德宏傣族景颇族自治州,瑞丽市,芒市,梁河县,盈江县,陇川县|怒江傈僳族自治州,泸水县,福贡县,贡山独龙族怒族自治县,兰坪白族普米族自治县|迪庆藏族自治州,香格里拉县,德钦县,维西傈僳族自治县#西藏自治区$拉萨市,市辖区,城关区,林周县,当雄县,尼木县,曲水县,堆龙德庆县,达孜县,墨竹工卡县|昌都地区,昌都县,江达县,贡觉县,类乌齐县,丁青县,察雅县,八宿县,左贡县,芒康县,洛隆县,边坝县|山南地区,乃东县,扎囊县,贡嘎县,桑日县,琼结县,曲松县,措美县,洛扎县,加查县,隆子县,错那县,浪卡子县|日喀则地区,日喀则市,南木林县,江孜县,定日县,萨迦县,拉孜县,昂仁县,谢通门县,白朗县,仁布县,康马县,定结县,仲巴县,亚东县,吉隆县,聂拉木县,萨嘎县,岗巴县|那曲地区,那曲县,嘉黎县,比如县,聂荣县,安多县,申扎县,索县,班戈县,巴青县,尼玛县|阿里地区,普兰县,札达县,噶尔县,日土县,革吉县,改则县,措勤县|林芝地区,林芝县,工布江达县,米林县,墨脱县,波密县,察隅县,朗县#陕西省$西安市,市辖区,新城区,碑林区,莲湖区,灞桥区,未央区,雁塔区,阎良区,临潼区,长安区,蓝田县,周至县,户县,高陵县|铜川市,市辖区,王益区,印台区,耀州区,宜君县|宝鸡市,市辖区,渭滨区,金台区,陈仓区,凤翔县,岐山县,扶风县,眉县,陇县,千阳县,麟游县,凤县,太白县|咸阳市,市辖区,秦都区,杨陵区,渭城区,三原县,泾阳县,乾县,礼泉县,永寿县,彬县,长武县,旬邑县,淳化县,武功县,兴平市|渭南市,市辖区,临渭区,华县,潼关县,大荔县,合阳县,澄城县,蒲城县,白水县,富平县,韩城市,华阴市|延安市,市辖区,宝塔区,延长县,延川县,子长县,安塞县,志丹县,吴起县,甘泉县,富县,洛川县,宜川县,黄龙县,黄陵县|汉中市,市辖区,汉台区,南郑县,城固县,洋县,西乡县,勉县,宁强县,略阳县,镇巴县,留坝县,佛坪县|榆林市,市辖区,榆阳区,神木县,府谷县,横山县,靖边县,定边县,绥德县,米脂县,佳县,吴堡县,清涧县,子洲县|安康市,市辖区,汉滨区,汉阴县,石泉县,宁陕县,紫阳县,岚皋县,平利县,镇坪县,旬阳县,白河县|商洛市,市辖区,商州区,洛南县,丹凤县,商南县,山阳县,镇安县,柞水县#甘肃省$兰州市,市辖区,城关区,七里河区,西固区,安宁区,红古区,永登县,皋兰县,榆中县|嘉峪关市,市辖区|金昌市,市辖区,金川区,永昌县|白银市,市辖区,白银区,平川区,靖远县,会宁县,景泰县|天水市,市辖区,秦州区,麦积区,清水县,秦安县,甘谷县,武山县,张家川回族自治县|武威市,市辖区,凉州区,民勤县,古浪县,天祝藏族自治县|张掖市,市辖区,甘州区,肃南裕固族自治县,民乐县,临泽县,高台县,山丹县|平凉市,市辖区,崆峒区,泾川县,灵台县,崇信县,华亭县,庄浪县,静宁县|酒泉市,市辖区,肃州区,金塔县,瓜州县,肃北蒙古族自治县,阿克塞哈萨克族自治县,玉门市,敦煌市|庆阳市,市辖区,西峰区,庆城县,环县,华池县,合水县,正宁县,宁县,镇原县|定西市,市辖区,安定区,通渭县,陇西县,渭源县,临洮县,漳县,岷县|陇南市,市辖区,武都区,成县,文县,宕昌县,康县,西和县,礼县,徽县,两当县|临夏回族自治州,临夏市,临夏县,康乐县,永靖县,广河县,和政县,东乡族自治县,积石山保安族东乡族撒拉族自治县|甘南藏族自治州,合作市,临潭县,卓尼县,舟曲县,迭部县,玛曲县,碌曲县,夏河县#青海省$西宁市,市辖区,城东区,城中区,城西区,城北区,大通回族土族自治县,湟中县,湟源县|海东地区,平安县,民和回族土族自治县,乐都县,互助土族自治县,化隆回族自治县,循化撒拉族自治县|海北藏族自治州,门源回族自治县,祁连县,海晏县,刚察县|黄南藏族自治州,同仁县,尖扎县,泽库县,河南蒙古族自治县|海南藏族自治州,共和县,同德县,贵德县,兴海县,贵南县|果洛藏族自治州,玛沁县,班玛县,甘德县,达日县,久治县,玛多县|玉树藏族自治州,玉树县,杂多县,称多县,治多县,囊谦县,曲麻莱县|海西蒙古族藏族自治州,格尔木市,德令哈市,乌兰县,都兰县,天峻县#宁夏回族自治区$银川市,市辖区,兴庆区,西夏区,金凤区,永宁县,贺兰县,灵武市|石嘴山市,市辖区,大武口区,惠农区,平罗县|吴忠市,市辖区,利通区,红寺堡区,盐池县,同心县,青铜峡市|固原市,市辖区,原州区,西吉县,隆德县,泾源县,彭阳县|中卫市,市辖区,沙坡头区,中宁县,海原县#新疆维吾尔自治区$乌鲁木齐市,市辖区,天山区,沙依巴克区,新市区,水磨沟区,头屯河区,达坂城区,米东区,乌鲁木齐县|克拉玛依市,市辖区,独山子区,克拉玛依区,白碱滩区,乌尔禾区|吐鲁番地区,吐鲁番市,鄯善县,托克逊县|哈密地区,哈密市,巴里坤哈萨克自治县,伊吾县|昌吉回族自治州,昌吉市,阜康市,呼图壁县,玛纳斯县,奇台县,吉木萨尔县,木垒哈萨克自治县|博尔塔拉蒙古自治州,博乐市,精河县,温泉县|巴音郭楞蒙古自治州,库尔勒市,轮台县,尉犁县,若羌县,且末县,焉耆回族自治县,和静县,和硕县,博湖县|阿克苏地区,阿克苏市,温宿县,库车县,沙雅县,新和县,拜城县,乌什县,阿瓦提县,柯坪县|克孜勒苏柯尔克孜自治州,阿图什市,阿克陶县,阿合奇县,乌恰县|喀什地区,喀什市,疏附县,疏勒县,英吉沙县,泽普县,莎车县,叶城县,麦盖提县,岳普湖县,伽师县,巴楚县,塔什库尔干塔吉克自治县|和田地区,和田市,和田县,墨玉县,皮山县,洛浦县,策勒县,于田县,民丰县|伊犁哈萨克自治州,伊宁市,奎屯市,伊宁县,察布查尔锡伯自治县,霍城县,巩留县,新源县,昭苏县,特克斯县,尼勒克县|塔城地区,塔城市,乌苏市,额敏县,沙湾县,托里县,裕民县,和布克赛尔蒙古自治县|阿勒泰地区,阿勒泰市,布尔津县,富蕴县,福海县,哈巴河县,青河县,吉木乃县|自治区直辖县级行政区划,石河子市,阿拉尔市,图木舒克市,五家渠市#香港特别行政区$香港,香港特别行政区#澳门特别行政区$澳门,澳门特别行政区#台湾省$台北市,中正区,大同区,中山区,松山区,大安区,万华区,信义区,士林区,北投区,内湖区,南港区,文山区|高雄市,新兴区,前金区,芩雅区,盐埕区,鼓山区,旗津区,前镇区,三民区,左营区,楠梓区,小港区|基隆市,仁爱区,信义区,中正区,中山区,安乐区,暖暖区,七堵区|台中市,中区,东区,南区,西区,北区,北屯区,西屯区,南屯区|台南市,中西区,东区,南区,北区,安平区,安南区|新竹市,东区,北区,香山区|嘉义市,东区,西区|县,台北县(板桥市),宜兰县(宜兰市),新竹县(竹北市),桃园县(桃园市),苗栗县(苗栗市),台中县(丰原市),彰化县(彰化市),南投县(南投市),嘉义县(太保市),云林县(斗六市),台南县(新营市),高雄县(凤山市),屏东县(屏东市),台东县(台东市),花莲县(花莲市),澎湖县(马公市)#其它$亚洲,阿富汗,巴林,孟加拉国,不丹,文莱,缅甸,塞浦路斯,印度,印度尼西亚,伊朗,伊拉克,日本,约旦,朝鲜,科威特,老挝,马尔代夫,黎巴嫩,马来西亚,以色列,蒙古,尼泊尔,阿曼,巴基斯坦,巴勒斯坦,菲律宾,沙特阿拉伯,新加坡,斯里兰卡,叙利亚,泰国,柬埔寨,土耳其,阿联酋,越南,也门,韩国,中国,中国香港,中国澳门,中国台湾|非洲,阿尔及利亚,安哥拉,厄里特里亚,法罗群鸟,加那利群岛(西)(拉斯帕尔马斯),贝宁,博茨瓦纳,布基纳法索,布隆迪,喀麦隆,加那利群岛(西)(圣克鲁斯),佛得角,中非,乍得,科摩罗,刚果,吉布提,埃及,埃塞俄比亚,赤道几内亚,加蓬,冈比亚,加纳,几内亚,南非,几内亚比绍,科特迪瓦,肯尼亚,莱索托,利比里亚,利比亚,马达加斯加,马拉维,马里,毛里塔尼亚,毛里求斯,摩洛哥,莫桑比克,尼日尔,尼日利亚,留尼旺岛,卢旺达,塞内加尔,塞舌尔,塞拉利昂,索马里,苏丹,斯威士兰,坦桑尼亚,圣赤勒拿,多哥,突尼斯,乌干达,扎伊尔,赞比亚,津巴布韦,纳米比亚,迪戈加西亚,桑给巴尔,马约特岛,圣多美和普林西比|欧洲,阿尔巴尼亚,安道尔,奥地利,比利时,保加利亚,捷克,丹麦,芬兰,法国,德国,直布罗陀(英),希腊,匈牙利,冰岛,爱尔兰,意大利,列支敦士登,斯洛伐克,卢森堡,马耳他,摩纳哥,荷兰,挪威,波兰,葡萄牙,马其顿,罗马尼亚,南斯拉夫,圣马力诺,西班牙,瑞典,瑞士,英国,科罗地亚,斯洛文尼亚,梵蒂冈,波斯尼亚和塞哥维那,俄罗斯联邦,亚美尼亚共和国,白俄罗斯共和国,格鲁吉亚共和国,哈萨克斯坦共和国,吉尔吉斯坦共和国,乌兹别克斯坦共和国,塔吉克斯坦共和国,土库曼斯坦共和国,乌克兰,立陶宛,拉脱维亚,爱沙尼亚,摩尔多瓦,阿塞拜疆|美洲,安圭拉岛,安提瓜和巴布达,阿根廷,阿鲁巴岛,阿森松,巴哈马,巴巴多斯,伯利兹,百慕大群岛,玻利维亚,巴西,加拿大,开曼群岛,智利,哥伦比亚,多米尼加联邦,哥斯达黎加,古巴,多米尼加共和国,厄瓜多尔,萨尔瓦多,法属圭亚那,格林纳达,危地马拉,圭亚那,海地,洪都拉斯,牙买加,马提尼克(法),墨西哥,蒙特塞拉特岛,荷属安的列斯群岛,尼加拉瓜,巴拿马,巴拉圭,秘鲁,波多黎哥,圣皮埃尔岛密克隆岛(法),圣克里斯托弗和尼维斯,圣卢西亚,福克兰群岛,维尔京群岛(英),圣文森特岛(英),维尔京群岛(美),苏里南,特立尼达和多巴哥,乌拉圭,美国,委内瑞拉,格陵兰岛,特克斯和凯科斯群岛,瓜多罗普|大洋洲,澳大利亚,科克群岛,斐济,法属波里尼西亚、塔希提,瓦努阿图,关岛,基里巴斯,马里亚纳群岛,中途岛,瑙鲁,新咯里多尼亚群岛,新西兰,巴布亚新几内亚,东萨摩亚,西萨摩亚,所罗门群岛,汤加,对诞岛,威克岛,科科斯岛,夏威夷,诺福克岛,帕劳,纽埃岛,图瓦卢,托克鲁,密克罗尼西亚,马绍尔群岛,瓦里斯加富士那群岛";(function(window,undefined){SPT='省份';SCT='城市';SAT='地区';ShowT=1;// 提示文字 0:不显示 1:显示
|
||
if(ShowT)PCAD1=SPT+"$"+SCT+","+SAT+"#"+PCAD;PCAArea=[];PCAP=[];PCAC=[];PCAA=[];PCAN=PCAD1.split("#");for(i=0;i<PCAN.length;i++){PCAA[i]=[];TArea=PCAN[i].split("$")[1].split("|");for(j=0;j<TArea.length;j++){PCAA[i][j]=TArea[j].split(",");if(PCAA[i][j].length==1)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 pcas(){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(){pcas.SetC(this.PCA);};if(this.SelA){this.SelC.onchange=function(){pcas.SetA(this.PCA);};}pcas.SetP(this);};pcas.SetP=function(PCA){for(i=0;i<PCAP.length;i++){PCAPT=PCAPV=PCAP[i];if(PCAPT==SPT){PCAPV="";}PCA.SelP.options.add(new Option(PCAPT,PCAPV));if(PCA.DefP==PCAPV){PCA.SelP[i].selected=true;}}pcas.SetC(PCA);};pcas.SetC=function(PCA){PI=PCA.SelP.selectedIndex;PCA.SelC.length=0;for(i=1;i<PCAC[PI].length;i++){PCACT=PCACV=PCAC[PI][i];if(PCACT==SCT){PCACV="";}PCA.SelC.options.add(new Option(PCACT,PCACV));if(PCA.DefC==PCACV){PCA.SelC[i-1].selected=true;}}if(PCA.SelA){pcas.SetA(PCA);}};pcas.SetA=function(PCA){PI=PCA.SelP.selectedIndex;CI=PCA.SelC.selectedIndex;PCA.SelA.length=0;for(i=1;i<PCAA[PI][CI].length;i++){PCAAT=PCAAV=PCAA[PI][CI][i];if(PCAAT==SAT){PCAAV="";}PCA.SelA.options.add(new Option(PCAAT,PCAAV));if(PCA.DefA==PCAAV){PCA.SelA[i-1].selected=true;}}};window.pcas=pcas;})(window);// ag-grid-enterprise v21.2.2
|
||
!function(e,t){"object"==(typeof exports==="undefined"?"undefined":_typeof2(exports))&&"object"==(typeof module==="undefined"?"undefined":_typeof2(module))?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==(typeof exports==="undefined"?"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 r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,o),r.l=!0,r.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 r in e){o.d(i,r,function(t){return e[t];}.bind(null,r));}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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),r=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 r,n,s=e.getBeansForParameters(i,o.bean.name),a=(r=o.bean,n=[null].concat(s),new(r.bind.apply(r,n))());o.beanInstance=a,e.logger.log("bean "+e.getBeanName(a)+" created");});},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o=void 0;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 r=o.agClassAttributes;r&&r.forEach(function(o){var r=t.lookupBeanInstance(i,o.beanName,o.optional);e[o.attributeName]=r;});});});},e.prototype.methodWireBeans=function(e){var t=this;e.forEach(function(e){t.forEachMetaDataInHierarchy(e,function(o,r){i._.iterateObject(o.autowireMethods,function(o,i){if("agConstructor"!==o){var n=t.getBeansForParameters(i,r);e[o].apply(e,n);}});});});},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var i=o.constructor;if(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,r=[];return e&&i._.iterateObject(e,function(e,i){var n=o.lookupBeanInstance(t,i);r[Number(e)]=n;}),r;},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 n(e,t,o,i,r,n){if(null!==t){if("number"!=typeof n){var a=s(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:r,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=r,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){n(t,e,!1,t,o,null);};},t.Optional=function(e){return function(t,o,i){n(t,e,!0,t,o,null);};},t.Qualifier=function(e){return function(t,o,i){var r,n="function"==typeof t?t:t.constructor;if("number"==typeof i){var a=void 0;o?(r=s(n),a=o):(r=s(n),a="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[a]||(r.autowireMethods[a]={}),r.autowireMethods[a][i]=e;}};};},function(e,t,o){"use strict";(function(e){/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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 r=o(57);t.ColumnFactory=r.ColumnFactory;var n=o(5);t.ColumnController=n.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 v=o(0);t.Context=v.Context,t.Autowired=v.Autowired,t.PostConstruct=v.PostConstruct,t.PreConstruct=v.PreConstruct,t.Optional=v.Optional,t.Bean=v.Bean,t.Qualifier=v.Qualifier,t.PreDestroy=v.PreDestroy;var m=o(11);t.QuerySelector=m.QuerySelector,t.Listener=m.Listener,t.RefSelector=m.RefSelector;var C=o(18);t.DragAndDropService=C.DragAndDropService,t.DragSourceType=C.DragSourceType,t.HDirection=C.HDirection,t.VDirection=C.VDirection;var w=o(37);t.DragService=w.DragService;var _=o(12);t.Column=_.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 P=o(17);t.FilterManager=P.FilterManager;var O=o(88);t.ProvidedFilter=O.ProvidedFilter;var S=o(33);t.SimpleFilter=S.SimpleFilter;var A=o(133);t.ScalerFilter=A.ScalerFilter;var T=o(137);t.NumberFilter=T.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 G=o(144);t.CssClassApplier=G.CssClassApplier;var k=o(194);t.HeaderContainer=k.HeaderContainer;var W=o(151);t.HeaderRootComp=W.HeaderRootComp;var V=o(195);t.HeaderRowComp=V.HeaderRowComp;var H=o(91);t.HorizontalResizeService=H.HorizontalResizeService;var j=o(197);t.MoveColumnController=j.MoveColumnController;var B=o(203);t.StandardMenuFactory=B.StandardMenuFactory;var U=o(278);t.TabbedLayout=U.TabbedLayout;var z=o(279);t.VerticalStack=z.VerticalStack;var Y=o(280);t.simpleHttpRequest=Y.simpleHttpRequest;var K=o(94);t.ResizeObserverService=K.ResizeObserverService;var X=o(184);t.LargeTextCellEditor=X.LargeTextCellEditor;var q=o(126);t.PopupEditorWrapper=q.PopupEditorWrapper;var Q=o(183);t.PopupSelectCellEditor=Q.PopupSelectCellEditor;var $=o(182);t.PopupTextCellEditor=$.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 re=o(58);t.AutoWidthCalculator=re.AutoWidthCalculator;var ne=o(87);t.CellRendererFactory=ne.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 ve=o(212);t.ClientSideNodeManager=ve.ClientSideNodeManager;var me=o(209);t.InfiniteRowModel=me.InfiniteRowModel;var Ce=o(95);t.RowNodeBlock=Ce.RowNodeBlock;var we=o(210);t.RowNodeBlockLoader=we.RowNodeBlockLoader;var _e=o(31);t.PaginationProxy=_e.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 Pe=o(49);t.AgCheckbox=Pe.AgCheckbox;var Oe=o(155);t.AgRadioButton=Oe.AgRadioButton;var Se=o(222);t.AgToggleButton=Se.AgToggleButton;var Ae=o(157);t.AgInputTextField=Ae.AgInputTextField;var Te=o(217);t.AgInputTextArea=Te.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 Ge=o(96);t.AgDialog=Ge.AgDialog;var ke=o(156);t.AgPanel=ke.AgPanel;var We=o(281);t.MessageBox=We.MessageBox;var Ve=o(8);t.Component=Ve.Component;var He=o(47);t.PopupComponent=He.PopupComponent;var je=o(32);t.PopupService=je.PopupService;var Be=o(61);t.TouchListener=Be.TouchListener;var Ue=o(179);t.CellRangeType=Ue.CellRangeType;var ze=o(123);t.CsvCreator=ze.CsvCreator,t.BaseCreator=ze.BaseCreator;var Ye=o(148);t.Downloader=Ye.Downloader;var Ke=o(214);t.XmlFactory=Ke.XmlFactory;var Xe=o(83);t.BaseGridSerializingSession=Xe.BaseGridSerializingSession,t.GridSerializer=Xe.GridSerializer;var qe=o(83);t.RowType=qe.RowType;var Qe=o(215);t.ZipContainer=Qe.ZipContainer;var $e=o(213);t.VanillaFrameworkOverrides=$e.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 rt=o(26);t.FocusedCellController=rt.FocusedCellController;var nt=o(282);t.defaultGroupComparator=nt.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 vt=o(14);t.LoggerFactory=vt.LoggerFactory;var mt=o(143);t.CellPositionUtils=mt.CellPositionUtils;var Ct=o(90);t.RowPositionUtils=Ct.RowPositionUtils;var wt=o(10);t.ColumnApi=wt.ColumnApi;var _t=o(283);t.BaseComponentWrapper=_t.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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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),v=o(35),m=o(149),C=o(192);function w(e){return!0===e||"true"===e;}var _=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(v.Events).forEach(function(e){return t.push(p.ComponentUtil.getCallbackForEvent(v.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,r){var n=s._.fuzzyCheckStrings(e,t,o),a=Object.keys(n);a.forEach(function(e){var t=n[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: "+r);},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 w(this.gridOptions.rowDeselection);},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection;},e.prototype.isRowMultiSelectWithClick=function(){return w(this.gridOptions.rowMultiSelectWithClick);},e.prototype.getContext=function(){return this.gridOptions.context;},e.prototype.isPivotMode=function(){return w(this.gridOptions.pivotMode);},e.prototype.isPivotTotals=function(){return w(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 w(this.gridOptions.suppressFocusAfterRefresh);},e.prototype.isSuppressBrowserResizeObserver=function(){return w(this.gridOptions.suppressBrowserResizeObserver);},e.prototype.isSuppressMaintainUnsortedOrder=function(){return w(this.gridOptions.suppressMaintainUnsortedOrder);},e.prototype.isShowToolPanel=function(){return w(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels));},e.prototype.getSideBar=function(){return this.gridOptions.sideBar;},e.prototype.isSuppressTouch=function(){return w(this.gridOptions.suppressTouch);},e.prototype.isSuppressRowTransform=function(){return w(this.gridOptions.suppressRowTransform);},e.prototype.isSuppressSetColumnStateEvents=function(){return w(this.gridOptions.suppressSetColumnStateEvents);},e.prototype.useAsyncEvents=function(){return!w(this.gridOptions.suppressAsyncEvents);},e.prototype.isEnableCellChangeFlash=function(){return w(this.gridOptions.enableCellChangeFlash);},e.prototype.isGroupSelectsChildren=function(){var e=w(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 w(this.gridOptions.suppressRowHoverHighlight);},e.prototype.isGroupSelectsFiltered=function(){return w(this.gridOptions.groupSelectsFiltered);},e.prototype.isGroupHideOpenParents=function(){return w(this.gridOptions.groupHideOpenParents);},e.prototype.isGroupMultiAutoColumn=function(){return w(this.gridOptions.groupMultiAutoColumn)||w(this.gridOptions.groupHideOpenParents);},e.prototype.isGroupRemoveSingleChildren=function(){return w(this.gridOptions.groupRemoveSingleChildren);},e.prototype.isGroupRemoveLowestSingleChildren=function(){return w(this.gridOptions.groupRemoveLowestSingleChildren);},e.prototype.isGroupIncludeFooter=function(){return w(this.gridOptions.groupIncludeFooter);},e.prototype.isGroupIncludeTotalFooter=function(){return w(this.gridOptions.groupIncludeTotalFooter);},e.prototype.isGroupSuppressBlankHeader=function(){return w(this.gridOptions.groupSuppressBlankHeader);},e.prototype.isSuppressRowClickSelection=function(){return w(this.gridOptions.suppressRowClickSelection);},e.prototype.isSuppressCellSelection=function(){return w(this.gridOptions.suppressCellSelection);},e.prototype.isSuppressMultiSort=function(){return w(this.gridOptions.suppressMultiSort);},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey;},e.prototype.isGroupSuppressAutoColumn=function(){return w(this.gridOptions.groupSuppressAutoColumn);},e.prototype.isSuppressDragLeaveHidesColumns=function(){return w(this.gridOptions.suppressDragLeaveHidesColumns);},e.prototype.isSuppressScrollOnNewData=function(){return w(this.gridOptions.suppressScrollOnNewData);},e.prototype.isRowDragManaged=function(){return w(this.gridOptions.rowDragManaged);},e.prototype.isSuppressRowDrag=function(){return w(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?l.Constants.DOM_LAYOUT_NORMAL:(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 w(this.gridOptions.suppressHorizontalScroll);},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return w(this.gridOptions.suppressMaxRenderedRowRestriction);},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return w(this.gridOptions.excludeChildrenWhenTreeDataFiltering);},e.prototype.isAlwaysShowVerticalScroll=function(){return w(this.gridOptions.alwaysShowVerticalScroll);},e.prototype.isSuppressLoadingOverlay=function(){return w(this.gridOptions.suppressLoadingOverlay);},e.prototype.isSuppressNoRowsOverlay=function(){return w(this.gridOptions.suppressNoRowsOverlay);},e.prototype.isSuppressFieldDotNotation=function(){return w(this.gridOptions.suppressFieldDotNotation);},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData;},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData;},e.prototype.isFunctionsPassive=function(){return w(this.gridOptions.functionsPassive);},e.prototype.isSuppressTabbing=function(){return w(this.gridOptions.suppressTabbing);},e.prototype.isSuppressChangeDetection=function(){return w(this.gridOptions.suppressChangeDetection);},e.prototype.isSuppressAnimationFrame=function(){return w(this.gridOptions.suppressAnimationFrame);},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText;},e.prototype.isCacheQuickFilter=function(){return w(this.gridOptions.cacheQuickFilter);},e.prototype.isUnSortIcon=function(){return w(this.gridOptions.unSortIcon);},e.prototype.isSuppressMenuHide=function(){return w(this.gridOptions.suppressMenuHide);},e.prototype.isEnterMovesDownAfterEdit=function(){return w(this.gridOptions.enterMovesDownAfterEdit);},e.prototype.isEnterMovesDown=function(){return w(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 w(this.gridOptions.embedFullWidthRows)||w(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 w(this.gridOptions.deltaRowDataMode);},e.prototype.isDeltaColumnMode=function(){return w(this.gridOptions.deltaColumnMode);},e.prototype.isEnsureDomOrder=function(){return w(this.gridOptions.ensureDomOrder);},e.prototype.isEnableCharts=function(){return!!w(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 w(this.gridOptions.singleClickEdit);},e.prototype.isSuppressClickEdit=function(){return w(this.gridOptions.suppressClickEdit);},e.prototype.isStopEditingWhenGridLosesFocus=function(){return w(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())||w(this.gridOptions.paginateChildRows);},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize;},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount;},e.prototype.isPurgeClosedRowNodes=function(){return w(this.gridOptions.purgeClosedRowNodes);},e.prototype.isSuppressPaginationPanel=function(){return w(this.gridOptions.suppressPaginationPanel);},e.prototype.getRowData=function(){return this.gridOptions.rowData;},e.prototype.isGroupUseEntireRow=function(e){return!e&&w(this.gridOptions.groupUseEntireRow);},e.prototype.isEnableRtl=function(){return w(this.gridOptions.enableRtl);},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef;},e.prototype.isGroupSuppressRow=function(){return w(this.gridOptions.groupSuppressRow);},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow;},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow;},e.prototype.isAngularCompileRows=function(){return w(this.gridOptions.angularCompileRows);},e.prototype.isAngularCompileFilters=function(){return w(this.gridOptions.angularCompileFilters);},e.prototype.isAngularCompileHeaders=function(){return w(this.gridOptions.angularCompileHeaders);},e.prototype.isDebug=function(){return w(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 w(this.gridOptions.accentedSort);},e.prototype.isEnableBrowserTooltips=function(){return w(this.gridOptions.enableBrowserTooltips);},e.prototype.isEnableCellExpressions=function(){return w(this.gridOptions.enableCellExpressions);},e.prototype.isEnableGroupEdit=function(){return w(this.gridOptions.enableGroupEdit);},e.prototype.isSuppressMiddleClickScrolls=function(){return w(this.gridOptions.suppressMiddleClickScrolls);},e.prototype.isPreventDefaultOnContextMenu=function(){return w(this.gridOptions.preventDefaultOnContextMenu);},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return w(this.gridOptions.suppressPreventDefaultOnMouseWheel);},e.prototype.isSuppressColumnVirtualisation=function(){return w(this.gridOptions.suppressColumnVirtualisation);},e.prototype.isSuppressContextMenu=function(){return w(this.gridOptions.suppressContextMenu);},e.prototype.isAllowContextMenuWithControlKey=function(){return w(this.gridOptions.allowContextMenuWithControlKey);},e.prototype.isSuppressCopyRowsToClipboard=function(){return w(this.gridOptions.suppressCopyRowsToClipboard);},e.prototype.isCopyHeadersToClipboard=function(){return w(this.gridOptions.copyHeadersToClipboard);},e.prototype.isSuppressClipboardPaste=function(){return w(this.gridOptions.suppressClipboardPaste);},e.prototype.isPagination=function(){return w(this.gridOptions.pagination);},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return w(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 w(this.gridOptions.suppressMovableColumns);},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&w(this.gridOptions.animateRows);},e.prototype.isSuppressColumnMoveAnimation=function(){return w(this.gridOptions.suppressColumnMoveAnimation);},e.prototype.isSuppressAggFuncInHeader=function(){return w(this.gridOptions.suppressAggFuncInHeader);},e.prototype.isSuppressAggAtRootLevel=function(){return w(this.gridOptions.suppressAggAtRootLevel);},e.prototype.isEnableRangeSelection=function(){return this.enterprise&&w(this.gridOptions.enableRangeSelection);},e.prototype.isEnableRangeHandle=function(){return w(this.gridOptions.enableRangeHandle);},e.prototype.isEnableFillHandle=function(){return w(this.gridOptions.enableFillHandle);},e.prototype.isSuppressMultiRangeSelection=function(){return w(this.gridOptions.suppressMultiRangeSelection);},e.prototype.isPaginationAutoPageSize=function(){return w(this.gridOptions.paginationAutoPageSize);},e.prototype.isRememberGroupStateWhenNewData=function(){return w(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=w(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 w(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 w(this.gridOptions.suppressAutoSize);},e.prototype.isEnableCellTextSelection=function(){return w(this.gridOptions.enableCellTextSelection);},e.prototype.isSuppressParentsInRowNodes=function(){return w(this.gridOptions.suppressParentsInRowNodes);},e.prototype.isFunctionsReadOnly=function(){return w(this.gridOptions.functionsReadOnly);},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter;},e.prototype.isEnableCellTextSelect=function(){return w(this.gridOptions.enableCellTextSelection);},e.prototype.isEnableOldSetFilterModel=function(){return w(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 w(this.gridOptions.suppressCsvExport);},e.prototype.isAllowShowChangeAfterFilter=function(){return w(this.gridOptions.allowShowChangeAfterFilter);},e.prototype.isSuppressExcelExport=function(){return w(this.gridOptions.suppressExcelExport);},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return w(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=w(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 w(this.gridOptions.valueCache);},e.prototype.isValueCacheNeverExpires=function(){return w(this.gridOptions.valueCacheNeverExpires);},e.prototype.isDeltaSort=function(){return w(this.gridOptions.deltaSort);},e.prototype.isAggregateOnlyChangedColumns=function(){return w(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 e=this.gridOptions.viewportRowModelPageSize,t=5,e>0?e:t;var e,t;},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t;},e.prototype.isServerSideSortingAlwaysResets=function(){return w(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 r={type:e,currentValue:t,previousValue:i};this.propertyEventService.dispatchEvent(r);}},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 r=o[t],n=e.gridOptions[t];if(void 0!==n){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."+r),i[r]=n;}}),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 r=this.gridOptions.sideBar;if(Object.keys(i).length>0&&r&&r.toolPanels){var n=r.toolPanels.filter(function(e){return"columns"===e.id;});1===n.length&&s._.mergeDeep(n[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(),r=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:i,n=Math.min(i,r);if(this.columnController.isAutoRowHeightActive()){if(t)return{height:r,estimated:!0};var s=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(s,n),estimated:!1};}return{height:r,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"),r("design:type",Object)],e.prototype,"gridOptions",void 0),i([c.Autowired("columnController"),r("design:type",h.ColumnController)],e.prototype,"columnController",void 0),i([c.Autowired("eventService"),r("design:type",a.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),i([c.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([c.Autowired("columnApi"),r("design:type",d.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("environment"),r("design:type",f.Environment)],e.prototype,"environment",void 0),i([c.Autowired("autoHeightCalculator"),r("design:type",m.AutoHeightCalculator)],e.prototype,"autoHeightCalculator",void 0),i([c.Autowired("context"),r("design:type",c.Context)],e.prototype,"context",void 0),i([n(0,c.Qualifier("gridApi")),n(1,c.Qualifier("columnApi")),r("design:type",Function),r("design:paramtypes",[u.GridApi,d.ColumnApi]),r("design:returntype",void 0)],e.prototype,"agWire",null),i([c.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),i([c.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=t=i([c.Bean("gridOptionsWrapper")],e);}();t.GridOptionsWrapper=_;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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,r=o?this.globalAsyncListeners:this.globalSyncListeners,n=e.type,s=this.getListenerList(n+t.PRIORITY,o);u._.forEachSnapshotFirst(s,function(t){o?i.dispatchAsync(function(){return t(e);}):t(e);});var a=this.getListenerList(n,o);u._.forEachSnapshotFirst(a,function(t){o?i.dispatchAsync(function(){return t(e);}):t(e);}),u._.forEachSnapshotFirst(r,function(t){o?i.dispatchAsync(function(){return t(n,e);}):t(n,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([n(0,l.Qualifier("loggerFactory")),n(1,l.Qualifier("gridOptionsWrapper")),n(2,l.Qualifier("globalEventListener")),r("design:type",Function),r("design:paramtypes",[s.LoggerFactory,p.GridOptionsWrapper,Function]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=t=i([a.Bean("eventService")],e);}();t.EventService=c;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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),v=o(45),m=o(147),C=o(0),w=o(86),_=o(189),b=o(46),E=o(9),R=o(10),P=o(2),O=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,r=this.columnFactory.createColumnTree(e,!0,i);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.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 n={type:y.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n);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&&P._.exists(t);){o.push(t),t=this.getDisplayedColAfter(t);}return o;},e.prototype.checkDisplayedVirtualColumns=function(){if(P._.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 r=t.getColDef().pivotKeys,n=t.getColDef().pivotValueColumn;P._.compareArrays(r,e)&&n===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?P._.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?P._.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=[],r=-1;0!==r;){r=0,this.actionOnGridColumns(e,function(e){if(i.indexOf(e)>=0)return!1;var n=o.autoWidthCalculator.getPreferredWidthForColumn(e);if(n>0){var s=o.normaliseColumnWidth(e,n);e.setActualWidth(s,t),i.push(e),r++;}return!0;},t);}if(i.length>0){var n={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(n);}},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 r=o[i];r instanceof a.Column?t.push(r):r instanceof v.OriginalColumnGroup&&e(r.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 r,n=[],s=null,a=function a(_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;}if(o?(l=!1,d.forEach(function(e){o(e)&&(l=!0);})):l=!0,l){if(0===n.length&&s)!!i&&i(p)&&n.push(s);n.push(p);}s=p,r=_a;},l=0;l<t.length;l++){a(l),l=r;}return n;},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,r=this.viewportRight+200;return!(t<i&&o<i)&&!(t>r&&o>r);},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,r,n){var s=this;if(void 0===n&&(n="api"),e&&!P._.missingOrEmpty(e)){var a=!1;if(e.forEach(function(e){var r=s.getPrimaryColumn(e);if(r){if(o){if(t.indexOf(r)>=0)return;t.push(r);}else{if(t.indexOf(r)<0)return;P._.removeFromArray(t,r);}i(r),a=!0;}}),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(n);var l={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};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,r){var n=this;t.length=0,P._.exists(e)&&e.forEach(function(e){var o=n.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(r);var s={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};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){var t=this.getPrimaryColumn(e);return t||this.getGridColumn(e);},e.prototype.setColumnWidth=function(e,t,o,i,r){void 0===r&&(r="api");var n=this.getPrimaryOrGridColumn(e);if(n){var s=[];if(s.push({width:t,ratios:[1],columns:[n]}),"shift"===this.gridOptionsWrapper.getColResizeDefault()&&(o=!o),o){var a=this.getDisplayedColAfter(n);if(!a)return;var l=n.getActualWidth()-t,p=a.getActualWidth()+l;s.push({width:p,ratios:[1],columns:[a]});}this.resizeColumnSets(s,i,r);}},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,o=e.width,i=0,r=0,n=!0;return t.forEach(function(e){i+=e.getMinWidth(),e.getMaxWidth()>0?r+=e.getMaxWidth():n=!1;}),o>=i&&(!n||o<=r);},e.prototype.resizeColumnSets=function(e,t,o){if(P._.every(e,this.checkMinAndMaxWidthsForSet.bind(this))){var i=[],r=[];e.forEach(function(e){var t=e.width,o=e.columns,n=e.ratios,s={},a={};o.forEach(function(e){return r.push(e);});for(var l=!0,p=0,u=function u(){if(++p>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";l=!1;var e=[],i=[],r=0,u=t;o.forEach(function(t,o){if(a[t.getId()])u-=s[t.getId()];else{e.push(t);var l=n[o];r+=l,i.push(l);}});var c=1/r;e.forEach(function(o,i){var r;i===e.length-1?r=u:(r=Math.round(n[i]*t*c),u-=r),r<o.getMinWidth()?(r=o.getMinWidth(),a[o.getId()]=!0,l=!0):o.getMaxWidth()>0&&r>o.getMaxWidth()&&(r=o.getMaxWidth(),a[o.getId()]=!0,l=!0),s[o.getId()]=r;});};l;){if("break"===u())break;}o.forEach(function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t),i.push(e));});});var n=i.length>0;if(n&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),n||t){var s={type:y.Events.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[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 r={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(r);},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)){P._.moveInArray(this.gridColumns,i,t),this.updateDisplayedColumns(o);var r={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(r),this.columnAnimationService.finish();}},e.prototype.doesMovePassRules=function(e,t){var o=this.gridColumns.slice();return P._.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 v.OriginalColumnGroup){var i=o;if(i.getColGroupDef()&&i.getColGroupDef().marryChildren){var r=[];i.getLeafColumns().forEach(function(t){var o=e.indexOf(t);r.push(o);}),Math.max.apply(Math,r)-Math.min.apply(Math,r)>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 P._.missingOrEmpty(this.gridColumns);},e.prototype.isRowGroupEmpty=function(){return P._.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,r=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:r.gridApi,columnApi:r.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 r=this;if(!P._.missingOrEmpty(e)){var n=[];if(e.forEach(function(e){var o=r.getGridColumn(e);o&&!1!==t(o)&&n.push(o);}),0!==n.length&&(this.updateDisplayedColumns(o),P._.exists(i)&&i)){var s=i();s.columns=n,s.column=1===n.length?n[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&&P._.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(P._.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=[],r=1e3,n=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};P._.missing(t)&&o&&(l.rowGroupIndex=r++),P._.missing(s)&&a&&(l.pivotIndex=n++),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"),P._.missingOrEmpty(this.primaryColumns))return!1;var r=this.getColumnState();this.autoGroupsNeedBuilding=!0;var n=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},p=[];if(e&&e.forEach(function(e){if(P._.exists(i.getAutoColumn(e.colId)))p.push(e);else{var t=i.getPrimaryColumn(e.colId);t?(i.syncColumnWithStateItem(t,e,a,l,o),P._.removeFromArray(n,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1);}}),n.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(r,o),s;},e.prototype.raiseColumnEvents=function(e,t){var o=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var i=this.getColumnState(),r=function r(_r2,n,s){if(!P._.compareArrays(e.map(n).sort(),i.map(n).sort())){var a={type:_r2,columns:s,column:1===s.length?s[0]:null,api:o.gridApi,columnApi:o.columnApi,source:t};o.eventService.dispatchEvent(a);}},n=function n(t){var i=[],r={};return e.forEach(function(e){r[e.colId]=e;}),o.gridColumns.forEach(function(e){var o=r[e.getColId()];o&&!t(o,e)||i.push(e);}),i;};r(y.Events.EVENT_COLUMN_VALUE_CHANGED,function(e){return e.colId+"-"+e.aggFunc;},this.valueColumns);r(y.Events.EVENT_COLUMN_PIVOT_CHANGED,function(e){return e.colId+"-"+e.pivotIndex;},this.pivotColumns);r(y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,function(e){return e.colId+"-"+e.rowGroupIndex;},this.rowGroupColumns);this.raiseColumnPinnedEvent(n(function(e,t){return e.pinned!==t.getPinned();}),t);var s=n(function(e,t){return e.hide===t.isVisible();});this.raiseColumnVisibleEvent(s,t);this.raiseColumnResizeEvent(n(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(),r=function r(t){var r=e[t],s=i[t];if(!r||s.hide)return"continue";if(r.colId!==s.colId){var a=P._.find(n.allDisplayedColumns,function(e){return e.getColId()===s.colId;});o.push(a);}},n=this,s=0;s<i.length;s++){r(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,r){if(e){e.setVisible(!t.hide,r),e.setPinned(t.pinned);var n=this.gridOptionsWrapper.getMinColWidth();t.width&&n&&t.width>=n&&e.setActualWidth(t.width,r),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,r),this.valueColumns.push(e)):(P._.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,r)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,r),o[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,r),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,r),i[e.getId()]=t.pivotIndex):e.setPivotActive(!1,r);}},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&&P._.exists(this.groupAutoColumns)&&!P._.missing(this.groupAutoColumns)?P._.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,r=e.getColId()==t;return o||i||r;},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,r){var n=e.headerValueGetter;if(n){var s={colDef:e,column:t,columnGroup:o,originalColumnGroup:i,location:r,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof n?n(s):"string"==typeof n?this.expressionService.evaluate(n,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"");}return null!=e.headerName?e.headerName:e.field?P._.camelCaseToHumanText(e.field):"";},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,i=e.getColDef().pivotValueColumn,r=null;if(P._.exists(i))r=i?i.getAggFunc():null,o=!0;else{var n=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();n&&s?(r=e.getAggFunc(),o=!0):o=!1;}if(o){var a="string"==typeof r?r:"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,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,function(o){if(o instanceof s.ColumnGroup){var n=o;(i?e===n.getGroupId()&&t===n.getInstanceId():e===n.getGroupId())&&(r=n);}}),r;},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,r){var n=this;t||(t=[]);var s=t.filter(function(e){return n.primaryColumns.indexOf(e)<0;}),a=t.filter(function(e){return n.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()),r=i(t.getColDef());return o===r?0:o<r?-1:1;}),l.forEach(function(e){if(r(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 v.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 v.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,r=e.open,n=o.getOriginalColumnGroup(t);n&&n.isExpanded()!==r&&(o.logger.log("columnGroupOpened("+n.getGroupId()+","+r+")"),n.setExpanded(r),i.push(n));}),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 v.OriginalColumnGroup?e.getId():e,this.setColumnGroupState([{groupId:i,open:t}],o);},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof v.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 v.OriginalColumnGroup){var i=o;i.getId()===e&&(t=i);}}),t;},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?P._.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;}):P._.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){P._.exists(e.getColDef().colSpan)&&(t=!0);}),t;},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function t(_t2){var o=_t2.getColDef();o&&P._.exists(o.showRowGroup)&&e.groupDisplayColumns.push(_t2);};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(P._.exists(i.children)){var r=i;o&&o(r),e(r.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(!P._.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;}),r=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=r.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 r.indexOf(e);}),n=Math.max.apply(Math,i);P._.insertIntoArray(r,e,n+1);}else r.push(e);}else r.push(e);}),this.gridColumns=r;}}},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(),!P._.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(r){if(i){var n=t.getWidthOfColsInList(r);r.forEach(function(t){n-=t.getActualWidth(),t.setLeft(n,e);});}else{var s=0;r.forEach(function(t){t.setLeft(s,e),s+=t.getActualWidth();});}P._.removeAllFromArray(o,r);}),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 P._.missing(o)&&(o=[]),o;},e.prototype.updateDisplayedVirtualGroups=function(e){function t(o,i,r){for(var n=!1,s=0;s<o.length;s++){var l=o[s],p=void 0;if(l instanceof a.Column)p=!0===e[l.getId()];else p=t(l.getDisplayedChildren(),i,r+1);p&&(n=!0,i[r]||(i[r]=[]),i[r].push(l));}return n;}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 P._.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 r=P._.filter(i,function(e){return!0===e.getColDef().suppressSizeToFit;}),n=P._.filter(i,function(e){return!0!==e.getColDef().suppressSizeToFit;}),s=n.slice(0),a=!1;!a;){a=!0;var l=e-this.getWidthOfColsInList(r);if(l<=0)n.forEach(function(e){e.setMinimum(t);});else for(var p=l/this.getWidthOfColsInList(n),u=l,c=n.length-1;c>=0;c--){var d=n[c],h=Math.round(d.getActualWidth()*p);if(h<d.getMinWidth())d.setMinimum(t),f(d),a=!1;else if(d.isGreaterThanMax(h))d.setActualWidth(d.getMaxWidth(),t),f(d),a=!1;else{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){P._.removeFromArray(n,e),r.push(e);}},e.prototype.buildDisplayedTrees=function(e){var t=P._.filter(e,function(e){return"left"===e.getPinned();}),o=P._.filter(e,function(e){return"right"===e.getPinned();}),i=P._.filter(e,function(e){return"left"!==e.getPinned()&&"right"!==e.getPinned();}),r=new m.GroupInstanceIdCreator();this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,a.Column.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,a.Column.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,r,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){var i=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(i,this.groupAutoColumns)&&(this.groupAutoColumns=i);}else this.groupAutoColumns=null;}},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],r=t[o];if(i.getColId()!==r.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"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([C.Autowired("expressionService"),r("design:type",p.ExpressionService)],e.prototype,"expressionService",void 0),i([C.Autowired("columnFactory"),r("design:type",u.ColumnFactory)],e.prototype,"columnFactory",void 0),i([C.Autowired("displayedGroupCreator"),r("design:type",c.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([C.Autowired("autoWidthCalculator"),r("design:type",d.AutoWidthCalculator)],e.prototype,"autoWidthCalculator",void 0),i([C.Autowired("eventService"),r("design:type",h.EventService)],e.prototype,"eventService",void 0),i([C.Autowired("columnUtils"),r("design:type",f.ColumnUtils)],e.prototype,"columnUtils",void 0),i([C.Autowired("context"),r("design:type",C.Context)],e.prototype,"context",void 0),i([C.Autowired("columnAnimationService"),r("design:type",w.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([C.Autowired("autoGroupColService"),r("design:type",_.AutoGroupColService)],e.prototype,"autoGroupColService",void 0),i([C.Optional("aggFuncService"),r("design:type",Object)],e.prototype,"aggFuncService",void 0),i([C.Optional("valueCache"),r("design:type",b.ValueCache)],e.prototype,"valueCache",void 0),i([C.Autowired("columnApi"),r("design:type",R.ColumnApi)],e.prototype,"columnApi",void 0),i([C.Autowired("gridApi"),r("design:type",E.GridApi)],e.prototype,"gridApi",void 0),i([C.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([n(0,C.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[g.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([C.Bean("columnController")],e);}();t.ColumnController=O;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(35);t.Events=i.Events;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i,r=this&&this.__extends||(_i=function i(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());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=Array.prototype.slice.call(o.children);i.addItems(r);}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 r=o.__agComponentMetaData,n=o.constructor.name;r&&r[n]&&r[n].querySelectors&&r[n].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 o(){var o=t.__agComponentMetaData,r=t.constructor.name;if(o&&o[r]&&o[r].querySelectors){var n=i;o[r].querySelectors.forEach(function(t){var o=e.eGui.querySelector(t.querySelector);if(o){var i=o.__agComponent;n[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,r=o.constructor.name;if(void 0===r){var n=/function\s([^(]{1,})\(/.exec(o.constructor.toString());n&&n.length>1&&(r=n[1].trim());}i&&i[r]&&i[r][e]&&(t=t.concat(i[r][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",n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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),v=o(87),m=o(31),C=o(190),w=o(46),_=o(93),b=o(30),E=o(48),R=o(2),P=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,r=this;!function n(){var s=new Date().getTime();r.rowRenderer.redrawAfterModelUpdate();var a=new Date().getTime();window.setTimeout(function(){var r=new Date().getTime(),l=a-s,p=r-a;console.log("duration: processing = "+l+"ms, reflow = "+p+"ms"),o+=l,i+=p,++t<e?window.setTimeout(n,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"),r("design:type",C.ImmutableService)],e.prototype,"immutableService",void 0),i([f.Autowired("csvCreator"),r("design:type",n.CsvCreator)],e.prototype,"csvCreator",void 0),i([f.Optional("excelCreator"),r("design:type",Object)],e.prototype,"excelCreator",void 0),i([f.Autowired("rowRenderer"),r("design:type",s.RowRenderer)],e.prototype,"rowRenderer",void 0),i([f.Autowired("filterManager"),r("design:type",a.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("selectionController"),r("design:type",p.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("gridOptionsWrapper"),r("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("valueService"),r("design:type",c.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("alignedGridsService"),r("design:type",_.AlignedGridsService)],e.prototype,"alignedGridsService",void 0),i([f.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("pinnedRowModel"),r("design:type",b.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([f.Autowired("context"),r("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([f.Autowired("sortController"),r("design:type",g.SortController)],e.prototype,"sortController",void 0),i([f.Autowired("paginationProxy"),r("design:type",m.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([f.Autowired("focusedCellController"),r("design:type",y.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([f.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),i([f.Optional("clipboardService"),r("design:type",Object)],e.prototype,"clipboardService",void 0),i([f.Optional("aggFuncService"),r("design:type",Object)],e.prototype,"aggFuncService",void 0),i([f.Autowired("menuFactory"),r("design:type",Object)],e.prototype,"menuFactory",void 0),i([f.Optional("contextMenuFactory"),r("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([f.Autowired("cellRendererFactory"),r("design:type",v.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([f.Autowired("valueCache"),r("design:type",w.ValueCache)],e.prototype,"valueCache",void 0),i([f.Optional("sideBarComp"),r("design:type",Object)],e.prototype,"sideBarComp",void 0),i([f.Autowired("animationFrameService"),r("design:type",E.AnimationFrameService)],e.prototype,"animationFrameService",void 0),i([f.Optional("statusBarService"),r("design:type",Object)],e.prototype,"statusBarService",void 0),i([f.Optional("chartService"),r("design:type",Object)],e.prototype,"chartService",void 0),i([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([f.Bean("gridApi")],e);}();t.GridApi=P;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),e=i([s.Bean("columnApi")],e);}();t.ColumnApi=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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 r(e,t,o){null!==e?s(t,"listenerMethods",{methodName:o,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null");}function n(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){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return 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 r.bind(this,e);},t.Method=function(e){return n.bind(this,e);};},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 n.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;if(!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);});}if(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 r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,o);i&&s._.mergeDeep(r,i),this.eventService.dispatchEvent(r);},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"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("columnUtils"),r("design:type",p.ColumnUtils)],e.prototype,"columnUtils",void 0),i([a.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),r("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=t=i([n.Bean("chartTranslator")],e);}();t.ChartTranslator=s;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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([n(0,l.Qualifier("gridOptionsWrapper")),r("design:type",Function),r("design:paramtypes",[s.GridOptionsWrapper]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 n.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?e.addEventListener(t,o):(s.GridOptionsWrapper,e.addEventListener(t,o));var r=function r(){e instanceof HTMLElement?e.removeEventListener(t,o):e instanceof Window?e.removeEventListener(t,o):(s.GridOptionsWrapper,e.removeEventListener(t,o)),i.destroyFunctions=i.destroyFunctions.filter(function(e){return e!==r;});};return this.destroyFunctions.push(r),r;}},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"),r("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("frameworkOverrides"),r("design:type",Object)],e.prototype,"frameworkOverrides",void 0),i([a.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e;}();t.BeanStub=p;},function(e,t,o){"use strict";var _i2,r=this&&this.__extends||(_i2=function i(e,t){return(_i2=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;}_i2(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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,r=1/0,n=-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<r&&(r=c),u+s.width>i&&(i=u+s.width),c+s.height>n&&(n=c+s.height);}}}),new s.BBox(e,r,i-e,n-r);},o;}return r(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 r=t[i];r.visible&&r.render(e),e.restore();}},t.className="Group",t;}(n.Node);t.Group=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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);n._.iterateObject(this.allFilters,function(r,s){n._.removeFromArray(i,r);var a=e[r];t.setModelOnFilterWrapper(s.filterPromise,a),o.push(s.filterPromise);}),n._.iterateArray(i,function(i){var r=t.columnController.getPrimaryColumn(i);if(r){var n=t.getOrCreateFilterWrapper(r,"NO_UI");t.setModelOnFilterWrapper(n.filterPromise,e[i]),o.push(n.filterPromise);}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+i);});}else n._.iterateObject(this.allFilters,function(e,i){t.setModelOnFilterWrapper(i.filterPromise,null),o.push(i.filterPromise);});n.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 n._.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 r=i.getModel();n._.exists(r)&&(e[t]=r);}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;n._.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){n._.iterateObject(this.allFilters,function(o,i){var r=i.filterPromise.resolveNow(!1,function(e){return e.isFilterActive();});i.column.setFilterActive(r,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),r=0,n=i.length;r<n;r++){var s=i[r],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 n._.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(),n._.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&&n._.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(),r=!1;return i.forEach(function(i){if(!r){var s=o.getQuickFilterTextForColumn(i,e);n._.exists(s)&&s.indexOf(t)>=0&&(r=!0);}}),r;},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(r){(i?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r))||(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),r=e.getColDef();if(e.getColDef().getQuickFilterText){var s={value:i,node:t,data:t.data,column:e,colDef:r,context:this.gridOptionsWrapper.getContext()};o=e.getColDef().getQuickFilterText(s);}else o=i;return n._.exists(o)?o.toString().toUpperCase():null;},e.prototype.aggregateRowForQuickFilter=function(e){var o=this,i=[];this.columnController.getAllColumnsForQuickFilter().forEach(function(t){var r=o.getQuickFilterTextForColumn(t,e);n._.exists(r)&&i.push(r);}),e.quickFilterAggregateText=i.join(t.QUICK_FILTER_SEPARATOR);},e.prototype.onNewRowsLoaded=function(e){n._.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 r,s=n._.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:r};o.eventService.dispatchEvent(t);};var l=this.userComponentFactory.newFilterComponent(s,a,i,function(e,t){return n._.assign(e,{doesRowPassOtherFilter:o.doesRowPassOtherFilters.bind(o,t)});});return l.then(function(e){return r=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:n.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(r){var s=r.getGui();if(n._.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=n._.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;n._.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;n._.iterateObject(this.allFilters,function(t,o){e.disposeFilterWrapper(o,"filterDestroyed");});},e.QUICK_FILTER_SEPARATOR="\n",i([c.Autowired("$compile"),r("design:type",Object)],e.prototype,"$compile",void 0),i([c.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),i([c.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("popupService"),r("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([c.Autowired("valueService"),r("design:type",l.ValueService)],e.prototype,"valueService",void 0),i([c.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([c.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),i([c.Autowired("context"),r("design:type",c.Context)],e.prototype,"context",void 0),i([c.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),r("design:type",f.GridApi)],e.prototype,"gridApi",void 0),i([c.Autowired("userComponentFactory"),r("design:type",g.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([c.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([c.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e=t=i([c.Bean("filterManager")],e);}();t.FilterManager=y;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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 r=g._.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(r!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,i,t),this.enterDragTargetIfExists(r,e,o,i,t),this.lastDropTarget=r;else if(r){var n=this.createDropTargetEvent(r,e,o,i,t);r.onDragging(n);}},e.prototype.enterDragTargetIfExists=function(e,t,o,i,r){if(e){var n=this.createDropTargetEvent(e,t,o,i,r);e.onDragEnter(n),this.setGhostIcon(e.getIconName?e.getIconName():null);}},e.prototype.leaveLastTargetIfExists=function(e,t,o,i){if(this.lastDropTarget){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,o,i);this.lastDropTarget.onDragLeave(r),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 r=e.clientX>=o.left&&e.clientX<=o.right,n=e.clientY>=o.top&&e.clientY<=o.bottom;r&&n&&(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,r){var n=e.getContainer().getBoundingClientRect();return{event:t,x:t.clientX-n.left,y:t.clientY-n.top,vDirection:i,hDirection:o,dragSource:this.dragSource,fromNudge:r,dragItem:this.dragItem};},e.prototype.positionGhost=function(e){var t=this.eGhost.getBoundingClientRect().height,o=g._.getBodyWidth()-2,i=g._.getBodyHeight()-2,r=e.pageY-t/2,n=e.pageX-30,s=this.gridOptionsWrapper.getDocument(),a=window.pageYOffset||s.documentElement.scrollTop,l=window.pageXOffset||s.documentElement.scrollLeft;o>0&&n+this.eGhost.clientWidth>o+l&&(n=o+l-this.eGhost.clientWidth),n<0&&(n=0),i>0&&r+this.eGhost.clientHeight>i+a&&(r=i+a-this.eGhost.clientHeight),r<0&&(r=0),this.eGhost.style.left=n+"px",this.eGhost.style.top=r+"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"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([u.Autowired("dragService"),r("design:type",d.DragService)],e.prototype,"dragService",void 0),i([u.Autowired("environment"),r("design:type",f.Environment)],e.prototype,"environment",void 0),i([u.Autowired("columnController"),r("design:type",h.ColumnController)],e.prototype,"columnController",void 0),i([u.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([n(0,u.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[p.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),i([u.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e=t=i([u.Bean("dragAndDropService")],e);}();t.DragAndDropService=y;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n,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";}(n=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,r,n){void 0===r&&(r=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,o,t,i,r);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,o,t,s.paramsFromSelector);this.addReactHacks(l);var p=n?n(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 r,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"],r=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(r&&(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:n.HARDCODED,paramsFromSelector:null};if(a)return{componentFromFramework:!1,component:a,source:n.HARDCODED,paramsFromSelector:null};if(l)return this.agComponentUtils.adaptFunction(t,l,!1,n.HARDCODED);var c,d=r?r(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:n.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(i.component)?{component:i.component,componentFromFramework:!1,source:i.source==l.RegisteredComponentSource.REGISTERED?n.REGISTERED_BY_NAME:n.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,i.component,i.componentFromFramework,i.source==l.RegisteredComponentSource.REGISTERED?n.REGISTERED_BY_NAME:n.DEFAULT);},e.prototype.createFinalParams=function(e,t,o,i){void 0===i&&(i=null);var r={};c._.mergeDeep(r,o);var n=e?e[t+"Params"]:null;return null!=n&&("function"==typeof n?c._.mergeDeep(r,n(o)):"object"==_typeof2(n)&&c._.mergeDeep(r,n)),c._.mergeDeep(r,i),r;},e.prototype.createComponentInstance=function(e,t,o,i,r){var n,s=this.lookupComponentClassDef(e,t,o,i);if(!s||!s.component)return r||console.error("Error creating component "+t+"=>"+i),null;if(s.componentFromFramework){var a=s.component,l=this.componentMetadataProvider.retrieve(t);n=this.frameworkComponentWrapper.wrap(a,l.mandatoryMethodList,l.optionalMethodList,i);}else n=new s.component();return{componentInstance:n,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"),r("design:type",Object)],e.prototype,"gridOptions",void 0),i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),r("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("agComponentUtils"),r("design:type",p.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([s.Autowired("componentMetadataProvider"),r("design:type",u.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),i([s.Autowired("userComponentRegistry"),r("design:type",l.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),i([s.Optional("frameworkComponentWrapper"),r("design:type",Object)],e.prototype,"frameworkComponentWrapper",void 0),e=i([s.Bean("userComponentFactory")],e);}();t.UserComponentFactory=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i3,r=this&&this.__extends||(_i3=function i(e,t){return(_i3=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;}_i3(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(5),m=o(14),C=o(26),w=o(127),_=o(15),b=o(31),E=o(9),R=o(30),P=o(38),O=o(48),S=o(89),A=o(2),T=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 r(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(_o){e.forEachCellComp(function(e){e.getColumn()===t&&_o(e);});},i=function i(){o(function(e){return e.onLeftChanged();});},r=function r(){o(function(e){return e.onWidthChanged();});},n=function n(){o(function(e){return e.onFirstRightPinnedChanged();});},s=function s(){o(function(e){return e.onLastLeftPinnedChanged();});};t.addEventListener(c.Column.EVENT_LEFT_CHANGED,i),t.addEventListener(c.Column.EVENT_WIDTH_CHANGED,r),t.addEventListener(c.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,n),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,r),t.removeEventListener(c.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,n),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){A._.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 r=i.getCellForCol(e);r&&t.push(r);}return A._.iterateObject(this.rowCompsByIndex,o),A._.iterateObject(this.floatingBottomRowComps,o),A._.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,r,n){var s=this;e.forEach(function(e){e.destroy();}),e.length=0,t&&t.forEach(function(t){var a=new u.RowComp(s.$scope,r,o,i,n,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 A._.missing(e)?t:(A._.iterateObject(this.rowCompsByIndex,function(o,i){var r=i.getRowNode();e.indexOf(r)>=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(A._.missing(t))return null;var o=document.activeElement,i=this.gridOptionsWrapper.getDomData(o,f.CellComp.DOM_DATA_KEY_CELL_COMP);return A._.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(),r=this.binRowComps(o);this.redraw(r,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){A._.iterateObject(this.rowCompsByIndex,e),A._.iterateObject(this.floatingTopRowComps,e),A._.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,r,n=this;A._.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;})),A._.exists(t)&&(r={},t.forEach(function(e){var t=n.columnController.getGridColumn(e);A._.exists(t)&&(r[t.getId()]=!0);}));var s=function s(e){var t=e.getRowNode(),n=t.id,s=t.rowPinned;if(A._.exists(i))if(s===h.Constants.PINNED_BOTTOM){if(!i.bottom[n])return;}else if(s===h.Constants.PINNED_TOP){if(!i.top[n])return;}else if(!i.normal[n])return;e.forEachCellComp(function(e){var t=e.getColumn().getId();r&&!r[t]||o(e);});};A._.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=[],A._.iterateObject(this.rowCompsByIndex,function(e,r){var n=r.getRowNode();A._.exists(n.id)?(i[n.id]=r,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=A._.filter(o,function(e){return!t[e];});this.removeRowComps(i);},t.prototype.calculateIndexesToDraw=function(){var e=this,t=A._.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return A._.iterateObject(this.rowCompsByIndex,function(o,i){var r=Number(o);(r<e.firstRenderedRow||r>e.lastRenderedRow)&&e.doNotUnVirtualiseRow(i)&&t.push(r);}),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 r=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(r),this.printLayout&&(t=!1);var n=[],s=[];r.forEach(function(r){var a=i.createOrUpdateRowComp(r,e,t,o);A._.exists(a)&&(s.push(a),A._.pushAll(n,a.getAndClearNextVMTurnFunctions()));}),this.flushContainers(s),A._.executeNextVMTurn(n),o&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addP2Task(this.destroyRowComps.bind(this,e,t)):this.destroyRowComps(e,t),this.checkAngularCompile(),this.gridPanel.updateRowCount();},t.prototype.flushContainers=function(e){A._.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=[];A._.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=[];A._.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 r,n=this.rowCompsByIndex[e];if(n||(r=this.paginationProxy.getRow(e),A._.exists(r)&&A._.exists(t)&&t[r.id]&&r.alreadyRendered&&(n=t[r.id],t[r.id]=null)),!n){if(r||(r=this.paginationProxy.getRow(e)),!A._.exists(r))return;n=this.createRowComp(r,o,i);}else n.ensureDomOrder();return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[e]=n,n;},t.prototype.destroyRowComps=function(e,t){var o=[];A._.iterateObject(e,function(e,i){i&&(i.destroy(t),A._.pushAll(o,i.getAndClearDelayedDestroyFunctions()));}),A._.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(),r=this.gridPanel.getVScrollPosition(),n=r.top,s=r.bottom,a=this.gridOptionsWrapper.getRowBufferInPixels(),l=n+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,v=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),m=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);y&&!v&&t-e>m&&(t=e+m);var C=e!==this.firstRenderedRow,w=t!==this.lastRenderedRow;if(C||w){this.firstRenderedRow=e,this.lastRenderedRow=t;var _={type:d.Events.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(_);}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(),r=t.detail;return!!(o||i||r)&&!!this.paginationProxy.isRowPresent(t);},t.prototype.createRowComp=function(e,t,o){var i=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=o&&!i&&!this.printLayout,n=new u.RowComp(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,r,this.printLayout,this.embedFullWidthRows);return n.init(),n;},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 r=o,n=!1;!n;){if(this.gridOptionsWrapper.isEnableRtl()?t===h.Constants.KEY_LEFT&&(r=this.getLastCellOfColSpan(r)):t===h.Constants.KEY_RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(t,r),A._.missing(r))n=!0;else{var s=this.rowPositionUtils.getRowNode(r);if(!s.detail)if(s.group){var a=this.columnController.isPivotMode();this.gridOptionsWrapper.isGroupUseEntireRow(a)||(n=!0);}else n=!0;}}if(i){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(A._.exists(l)){var p=l({key:t,previousCellPosition:o,nextCellPosition:r||null,event:e});A._.exists(p)?(p.floating&&(A._.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),r={rowPinned:p.rowPinned,rowIndex:p.rowIndex,column:p.column}):r=null;}}r&&(this.ensureCellVisible(r),r=this.getComponentForCell(r).getCellPosition(),this.ensureCellVisible(r),this.focusedCellController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(r));},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:A._.last(o),rowPinned:e.rowPinned};},t.prototype.ensureCellVisible=function(e){A._.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(A._.missing(t))return!1;var o=this.getComponentForCell(t);return!A._.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),r=A._.exists(i);return r&&(i.startEditingIfEnabled(null,null,!0),i.focusCell(!1)),r;},t.prototype.moveToNextEditingRow=function(e,t){var o=e.getCellPosition(),i=this.findNextCellToFocusOn(o,t,!0),r=A._.exists(i);return r&&this.moveEditToNextCellOrRow(e,i),r;},t.prototype.moveToNextCellNotEditing=function(e,t){var o=e.getCellPosition(),i=this.findNextCellToFocusOn(o,t,!1),r=A._.exists(i);return r&&i.focusCell(!0),r;},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 r=e.getRenderedRow(),n=t.getRenderedRow();e.setFocusOutOnEditor(),r.stopEditing(),n.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 r=this.gridOptionsWrapper.getTabToNextCellFunc();if(A._.exists(r)){var n=r({backwards:t,editing:o,previousCellPosition:e,nextCellPosition:i||null});A._.exists(n)?(n.floating&&(A._.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"),n.rowPinned=n.floating),i={rowIndex:n.rowIndex,column:n.column,rowPinned:n.rowPinned}):i=null;}if(!i)return null;if(o){var s=this.lookupRowNodeForCell(i);if(!i.column.isCellEditable(s))continue;}A._.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(!A._.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);},n([g.Autowired("paginationProxy"),s("design:type",b.PaginationProxy)],t.prototype,"paginationProxy",void 0),n([g.Autowired("columnController"),s("design:type",v.ColumnController)],t.prototype,"columnController",void 0),n([g.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([g.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),n([g.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([g.Autowired("pinnedRowModel"),s("design:type",R.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),n([g.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([g.Autowired("loggerFactory"),s("design:type",m.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([g.Autowired("focusedCellController"),s("design:type",C.FocusedCellController)],t.prototype,"focusedCellController",void 0),n([g.Autowired("cellNavigationService"),s("design:type",w.CellNavigationService)],t.prototype,"cellNavigationService",void 0),n([g.Autowired("columnApi"),s("design:type",y.ColumnApi)],t.prototype,"columnApi",void 0),n([g.Autowired("gridApi"),s("design:type",E.GridApi)],t.prototype,"gridApi",void 0),n([g.Autowired("beans"),s("design:type",P.Beans)],t.prototype,"beans",void 0),n([g.Autowired("maxDivHeightScaler"),s("design:type",S.MaxDivHeightScaler)],t.prototype,"maxDivHeightScaler",void 0),n([g.Autowired("animationFrameService"),s("design:type",O.AnimationFrameService)],t.prototype,"animationFrameService",void 0),n([g.Autowired("rowPositionUtils"),s("design:type",T.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),n([g.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),n([a(0,g.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[m.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"agWire",null),t=n([g.Bean("rowRenderer")],t);}(_.BeanStub);t.RowRenderer=D;},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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(n.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_GROUP_OPENED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_MOVED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(n.Events.EVENT_COLUMN_PINNED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(n.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();}),!n._.compareArrays(o,t.columns)){e.onRangeChanged({started:!1,finished:!0});var i={id:t.id,type:n.Events.EVENT_CHART_RANGE_SELECTION_CHANGED};e.eventService.dispatchEvent(i);}});},e.prototype.refreshLastRangeStart=function(){var e=n._.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;}),n._.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?n.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:n.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||n._.missing(this.cellRanges))&&this.removeAllCellRanges(!0);for(var i,r={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(r,a.startRow)&&this.rowPositionUtils.sameRow(r,a.endRow)){i=a;break;}}if(i){n._.last(this.cellRanges)===i||(n._.removeFromArray(this.cellRanges,i),this.cellRanges.push(i));}else{var l={startRow:r,endRow:r,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=n._.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(),r=n._.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=!n._.compareArrays(i,t.columns),p=JSON.stringify(r)!==JSON.stringify(t.endRow);if(l||p){var u={id:t.id,type:n.Events.EVENT_CHART_RANGE_SELECTION_CHANGED};this.eventService.dispatchEvent(u);}}},e.prototype.refreshRangeStart=function(e){var t=e.startColumn,o=e.columns,i=function i(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;},r=this.getRangeEdgeColumns(e),s=r.left,a=r.right;t===o[0]&&t!==s?i(s,!0):t===n._.last(o)&&t===a&&i(a,!1);},e.prototype.getRangeEdgeColumns=function(e){for(var t=this.columnController.getAllDisplayedColumns(),o=[],i=0,r=e.columns;i<r.length;i++){var s=r[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[n._.last(o)]};},e.prototype.extendLatestRangeInDirection=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=n._.last(this.cellRanges),o=this.newestRangeStartCell,i=t.columns[0],r=n._.last(t.columns),s=t.endRow.rowIndex,a=t.endRow.rowPinned,l={column:o.column===i?r: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),r=this.columnController.getColumnWithValidation(e.columnEnd);if(!i||!r)return;t=this.calculateColumnsBetween(i,r);}if(t){var n=void 0;null!=e.rowStartIndex&&(n={rowIndex:e.rowStartIndex,rowPinned:e.rowStartPinned});var s=void 0;return null!=e.rowEndIndex&&(s={rowIndex:e.rowEndIndex,rowPinned:e.rowEndPinned}),{startRow:n,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),r=this.getRangeEndRow(o),n={rowIndex:e,rowPinned:t},s=n.rowIndex===i.rowIndex&&n.rowPinned==i.rowPinned,a=n.rowIndex===r.rowIndex&&n.rowPinned==r.rowPinned;if(s||a)return!0;var l=!this.rowPositionUtils.before(n,i),p=this.rowPositionUtils.before(n,r);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,r=t||o,s=!!!this.gridOptionsWrapper.isSuppressMultiRangeSelection()&&r,a=this.mouseEventService.getCellPositionForEvent(e);if(!n._.missing(a)){if(s||i&&!n._.exists(n._.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=n._.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,r=o||i;if(this.autoScrollService.check(e,r),t&&this.draggingCell&&!this.cellPositionUtils.equals(this.draggingCell,t)){var n=this.calculateColumnsBetween(this.newestRangeStartCell.column,t.column);n&&(this.draggingCell=t,this.draggingRange.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},this.draggingRange.columns=n,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:n.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,r=o.indexOf(e),n=i?r:o.indexOf(t);if(r<0)console.warn("ag-Grid: column "+e.getId()+" is not visible");else{if(!(n<0)){if(i)return[e];for(var s=Math.min(r,n),a=s===r?n:r,l=[],p=s;p<=a;p++){l.push(o[p]);}return l;}console.warn("ag-Grid: column "+t.getId()+" is not visible");}},i([n.Autowired("loggerFactory"),r("design:type",n.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("mouseEventService"),r("design:type",n.MouseEventService)],e.prototype,"mouseEventService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnApi"),r("design:type",n.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",n.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("cellNavigationService"),r("design:type",n.CellNavigationService)],e.prototype,"cellNavigationService",void 0),i([n.Autowired("pinnedRowModel"),r("design:type",n.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([n.Autowired("rowPositionUtils"),r("design:type",n.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([n.Autowired("cellPositionUtils"),r("design:type",n.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.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()!==n.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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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),v=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 r=this.createDataChangedEvent(e,i,!1);this.dispatchLocalEvent(r);},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 r=0;r<this.childrenAfterGroup.length;r++){var n=this.childrenAfterGroup[r];if(n.selectable)switch(n.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,r=!0===e.suppressFinishActions,n=!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(n){var l=this.selectionController.getLastSelectedNode()!==this,p=this.gridOptionsWrapper.isRowSelectionMulti();if(l&&p)return this.doRowRangeSelection();}var u=0;a&&this.group||this.selectThisNode(o)&&u++;if(t&&this.group&&(u+=this.selectChildNodes(o,a)),!r){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 r=0;r<o.length;r++){i+=o[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});}return i;}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new n.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,r=!1;i&&!r;){var n=o.parent;y._.exists(n)&&o.firstChild?n.rowGroupColumn===e&&(r=!0,t=n):i=!1,o=n;}return r?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"),r("design:type",n.EventService)],e.prototype,"mainEventService",void 0),i([d.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([d.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([d.Autowired("valueService"),r("design:type",p.ValueService)],e.prototype,"valueService",void 0),i([d.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([d.Autowired("context"),r("design:type",d.Context)],e.prototype,"context",void 0),i([d.Autowired("valueCache"),r("design:type",f.ValueCache)],e.prototype,"valueCache",void 0),i([d.Autowired("columnApi"),r("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([d.Autowired("gridApi"),r("design:type",g.GridApi)],e.prototype,"gridApi",void 0),e;}();t.RowNode=v;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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),v=o(2),m=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 v._.iterateObject(this.selectedNodes,function(t,o){o&&e.push(o);}),e;},e.prototype.getSelectedRows=function(){var e=[];return v._.iterateObject(this.selectedNodes,function(t,o){o&&o.data&&e.push(o.data);}),e;},e.prototype.removeGroupsFromSelection=function(){var e=this;v._.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 m.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 v._.iterateObject(this.selectedNodes,function(r,n){if(n&&n.id!==e.id){var s=t.selectedNodes[n.id];i+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&n.parent&&(o[n.parent.id]=n.parent);}}),v._.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){v._.exists(t)&&e.id!==t.id&&v._.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t);},e.prototype.syncInNewRowNode=function(e){v._.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,r=o.length;i<r;i++){var n=o[i];n.isSelected()?t.push(n):n.group&&n.children&&e(n.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 v._.iterateObject(this.selectedNodes,function(t,o){o&&e++;}),0===e;},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function t(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 v._.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 o(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"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("gridOptionsWrapper"),r("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("columnApi"),r("design:type",g.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),r("design:type",y.GridApi)],e.prototype,"gridApi",void 0),i([n(0,a.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[l.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),i([h.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([s.Bean("selectionController")],e);}();t.SelectionController=C;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r,n=e.getColDef(),s=n.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&&n.filterValueGetter?r=this.executeFilterValueGetter(n.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&u?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&n.valueGetter?r=this.executeValueGetter(n.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=d._.getValueUsingField(l,s,e.isFieldContainsDots()):p?r=t.groupData[a]:u?r=t.aggData[a]:n.valueGetter?r=this.executeValueGetter(n.valueGetter,l,e,t):s&&l&&(r=d._.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var c=r.substring(1);r=this.executeValueGetter(c,l,e,t);}return r;}},e.prototype.setValue=function(e,t,o){var i=this.columnController.getPrimaryColumn(t);if(e&&i){var r=e.data;d._.missing(r)&&(e.data={});var n=i.getColDef(),s=n.field,a=n.newValueHandler,l=n.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(r,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 r=t.split("."),n=e;r.length>0&&n;){var s=r.shift();0===r.length?n[s]=o:n=n[s];}else e[t]=o;return!0;},e.prototype.executeFilterValueGetter=function(e,t,o,i){var r={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,r);},e.prototype.executeValueGetter=function(e,t,o,i){var r=o.getId(),n=this.valueCache.getValue(i,r);if(void 0!==n)return n;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,r,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,r=i?i({value:o}):o;return"string"==typeof r||null==r?r:("[object Object]"===(r=String(r))&&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]"),r);},i([l.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("expressionService"),r("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),i([l.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([l.Autowired("eventService"),r("design:type",u.EventService)],e.prototype,"eventService",void 0),i([l.Autowired("valueCache"),r("design:type",c.ValueCache)],e.prototype,"valueCache",void 0),i([l.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([l.Bean("valueService")],e);}();t.ValueService=h;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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([n(0,l.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[s.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([a.Bean("expressionService")],e);}();t.ExpressionService=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=h._.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:h._.makeNull(o),column:r},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([n.Autowired("eventService"),r("design:type",s.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("focusedCellController")],e);}();t.FocusedCellController=f;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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!==n.Column.SORT_ASC&&t!==n.Column.SORT_DESC&&(t=null),e.setSort(t,i),e.getSort()){var r=Number(new Date().valueOf());e.setSortedAt(r);}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,r=o.indexOf(e.getSort()),n=r<0,s=r==o.length-1;return i=n||s?o[0]:o[r+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(r){var n=null,s=-1;if(i&&r.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof r.getColId()&&o.compareColIds(l,r)&&(n=l.sort,s=a);}n?(r.setSort(n,t),r.setSortedAt(s)):(r.setSort(null,t),r.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()===n.Column.SORT_ASC?1:-1,column:e};});},e.DEFAULT_SORTING_ORDER=[n.Column.SORT_ASC,n.Column.SORT_DESC,null],i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),r("design:type",u.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("columnApi"),r("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([s.Autowired("gridApi"),r("design:type",d.GridApi)],e.prototype,"gridApi",void 0),e=t=i([s.Bean("sortController")],e);}();t.SortController=f;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(98);!function(e){e[e.All=0]="All",e[e.None=1]="None";}(i=t.PointerEvents||(t.PointerEvents={}));var n=function(){function e(){this.id=this.createId(),this.tag=NaN,this.isContainerNode=!1,this._children=[],this.childSet={},this.matrix=new r.Matrix(),this.inverseMatrix=new r.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 get(){return this._scene;},enumerable:!0,configurable:!0}),e.prototype._setParent=function(e){this._parent=e;},Object.defineProperty(e.prototype,"parent",{get:function get(){return this._parent;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function get(){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,r=i,n=0;n<i;n++){r+=o[n].countChildren(t-1);}return r;},e.prototype.append=function(t){e.isNode(t)&&(t=[t]);for(var o=t.length,i=0;i<o;i++){var r=t[i];if(r.parent)throw new Error(r+" already belongs to another parent: "+r.parent+".");if(r.scene)throw new Error(r+" already belongs a scene: "+r.scene+".");if(this.childSet[r.id])throw new Error("Duplicate "+r.constructor.name+" node: "+r);this._children.push(r),this.childSet[r.id]=!0,r._setParent(this),r._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=r.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 get(){return this._dirtyTransform;},set:function set(e){this._dirtyTransform=e,e&&(this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingX",{get:function get(){return this._scalingX;},set:function set(e){this._scalingX!==e&&(this._scalingX=e,this.dirtyTransform=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingY",{get:function get(){return this._scalingY;},set:function set(e){this._scalingY!==e&&(this._scalingY=e,this.dirtyTransform=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterX",{get:function get(){return this._scalingCenterX;},set:function set(e){this._scalingCenterX!==e&&(this._scalingCenterX=e,this.dirtyTransform=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterY",{get:function get(){return this._scalingCenterY;},set:function set(e){this._scalingCenterY!==e&&(this._scalingCenterY=e,this.dirtyTransform=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterX",{get:function get(){return this._rotationCenterX;},set:function set(e){this._rotationCenterX!==e&&(this._rotationCenterX=e,this.dirtyTransform=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterY",{get:function get(){return this._rotationCenterY;},set:function set(e){this._rotationCenterY!==e&&(this._rotationCenterY=e,this.dirtyTransform=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function get(){return this._rotation;},set:function set(e){this._rotation!==e&&(this._rotation=e,this.dirtyTransform=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDeg",{get:function get(){return this.rotation/Math.PI*180;},set:function set(e){this.rotation=e/180*Math.PI;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationX",{get:function get(){return this._translationX;},set:function set(e){this._translationX!==e&&(this._translationX=e,this.dirtyTransform=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationY",{get:function get(){return this._translationY;},set:function set(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 r=o.length-1;r>=0;r--){var n=o[r].pickNode(e,t);if(n)return n;}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],r=o[1],n=this.scalingX,s=this.scalingY;1===n&&1===s?(e=0,t=0):(e=null===this.scalingCenterX?i:this.scalingCenterX,t=null===this.scalingCenterY?r: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?r:this.rotationCenterY);var d=this.translationX,h=this.translationY,f=e*(1-n)-a,g=t*(1-s)-l;this.dirtyTransform=!1,this.matrix.setElements([u*n,c*n,-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 get(){return this._dirty;},set:function set(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 get(){return this._visible;},set:function set(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=n;},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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=o[i];if(r.rowTop+r.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 r=0;e.forEach(function(e,n){var a=new s.RowNode();o.context.wireBean(a),a.data=e,a.id=(t?"t":"b")+"-"+n,a.rowPinned=t?u.Constants.PINNED_TOP:u.Constants.PINNED_BOTTOM,a.setRowTop(r),a.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(n),r+=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"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),i([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("columnApi"),r("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),r("design:type",d.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([a.Bean("pinnedRowModel")],e);}();t.PinnedRowModel=f;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i4,r=this&&this.__extends||(_i4=function i(e,t){return(_i4=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;}_i4(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r;},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;},n([u.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("selectionController"),s("design:type",d.SelectionController)],t.prototype,"selectionController",void 0),n([u.Autowired("columnApi"),s("design:type",h.ColumnApi)],t.prototype,"columnApi",void 0),n([u.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),n([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([u.Bean("paginationProxy")],t);}(a.BeanStub);t.PaginationProxy=y;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCore.getRootGui();},e.prototype.positionPopupForMenu=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),r=this.getPopupParent();t=r===i.body?i.documentElement.getBoundingClientRect():r.getBoundingClientRect();var n=o.top-t.top;n=this.keepYWithinBounds(e,n);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=n+"px";},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),o=t.x,i=t.y,r=e.ePopup,n=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:r,x:o,y:i,nudgeX:n,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(),r=t.documentElement.getBoundingClientRect();return{x:e.clientX-(o===t.body?r.left:i.left),y:e.clientY-(o===t.body?r.top:i.top)};},e.prototype.positionPopupUnderComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),r=this.getPopupParent(),n=e.alignSide||"left";t=r===i.body?i.documentElement.getBoundingClientRect():r.getBoundingClientRect();var s=o.left-t.left;"right"===n&&(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(),r=this.getPopupParent();t=r===i.body?i.documentElement.getBoundingClientRect():r.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,r,n){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:n,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,r=this.getPopupParent(),n=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=r===o.body,l=Math.min(200,n.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:n.height;a&&(u-=Math.abs(s.top-n.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,r=this.getPopupParent(),n=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=r===o.body,l=e.ePopup,p=Math.min(200,n.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:n.width;a&&(d-=Math.abs(s.left-n.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,r,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 y(e){(e.which||e.keyCode)===n.Constants.KEY_ESCAPE&&h.contains(document.activeElement)&&C(null);},v=function v(e){C(e);},m=function m(e){C(null,e);},C=function C(e,o){a.isEventFromCurrentPopup(e,o,t)||a.isEventSameChainAsOriginalEvent(r,e,o)||g||(g=!0,d.removeChild(h),l.removeEventListener("keydown",y),l.removeEventListener("mousedown",v),l.removeEventListener("touchstart",m),l.removeEventListener("contextmenu",v),a.eventService.removeEventListener(u.Events.EVENT_DRAG_STARTED,v),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",v),a.eventService.addEventListener(u.Events.EVENT_DRAG_STARTED,v),l.addEventListener("touchstart",m),l.addEventListener("contextmenu",v));},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 r=c._.findIndex(this.popupList,function(e){return e.element===o;});if(-1===r)return!1;for(var n=r;n<this.popupList.length;n++){var s=this.popupList[n];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 r=t?t.screenX:0,n=t?t.screenY:0,s=Math.abs(e.screenX-r)<5,a=Math.abs(e.screenY-n)<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,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),n=r.length,s=this.getWrapper(e);if(s&&!(i<=1)&&t.contains(e)){var a=o.indexOf(s);if(n)c._.containsClass(s,"ag-always-on-top")?a!==i-1&&c._.last(r).insertAdjacentElement("afterend",s):a!==i-n-1&&r[0].insertAdjacentElement("beforebegin",s);else 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"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("environment"),r("design:type",l.Environment)],e.prototype,"environment",void 0),i([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),e=i([s.Bean("popupService")],e);}();t.PopupService=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i5,r=this&&this.__extends||(_i5=function i(e,t){return(_i5=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;}_i5(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=!t.operator;if(!i&&r||i&&!r)return!1;if(i){var n=e,s=t;o=this.areSimpleModelsEqual(n,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),r=this.individualConditionPasses(e,o.condition2);return"AND"===o.operator?i&&r:i||r;}var n=t;return this.individualConditionPasses(e,n);},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 o(){var o="string"==typeof t?t:t.displayKey,i=e.translate(o),r=document.createElement("option");return r.text=i,r.value=o,r;};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 t(){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",n([l.RefSelector("eOptions1"),s("design:type",HTMLSelectElement)],t.prototype,"eType1",void 0),n([l.RefSelector("eOptions2"),s("design:type",HTMLSelectElement)],t.prototype,"eType2",void 0),n([l.RefSelector("eJoinOperatorAnd"),s("design:type",HTMLInputElement)],t.prototype,"eJoinOperatorAnd",void 0),n([l.RefSelector("eJoinOperatorOr"),s("design:type",HTMLInputElement)],t.prototype,"eJoinOperatorOr",void 0),n([l.RefSelector("eCondition2Body"),s("design:type",HTMLElement)],t.prototype,"eCondition2Body",void 0),n([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),r=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=r;var n=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,r){return t.appendChild(e(t,o,i,r));});},e.prototype.select=function(t){for(var o=this.groups,i=o.length,r=[],n=0;n<i;n++){for(var s=o[n],a=s.length,l=r[n]=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(r,this.parents);},e.prototype.selectByClass=function(e){return this.select(function(t){if(i.Node.isNode(t))for(var o=t.children,r=o.length,n=0;n<r;n++){var s=o[n];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,r=o.length,n=0;n<r;n++){var s=o[n];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 r=t.children,n=r.length,s=0;s<n;s++){var a=r[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 r=t.children,n=r.length,s=0;s<n;s++){var a=r[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=[],r=this.groups,n=r.length,s=0;s<n;s++){for(var a=r[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 r=t[i],n=r.length,s=0;s<n;s++){var a=r[s];a&&e(a,a.datum,s,r);}}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,r=o.length,n=i.length,s=Math.min(r,n),a=new Array(r),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<r;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],r=i.length,n=0;n<r;n++){var s=i[n];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,r,n){o[e]=t(o,i,r,n);}),this;},e.prototype.call=function(e){return e(this),this;},Object.defineProperty(e.prototype,"size",{get:function get(){var e=0;return this.each(function(){return e++;}),e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function get(){var e=[];return this.each(function(t,o){return e.push(o);}),e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enter",{get:function get(){return new e(this.enterGroups?this.enterGroups:[[]],this.parents);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exit",{get:function get(){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 get(){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 t(){return i;};}for(var r=this.groups,n=this.parents,s=r.length,a=new Array(s),l=new Array(s),p=new Array(s),u=0;u<s;u++){var c=r[u],d=n[u];if(!d)throw new Error("Group #"+u+" has no parent: "+c);var h=c.length,f=t(d,d.datum,u,n),g=f.length,y=l[u]=new Array(g),v=a[u]=new Array(g),m=p[u]=new Array(h);o?this.bindKey(d,c,y,v,m,f,o):this.bindIndex(d,c,y,v,m,f);for(var C=0,w=0;C<g;C++){var _=y[C];if(_){C>=w&&(w=C+1);for(var b=void 0;!(b=v[w])&&w<g;){w++;}_.next=b||null;}}}var E=new e(a,n);return E.enterGroups=l,E.exitGroups=p,E;},e.prototype.bindIndex=function(e,t,o,i,n,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 r(e,s[p]);}for(;p<a;p++){var u;(u=t[p])&&(n[p]=u);}},e.prototype.bindKey=function(t,o,i,n,s,a,l){for(var p=o.length,u=a.length,c=new Array(p),d={},h=0;h<p;h++){if(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)])?(n[h]=g,g.datum=a[h],d[f]=void 0):i[h]=new r(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=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 n.Column?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t);});},e.prototype.addLeafColumns=function(t){this.children.forEach(function(o){o instanceof n.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"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e;}();t.ColumnGroup=u;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(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([n.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([n.Autowired("eventService"),r("design:type",a.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnApi"),r("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([n.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e=i([n.Bean("dragService")],e);}();t.DragService=h;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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),v=o(87),m=o(32),C=o(62),w=o(141),_=o(64),b=o(31),E=o(48),R=o(19),P=o(18),O=o(27),S=o(17),A=o(89),T=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([n.Autowired("paginationProxy"),r("design:type",b.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("columnApi"),r("design:type",s.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",l.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("expressionService"),r("design:type",u.ExpressionService)],e.prototype,"expressionService",void 0),i([n.Autowired("rowRenderer"),r("design:type",c.RowRenderer)],e.prototype,"rowRenderer",void 0),i([n.Autowired("$compile"),r("design:type",Object)],e.prototype,"$compile",void 0),i([n.Autowired("templateService"),r("design:type",d.TemplateService)],e.prototype,"templateService",void 0),i([n.Autowired("valueService"),r("design:type",h.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("eventService"),r("design:type",f.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("columnAnimationService"),r("design:type",g.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([n.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),i([n.Autowired("focusedCellController"),r("design:type",y.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([n.Optional("contextMenuFactory"),r("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([n.Autowired("cellRendererFactory"),r("design:type",v.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([n.Autowired("popupService"),r("design:type",m.PopupService)],e.prototype,"popupService",void 0),i([n.Autowired("valueFormatterService"),r("design:type",C.ValueFormatterService)],e.prototype,"valueFormatterService",void 0),i([n.Autowired("stylingService"),r("design:type",w.StylingService)],e.prototype,"stylingService",void 0),i([n.Autowired("columnHoverService"),r("design:type",_.ColumnHoverService)],e.prototype,"columnHoverService",void 0),i([n.Autowired("enterprise"),r("design:type",Boolean)],e.prototype,"enterprise",void 0),i([n.Autowired("userComponentFactory"),r("design:type",R.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([n.Autowired("animationFrameService"),r("design:type",E.AnimationFrameService)],e.prototype,"taskQueue",void 0),i([n.Autowired("dragAndDropService"),r("design:type",P.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([n.Autowired("sortController"),r("design:type",O.SortController)],e.prototype,"sortController",void 0),i([n.Autowired("filterManager"),r("design:type",S.FilterManager)],e.prototype,"filterManager",void 0),i([n.Autowired("maxDivHeightScaler"),r("design:type",A.MaxDivHeightScaler)],e.prototype,"maxDivHeightScaler",void 0),i([n.Autowired("tooltipManager"),r("design:type",T.TooltipManager)],e.prototype,"tooltipManager",void 0),i([n.Autowired("frameworkOverrides"),r("design:type",Object)],e.prototype,"frameworkOverrides",void 0),i([n.Autowired("detailRowCompCache"),r("design:type",D.DetailRowCompCache)],e.prototype,"detailRowCompCache",void 0),i([n.Autowired("cellPositionUtils"),r("design:type",x.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([n.Autowired("rowPositionUtils"),r("design:type",F.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("beans")],e);}();t.Beans=M;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i6,r=this&&this.__extends||(_i6=function i(e,t){return(_i6=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;}_i6(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(145),s=o(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(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:(this.value=e,o||this.dispatchEvent({type:t.EVENT_CHANGED}),this);},t.EVENT_CHANGED="valueChange",t;}(n.AgAbstractLabel);t.AgAbstractField=a;},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r=n._.exists(this.aggFuncsMap[t.AGG_SUM]);return i&&r?t.AGG_SUM:n._.existsAndNotEmpty(o)?o[0]:null;},e.prototype.addAggFuncs=function(e){n._.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 n._.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([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=t=i([n.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?n._.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]&&(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]&&(t=e[i]));}return t;}function d(e){for(var t={value:0,toString:function toString(){return this.value.toString();},toNumber:function toNumber(){return this.value;}},o=e.length,i=0;i<o;i++){n._.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,r=0;r<i;r++){var s=e[r],a=n._.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 toString(){return"number"==typeof this.value?this.value.toString():"";},toNumber:function toNumber(){return this.value;}};}t.AggFuncService=s;},function(e,t,o){"use strict";var _i7,r=this&&this.__extends||(_i7=function i(e,t){return(_i7=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;}_i7(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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 r=t[o];this[r]=e[r];}},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 get(){return this._fillOpacity;},set:function set(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function get(){return this._strokeOpacity;},set:function set(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function get(){return this._fill;},set:function set(e){this._fill!==e&&(this._fill=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function get(){return this._stroke;},set:function set(e){this._stroke!==e&&(this._stroke=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function get(){return this._strokeWidth;},set:function set(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineDash",{get:function get(){return this._lineDash;},set:function set(e){var t=this._lineDash;if(t!==e){if(t&&e&&t.length===e.length){for(var o=!0,i=e.length,r=0;r<i;r++){if(t[r]!==e[r]){o=!1;break;}}if(o)return;}this._lineDash=e,this.dirty=!0;}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineDashOffset",{get:function get(){return this._lineDashOffset;},set:function set(e){this._lineDashOffset!==e&&(this._lineDashOffset=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function get(){return this._lineCap;},set:function set(e){this._lineCap!==e&&(this._lineCap=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function get(){return this._lineJoin;},set:function set(e){this._lineJoin!==e&&(this._lineJoin=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function get(){return this._opacity;},set:function set(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 get(){return this._fillShadow;},set:function set(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 get(){return this._strokeShadow;},set:function set(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;}(n.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 r=~~(Math.log10(e)/Math.log10(1e3));return o+(e/Math.pow(1e3,r)).toFixed(t)+i[r];};},function(e,t,o){"use strict";var _i8,r=this&&this.__extends||(_i8=function i(e,t){return(_i8=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;}_i8(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),t;}(a.Component);t.NameValueComp=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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(r,n){for(var s=0;s<r.length;s++){if(i)return;var l=r[s];if(l instanceof a.OriginalColumnGroup)t(l.getChildren(),n+1),o[n]=l;else 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"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([l.Bean("columnUtils")],e);}();t.ColumnUtils=u;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(36),r=o(12),n=o(4),s=function(){function e(e,t,o,i){this.localEventService=new n.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 r.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(r.Column.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e));});},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,r=!1,n=this.findChildren(),s=0,a=n.length;s<a;s++){var l=n[s];if(l.isVisible()){var p=l.getColumnGroupShow();if(p===i.ColumnGroup.HEADER_GROUP_SHOW_OPEN)t=!0,r=!0;else if(p===i.ColumnGroup.HEADER_GROUP_SHOW_CLOSED)o=!0,r=!0;else{if(t=!0,o=!0,p===i.ColumnGroup.HEADER_GROUP_PADDING)r=l.children.some(function(e){return void 0!==e.getColumnGroupShow();});}}}var u=t&&o&&r;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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("valueCache")],e);}();t.ValueCache=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i9,r=this&&this.__extends||(_i9=function i(e,t){return(_i9=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;}_i9(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),s=o(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(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;}(n.Component);t.PopupComponent=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("animationFrameService")],e);}();t.AnimationFrameService=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i10,r=this&&this.__extends||(_i10=function i(e,t){return(_i10=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;}_i10(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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;},n([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),r=o(302),n=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),v=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 r.PolarChart();return e.initPolarChart(o,t);},e.createDoughnutChart=function(t){var o=new r.PolarChart();return e.initPolarChart(o,t);},e.createPieChart=function(t){var o=new r.PolarChart();return e.initPolarChart(o,t,"pie");},e.createLineSeries=function(e){return new n.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 n.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 r=o.series,n=[],s=0,a=r.length;s<a;s++){var l=e.createSeries(r[s],i);l&&n.push(l);}t.series=n;}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 r=t[i];void 0!==r&&(o[i]=r);}}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 r=t[i];void 0!==r&&(o[i]=r);}}return o;},e;}();t.ChartBuilder=v;},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 _i11,r=this&&this.__extends||(_i11=function i(e,t){return(_i11=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;}_i11(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),Object.defineProperty(t.prototype,"x",{get:function get(){return this._x;},set:function set(e){this._x!==e&&(this._x=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function get(){return this._y;},set:function set(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 get(){return this._text;},set:function set(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 get(){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 get(){return this._dirtyFont;},set:function set(e){this._dirtyFont!==e&&(this._dirtyFont=e,e&&(this.dirty=!0));},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function get(){return this._fontStyle;},set:function set(e){this._fontStyle!==e&&(this._fontStyle=e,this.dirtyFont=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function get(){return this._fontWeight;},set:function set(e){this._fontWeight!==e&&(this._fontWeight=e,this.dirtyFont=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function get(){return this._fontSize;},set:function set(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 get(){return this._fontFamily;},set:function set(e){this._fontFamily!==e&&(this._fontFamily=e,this.dirtyFont=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textAlign",{get:function get(){return this._textAlign;},set:function set(e){this._textAlign!==e&&(this._textAlign=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function get(){return this._textBaseline;},set:function set(e){this._textBaseline!==e&&(this._textBaseline=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function get(){return this._lineHeight;},set:function set(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(n.Shape.defaultStyles,{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),t;}(n.Shape);t.Text=l;},function(e,t,o){"use strict";function i(e){for(var t,o,i,r=e.length,n=-1;++n<r;){if(null!=(t=e[n])&&t>=t)for(o=i=t;++n<r;){null!=(t=e[n])&&(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 r=e[o];if(t(r,o,e))return r;}},t.numericExtent=function(e){var t=i(e),o=t[0],r=t[1];if("number"==typeof o&&isFinite(o)&&"number"==typeof r&&isFinite(r))return[o,r];};},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,e%=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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(78),a=function(){function e(){this.watermarkMessage=void 0;}var t;return t=e,e.prototype.validateLicense=function(){if(n._.missingOrEmpty(t.licenseKey))this.outputMissingLicenseKey();else if(!n._.missingOrEmpty(t.licenseKey)&&t.licenseKey.length>32){var e=t.extractLicenseComponents(t.licenseKey),o=e.md5,i=e.license,r=e.version,s=e.isTrial;o===this.md5.md5(i)?n._.exists(r)&&r?this.validateLicenseKeyForVersion(r,!!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),r=e.substring(0,o),n=t.extractBracketedInformation(e);return{md5:i,license:r,version:n[0],isTrial:n[1]};},e.prototype.getLicenseDetails=function(e){var o=t.extractLicenseComponents(e),i=o.md5,r=o.license,n=o.version,s=o.isTrial,a=i===this.md5.md5(r),l=null;return a&&(l=t.extractExpiry(r),a=!isNaN(l.getTime())),{licenseKey:e,valid:a,expiry:a?t.formatDate(l):null,version:n||"legacy",isTrial:s};},e.prototype.isDisplayWatermark=function(){return!n._.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,r,n,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|(n=l.indexOf(c.charAt(u++)))>>4,i=(15&n)<<4|(s=l.indexOf(c.charAt(u++)))>>2,r=(3&s)<<6|(a=l.indexOf(c.charAt(u++))),p+=String.fromCharCode(o),64!=s&&(p+=String.fromCharCode(i)),64!=a&&(p+=String.fromCharCode(r));}return p=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),r=!1,n=!1;if(isNaN(i.getTime())||(r=!0,n=o<i),r){if(!n){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(),r=!1,n=!1;if(isNaN(o.getTime())||(r=!0,n=o>i),r){if(!n){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([n.Autowired("md5"),r("design:type",s.MD5)],e.prototype,"md5",void 0),i([n.PreConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"validateLicense",null),e=t=i([n.Bean("licenseManager")],e);}();t.LicenseManager=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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 r=o.map(function(e){return e.getId();});i.addExistingKeys(r);}var n=o?o.slice():null,s=this.recursivelyCreateColumns(e,0,t,n,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 r=o.createAutoGroupTreeItem(t,e);i.push(r);}),i;},e.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,i=this.findDepth(e)-1;i>=0;i--){var r=new u.OriginalColumnGroup(null,"FAKE_PATH_"+t.getId()+"}_"+i,!0,i);this.context.wireBean(r),r.setChildren([o]),o.setOriginalParent(r),o=r;}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 r=[],n=0;n<e.length;n++){var s=e[n];if(s instanceof u.OriginalColumnGroup){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,i);a.setChildren(l),r.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(r.push(p),e.some(function(e){return e instanceof u.OriginalColumnGroup;})){c.setChildren([s]);continue;}c.setChildren(e);break;}r.push(s);}}return r;},e.prototype.findMaxDept=function(e,t){for(var o=t,i=0;i<e.length;i++){var r=e[i];if(r instanceof u.OriginalColumnGroup){var n=r,s=this.findMaxDept(n.getChildren(),t+1);o<s&&(o=s);}}return o;},e.prototype.recursivelyCreateColumns=function(e,t,o,i,r,n){var s=this,a=[];return e?(e.forEach(function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(o,e,t,i,r,n):s.createColumn(o,e,i,r,n),a.push(l);}),a):a;},e.prototype.createColumnGroup=function(e,t,o,i,r,n){var s=this.createMergedColGroupDef(t),a=r.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,r,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,r){var n=this.mergeColDefs(t);this.checkForDeprecatedItems(n);var s=this.findExistingColumn(t,o);if(s)s.setColDef(n,t);else{var a=i.getUniqueKey(n.colId,n.field);s=new c.Column(n,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"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("columnUtils"),r("design:type",l.ColumnUtils)],e.prototype,"columnUtils",void 0),i([d.Autowired("context"),r("design:type",d.Context)],e.prototype,"context",void 0),i([n(0,d.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([d.Bean("columnFactory")],e);}();t.ColumnFactory=g;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=o.offsetWidth;return i.removeChild(o),r+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"),r("design:type",n.RowRenderer)],e.prototype,"rowRenderer",void 0),i([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([s.Bean("autoWidthCalculator")],e);}();t.AutoWidthCalculator=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i12,r=this&&this.__extends||(_i12=function i(e,t){return(_i12=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;}_i12(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++){for(var r in t=arguments[o]){Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}}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,r,n,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=r,l.rowComp=n,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 r(t,e),t.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],o=this.column,i=this.getCellWidth(),r=this.modifyLeftForPrintLayout(this.getCellLeft()),n=this.getInitialValueToRender(),s=f._.get(this.column,"colDef.template",null)?n:f._.escape(n);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: "+r+"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(),r=0;o&&r<e&&(t.push(o),(o=this.beans.columnController.getDisplayedColAfter(o))&&!f._.missing(o))&&i===o.getPinned();r++){;}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();if(e.template)return e.template;if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));return t||"";}return 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,r=e&&e.forceRefresh,n=this.value;this.getValueAndFormat();var s=!this.valuesAreEqual(n,this.value);if(r||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=n({},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(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(i||r||this.autoHeightCell)&&(e=!1);var n=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===t.CELL_RENDERER_TYPE_NORMAL,l=function l(){var e;(e=a?o.beans.userComponentFactory.newCellRenderer(o.getComponentHolder(),n):o.beans.userComponentFactory.newPinnedRowCellRenderer(o.getComponentHolder(),n))&&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 setValue(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 addRenderedRowListener(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(),r=t&&o&&!i;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r);},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),r=this.createCellEditorParams(e,t,o);this.createCellEditor(r).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,r=e.metaKey,n=e.shiftKey,s=e.target,a=this.beans,p=a.eventService,u=a.rangeController;if(u&&u.isCellInAnyRange(this.getCellPosition())&&2===o)return;if(f._.isBrowserIE()&&s.classList.contains("ag-cell")&&(t=!0),!n||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(n)u.extendLatestRangeToCell(c);else{var d=i||r;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(),r=!1,n=!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||(n=!0);for(var c=0;c<u.length&&!(r&&n&&s&&a);c++){var d=u[c],h=p.getRangeStartRow(d),f=p.getRangeEndRow(d);!r&&this.beans.rowPositionUtils.sameRow(h,this.cellPosition)&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(f,this.cellPosition)&&(s=!0),!a&&d.columns.indexOf(e)<0&&(a=!0),!n&&d.columns.indexOf(t)<0&&(n=!0);}return{top:r,right:n,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,r=i.getCellRangeCount(t),n=this.getGui();o!==r&&(f._.addOrRemoveCssClass(n,"ag-cell-range-selected",0!==r),f._.addOrRemoveCssClass(n,"ag-cell-range-selected-1",1===r),f._.addOrRemoveCssClass(n,"ag-cell-range-selected-2",2===r),f._.addOrRemoveCssClass(n,"ag-cell-range-selected-3",3===r),f._.addOrRemoveCssClass(n,"ag-cell-range-selected-4",r>=4),this.rangeCount=r);var s=this.rangeCount&&i.getCellRanges().every(function(e){return f._.exists(e.type);});this.hasChartRange!==s&&(f._.addOrRemoveCssClass(n,"ag-cell-range-chart",s),this.hasChartRange=s),this.updateRangeBorders();var a=1===this.rangeCount&&!i.isMoreThanOneCell();f._.addOrRemoveCssClass(n,"ag-cell-range-single-cell",a),this.refreshHandle(),f._.addOrRemoveCssClass(n,"ag-cell-range-handle",!!this.selectionHandle);}},t.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,o=e.rangeController,i=this.getGui(),r=o.getCellRanges(),n=r.length;if(!n)return!1;var s=f._.last(r),a=r[0].type===c.CellRangeType.DIMENSION,l=(t.isEnableFillHandle()||t.isEnableRangeHandle()||this.hasChartRange&&!a)&&1===n;if(!l&&this.hasChartRange){var p=this.getCellPosition();l=a&&2===n&&o.isCellInSpecificRange(this.getCellPosition(),s);var u=a&&o.isCellInSpecificRange(p,r[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,r=f._.last(i.getCellRanges()).type,n=t.isEnableFillHandle()&&f._.missing(r)?"fill":"range";this.selectionHandle&&this.selectionHandle.getType()!==n&&(this.selectionHandle.destroy(),this.selectionHandle=void 0),this.selectionHandle||(this.selectionHandle=o.createComponentFromElement(document.createElement("ag-"+n+"-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,r=!t&&e.bottom,n=!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",r),f._.addOrRemoveCssClass(s,"ag-cell-range-left",n);},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);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&f._.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t);if(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);if(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 r=this.createEvent(null,l.Events.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(r);}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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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],r=0;if(p[e]||(p[e]={}),p[e][t])return p[e][t];if(l[t]){var n=l[t],u=document.createElement("div"),c=n.reduce(function(t,o,i){0===i&&s._.addCssClass(t,e);var r=document.createElement("div");return s._.addCssClass(r,o),t.appendChild(r),r;},u);document.body&&(document.body.appendChild(u),r=parseInt(window.getComputedStyle(c).height,10),document.body.removeChild(u));}return p[e][t]=r||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 r=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 "+r+".");},"using-old-theme");}return{theme:i,el:o};},i([n.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),e=i([n.Bean("environment")],e);}();t.Environment=u;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),r=o(2),n=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 r=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",n,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push(function(){o.eElement.removeEventListener("touchstart",r,{passive:!0}),o.eElement.removeEventListener("touchmove",n,{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 r=o.touchStart===i;if(o.touching&&r&&!o.moved){o.moved=!0;var n={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(n);}},500);}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!r._.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=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),s=o(3),a=o(25),l=function(){function e(){}return e.prototype.formatValue=function(e,t,o,i){var r,n=e.getColDef(),s=null;if(r=t&&t.rowPinned&&n.pinnedRowValueFormatter?n.pinnedRowValueFormatter:n.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(r,a);}else if(n.refData)return n.refData[i]||"";return null==s&&Array.isArray(i)&&(s=i.join(", ")),s;},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("expressionService"),r("design:type",a.ExpressionService)],e.prototype,"expressionService",void 0),e=i([n.Bean("valueFormatterService")],e);}();t.ValueFormatterService=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=o[i][t.GRID_DOM_KEY];if(l._.exists(r))return r===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"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=t=i([n.Bean("mouseEventService")],e);}();t.MouseEventService=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i13,r=this&&this.__extends||(_i13=function i(e,t){return(_i13=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;}_i13(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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;},n([l.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("gridApi"),s("design:type",d.GridApi)],t.prototype,"gridApi",void 0),t=n([l.Bean("columnHoverService")],t);}(u.BeanStub);t.ColumnHoverService=h;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i14,r=this&&this.__extends||(_i14=function i(e,t){return(_i14=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;}_i14(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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;},n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eWrapper"),s("design:type",HTMLElement)],t.prototype,"eWrapper",void 0),n([a.RefSelector("eInput"),s("design:type",Object)],t.prototype,"eInput",void 0),t;}(l.AgAbstractField);t.AgAbstractInputField=u;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("eventService"),r("design:type",s.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("scrollVisibleService")],e);}();t.ScrollVisibleService=d;},function(e,t,o){"use strict";var _i15,r=this&&this.__extends||(_i15=function i(e,t){return(_i15=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;}_i15(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(),r=this.getSelectedValueCols();this.grouping=this.isGrouping();var n={aggFunc:this.aggFunc,dimensionCols:[i],grouping:this.grouping,pivoting:this.isPivotActive(),multiCategories:this.isMultiCategoryChart(),valueCols:r,startRow:t,endRow:o},s=this.datasource.getData(n);this.chartData=s.data,this.columnNames=s.columnNames;},t.prototype.resetColumnState=function(){var e=this,o=this.getAllChartColumns(),i=o.dimensionCols,r=o.valueCols,n=this.pivotChart?this.columnController.getAllDisplayedColumns():this.getAllColumnsFromRanges();this.valueColState=r.map(function(t){return{column:t,colId:t.getColId(),displayName:e.getColDisplayName(t),selected:n.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 n.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(_t3){return _t3.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,r=o.valueCols,n=a._.last(this.cellRanges);if(n&&(this.referenceCellRange=n,e)){var s=n.columns[0]===e.column;this.referenceCellRange.startColumn=s?n.columns[1]:n.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=r.filter(function(e){return l.indexOf(e)>-1;});e&&r.indexOf(e.column)>-1&&(e.selected?(c.push(e.column),c=this.getColumnInDisplayOrder(r,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 toString(){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(),r=this.getSelectedDimension().colId,n=i.map(function(e){return e.getColId();}).some(function(e){return e===r;});return o&&n;},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 r=t.getColDef(),n=r.chartDataType;if(n){var s=!0;if("category"===n?o.push(t):"series"===n?i.push(t):"excluded"===n||(console.warn("ag-Grid: unexpected chartDataType value '"+n+"' supplied, instead use 'category', 'series' or 'excluded'"),s=!1),s)return;}"ag-Grid-AutoColumn"!==r.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",n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("rangeController"),s("design:type",p.RangeController)],t.prototype,"rangeController",void 0),n([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),n([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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(69),a=o(40),l=function(){function e(){}return e.prototype.execute=function(e){if(n._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))return null;var t=n._.missingOrEmpty(this.columnController.getValueColumns()),o=!this.gridOptionsWrapper.getGroupRowAggNodesFunc(),i=e.changedPath&&e.changedPath.isActive();if(!(t&&o&&i)){var r=this.createAggDetails(e);this.recursivelyCreateAggData(r);}},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())o.aggData&&o.setAggData(null);else{if(-1===o.level){var i=!t.columnController.isPivotMode();if(t.gridOptionsWrapper.isSuppressAggAtRootLevel()&&i)return;}t.aggregateRowNode(o,e);}},!0);},e.prototype.aggregateRowNode=function(e,t){var o,i=0===t.valueColumns.length,r=0===t.pivotColumns.length,n=this.gridOptionsWrapper.getGroupRowAggNodesFunc();o=n?n(e.childrenAfterFilter):i?null:r?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!n._.exists(e.pivotTotalColumnIds);}).forEach(function(i){var r,n=i.pivotKeys||[],s=i.pivotValueColumn,a=i.colId;r=e.leafGroup?t.getValuesFromMappedSet(e.childrenMapped,n,s):t.getValuesPivotNonLeaf(e,a),o[a]=t.aggregateValues(r,s.getAggFunc());}),i.filter(function(e){return n._.exists(e.pivotTotalColumnIds);}).forEach(function(e){var i=[],r=e.pivotValueColumn,n=e.pivotTotalColumnIds,s=e.colId;n&&n.length&&(n.forEach(function(e){i.push(o[e]);}),o[s]=t.aggregateValues(i,r.getAggFunc()));}),o;},e.prototype.aggregateRowNodeUsingValuesOnly=function(e,t){var o=this,i={},r=t.changedPath.isActive()?t.changedPath.getValueColumnsForNode(e,t.valueColumns):t.valueColumns,n=t.changedPath.isActive()?t.changedPath.getNotValueColumnsForNode(e,t.valueColumns):null,s=this.getValuesNormal(e,r),a=e.aggData;return r.forEach(function(e,t){i[e.getId()]=o.aggregateValues(s[t],e.getAggFunc());}),n&&a&&n.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,r=e;if(t.forEach(function(e){return r=r?r[e]:null;}),!r)return[];var n=[];return r.forEach(function(e){var t=i.valueService.getValue(o,e);n.push(t);}),n;},e.prototype.getValuesNormal=function(e,t){var o=[];t.forEach(function(){return o.push([]);});for(var i=t.length,r=e.childrenAfterFilter.length,n=0;n<r;n++){for(var s=e.childrenAfterFilter[n],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([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("valueService"),r("design:type",n.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("pivotStage"),r("design:type",s.PivotStage)],e.prototype,"pivotStage",void 0),i([n.Autowired("aggFuncService"),r("design:type",a.AggFuncService)],e.prototype,"aggFuncService",void 0),e=i([n.Bean("aggregationStage")],e);}();t.AggregationStage=l;},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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),r=this.columnController.getValueColumns(),n=r.map(function(e){return e.getId();}).join("#"),s=r.map(function(e){return e.getAggFunc().toString();}).join("#"),a=this.aggregationColumnsHashLastTime!==n,l=this.aggregationFuncsHashLastTime!==s;if(this.aggregationColumnsHashLastTime=n,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={},i=function i(e){e.leafGroup?t.bucketRowNode(e,o):e.childrenAfterFilter.forEach(function(e){i(e);});};return i(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 r=this,s={},a=t[o];if(e.forEach(function(e){var t=r.valueService.getKeyForNode(a,e);n._.missing(t)&&(t=""),i[t]||(i[t]={}),s[t]||(s[t]=[]),s[t].push(e);}),o===t.length-1)return s;var l={};return n._.iterateObject(s,function(e,n){l[e]=r.bucketChildren(n,t,o+1,i[e]);}),l;},e.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs;},i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("valueService"),r("design:type",n.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("pivotColDefService"),r("design:type",s.PivotColDefService)],e.prototype,"pivotColDefService",void 0),e=i([n.Bean("pivotStage")],e);}();t.PivotStage=a;},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){}return e.prototype.createPivotColumnDefs=function(e){var t=[],o=[],i=this.columnController.getPivotColumns(),r=this.columnController.getValueColumns(),s=i.length,a=new n.NumberSequence();return this.recursivelyAddGroup(t,o,1,e,[],a,s,i),this.addRowGroupTotals(t,o,r,i,a),this.addPivotTotalsToGroups(t,o,a),{pivotColumnGroupDefs:t,pivotColumnDefs:o.map(function(e){return n._.cloneObject(e);})};},e.prototype.recursivelyAddGroup=function(e,t,o,i,r,s,a,l){var p=this;n._.iterateObject(i,function(i,n){var u=r.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,n,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 r="after"===this.gridOptionsWrapper.getPivotColumnGroupTotals(),n=this.columnController.getValueColumns(),s=n.map(function(e){return e.getAggFunc();});if(s&&!(s.length<1)&&this.sameAggFuncs(s)){var a=n[0];e.forEach(function(e){i.recursivelyAddPivotTotal(e,t,o,a,r);});}}},e.prototype.recursivelyAddPivotTotal=function(e,t,o,i,r){var n=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=n.recursivelyAddPivotTotal(e,t,o,i,r);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;r?u.push(p):u.unshift(p),t.push(p);}return l;},e.prototype.addRowGroupTotals=function(e,t,o,i,r){var n=this;if(this.gridOptionsWrapper.getPivotRowTotals())for(var s="after"===this.gridOptionsWrapper.getPivotRowTotals(),a=s?o.slice():o.slice().reverse(),l=function l(o){var l=a[o],u=[];e.forEach(function(e){u=u.concat(n.extractColIdsForValueColumn(e,l));});var c=i.length;p.createRowGroupTotal(e,t,1,[],r,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 r=i;return r.pivotValueColumn===t&&r.colId?[r.colId]:[];}var n=[];return i.children.forEach(function(e){o.extractColIdsForValueColumn(e,t);var i=o.extractColIdsForValueColumn(e,t);n=n.concat(i);}),n;},e.prototype.createRowGroupTotal=function(e,t,o,i,r,n,s,a,l,p){var u=i.slice(0);if(o!==n){var c={children:[],pivotKeys:u,groupId:"pivot"+r.next()};p?e.push(c):e.unshift(c),this.createRowGroupTotal(c.children,t,o+1,u,r,n,s,a,l,p);}else{var d=this.columnController.getValueColumns(),h={children:[],pivotKeys:u,groupId:"pivot"+r.next()};if(0===d.length){var f=this.createColDef(null,"-",u,r);h.children.push(f),t.push(f);}else{var g=this.columnController.getDisplayNameForColumn(a,"header");(f=this.createColDef(a,g,u,r)).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 r={};if(e){var s=e.getColDef();n._.assign(r,s),r.hide=!1;}return r.headerName=t,r.colId="pivot_"+i.next(),r.field=r.colId,r.pivotKeys=o,r.pivotValueColumn=e,r.filter=!1,r;},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([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("pivotColDefService")],e);}();t.PivotColDefService=s;},function(e,t,o){"use strict";var _i16,r=this&&this.__extends||(_i16=function i(e,t){return(_i16=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;}_i16(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(_t4,o,i,r){var n=e.params.initialFont[_t4],s=i[0];if(n){var l=""+n,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),r&&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={})[_t4]=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>',n([a.RefSelector("labelsGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"labelsGroup",void 0),n([a.RefSelector("labelFontFamilySelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontFamilySelect",void 0),n([a.RefSelector("labelFontWeightSelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontWeightSelect",void 0),n([a.RefSelector("labelFontSizeSelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontSizeSelect",void 0),n([a.RefSelector("labelColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"labelColorPicker",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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),r=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,r,n,s){var a=this.xy;if(a){e<0&&(e=-e),t<0&&(t=-t);var l=a[0],p=a[1],u=(l-n)/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,v=g/t,m=y*y+v*v,C=(l+n)/2,w=(p+s)/2,_=0,b=0;m>=1?(e*=m=Math.sqrt(m),t*=m):(m=Math.sqrt(1/m-1),i===r&&(m=-m),C+=h*(_=m*e*v)-d*(b=-m*t*y),w+=d*_+h*b);var E=Math.atan2((g-b)/t,(f-_)/e),R=Math.atan2((-g-b)/t,(-f-_)/e)-E;this.cubicArc(C,w,e,t,o,E,E+R,1-r);}},e.prototype.arcToAlt=function(e,t,o,i,r,n,s){if(this.xy){e<0&&(e=-e),t<0&&(t=-t);var a=this.xy[0],l=this.xy[1],p=(a-n)/2,u=(l-s)/2,c=Math.sin(o),d=Math.cos(o),h=d*p+c*u,f=-c*p+d*u,g=e*e*f*f,y=t*t*h*h,v=Math.sqrt((e*e*t*t-g-y)/(g+y)),m=i===r?0:1,C=m*v*e*f/t;Math.acos((h-C)/e/((h-C)/e));}},e.cubicArc=function(e,t,o,i,r,n,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),v=Math.PI/2,m=y*f*r-g*h*n,C=g*f*r+y*h*n,w=-y*h*r-g*f*n,_=-g*h*r+y*f*n;for((l-=a)<0&&(l+=2*Math.PI),e.push("M"),t.push(m+o,C+i);l>=v;){l-=v,e.push("C");var b=w+o;t.push(m+w*d+o,C+_*d+i,m*d+w+o,C*d+_+i,Math.abs(b)<1e-8?0:b,_+i);u=m;m=w,w=-u,u=C,C=_,_=-u;}if(l){var E=4/3*Math.tan(l/4),R=Math.sin(l),P=Math.cos(l),O=P+E*R,S=R-E*P;e.push("C");b=m*P+w*R+o;t.push(m+w*E+o,C+_*E+i,m*O+w*S+o,C*O+_*S+i,Math.abs(b)<1e-8?0:b,C*P+_*R+i);}if(p)for(var A=c,T=t.length-2;A<T;A+=2,T-=2){u=t[A];t[A]=t[T],t[T]=u,u=t[A+1],t[A+1]=t[T+1],t[T+1]=u;}},e.prototype.cubicArc=function(t,o,i,r,n,s,a,l){var p=this.commands,u=this.params,c=p.length;e.cubicArc(p,u,t,o,i,r,n,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=[],r=o-2,n=0;n<r;n+=2){i.push((1-t)*e[n]+t*e[n+2],(1-t)*e[n+1]+t*e[n+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,r=i;r<=1;r+=i){var n=this.deCasteljau(e,r);this.lineTo(n[0],n[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,r,n){this.xy||this.moveTo(e,t),this.commands.push("C"),this.params.push(e,t,o,i,r,n),this.xy[0]=r,this.xy[1]=n;},Object.defineProperty(e.prototype,"closedPath",{get:function get(){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,r=this.params,n=o.length,s=NaN,a=NaN,l=0,p=0,u=0,c=0,d=0;c<n;c++){switch(o[c]){case"M":isNaN(s)||i.segmentIntersection(s,a,l,p,-1e4,-1e4,e,t)&&u++,s=l=r[d++],a=p=r[d++];break;case"L":i.segmentIntersection(l,p,l=r[d++],p=r[d++],-1e4,-1e4,e,t)&&u++;break;case"C":u+=i.cubicSegmentIntersections(l,p,r[d++],r[d++],r[d++],r[d++],l=r[d++],p=r[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,r,n,s,a=this;function l(){s.match(e.quadraticCommandRe)||(r=o,n=i);}function p(){s.match(e.cubicCommandRe)||(r=o,n=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++],r=t[c++],n=t[c++],o=t[c++],i=t[c++]);}break;case"c":for(;c<u;){a.cubicCurveTo(o+t[c++],i+t[c++],r=o+t[c++],n=i+t[c++],o+=t[c++],i+=t[c++]);}break;case"S":for(p();c<u;){a.cubicCurveTo(o+o-r,i+i-n,r=t[c++],n=t[c++],o=t[c++],i=t[c++]);}break;case"s":for(p();c<u;){a.cubicCurveTo(o+o-r,i+i-n,r=o+t[c++],n=i+t[c++],o+=t[c++],i+=t[c++]);}break;case"Q":for(;c<u;){a.quadraticCurveTo(r=t[c++],n=t[c++],o=t[c++],i=t[c++]);}break;case"q":for(;c<u;){a.quadraticCurveTo(r=o+t[c++],n=i+t[c++],o+=t[c++],i+=t[c++]);}break;case"T":for(l();c<u;){a.quadraticCurveTo(r=o+o-r,n=i+i-n,o=t[c++],i=t[c++]);}break;case"t":for(l();c<u;){a.quadraticCurveTo(r=o+o-r,n=i+i-n,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=[],r=0,n=0;r<o;r++){switch(e[r]){case"M":i.push("M"+t[n++]+","+t[n++]);break;case"L":i.push("L"+t[n++]+","+t[n++]);break;case"C":i.push("C"+t[n++]+","+t[n++]+" "+t[n++]+","+t[n++]+" "+t[n++]+","+t[n++]);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,r,n=[],s=this.params,a=0;return this.commands.forEach(function(l){switch(l){case"M":e=[t=i=s[a++],o=r=s[a++]],n.push(e);break;case"L":var p=s[a++],u=s[a++];e.push((i+i+p)/3,(r+r+u)/3,(i+p+p)/3,(r+u+u)/3,i=p,r=u);break;case"C":e.push(s[a++],s[a++],s[a++],s[a++],i=s[a++],r=s[a++]);break;case"Z":e.push((i+i+t)/3,(r+r+o)/3,(i+t+t)/3,(r+o+o)/3,i=t,r=o);}}),n;},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=r;},function(e,t,o){"use strict";var _i17,r=this&&this.__extends||(_i17=function i(e,t){return(_i17=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;}_i17(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n,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";}(n=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=n.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 r(t,e),t.create=function(e,o,i,r,n,s,a){void 0===r&&(r=i),void 0===n&&(n=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=r,l.startAngle=n,l.endAngle=s,l.counterClockwise=a,l;},Object.defineProperty(t.prototype,"dirtyPath",{get:function get(){return this._dirtyPath;},set:function set(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0));},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerX",{get:function get(){return this._centerX;},set:function set(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function get(){return this._centerY;},set:function set(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusX",{get:function get(){return this._radiusX;},set:function set(e){this._radiusX!==e&&(this._radiusX=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusY",{get:function get(){return this._radiusY;},set:function set(e){this._radiusY!==e&&(this._radiusY=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function get(){return this._startAngle;},set:function set(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function get(){return this._endAngle;},set:function set(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPie",{get:function get(){return c.isEqual(p.normalizeAngle360(this.startAngle),p.normalizeAngle360(this.endAngle));},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"counterClockwise",{get:function get(){return this._counterClockwise;},set:function set(e){this._counterClockwise!==e&&(this._counterClockwise=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function get(){return this._type;},set:function set(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===n.Chord?e.closePath():this.type!==n.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!==n.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),r=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 get(){return this._data;},set:function set(e){this._data=e,this.scheduleData();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function get(){return this._visible;},set:function set(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 get(){return this._showInLegend;},set:function set(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=r;},function(e,t,o){"use strict";var _i18,r=this&&this.__extends||(_i18=function i(e,t){return(_i18=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;}_i18(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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",n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("tooltipManager"),s("design:type",a.TooltipManager)],t.prototype,"tooltipManager",void 0),n([a.RefSelector("eIcon"),s("design:type",HTMLElement)],t.prototype,"eIcon",void 0),n([a.RefSelector("eName"),s("design:type",HTMLElement)],t.prototype,"eName",void 0),n([a.RefSelector("eShortcut"),s("design:type",HTMLElement)],t.prototype,"eShortcut",void 0),n([a.RefSelector("ePopupPointer"),s("design:type",HTMLElement)],t.prototype,"ePopupPointer",void 0),n([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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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()===n.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(!n._.missingOrEmpty(o)){var i=e.dataToArray(o),r=e.gridOptionsWrapper.getProcessDataFromClipboardFunc();if(r&&(i=r({data:i})),!n._.missingOrEmpty(i)){e.eventService.dispatchEvent({type:n.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:n.Events.EVENT_PASTE_END,api:e.gridOptionsWrapper.getApi(),columnApi:e.gridOptionsWrapper.getColumnApi(),source:"clipboard"});}}});},e.prototype.pasteIntoActiveRange=function(e){var t=this,o={},i=[],r=this.focusedCellController.getFocusedCell(),s=this.rangeSize()%e.length!=0,a=0,l=0;this.iterateActiveRanges(!1,function(r,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,n.Constants.EXPORT_TYPE_DRAG_COPY),t.valueService.setValue(p,e,s);var l={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:e},u=t.cellPositionUtils.createId(l);o[u]=!0;}}),l++;}),this.rowRenderer.refreshCells({rowNodes:i,columns:[]}),this.dispatchFlashCells(o),r&&this.focusedCellController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.fireRowChanged(i);},e.prototype.pasteStartingFromFocusedCell=function(e){var t=this.focusedCellController.getFocusedCell();if(t){this.pasteOperationActive=!0;var o=n._.last(e);o&&1===o.length&&""===o[0]&&n._.removeFromArray(e,o);var i,r={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 n.ChangedPath(c,this.clientSideRowModel.getRootNode());}u?this.pasteSingleValue(e,a,s,l,i):this.pasteMultipleValues(e,r,a,p,s,l,n.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:n.Events.EVENT_PASTE_START,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),source:"rangeDown"});var t={},o=[],i=[],r=[];this.iterateActiveRanges(!0,function(s,a,l,p,u){o.length?(i.push(a),l.forEach(function(i,r){if(i.isCellEditable(a)){var l=o[r],p=e.gridOptionsWrapper.getProcessCellFromClipboardFunc();l=e.userProcessCell(a,i,l,p,n.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,n.Constants.EXPORT_TYPE_DRAG_COPY),o.push(i),r.push(t.getId());});}),this.rowRenderer.refreshCells({rowNodes:i,columns:r}),this.dispatchFlashCells(t),this.fireRowChanged(i),this.eventService.dispatchEvent({type:n.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:n.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,r,n,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,r,n,s,a);}),t=l.cellNavigationService.getRowBelow({rowPinned:t.rowPinned,rowIndex:t.rowIndex}));}}),t;},e.prototype.pasteSingleValue=function(e,t,o,i,r){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,n.Constants.EXPORT_TYPE_CLIPBOARD,r);});});},e.prototype.updateCellValue=function(e,t,o,i,r,n,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};r[this.cellPositionUtils.createId(p)]=!0,n.indexOf(t.getId())<0&&n.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 r=this.rangeController.getCellRanges();if(e){var n=r[0];this.iterateActiveRange(n,t,o,!0);}else r.forEach(function(e,n){return i.iterateActiveRange(e,t,o,n===r.length-1);});}},e.prototype.iterateActiveRange=function(e,t,o,i){var r=this.rangeController.getRangeStartRow(e),s=this.rangeController.getRangeEndRow(e);o&&n._.exists(o)&&e.columns&&o(e.columns);for(var a=0,l=!1;!l&&!n._.missing(r)&&r;){var p=this.rowPositionUtils.getRowNode(r);l=r.rowIndex===s.rowIndex&&r.rowIndex===s.rowIndex,t(r,p,e.columns,a++,l&&i),r=this.cellNavigationService.getRowBelow(r);}},e.prototype.copySelectedRangeToClipboard=function(e){var t=this;if(void 0===e&&(e=!1),!this.rangeController.isEmpty()){var o=this.gridOptionsWrapper.getClipboardDeliminator(),i="",r={};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(),n.Constants.EXPORT_TYPE_CLIPBOARD);0!=l&&(i+=o),n._.exists(u)&&(i+=u);var c={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:a},d=t.cellPositionUtils.createId(c);r[d]=!0;}),p||(i+="\r\n");},function(r){e&&(r.forEach(function(e,r){var s=t.columnController.getDisplayNameForColumn(e,"clipboard",!0),a=t.userProcessHeader(e,s,t.gridOptionsWrapper.getProcessHeaderForClipboardFunc());0!=r&&(i+=o),n._.exists(a)&&(i+=a);}),i+="\r\n");}),this.copyDataToClipboard(i),this.dispatchFlashCells(r);}},e.prototype.copyFocusedCellToClipboard=function(e){var t;void 0===e&&(e=!1);var o=this.focusedCellController.getFocusedCell();if(!n._.missing(o)){var i=this.cellPositionUtils.createId(o),r={rowPinned:o.rowPinned,rowIndex:o.rowIndex},s=this.rowPositionUtils.getRowNode(r),a=o.column,l=this.valueService.getValue(a,s),p=this.userProcessCell(s,a,l,this.gridOptionsWrapper.getProcessCellForClipboardFunc(),n.Constants.EXPORT_TYPE_CLIPBOARD);n._.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:n.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,r){return i?i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):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&&n._.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"),r=[[]],s=!0;t=i.exec(e);){var a=t[1];(s&&a||!t.index&&t[0].charAt(0)===o)&&r[0].push(""),a.length&&a!==o&&r.push([]);var l=void 0;l=t[2]?t[2].replace(new RegExp('""',"g"),'"'):t[3];var p=n._.last(r);p&&p.push(l),s=!1;}return r;},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([n.Autowired("csvCreator"),r("design:type",n.CsvCreator)],e.prototype,"csvCreator",void 0),i([n.Autowired("loggerFactory"),r("design:type",n.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([n.Autowired("selectionController"),r("design:type",n.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("rangeController"),r("design:type",s.RangeController)],e.prototype,"rangeController",void 0),i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("valueService"),r("design:type",n.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("focusedCellController"),r("design:type",n.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([n.Autowired("rowRenderer"),r("design:type",n.RowRenderer)],e.prototype,"rowRenderer",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("cellNavigationService"),r("design:type",n.CellNavigationService)],e.prototype,"cellNavigationService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnApi"),r("design:type",n.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",n.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("cellPositionUtils"),r("design:type",n.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([n.Autowired("rowPositionUtils"),r("design:type",n.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("clipboardService")],e);}();t.ClipboardService=a;},function(e,t,o){"use strict";var _i19,r=this&&this.__extends||(_i19=function i(e,t){return(_i19=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;}_i19(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=this.getGui().scrollTop,n=this.getGui().offsetHeight,s=r+n<i;if(r>o)this.getGui().scrollTop=o;else if(s){var a=i-n;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 r=this.model.getRow(i);this.insertRow(r,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>',n([a.Autowired("environment"),s("design:type",a.Environment)],t.prototype,"environment",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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],r=e[2],n=e[3];o=this.ff(o,i,r,n,t[0],7,-680876936),n=this.ff(n,o,i,r,t[1],12,-389564586),r=this.ff(r,n,o,i,t[2],17,606105819),i=this.ff(i,r,n,o,t[3],22,-1044525330),o=this.ff(o,i,r,n,t[4],7,-176418897),n=this.ff(n,o,i,r,t[5],12,1200080426),r=this.ff(r,n,o,i,t[6],17,-1473231341),i=this.ff(i,r,n,o,t[7],22,-45705983),o=this.ff(o,i,r,n,t[8],7,1770035416),n=this.ff(n,o,i,r,t[9],12,-1958414417),r=this.ff(r,n,o,i,t[10],17,-42063),i=this.ff(i,r,n,o,t[11],22,-1990404162),o=this.ff(o,i,r,n,t[12],7,1804603682),n=this.ff(n,o,i,r,t[13],12,-40341101),r=this.ff(r,n,o,i,t[14],17,-1502002290),i=this.ff(i,r,n,o,t[15],22,1236535329),o=this.gg(o,i,r,n,t[1],5,-165796510),n=this.gg(n,o,i,r,t[6],9,-1069501632),r=this.gg(r,n,o,i,t[11],14,643717713),i=this.gg(i,r,n,o,t[0],20,-373897302),o=this.gg(o,i,r,n,t[5],5,-701558691),n=this.gg(n,o,i,r,t[10],9,38016083),r=this.gg(r,n,o,i,t[15],14,-660478335),i=this.gg(i,r,n,o,t[4],20,-405537848),o=this.gg(o,i,r,n,t[9],5,568446438),n=this.gg(n,o,i,r,t[14],9,-1019803690),r=this.gg(r,n,o,i,t[3],14,-187363961),i=this.gg(i,r,n,o,t[8],20,1163531501),o=this.gg(o,i,r,n,t[13],5,-1444681467),n=this.gg(n,o,i,r,t[2],9,-51403784),r=this.gg(r,n,o,i,t[7],14,1735328473),i=this.gg(i,r,n,o,t[12],20,-1926607734),o=this.hh(o,i,r,n,t[5],4,-378558),n=this.hh(n,o,i,r,t[8],11,-2022574463),r=this.hh(r,n,o,i,t[11],16,1839030562),i=this.hh(i,r,n,o,t[14],23,-35309556),o=this.hh(o,i,r,n,t[1],4,-1530992060),n=this.hh(n,o,i,r,t[4],11,1272893353),r=this.hh(r,n,o,i,t[7],16,-155497632),i=this.hh(i,r,n,o,t[10],23,-1094730640),o=this.hh(o,i,r,n,t[13],4,681279174),n=this.hh(n,o,i,r,t[0],11,-358537222),r=this.hh(r,n,o,i,t[3],16,-722521979),i=this.hh(i,r,n,o,t[6],23,76029189),o=this.hh(o,i,r,n,t[9],4,-640364487),n=this.hh(n,o,i,r,t[12],11,-421815835),r=this.hh(r,n,o,i,t[15],16,530742520),i=this.hh(i,r,n,o,t[2],23,-995338651),o=this.ii(o,i,r,n,t[0],6,-198630844),n=this.ii(n,o,i,r,t[7],10,1126891415),r=this.ii(r,n,o,i,t[14],15,-1416354905),i=this.ii(i,r,n,o,t[5],21,-57434055),o=this.ii(o,i,r,n,t[12],6,1700485571),n=this.ii(n,o,i,r,t[3],10,-1894986606),r=this.ii(r,n,o,i,t[10],15,-1051523),i=this.ii(i,r,n,o,t[1],21,-2054922799),o=this.ii(o,i,r,n,t[8],6,1873313359),n=this.ii(n,o,i,r,t[15],10,-30611744),r=this.ii(r,n,o,i,t[6],15,-1560198380),i=this.ii(i,r,n,o,t[13],21,1309151649),o=this.ii(o,i,r,n,t[4],6,-145523070),n=this.ii(n,o,i,r,t[11],10,-1120210379),r=this.ii(r,n,o,i,t[2],15,718787259),i=this.ii(i,r,n,o,t[9],21,-343485551),e[0]=this.add32(o,e[0]),e[1]=this.add32(i,e[1]),e[2]=this.add32(r,e[2]),e[3]=this.add32(n,e[3]);},e.prototype.cmn=function(e,t,o,i,r,n){return t=this.add32(this.add32(t,e),this.add32(i,n)),this.add32(t<<r|t>>>32-r,o);},e.prototype.ff=function(e,t,o,i,r,n,s){return this.cmn(t&o|~t&i,e,t,r,n,s);},e.prototype.gg=function(e,t,o,i,r,n,s){return this.cmn(t&i|o&~i,e,t,r,n,s);},e.prototype.hh=function(e,t,o,i,r,n,s){return this.cmn(t^o^i,e,t,r,n,s);},e.prototype.ii=function(e,t,o,i,r,n,s){return this.cmn(o^(t|~i),e,t,r,n,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 r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++){r[t>>2]|=e.charCodeAt(t)<<(t%4<<3);}if(r[t>>2]|=128<<(t%4<<3),t>55)for(this.md5cycle(i,r),t=0;t<16;t++){r[t]=0;}return r[14]=8*o,this.md5cycle(i,r),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([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("md5")],e);}();t.MD5=s;},function(e,t,o){"use strict";var _i20,r=this&&this.__extends||(_i20=function i(e,t){return(_i20=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;}_i20(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(173),a=function(e){function t(o,i,r){var s=e.call(this,'<div class="ag-column-drop ag-unselectable ag-column-drop-'+(o?"horizontal":"vertical")+" ag-column-drop-"+r+'"></div>')||this;return s.state=t.STATE_NOT_DRAGGING,s.guiDestroyFunctions=[],s.childColumnComponents=[],s.horizontal=o,s.valueColumn=i,s.eColumnDropList=n._.loadTemplate('<div class="ag-column-drop-list"></div>'),s;}return r(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,n._.clearElement(this.getGui()),n._.clearElement(this.eColumnDropList);},t.prototype.init=function(e){this.params=e,this.logger=this.beans.loggerFactory.create("AbstractColumnDropPanel"),this.beans.eventService.addEventListener(n.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===n.DragSourceType.HeaderCell||e===n.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(n._.missing(e.hDirection))return-1;var t=0,o=e.event,i=this.beans.gridOptionsWrapper.isEnableRtl(),r=e.hDirection===n.HDirection.Left,s=o.clientX;return this.childColumnComponents.forEach(function(e){var o=e.getGui().getBoundingClientRect(),n=r?o.right:o.left;(i?s<=n:s>=n)&&t++;}),t;},t.prototype.getNewVerticalInsertIndex=function(e){if(n._.missing(e.vDirection))return-1;var t=0,o=e.event;return this.childColumnComponents.forEach(function(i){var r=i.getGui().getBoundingClientRect();e.vDirection===n.VDirection.Down?o.clientY>=r.top&&t++:o.clientY>=r.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=n._.filter(o,this.isColumnDroppable.bind(this));i.length>0&&(this.potentialDndColumns=i,this.checkInsertIndex(e),this.refreshGui());},t.prototype.isPotentialDndColumns=function(){return n._.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 n._.removeFromArray(t,e);}),this.updateColumns(t);},t.prototype.addColumns=function(e){var t=this.getExistingColumns().slice();n._.insertArrayIntoArray(t,e,this.insertIndex),this.updateColumns(t);},t.prototype.rearrangeColumns=function(e){var t=this.getNonGhostColumns().slice();return n._.insertArrayIntoArray(t,e,this.insertIndex),!n._.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()?n._.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,r){if(!(i&&r>=e.insertIndex)){var n=e.createColumnComponent(t,!1);o.push(n);}}),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 r=e.createColumnComponent(t,!1);o.push(r);}})),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(n._.addCssClass(t,"ag-column-drop-icon"),n._.addOrRemoveCssClass(t,"ag-faded",e),o.appendChild(t),!this.horizontal){var i=document.createElement("span");i.innerHTML=this.params.title,n._.addCssClass(i,"ag-column-drop-title"),n._.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,n._.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(n._.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;}(n.Component);t.BaseDropZonePanel=a;},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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),v=o(354),m=function(){function e(){}return e.prototype.createExcel=function(e,t,o){var i=this.excelXmlHeader(),r=u["default"].getTemplate(),n=l["default"].getTemplate(),s=this.workbook(r,n,e,t);return""+i+this.xmlFactory.createXml(s,function(e){return e?"1":"0";});},e.prototype.workbook=function(e,t,o,i){var r=[e,t,this.stylesXmlElement(o)].concat(n._.map(i,function(e){return p["default"].getTemplate(e);}));return n._.assign({},a["default"].getTemplate(),{children:r});},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?n._.map(e,function(e){return t.styleXmlElement(e);}):[]};},e.prototype.styleXmlElement=function(e){var t=n._.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 n._.assign({},v["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"),r("design:type",n.XmlFactory)],e.prototype,"xmlFactory",void 0),e=i([s.Bean("excelXmlFactory")],e);}();t.ExcelXmlFactory=m;},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("xmlFactory"),r("design:type",n.XmlFactory)],e.prototype,"xmlFactory",void 0),e=i([n.Bean("excelXlsxFactory")],e);}();t.ExcelXlsxFactory=f;},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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];},e=i([n.Bean("statusBarService"),r("design:paramtypes",[])],e);}();t.StatusBarService=s;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r=e.processCellCallback,n=e.processHeaderCallback,s=e.cellAndHeaderEscaper;this.columnController=t,this.valueService=o,this.gridOptionsWrapper=i,this.processCellCallback=r,this.processHeaderCallback=n,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 r,n=this.columnController.getRowGroupColumns().length>0;return r=i&&i.group&&n&&0===t?this.createValueForGroupNode(i):this.valueService.getValue(e,i),null==(r=this.processCell(i,e,r,this.processCellCallback,o))&&(r=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(r):r;},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,r){return i?i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):o;},e;}();t.BaseGridSerializingSession=y;var v=function(){function e(){}return e.prototype.serialize=function(e,t){var o=t&&t.skipGroups,i=t&&t.skipHeader,r=t&&t.columnGroups,n=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,v=t&&t.shouldRowBeSkipped||function(){return!1;},m=this.gridOptionsWrapper.getApi(),C=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),w=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),_=this.gridOptionsWrapper.getContext(),b=this.columnController.isPivotMode(),E=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,R=!E&&h,P=[];if(P=g._.existsAndNotEmpty(f)?this.columnController.getGridColumns(f):c&&!b?(P=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(P),r){var O=new d.GroupInstanceIdCreator(),S=this.displayedGroupCreator.createDisplayedGroups(P,this.columnController.getGridBalancedTree(),O,null);this.recursivelyAddHeaderGroups(S,e);}if(!i){var A=e.onNewHeaderRow();P.forEach(function(e,t){A.onColumn(e,t,void 0);});}(this.pinnedRowModel.forEachPinnedTopRow(T),b)?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(T):this.rowModel.forEachNode(T):y||R?this.selectionController.getSelectedNodes().forEach(function(e){T(e);}):E?this.rowModel.forEachNodeAfterFilterAndSort(T):this.rowModel.forEachNode(T);function T(t){var i=w&&t.leafGroup,r=1===t.allChildrenCount&&(C||i);if((!t.group||!o&&!r)&&(!n||!t.footer)&&(!h||t.isSelected())&&(!s||"top"!==t.rowPinned)&&(!l||"bottom"!==t.rowPinned)&&(!(-1===t.level)||t.leafGroup)&&!v({node:t,api:m,context:_})){var a=e.onNewBodyRow();P.forEach(function(e,o){a.onColumn(e,o,t);});}}return this.pinnedRowModel.forEachPinnedBottomRow(T),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(),r=0;t.forEach(function(e){var t=e,n=o.columnController.getDisplayNameForColumnGroup(t,"header");i.onColumn(n||"",r++,t.getLeafColumns().length-1);});},i([n.Autowired("displayedGroupCreator"),r("design:type",u.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([n.Autowired("columnController"),r("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("pinnedRowModel"),r("design:type",f.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([n.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("columnFactory"),r("design:type",c.ColumnFactory)],e.prototype,"columnFactory",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("gridSerializer")],e);}();t.GridSerializer=v,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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r){var n,s,a=this,l=[],p=this.mapOldGroupsById(r);return e.forEach(function(e){for(var r=a.getOriginalPathForColumn(t,e),c=[],d=!s,h=0;h<r.length;h++){if(d||r[h]!==s[h]){var f=a.createColumnGroup(r[h],o,p,i);c[h]=f,0==h?l.push(f):c[h-1].addChild(f);}else c[h]=n[h];}0===c.length?l.push(e):u._.last(c).addChild(e);n=c,s=r;}),this.setupParentsIntoColumns(l,null),l;},e.prototype.createColumnGroup=function(e,t,o,i){var r=e.getGroupId(),n=t.getInstanceIdForKey(r),s=o[a.ColumnGroup.createUniqueId(r,n)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),u._.exists(s)?s.reset():(s=new a.ColumnGroup(e,r,n,i),this.context.wireBean(s)),s;},e.prototype.mapOldGroupsById=function(e){var t={},o=function o(e){e.forEach(function(e){if(e instanceof a.ColumnGroup){var i=e;t[e.getUniqueId()]=i,o(i.getChildren());}});};return e&&o(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(r,n){for(var s=0;s<r.length;s++){if(i)return;var a=r[s];if(a instanceof l.OriginalColumnGroup)e(a.getChildren(),n+1),o[n]=a;else a===t&&(i=!0);}}(e,0),i?o:(console.warn("could not get path"),null);},i([n.Autowired("columnUtils"),r("design:type",s.ColumnUtils)],e.prototype,"columnUtils",void 0),i([n.Autowired("context"),r("design:type",p.Context)],e.prototype,"context",void 0),e=i([p.Bean("displayedGroupCreator")],e);}();t.DisplayedGroupCreator=c;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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 r=e.childrenAfterGroup[i];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[i],t,o):o&&t(r);}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 r=this.mapToItems[o.id],n=this.mapToItems[o.parent.id];n.children||(n.children=[]),n.children.push(r),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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("columnAnimationService")],e);}();t.ColumnAnimationService=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("expressionService"),r("design:type",l.ExpressionService)],e.prototype,"expressionService",void 0),i([n.Autowired("eventService"),r("design:type",a.EventService)],e.prototype,"eventService",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=t=i([n.Bean("cellRendererFactory")],e);}();t.CellRendererFactory=h;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i21,r=this&&this.__extends||(_i21=function i(e,t){return(_i21=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;}_i21(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(),r=[d.Constants.ROW_MODEL_TYPE_SERVER_SIDE,d.Constants.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=r.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 n=this.applyActive||this.clearActive;c._.setDisplayed(this.eButtonsPanel,n);},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",n([l.RefSelector("eButtonsPanel"),s("design:type",HTMLElement)],t.prototype,"eButtonsPanel",void 0),n([l.RefSelector("eFilterBodyWrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterBodyWrapper",void 0),n([l.RefSelector("eApplyButton"),s("design:type",HTMLElement)],t.prototype,"eApplyButton",void 0),n([l.RefSelector("eClearButton"),s("design:type",HTMLElement)],t.prototype,"eClearButton",void 0),n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i22,r=this&&this.__extends||(_i22=function i(e,t){return(_i22=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;}_i22(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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;},n([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([l.Bean("maxDivHeightScaler")],t);}(a.BeanStub);t.MaxDivHeightScaler=h;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 n.Constants.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case n.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 n.Constants.PINNED_TOP:if(t.rowPinned!==n.Constants.PINNED_TOP)return!0;break;case n.Constants.PINNED_BOTTOM:if(t.rowPinned!==n.Constants.PINNED_BOTTOM)return!1;break;default:if(l._.exists(t.rowPinned))return t.rowPinned!==n.Constants.PINNED_TOP;}return e.rowIndex<t.rowIndex;},i([s.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([s.Autowired("pinnedRowModel"),r("design:type",a.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),e=i([s.Bean("rowPositionUtils")],e);}();t.RowPositionUtils=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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)};this.dragService.addDragSource(o,!0);return 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"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("dragService"),r("design:type",a.DragService)],e.prototype,"dragService",void 0),i([s.Autowired("eGridDiv"),r("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),e=i([s.Bean("horizontalResizeService")],e);}();t.HorizontalResizeService=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i23,r=this&&this.__extends||(_i23=function i(e,t){return(_i23=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;}_i23(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(12),s=o(15),a=o(7),l=o(2),p=function(e){function t(t,o,i,r){var n=e.call(this)||this;return n.columnOrGroup=t,n.eCell=o,n.colsSpanning=r,n.beans=i,n.printLayout=i.gridOptionsWrapper.getDomLayout()===a.Constants.DOM_LAYOUT_PRINT,n;}return r(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,n.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()===n.Column.PINNED_LEFT?t:e.getPinned()===n.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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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 r=this.getColumnIds(e),n=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(r,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(r,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(r,l.pinned,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_RESIZED:var p=e;n.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"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([h.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([h.Autowired("eventService"),r("design:type",l.EventService)],e.prototype,"eventService",void 0),i([n(0,d.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[p.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),i([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([c.Bean("alignedGridsService")],e);}();t.AlignedGridsService=g;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r,n,_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),r=a._.offsetHeight(e),n=!0,(_s=function s(){if(n){var l=a._.offsetWidth(e),u=a._.offsetHeight(e);(l!==i||u!==r)&&(i=l,r=u,t()),p.setTimeout(_s,o);}})(),function(){return n=!1;});},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("frameworkOverrides"),r("design:type",Object)],e.prototype,"frameworkOverrides",void 0),e=i([n.Bean("resizeObserverService")],e);}();t.ResizeObserverService=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i24,r=this&&this.__extends||(_i24=function i(e,t){return(_i24=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;}_i24(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),s=o(22),a=function(e){function t(o,i){var r=e.call(this)||this;return r.version=0,r.state=t.STATE_DIRTY,r.rowNodeCacheParams=i,r.blockNumber=o,r.startRow=o*i.blockSize,r.endRow=r.startRow+i.blockSize,r;}return r(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++){if(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,r){var n=e[r];i.stub&&o.push(i),t.setDataAndId(i,n,t.startRow+r);}),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=n._.cleanNumber(i);var r={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:i};this.dispatchEvent(r);},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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i25,r=this&&this.__extends||(_i25=function i(e,t){return(_i25=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;}_i25(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(t,e),t.prototype.postConstruct=function(){var t=this,o=this.getGui(),i=this.config,r=i.movable,n=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);}),r&&this.setMovable(r),s&&this.setMaximizable(s),this.addResizers(),n&&this.setResizable(n);},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),r=!!t.match(/top/i),n=!!t.match(/bottom/i),s=o||i,a=r||n,l=this.calculateMouseMovement({e:e,isLeft:o,isTop:r}),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=r?-1:1;var v=this.getHeight(),m=v+u*h,C=!1;r&&(d=v-m,(this.position.y+d<=0||m<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(m);}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,r=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),n=r.movementX,s=r.movementY;this.offsetElement(o+n,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,r=e.height;this.setWidth(i),this.setHeight(r),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 r=i,n=!!e[r],s=t.getResizerElement(r),a=t.resizerMap[r].dragSource||{eElement:s,onDragStart:t.onResizeStart.bind(t),onDragging:function onDragging(e){return t.onResize(e,r);},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[r]===n&&(t.isAlive()||n)||(n?(t.dragService.addDragSource(a),s.style.pointerEvents="all",o=!0):(t.dragService.removeDragSource(a),s.style.pointerEvents="none"),t.resizerMap[r].dragSource=n?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 r=i.getGui();r.appendChild(this.maximizeIcon=c._.createIconNoSpan("maximize",this.gridOptionsWrapper)),r.appendChild(this.minimizeIcon=c._.createIconNoSpan("minimize",this.gridOptionsWrapper)),c._.addCssClass(this.minimizeIcon,"ag-hidden"),i.addDestroyableEventListener(r,"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();});}},n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i26,r=this&&this.__extends||(_i26=function i(e,t){return(_i26=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;}_i26(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t;}return r(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:(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:(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:(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=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),r=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 get(){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 get(){return this.elements[0];},set:function set(e){this.elements[0]=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function get(){return this.elements[1];},set:function set(e){this.elements[1]=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function get(){return this.elements[2];},set:function set(e){this.elements[2]=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function get(){return this.elements[3];},set:function set(e){this.elements[3]=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"e",{get:function get(){return this.elements[4];},set:function set(e){this.elements[4]=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"f",{get:function get(){return this.elements[5];},set:function set(e){this.elements[5]=e;},enumerable:!0,configurable:!0}),e.prototype.AxB=function(e,t,o){var i=e[0],r=e[1],n=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+n*u,o[1]=r*p+s*u,o[2]=i*c+n*d,o[3]=r*c+s*d,o[4]=i*h+n*f+a,o[5]=r*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],r=t[2],n=t[3],s=t[4],a=t[5],l=1/(o*n-i*r);return new e([n*=l,-(i*=l),-(r*=l),o*=l,r*a-n*s,i*s-o*a]);},e.prototype.inverseTo=function(e){var t=this.elements,o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],l=1/(o*n-i*r);return o*=l,i*=l,r*=l,n*=l,e.setElements([n,-i,-r,o,r*a-n*s,i*s-o*a]),this;},e.prototype.invertSelf=function(){var e=this.elements,t=e[0],o=e[1],i=e[2],r=e[3],n=e[4],s=e[5],a=1/(t*r-o*i);return t*=a,o*=a,i*=a,r*=a,e[0]=r,e[1]=-o,e[2]=-i,e[3]=t,e[4]=i*s-r*n,e[5]=o*n-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 r,n,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);r=Math.abs(c*a)+Math.abs(d*p)+Math.abs(g*t),n=Math.abs(c*l)+Math.abs(d*u)+Math.abs(y*t);}else r=Math.abs(c*a)+Math.abs(d*p),n=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]-r,o.y=h*l+f*u+s[5]-n,o.width=r+r,o.height=n+n,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=r;},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 _i27,r=this&&this.__extends||(_i27=function i(e,t){return(_i27=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;}_i27(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(41),a=o(72),l=o(29);!function(e){e[e.Content=0]="Content",e[e.Border=1]="Border";}(n=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=n.Content,t.getBBox=function(){return new l.BBox(t.x,t.y,t.width,t.height);},t;}return r(t,e),t.create=function(e,o,i,r,n){void 0===n&&(n=0);var s=new t();return s.x=e,s.y=o,s.width=i,s.height=r,s.radius=n,s;},Object.defineProperty(t.prototype,"dirtyPath",{get:function get(){return this._dirtyPath;},set:function set(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0));},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function get(){return this._x;},set:function set(e){this._x!==e&&(this._x=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function get(){return this._y;},set:function set(e){this._y!==e&&(this._y=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function get(){return this._width;},set:function set(e){this._width!==e&&(this._width=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function get(){return this._height;},set:function set(e){this._height!==e&&(this._height=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function get(){return this._radius;},set:function set(e){this._radius!==e&&(this._radius=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crisp",{get:function get(){return this._crisp;},set:function set(e){this._crisp!==e&&(this._crisp=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function get(){return this._strokeWidth;},set:function set(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.crisp||this.sizing===n.Border?this.dirtyPath=!0:(this.effectiveStrokeWidth=e,this.dirty=!0));},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizing",{get:function get(){return this._sizing;},set:function set(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===n.Border,t=this.path;t.clear();var o,i=this.x,r=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),r=Math.min(r+o/2,r+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(r)+u,Math.floor(s)+Math.floor(i%1+s%1),Math.floor(a)+Math.floor(r%1+a%1));}else t.rect(i,r,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 get(){return this._domain;},set:function set(e){this._domain=e.slice(),this.rescale();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function get(){return this._range;},set:function set(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 r,n,s=e[0],a=e[1],l=t[0],p=t[1];return a<s?(r=o(a,s),n=i(p,l)):(r=o(s,a),n=i(l,p)),function(e){return n(r(e));};},e.prototype.bimapInvert=function(e,t,o,i){var r,n,s=e[0],a=e[1],l=t[0],p=t[1];return p<l?(r=o(a,s),n=i(p,l)):(r=o(s,a),n=i(l,p)),function(e){return n(r(e));};},e;}();t["default"]=i;},function(e,t,o){"use strict";var _i28,r=this&&this.__extends||(_i28=function i(e,t){return(_i28=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;}_i28(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(101),s=o(305),a=o(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(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,r=o.length-1,n=o[i],s=o[r];s<n&&(t=n,n=s,s=t,t=i,i=r,r=t),(t=a.tickIncrement(n,s,e))>0?(n=Math.floor(n/t)*t,s=Math.ceil(s/t)*t,t=a.tickIncrement(n,s,e)):t<0&&(n=Math.ceil(n*t)/t,s=Math.floor(s*t)/t,t=a.tickIncrement(n,s,e)),t>0?(o[i]=Math.floor(n/t)*t,o[r]=Math.ceil(s/t)*t,this.domain=o):t<0&&(o[i]=Math.ceil(n*t)/t,o[r]=Math.floor(s*t)/t,this.domain=o);},t;}(n["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 get(){return this._domain;},set:function set(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 get(){return this._range;},set:function set(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 get(){return this._bandwidth;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function get(){return this._paddingInner;},set:function set(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 get(){return this._paddingInner;},set:function set(e){this._paddingInner=Math.max(0,Math.min(1,e)),this.rescale();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingOuter",{get:function get(){return this._paddingOuter;},set:function set(e){this._paddingOuter=Math.max(0,Math.min(1,e)),this.rescale();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"round",{get:function get(){return this._round;},set:function set(e){this._round=e,this.rescale();},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function get(){return this._align;},set:function set(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],r=o[1],n=r<i;n&&(i=(e=[r,i])[0],r=e[1]);var s=(r-i)/Math.max(1,t-this._paddingInner+2*this._paddingOuter);this._round&&(s=Math.floor(s)),i+=(r-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=n?a.reverse():a;}},e;}();t.BandScale=i;},function(e,t,o){"use strict";var _i29,r=this&&this.__extends||(_i29=function i(e,t){return(_i29=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;}_i29(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),t.create=function(e,o,i,r){var n=new t();return n.x1=e,n.y1=o,n.x2=i,n.y2=r,n;},Object.defineProperty(t.prototype,"x1",{get:function get(){return this._x1;},set:function set(e){this._x1!==e&&(this._x1=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function get(){return this._y1;},set:function set(e){this._y1!==e&&(this._y1=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function get(){return this._x2;},set:function set(e){this._x2!==e&&(this._x2=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function get(){return this._y2;},set:function set(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,r=this.y2;if(t===i){var n=Math.round(t)+Math.floor(this.strokeWidth)%2/2;t=n,i=n;}else if(o===r){var s=Math.round(o)+Math.floor(this.strokeWidth)%2/2;o=s,r=s;}e.beginPath(),e.moveTo(t,o),e.lineTo(i,r),this.fillStroke(e),this.dirty=!1;},t.className="Line",t.defaultStyles=s.chainObjects(n.Shape.defaultStyles,{fill:void 0,strokeWidth:1}),t;}(n.Shape);t.Line=l;},function(e,t,o){"use strict";var _i30,r=this&&this.__extends||(_i30=function i(e,t){return(_i30=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;}_i30(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(231),s=o(67),a=function(e){function t(t){return e.call(this,t)||this;}return r(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;}(n.ChartProxy);t.CartesianChartProxy=a;},function(e,t,o){"use strict";var _i31,r=this&&this.__extends||(_i31=function i(e,t){return(_i31=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;}_i31(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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(r){i.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:r.getGui()}),o&&r.showTab(o);},o);},e.prototype.showMenuAfterButtonClick=function(e,t,o,i){var r=this,n=-1,s="left";this.gridOptionsWrapper.isEnableRtl()&&(n=1,s="right"),this.showMenu(e,function(i){var a=i.getMinDimensions();r.popupService.positionPopupUnderComponent({column:e,type:"columnMenu",eventSource:t,ePopup:i.getGui(),nudgeX:9*n,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 r=this,n=new h(e,this.lastSelectedTab,i);this.context.wireBean(n);var s=n.getGui(),l=this.popupService.addAsModalPopup(s,!0,function(){n.destroy(),e.setMenuVisible(!1,"contextMenu");});n.afterGuiAttached({hidePopup:l}),t(n),o||n.showTabBasedOnPreviousSelection(),n.addEventListener(h.EVENT_TAB_SELECTED,function(e){r.lastSelectedTab=e.key;}),e.setMenuVisible(!0,"contextMenu"),this.activeMenu=n,n.addEventListener(a.BeanStub.EVENT_DESTROYED,function(){r.activeMenu===n&&(r.activeMenu=null);});},e.prototype.isMenuEnabled=function(e){return e.getMenuTabs(h.TABS_DEFAULT).length>0;},n([a.Autowired("context"),s("design:type",a.Context)],e.prototype,"context",void 0),n([a.Autowired("popupService"),s("design:type",a.PopupService)],e.prototype,"popupService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=n([a.Bean("menuFactory")],e);}();t.EnterpriseMenuFactory=d;var h=function(e){function t(o,i,r){var n=e.call(this)||this;return n.tabFactories={},n.includeChecks={},n.column=o,n.initialSelection=i,n.tabFactories[t.TAB_GENERAL]=n.createMainPanel.bind(n),n.tabFactories[t.TAB_FILTER]=n.createFilterPanel.bind(n),n.tabFactories[t.TAB_COLUMNS]=n.createColumnsPanel.bind(n),n.includeChecks[t.TAB_GENERAL]=function(){return!0;},n.includeChecks[t.TAB_FILTER]=function(){return o.isFilterAllowed();},n.includeChecks[t.TAB_COLUMNS]=function(){return!0;},n.restrictTo=r,n;}return r(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();i?e=i({column:this.column,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),defaultItems:o}):e=o;return a._.removeRepeatsFromArray(e,t.MENU_ITEM_SEPARATOR),e;},t.prototype.getDefaultMenuOptions=function(){var e=[],o=!this.column.getColDef().lockPinned,i=this.columnController.getRowGroupColumns().length,r=i>0,n=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&&r&&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()&&(n?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 r=t.gridApi.getHorizontalPixelRange().left;Math.abs(r-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",n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("filterManager"),s("design:type",a.FilterManager)],t.prototype,"filterManager",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("menuItemMapper"),s("design:type",u.MenuItemMapper)],t.prototype,"menuItemMapper",void 0),n([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([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 _i32,r=this&&this.__extends||(_i32=function i(e,t){return(_i32=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;}_i32(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=i===o.timerCount,n=o.subMenuParentDef===e;r&&!n&&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 r=this;this.removeChildPopup();var n=new t();this.getContext().wireBean(n),n.addMenuItems(e.subMenu);var s=a._.loadTemplate('<div class="ag-menu"></div>');s.appendChild(n.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 u(e){r.dispatchEvent(e);};n.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,u),this.removeChildFuncs.push(function(){n.clearActiveItem(),n.destroy(),r.subMenuParentDef=null,n.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>',n([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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r;if((r="string"==typeof e?o.getStockMenuItem(e,t):e).subMenu){var n=r;n.subMenu=o.mapWithStockItems(n.subMenu,t);}null!=r&&i.push(r);}),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:n._.createIconNoSpan("menuPin",this.gridOptionsWrapper,null),subMenu:["pinLeft","pinRight","clearPinned"]};case"pinLeft":return{name:i("pinLeft","Pin Left"),action:function action(){return o.columnController.setColumnPinned(t,n.Column.PINNED_LEFT,"contextMenu");},checked:t.isPinnedLeft()};case"pinRight":return{name:i("pinRight","Pin Right"),action:function action(){return o.columnController.setColumnPinned(t,n.Column.PINNED_RIGHT,"contextMenu");},checked:t.isPinnedRight()};case"clearPinned":return{name:i("noPin","No Pin"),action:function action(){return o.columnController.setColumnPinned(t,null,"contextMenu");},checked:!t.isPinned()};case"valueAggSubMenu":return{name:i("valueAggregation","Value Aggregation"),icon:n._.createIconNoSpan("menuValue",this.gridOptionsWrapper,null),subMenu:this.createAggregationSubMenu(t)};case"autoSizeThis":return{name:i("autosizeThiscolumn","Autosize This Column"),action:function action(){return o.columnController.autoSizeColumn(t,"contextMenu");}};case"autoSizeAll":return{name:i("autosizeAllColumns","Autosize All Columns"),action:function action(){return o.columnController.autoSizeAllColumns("contextMenu");}};case"rowGroup":return{name:i("groupBy","Group by")+" "+n._.escape(this.columnController.getDisplayNameForColumn(t,"header")),action:function action(){return o.columnController.addRowGroupColumn(t,"contextMenu");},icon:n._.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null)};case"rowUnGroup":return{name:i("ungroupBy","Un-Group by")+" "+n._.escape(this.columnController.getDisplayNameForColumn(t,"header")),action:function action(){return o.columnController.removeRowGroupColumn(t,"contextMenu");},icon:n._.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null)};case"resetColumns":return{name:i("resetColumns","Reset Columns"),action:function action(){return o.columnController.resetColumnState(!1,"contextMenu");}};case"expandAll":return{name:i("expandAll","Expand All"),action:function action(){return o.gridApi.expandAll();}};case"contractAll":return{name:i("collapseAll","Collapse All"),action:function action(){return o.gridApi.collapseAll();}};case"copy":return{name:i("copy","Copy"),shortcut:i("ctrlC","Ctrl+C"),icon:n._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function action(){return o.clipboardService.copyToClipboard(!1);}};case"copyWithHeaders":return{name:i("copyWithHeaders","Copy with Headers"),icon:n._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function action(){return o.clipboardService.copyToClipboard(!0);}};case"paste":return{name:i("paste","Paste"),shortcut:i("ctrlV","Ctrl+V"),disabled:!0,icon:n._.createIconNoSpan("clipboardPaste",this.gridOptionsWrapper,null),action:function action(){return o.clipboardService.pasteFromClipboard();}};case"export":var r=[];return this.gridOptionsWrapper.isSuppressCsvExport()||r.push("csvExport"),this.gridOptionsWrapper.isSuppressExcelExport()||(r.push("excelExport"),r.push("excelXmlExport")),{name:i("export","Export"),subMenu:r,icon:n._.createIconNoSpan("save",this.gridOptionsWrapper,null)};case"csvExport":return{name:i("csvExport","CSV Export"),action:function action(){return o.gridApi.exportDataAsCsv({});}};case"excelExport":return{name:i("excelExport","Excel Export (.xlsx)‎"),action:function action(){return o.gridApi.exportDataAsExcel({exportMode:"xlsx"});}};case"excelXmlExport":return{name:i("excelXmlExport","Excel Export (.xml)‎"),action:function action(){return o.gridApi.exportDataAsExcel({exportMode:"xml"});}};case"separator":return"separator";default:var s=this.getChartItems(e);return s||(console.warn("ag-Grid: unknown menu item type "+e),null);}},e.prototype.getChartItems=function(e){var t=this,o=this.gridOptionsWrapper.getLocaleTextFunc(),i=function i(e,_i33,r){return{name:o(e,_i33),action:function action(){return t.chartService.pivotChart(r);}};},r=function r(e,i,_r3){return{name:o(e,i),action:function action(){return t.chartService.chartCurrentRange(_r3);}};};switch(e){case"pivotChart":return{name:o("pivotChart","Pivot Chart"),subMenu:["pivotColumnChart","pivotBarChart","pivotPieChart","pivotLineChart","pivotXYChart","pivotAreaChart"],icon:n._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"chartRange":return{name:o("chartRange","Chart Range"),subMenu:["rangeColumnChart","rangeBarChart","rangePieChart","rangeLineChart","rangeXYChart","rangeAreaChart"],icon:n._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"pivotColumnChart":return{name:o("columnChart","Column"),subMenu:["pivotGroupedColumn","pivotStackedColumn","pivotNormalizedColumn"]};case"pivotGroupedColumn":return i("groupedColumn","Grouped‎",n.ChartType.GroupedColumn);case"pivotStackedColumn":return i("stackedColumn","Stacked‎",n.ChartType.StackedColumn);case"pivotNormalizedColumn":return i("normalizedColumn","100% Stacked‎",n.ChartType.NormalizedColumn);case"rangeColumnChart":return{name:o("columnChart","Column"),subMenu:["rangeGroupedColumn","rangeStackedColumn","rangeNormalizedColumn"]};case"rangeGroupedColumn":return r("groupedColumn","Grouped‎",n.ChartType.GroupedColumn);case"rangeStackedColumn":return r("stackedColumn","Stacked‎",n.ChartType.StackedColumn);case"rangeNormalizedColumn":return r("normalizedColumn","100% Stacked‎",n.ChartType.NormalizedColumn);case"pivotBarChart":return{name:o("barChart","Bar"),subMenu:["pivotGroupedBar","pivotStackedBar","pivotNormalizedBar"]};case"pivotGroupedBar":return i("groupedBar","Grouped‎",n.ChartType.GroupedBar);case"pivotStackedBar":return i("stackedBar","Stacked‎",n.ChartType.StackedBar);case"pivotNormalizedBar":return i("normalizedBar","100% Stacked‎",n.ChartType.NormalizedBar);case"rangeBarChart":return{name:o("barChart","Bar"),subMenu:["rangeGroupedBar","rangeStackedBar","rangeNormalizedBar"]};case"rangeGroupedBar":return r("groupedBar","Grouped‎",n.ChartType.GroupedBar);case"rangeStackedBar":return r("stackedBar","Stacked‎",n.ChartType.StackedBar);case"rangeNormalizedBar":return r("normalizedBar","100% Stacked‎",n.ChartType.NormalizedBar);case"pivotPieChart":return{name:o("pieChart","Pie"),subMenu:["pivotPie","pivotDoughnut"]};case"pivotPie":return i("pie","Pie‎",n.ChartType.Pie);case"pivotDoughnut":return i("doughnut","Doughnut‎",n.ChartType.Doughnut);case"rangePieChart":return{name:o("pieChart","Pie"),subMenu:["rangePie","rangeDoughnut"]};case"rangePie":return r("pie","Pie‎",n.ChartType.Pie);case"rangeDoughnut":return r("doughnut","Doughnut‎",n.ChartType.Doughnut);case"pivotLineChart":return i("line","Line‎",n.ChartType.Line);case"rangeLineChart":return r("line","Line‎",n.ChartType.Line);case"pivotXYChart":return{name:o("xyChart","X Y (Scatter)"),subMenu:["pivotScatter","pivotBubble"]};case"pivotScatter":return i("scatter","Scatter‎",n.ChartType.Scatter);case"pivotBubble":return i("bubble","Bubble‎",n.ChartType.Bubble);case"rangeXYChart":return{name:o("xyChart","X Y (Scatter)"),subMenu:["rangeScatter","rangeBubble"]};case"rangeScatter":return r("scatter","Scatter‎",n.ChartType.Scatter);case"rangeBubble":return r("bubble","Bubble‎",n.ChartType.Bubble);case"pivotAreaChart":return{name:o("areaChart","Area"),subMenu:["pivotArea","pivotStackedArea","pivotNormalizedArea"]};case"pivotArea":return i("area","Area‎",n.ChartType.Area);case"pivotStackedArea":return i("stackedArea","Stacked‎",n.ChartType.StackedArea);case"pivotNormalizedArea":return i("normalizedArea","100% Stacked‎",n.ChartType.NormalizedArea);case"rangeAreaChart":return{name:o("areaChart","Area"),subMenu:["rangeArea","rangeStackedArea","rangeNormalizedArea"]};case"rangeArea":return r("area","Area‎",n.ChartType.Area);case"rangeStackedArea":return r("stackedArea","Stacked‎",n.ChartType.StackedArea);case"rangeNormalizedArea":return r("normalizedArea","100% Stacked‎",n.ChartType.NormalizedArea);default:return null;}},e.prototype.createAggregationSubMenu=function(e){var t,o=this,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=e.isValueActive(),s=this.aggFuncService.getFuncNames(e);if(e.isPrimary())t=e;else{var a=e.getColDef().pivotValueColumn;t=n._.exists(a)?a:void 0;}var l=[];return s.forEach(function(e){l.push({name:i(e,e),action:function action(){o.columnController.setColumnAggFunc(t,e,"contextMenu"),o.columnController.addValueColumn(t,"contextMenu");},checked:r&&t.getAggFunc()===e});}),l;},i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("gridApi"),r("design:type",n.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("clipboardService"),r("design:type",s.ClipboardService)],e.prototype,"clipboardService",void 0),i([n.Autowired("aggFuncService"),r("design:type",a.AggFuncService)],e.prototype,"aggFuncService",void 0),i([n.Optional("chartService"),r("design:type",Object)],e.prototype,"chartService",void 0),e=i([n.Bean("menuItemMapper")],e);}();t.MenuItemMapper=l;},function(e,t,o){"use strict";var _i34,r=this&&this.__extends||(_i34=function i(e,t){return(_i34=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;}_i34(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=0;t.forEach(function(e){if(!e.getColDef().lockVisible){var t=e.getColDef();if(!t||!t.suppressToolPanel){var n;if(o){if(!e.isAllowPivot()&&!e.isAllowRowGroup()&&!e.isAllowValue())return;n=e.isValueActive()||e.isPivotActive()||e.isRowGroupActive();}else n=e.isVisible();n?i++:r++;}}}),this.selectState=i>0&&r>0?a.INDETERMINATE:r>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);},n([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([l.RefSelector("eFilterTextField"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),n([l.RefSelector("eExpand"),s("design:type",HTMLElement)],t.prototype,"eExpand",void 0),n([l.RefSelector("eSelect"),s("design:type",HTMLElement)],t.prototype,"eSelect",void 0),n([l.RefSelector("eFilterWrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterWrapper",void 0),n([l.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"preConstruct",null),n([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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(){function e(){this.groupIdSequence=new n.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,r=e.rowNodeOrder,s=this.usingTreeData?null:this.columnController.getRowGroupColumns(),a=(this.usingTreeData||s&&s.length>0)&&n._.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:r,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){n._.sortRowNodesByOrder(t.childrenAfterGroup,e.rowNodeOrder);});},e.prototype.sortGroupsWithComparator=function(e){if(!this.usingTreeData){var t=this.gridOptionsWrapper.getDefaultGroupSortComparator();n._.exists(t)&&function e(o){var i=n._.exists(o.childrenAfterGroup)&&!o.leafGroup;i&&(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 i(e){return e.key;},r=o.getExistingPathForNode(e,t).map(i),s=o.getGroupInfo(e,t).map(i);n._.compareArrays(r,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),r=o.findParentForNode(e,i,t);r.expanded=e.expanded,r.allLeafChildren=e.allLeafChildren,r.childrenAfterGroup=e.childrenAfterGroup,r.childrenMapped=e.childrenMapped,r.childrenAfterGroup.forEach(function(e){return e.parent=r;});}});},e.prototype.postRemoveRemoveEmptyGroups=function(e,t){for(var o=this,i=!0,r=function r(){i=!1;var r=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,r),e.setSelected(!1));});}),r.flush();};i;){r();}},e.prototype.removeFromParent=function(e,t){e.parent&&(t?t.removeFromChildrenAfterGroup(e.parent,e):n._.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&&!!n._.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,r=o.rootNode;return t.forEach(function(t,n){(r=i.getOrCreateNextNode(r,t,n,o)).allLeafChildren.push(e);}),r;},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 r=this.getChildrenMappedKey(t.key,t.rowGroupColumn),n=e.childrenMapped?e.childrenMapped[r]:void 0;return n||(n=this.createGroup(t,e,o,i),this.addToParent(n,e)),n;},e.prototype.createGroup=function(e,t,o,i){var r=this,s=new n.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){(r.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;null!=t&&0!==t.length||n._.doOnce(function(){return console.warn("getDataPath() should not return an empty path for data",e.data);},"groupStage.getGroupInfoFromCallback");return 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(r){var n=o.valueService.getKeyForNode(r,e),s=null!=n;if(t.pivotMode&&!s&&(n=" ",s=!0),s){var a={key:n,field:r.getColDef().field,rowGroupColumn:r};i.push(a);}}),i;},i([n.Autowired("selectionController"),r("design:type",n.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("selectableService"),r("design:type",n.SelectableService)],e.prototype,"selectableService",void 0),i([n.Autowired("valueService"),r("design:type",n.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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),v=o(338),m=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",v.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([n.Autowired("filterManager"),r("design:type",n.FilterManager)],e.prototype,"filterManager",void 0),i([n.Autowired("licenseManager"),r("design:type",l.LicenseManager)],e.prototype,"licenseManager",void 0),i([n.Autowired("userComponentRegistry"),r("design:type",n.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("enterpriseBoot")],e);}();t.EnterpriseBoot=m;},function(e,t,o){"use strict";var _i35,r=this&&this.__extends||(_i35=function i(e,t){return(_i35=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;}_i35(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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();},n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([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 _i36,r=this&&this.__extends||(_i36=function i(e,t){return(_i36=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;}_i36(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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();},n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([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 _i37,r=this&&this.__extends||(_i37=function i(e,t){return(_i37=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;}_i37(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r=this.gridOptionsWrapper.isSuppressExcelExport(),n=this.gridOptionsWrapper.isSuppressCsvExport();!(a._.isUserAgentIPad()||r&&n)&&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 r=this,n=this.getMenuItems(e,t,o);if(void 0!==n&&!a._.missingOrEmpty(n)){var s=new h(n);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(){r.activeMenu===s&&(r.activeMenu=null);});}},n([a.Autowired("context"),s("design:type",a.Context)],e.prototype,"context",void 0),n([a.Autowired("popupService"),s("design:type",a.PopupService)],e.prototype,"popupService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("rowModel"),s("design:type",Object)],e.prototype,"rowModel",void 0),n([a.Autowired("rangeController"),s("design:type",c.RangeController)],e.prototype,"rangeController",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],e.prototype,"init",null),e=n([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 r(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));},n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("menuItemMapper"),s("design:type",u.MenuItemMapper)],t.prototype,"menuItemMapper",void 0),n([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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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(n.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,r=Math.ceil(i/o)*o,n=this.rowCount-1;return Math.min(r,n);},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 n.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=n._.missing(e)?0:e.rowIndex,i=t.rowIndex,r=o<this.firstRow||o>this.lastRow,s=i<this.firstRow||i>this.lastRow;if(r||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 r=parseInt(i,10),n=t.rowNodesByIndex[r];e(n,o),o++;});},e.prototype.setRowData=function(e){var t=this;n._.iterateObject(e,function(e,o){var i=parseInt(e,10);if(i>=t.firstRow&&i<=t.lastRow){var r=t.rowNodesByIndex[i];n._.missing(r)&&(r=t.createBlankRowNode(i),t.rowNodesByIndex[i]=r),r.setDataAndId(o,i.toString());}});},e.prototype.createBlankRowNode=function(e){var t=new n.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:n.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([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("eventService"),r("design:type",n.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("selectionController"),r("design:type",n.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("gridApi"),r("design:type",n.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("columnApi"),r("design:type",n.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("rowRenderer"),r("design:type",n.RowRenderer)],e.prototype,"rowRenderer",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),i([n.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroyDatasource",null),e=i([n.Bean("rowModel")],e);}();t.ViewportRowModel=s;},function(e,t,o){"use strict";var _i38,r=this&&this.__extends||(_i38=function i(e,t){return(_i38=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;}_i38(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=o&&!t.hiddenByDefault;setTimeout(function(){return e.setDisplayed(r);},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>',n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("sideBarButtons"),s("design:type",l.SideBarButtonsComp)],t.prototype,"sideBarButtonsComp",void 0),n([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 _i39,r=this&&this.__extends||(_i39=function i(e,t){return(_i39=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;}_i39(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=e.processCellCallback,n=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:r,processHeaderCallback:n,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,r,n){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(r.getColDef(),{value:i,data:n.data,node:n,colDef:r.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");},n([a.Autowired("excelXmlFactory"),s("design:type",u.ExcelXmlFactory)],t.prototype,"excelXmlFactory",void 0),n([a.Autowired("excelXlsxFactory"),s("design:type",c.ExcelXlsxFactory)],t.prototype,"xlsxFactory",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),n([a.Autowired("stylingService"),s("design:type",a.StylingService)],t.prototype,"stylingService",void 0),n([a.Autowired("downloader"),s("design:type",a.Downloader)],t.prototype,"downloader",void 0),n([a.Autowired("gridSerializer"),s("design:type",a.GridSerializer)],t.prototype,"gridSerializer",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("zipContainer"),s("design:type",a.ZipContainer)],t.prototype,"zipContainer",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([a.Bean("excelCreator")],t);}(a.BaseCreator);t.ExcelCreator=d;},function(e,t,o){"use strict";var _i40,r=this&&this.__extends||(_i40=function i(e,t){return(_i40=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;}_i40(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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()},r=o.userComponentFactory.newStatusPanelComponent(e,t);i.push({key:e.key||e.statusPanel,promise:r});}),a.Promise.all(i.map(function(e){return e.promise;})).then(function(){a._.forEach(i,function(e){e.promise.then(function(i){var r=function r(){i.destroy&&i.destroy();};o.isAlive()?(o.statusBarService.registerStatusPanel(e.key,i),t.appendChild(i.getGui()),o.addDestroyFunc(r)):r();});});});},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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("statusBarService"),s("design:type",l.StatusBarService)],t.prototype,"statusBarService",void 0),n([a.RefSelector("eStatusBarLeft"),s("design:type",HTMLElement)],t.prototype,"eStatusBarLeft",void 0),n([a.RefSelector("eStatusBarCenter"),s("design:type",HTMLElement)],t.prototype,"eStatusBarCenter",void 0),n([a.RefSelector("eStatusBarRight"),s("design:type",HTMLElement)],t.prototype,"eStatusBarRight",void 0),n([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 _i41,r=this&&this.__extends||(_i41=function i(e,t){return(_i41=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;}_i41(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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;},n([a.Autowired("licenseManager"),s("design:type",l.LicenseManager)],t.prototype,"licenseManager",void 0),n([a.RefSelector("eLicenseTextRef"),s("design:type",HTMLElement)],t.prototype,"eLicenseTextRef",void 0),n([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 _i42,r=this&&this.__extends||(_i42=function i(e,t){return(_i42=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;}_i42(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++){for(var r in t=arguments[o]){Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}}return e;}).apply(this,arguments);},s=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},a=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=this.initialXY,n=r.x,s=r.y,a=Math.abs(n-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(),r=i.columns.length,n=this.getRangeStartRow(),s=this.getRangeEndRow();if(this.isUp||this.isLeft){var a=o?n: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[r-1]});}else t=this.rangeController.createCellRangeFromCellRangeParams({rowStartIndex:n.rowIndex,rowStartPinned:n.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[r-1]});t&&(this.handleValueChanged(i,t,e.altKey),this.rangeController.setCellRanges([t]));}},t.prototype.handleValueChanged=function(e,t,o){var i=this,r=this.rangeController.getRangeEndRow(e),n=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,r,u);}else{var d=!0,h=[],f=function f(){h.length=0;},g=function g(t,o){var u=i.isUp?r:n,c=!1;p&&(d=!0,f());for(var g=function g(){var g=i.rowPositionUtils.getRowNode(u);if(!g)return"break";p&&t?y(h,t,g,function(){return!i.rowPositionUtils.sameRow(u,i.isUp?n:r);}):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;){if("break"===g())break;}},y=function y(e,t,r,n){var s;d?(s=i.valueService.getValue(t,r),d=n()):(s=i.processValues(e,o),i.valueService.setValue(r,t,s)),e.push(s);};if(p)e.columns.forEach(function(e){g(e);});else{u=this.isLeft?t.columns.slice().reverse():t.columns;g(void 0,u);}}},t.prototype.clearCellsInRange=function(e,t,o){for(var i=this,r=e,n=!1,s=function s(){var e=a.rowPositionUtils.getRowNode(r);if(!e)return"break";o.forEach(function(t){i.valueService.setValue(e,t,null);}),n=a.rowPositionUtils.sameRow(r,t),r=a.cellNavigationService.getRowBelow(r);},a=this;!n&&r;){if("break"===s())break;}},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(),r=this.getRangeEndRow();o&&(t.rowPinned==i.rowPinned&&t.rowIndex>=i.rowIndex||i.rowPinned!=r.rowPinned&&t.rowPinned==r.rowPinned&&t.rowIndex<=r.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,o),this.isReduce=!1);}else{var n=e.column,s=t.column;if(n===s)return;var a=this.columnController.getAllDisplayedColumns(),l=a.indexOf(n),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,r=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=n({},d,{column:c}),f=r.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 v=y.getGui();f||(l._.addOrRemoveCssClass(v,"ag-selection-fill-left",0===u),l._.addOrRemoveCssClass(v,"ag-selection-fill-right",u===p-1)),l._.addOrRemoveCssClass(v,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(),r=i.columns.length,s=this.rowPositionUtils.sameRow(o,t),a=0;a<r;a++){var p={rowIndex:o.rowIndex,rowPinned:o.rowPinned},u=n({},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,r=this.columnController.getAllDisplayedColumns(),n=r.indexOf(o?t.column:e.column),s=r.indexOf(o?this.getCellRange().columns[0]:t.column),a=o?0:1,p=r.slice(n+a,s+a),u=this.getRangeStartRow(),c=this.getRangeEndRow();p.forEach(function(e){var t=u,r=!1;do{r=i.rowPositionUtils.sameRow(t,c);var n=i.rowRenderer.getComponentForCell({rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e});if(n){i.markedCellComps.push(n);var s=n.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(!r);});},t.prototype.reduceHorizontal=function(e,t){var o=this,i=this.columnController.getAllDisplayedColumns(),r=i.indexOf(t.column),n=i.indexOf(e.column),s=i.slice(r,n),a=this.getRangeStartRow(),p=this.getRangeEndRow();s.forEach(function(e){var t=a,i=!1;do{i=o.rowPositionUtils.sameRow(t,p);var r=o.rowRenderer.getComponentForCell({rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e});if(r){o.markedCellComps.push(r);var n=r.getGui();l._.addOrRemoveCssClass(n,"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 _i43,r=this&&this.__extends||(_i43=function i(e,t){return(_i43=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;}_i43(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++){for(var r in t=arguments[o]){Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}}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 r(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 r={rowIndex:t.rowIndex,rowPinned:t.rowPinned},a=!this.rowPositionUtils.sameRow(r,this.rangeController.getRangeEndRow(i));2===o.length&&a&&this.rangeController.updateRangeEnd({cellRange:o[0],cellPosition:n({},r,{column:o[0].columns[0]})}),this.endPosition=n({},r,{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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),r=o(178),n=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 r=t;return e.ARRAY_PROPERTIES.concat(e.STRING_PROPERTIES).concat(e.OBJECT_PROPERTIES).concat(e.FUNCTION_PROPERTIES).forEach(function(e){void 0!==o[e]&&(r[e]=o[e]);}),e.BOOLEAN_PROPERTIES.forEach(function(t){void 0!==o[t]&&(r[t]=e.toBoolean(o[t]));}),e.NUMBER_PROPERTIES.forEach(function(t){void 0!==o[t]&&(r[t]=e.toNumber(o[t]));}),e.getEventCallbacks().forEach(function(e){void 0!==o[e]&&(r[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]||n.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,r,n){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&&r.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&r.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&r.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&r.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&r.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&r.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&r.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&r.setDatasource(t.datasource.currentValue),t.headerHeight&&r.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&r.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&n.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&r.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&r.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.gridAutoHeight&&r.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&r.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&r.setSideBar(t.sideBar.currentValue),t.datasource&&r.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;}),r.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=r.PropertyKeys.STRING_PROPERTIES,e.OBJECT_PROPERTIES=r.PropertyKeys.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=r.PropertyKeys.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=r.PropertyKeys.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=r.PropertyKeys.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=r.PropertyKeys.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=r.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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i44,r=this&&this.__extends||(_i44=function i(e,t){return(_i44=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;}_i44(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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,r=t.columnSeparator;return o.suppressQuotes=i,o.columnSeparator=r,o;}return r(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,r=o&&o.fileName&&0!==o.fileName.length?o.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,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 v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(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,r=e,n=r.processCellCallback,s=r.processHeaderCallback,a=r.suppressQuotes,l=r.columnSeparator;return new g({columnController:t,valueService:o,gridOptionsWrapper:i,processCellCallback:n||void 0,processHeaderCallback:s||void 0,suppressQuotes:a||!1,columnSeparator:l||","});},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport();},n([a.Autowired("columnController"),s("design:type",u.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("valueService"),s("design:type",c.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("downloader"),s("design:type",p.Downloader)],t.prototype,"downloader",void 0),n([a.Autowired("gridSerializer"),s("design:type",l.GridSerializer)],t.prototype,"gridSerializer",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([a.Bean("csvCreator")],t);}(y);t.CsvCreator=v;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i45,r=this&&this.__extends||(_i45=function i(e,t){return(_i45=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;}_i45(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++){for(var r in t=arguments[o]){Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}}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,r,n,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=r,d.fullWidthContainerComp=n,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 r(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,r=this.getInitialRowClasses(t).join(" "),n=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(n?' row-id="'+n+'"':""),o.push(a?' row-business-key="'+l+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+r+'"'),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,r=this.useAnimationFrameForCreate,n=r?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(n.template);e.appendRowTemplate(s,function(){var s=e.getRowElement(i.getCompId());i.afterRowAttached(e,s),o(s),r?i.beans.taskQueue.addP1Task(i.lazyCreateCells.bind(i,t,s),i.rowNode.rowIndex):(i.callAfterRowAttachedOnCells(n.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=n({},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,r=this.beans.columnController.isPivotMode(),n=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(r);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):n?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(_t5,o,i){if(!_t5||!o)return!0;if(!o.refresh)return!1;var r=e.createFullWidthParams(_t5,i);return o.refresh(r);},o=t(this.eFullWidthRow,this.fullWidthRowComponent,null),i=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),r=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,l.Column.PINNED_LEFT),n=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,l.Column.PINNED_RIGHT);return o&&i&&r&&n;},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 r=c._.filter(i,this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(r);}},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(),r=this.beans.focusedCellController.isCellFocused(o.getCellPosition());if(i||r){var n=o.getColumn();return!(t.indexOf(n)>=0);}return!0;},t.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),o=e.getColumn().getPinned(),i=this.getContainerForCell(o),r=e.getParentRow();r!==i&&(r&&r.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=[],r=[];t.forEach(function(t){var n=t.getId(),s=o.cellComps[n];s?o.ensureCellInCorrectContainer(s):o.createNewCell(t,e,i,r);}),i.length>0&&(c._.appendHtml(e,i.join("")),this.callAfterRowAttachedOnCells(r,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 r=new s.CellComp(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),n=r.getCreateTemplate();o.push(n),i.push(r),this.cellComps[e.getId()]=r,r.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 r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),n=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):o?n&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!r&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:i});}}}},t.prototype.createFullWidthRowContainer=function(e,t,o,i,r,n,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 p(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,r);if(!c)return void console.error("ag-Grid: fullWidthCellRenderer not defined");c.then(p);}a.afterRowAttached(e,o),n(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 r=i===o;r?i.startEditingIfEnabled(e,t,r):i.startEditingIfEnabled(null,null,r);}),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(_t6){"string"==typeof _t6?e.push(_t6):Array.isArray(_t6)&&_t6.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();i&&t(i({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()}));return 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();if(o)t=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope});return 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 r=new s.CellComp(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),n=r.getCreateTemplate();o.push(n),i.push(r),t.cellComps[e.getId()]=r;}),{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,r=this.beans.gridPanel.headerRootComp.getHeaderRowCount();i&&(this.rowIsEven=o),this.eAllRowContainers.forEach(function(n){n.setAttribute("row-index",t),n.setAttribute("aria-rowindex",(r+e.rowNode.rowIndex+1).toString()),i&&(c._.addOrRemoveCssClass(n,"ag-row-even",o),c._.addOrRemoveCssClass(n,"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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i46,r=this&&this.__extends||(_i46=function i(e,t){return(_i46=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;}_i46(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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;},n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),n([p.Autowired("gridApi"),s("design:type",h.GridApi)],t.prototype,"gridApi",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i47,r=this&&this.__extends||(_i47=function i(e,t){return(_i47=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;}_i47(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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",n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var n=this.getRowBelow(e);if(u._.missing(n))return null;o=n?n.rowIndex:null,i=n?n.rowPinned:null;}return{rowIndex:o,column:r,rowPinned:i};},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.rowPinned,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=u._.last(t);var n=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(u._.missing(n))return null;o=n?n.rowIndex:null,i=n?n.rowPinned:null;}return{rowIndex:o,column:r,rowPinned:i};},i([n.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("pinnedRowModel"),r("design:type",p.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("cellNavigationService")],e);}();t.CellNavigationService=c;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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],r=this;if(!i){i=[],this.waitingCallbacks[e]=i;var n=new XMLHttpRequest();n.onload=function(){r.handleHttpResult(this,e);},n.open("GET",e),n.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 r=this;window.setTimeout(function(){r.$scope.$apply();},0);}}else console.warn("Unable to get template error "+e.status+" - "+t);},i([s.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),e=i([n.Bean("templateService")],e);}();t.TemplateService=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i48,r=this&&this.__extends||(_i48=function i(e,t){return(_i48=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;}_i48(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n,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),v=o(183),m=o(184),C=o(137),w=o(256),_=o(257),b=o(258),E=o(2),R=o(259),P=o(260),O=o(138),S=o(261),A=o(262);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED";}(n=t.RegisteredComponentSource||(t.RegisteredComponentSource={}));var T=function(){function e(){this.agGridDefaults={agDateInput:R.DefaultDateComponent,agColumnHeader:p.HeaderComp,agColumnGroupHeader:u.HeaderGroupComp,agTextColumnFloatingFilter:A.TextFloatingFilter,agNumberColumnFloatingFilter:S.NumberFloatingFilter,agDateColumnFloatingFilter:P.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:v.PopupSelectCellEditor,agLargeTextCellEditor:m.LargeTextCellEditor,agTextColumnFilter:O.TextFilter,agNumberColumnFilter:C.NumberFilter,agDateColumnFilter:l.DateFilter,agLoadingOverlay:w.LoadingOverlayComponent,agNoRowsOverlay:_.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:n.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:n.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:n.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"),r("design:type",Object)],e.prototype,"gridOptions",void 0),i([a.Autowired("context"),r("design:type",a.Context)],e.prototype,"context",void 0),i([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([a.Bean("userComponentRegistry")],e);}();t.UserComponentRegistry=T;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i49,r=this&&this.__extends||(_i49=function i(e,t){return(_i49=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;}_i49(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===n.Constants.KEY_BACKSPACE||e.keyPress===n.Constants.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==n.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===n.Constants.KEY_PAGE_UP,o=e.keyCode===n.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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i50,r=this&&this.__extends||(_i50=function i(e,t){return(_i50=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;}_i50(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=e?e.dateTo:null,n=u._.parseYyyyMmDdToDate(i,"-"),s=u._.parseYyyyMmDdToDate(r,"-"),a=o?this.dateCompFrom1:this.dateCompFrom2,l=o?this.dateCompTo1:this.dateCompTo2;a.setDate(n),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 onDateChanged(){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,r=t?this.dateCompTo1:this.dateCompTo2,n=i.getDate(),s=r.getDate();return o!==d.SimpleFilter.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||(o===d.SimpleFilter.IN_RANGE?null!=n&&null!=s:null!=n));},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(),r=o?this.dateCompTo1:this.dateCompTo2,n=o?this.dateCompFrom1:this.dateCompFrom2;return{dateTo:u._.serializeDateToYyyyMmDd(r.getDate(),"-"),dateFrom:u._.serializeDateToYyyyMmDd(n.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 r=this.showValueTo(this.getCondition2Type());u._.setDisplayed(this.ePanelTo2,r);},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],n([a.RefSelector("ePanelFrom1"),s("design:type",HTMLElement)],t.prototype,"ePanelFrom1",void 0),n([a.RefSelector("ePanelFrom2"),s("design:type",HTMLElement)],t.prototype,"ePanelFrom2",void 0),n([a.RefSelector("ePanelTo1"),s("design:type",HTMLElement)],t.prototype,"ePanelTo1",void 0),n([a.RefSelector("ePanelTo2"),s("design:type",HTMLElement)],t.prototype,"ePanelTo2",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i51,r=this&&this.__extends||(_i51=function i(e,t){return(_i51=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;}_i51(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(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 r=this.canNullsPassFilter(e);if(e===t.EMPTY)return 0;if(e===t.EQUALS)return r?0:1;if(e===t.GREATER_THAN)return r?1:-1;if(e===t.GREATER_THAN_OR_EQUAL)return r?1:-1;if(e===t.LESS_THAN_OR_EQUAL)return r?-1:1;if(e===t.LESS_THAN)return r?-1:1;if(e===t.NOT_EQUAL)return r?1:0;}return this.comparator()(o,i);},t.prototype.canNullsPassFilter=function(e){switch(e){case n.SimpleFilter.GREATER_THAN:case n.SimpleFilter.GREATER_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInGreaterThan;case n.SimpleFilter.LESS_THAN:case n.SimpleFilter.LESS_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInLessThan;case n.SimpleFilter.EQUALS:return this.scalarFilterParams.includeBlanksInEquals;}},t.prototype.individualConditionPasses=function(e,o){var i=this.scalarFilterParams.valueGetter(e.node),r=this.mapRangeFromModel(o),n=r.from,s=r.to,a=o.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=n||l.hideFilterInput))return l.test(n,i);var p=this.nullComparator(a,n,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;}(n.SimpleFilter);t.ScalerFilter=s;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i52,r=this&&this.__extends||(_i52=function i(e,t){return(_i52=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;}_i52(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(12),m=o(11),C=o(63),w=o(19),_=o(2),b=function(e){function t(){return e.call(this,t.TEMPLATE)||this;}return r(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===v.Column.PINNED_LEFT,t=this.params.pinned===v.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){_._.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()||_._.get(e.colDef,"cellRendererParams.innerRenderer",null)||_._.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=_._.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,r=i||o.column,n=this.params.value,s=r?this.valueFormatterService.formatValue(r,o.node,o.scope,n):null;o.valueFormatted=s,(e=1==o.fullWidth?this.useFullWidth(o):this.useInnerRenderer(this.params.colDef.cellRendererParams,r.getColDef(),o))&&e.then(function(e){t.innerCellRenderer=e;});},t.prototype.useInnerRenderer=function(e,t,o){var i=this,r=null,n=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(n&&null!=n.component&&n.source!=w.ComponentSource.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,o);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=w.ComponentSource.DEFAULT?this.userComponentFactory.newCellRenderer(t,o):s&&s.source==w.ComponentSource.DEFAULT&&_._.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,o):this.userComponentFactory.newCellRenderer({},o);}return null!=r?r.then(function(e){null!=e?_._.bindCellRendererToHtmlElement(r,i.eValue):i.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value;}):this.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,r;},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?_._.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(){_._.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();});}_._.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t);},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,o=_._.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),i=_._.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(_._.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;!_._.missing(i);){if(i.rowGroupColumn&&e.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroup=i;break;}i=i.parent;}_._.missing(this.displayedGroup)&&(this.displayedGroup=t);},t.prototype.onExpandClicked=function(e){_._.isStopPropagationForAgGrid(e)||(_._.stopPropagationForAgGrid(e),this.onExpandOrContract());},t.prototype.onCellDblClicked=function(e){_._.isStopPropagationForAgGrid(e)||_._.isElementInEventPath(this.eExpanded,e)||_._.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;_._.setDisplayed(this.eContracted,!t),_._.setDisplayed(this.eExpanded,t);}else _._.setDisplayed(this.eExpanded,!1),_._.setDisplayed(this.eContracted,!1);var o=this.displayedGroup,i=this.columnController.isPivotMode()&&o.leafGroup,r=!o.isExpandable(),n=o.footer||r||i;this.addOrRemoveCssClass("ag-row-group",!n),this.addOrRemoveCssClass("ag-row-group-leaf-indent",n);},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>',n([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("expressionService"),s("design:type",l.ExpressionService)],t.prototype,"expressionService",void 0),n([c.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([c.Autowired("valueFormatterService"),s("design:type",f.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),n([c.Autowired("columnController"),s("design:type",y.ColumnController)],t.prototype,"columnController",void 0),n([c.Autowired("mouseEventService"),s("design:type",C.MouseEventService)],t.prototype,"mouseEventService",void 0),n([c.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([m.RefSelector("eExpanded"),s("design:type",HTMLElement)],t.prototype,"eExpanded",void 0),n([m.RefSelector("eContracted"),s("design:type",HTMLElement)],t.prototype,"eContracted",void 0),n([m.RefSelector("eCheckbox"),s("design:type",HTMLElement)],t.prototype,"eCheckbox",void 0),n([m.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),n([m.RefSelector("eChildCount"),s("design:type",HTMLElement)],t.prototype,"eChildCount",void 0),t;}(d.Component);t.GroupCellRenderer=b;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i53,r=this&&this.__extends||(_i53=function i(e,t){return(_i53=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;}_i53(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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),r=l._.exists(i)?i:o,n=t>=0;this.eDelta.innerHTML=n?"↑"+r:"↓"+r,l._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",n),l._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!n);},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>',n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i54,r=this&&this.__extends||(_i54=function i(e,t){return(_i54=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;}_i54(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=t.valueFormatterService.formatValue(e.column,null,null,o),n=null!=r;i.text=n?r: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;},n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i55,r=this&&this.__extends||(_i55=function i(e,t){return(_i55=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;}_i55(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=o?this.eValueTo1:this.eValueTo2;i.value=e?""+e.filter:null,r.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 t(){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,r=t?this.eValueTo1:this.eValueTo2,n=this.stringToFloat(i.value),s=this.stringToFloat(r.value);return o!==p.SimpleFilter.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||(o===p.SimpleFilter.IN_RANGE?null!=n&&null!=s:null!=n));},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(),r=o?this.eValueFrom1:this.eValueFrom2,n=this.stringToFloat(r.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=n,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 r=this.showValueTo(this.getCondition2Type());l._.setDisplayed(this.eValueTo2,r);},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],n([a.RefSelector("eValueFrom1"),s("design:type",HTMLInputElement)],t.prototype,"eValueFrom1",void 0),n([a.RefSelector("eValueFrom2"),s("design:type",HTMLInputElement)],t.prototype,"eValueFrom2",void 0),n([a.RefSelector("eValueTo1"),s("design:type",HTMLInputElement)],t.prototype,"eValueTo1",void 0),n([a.RefSelector("eValueTo2"),s("design:type",HTMLInputElement)],t.prototype,"eValueTo2",void 0),t;}(u.ScalerFilter);t.NumberFilter=c;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i56,r=this&&this.__extends||(_i56=function i(e,t){return(_i56=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;}_i56(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 t(){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(),r=o?this.eValue1:this.eValue2,n=this.getValue(r),s={filterType:t.FILTER_TYPE,type:i};return this.doesFilterHaveHiddenInput(i)||(s.filter=n),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 r=this.getValue(i);return!!this.doesFilterHaveHiddenInput(o)||null!=r;},t.prototype.individualConditionPasses=function(e,t){var o=t.filter,i=t.type,r=this.textFilterParams.valueGetter(e.node),n=this.formatter(r),s=this.optionsFactory.getCustomOption(i);if(s&&(null!=o||s.hideFilterInput))return s.test(o,n);if(null==r)return i===p.SimpleFilter.NOT_EQUAL||i===p.SimpleFilter.NOT_CONTAINS;var a=this.formatter(o);return this.comparator(i,n,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 r=o.lastIndexOf(i);return r>=0&&r===o.length-i.length;default:return console.warn("invalid filter type "+e),!1;}},n([a.RefSelector("eValue1"),s("design:type",HTMLInputElement)],t.prototype,"eValue1",void 0),n([a.RefSelector("eValue2"),s("design:type",HTMLInputElement)],t.prototype,"eValue2",void 0),n([a.RefSelector("eInputWrapper1"),s("design:type",HTMLElement)],t.prototype,"eInputWrapper1",void 0),n([a.RefSelector("eInputWrapper2"),s("design:type",HTMLElement)],t.prototype,"eInputWrapper2",void 0),t;}(p.SimpleFilter);t.TextFilter=u;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:o,component:r.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([n.Autowired("componentMetadataProvider"),r("design:type",s.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),e=i([n.Bean("agComponentUtils")],e);}();t.AgComponentUtils=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("agComponentUtils"),r("design:type",s.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("componentMetadataProvider")],e);}();t.ComponentMetadataProvider=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=Object.keys(e),n=0;n<r.length;n++){var s=r[n],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;if("function"==typeof e.cellClass)i=(0,e.cellClass)(t);else i=e.cellClass;"string"==typeof i?o(i):Array.isArray(i)&&i.forEach(function(e){o(e);});}},i([n.Autowired("expressionService"),r("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),e=i([n.Bean("stylingService")],e);}();t.StylingService=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=this.lastHoveredComponent.getGui().contains(o);if(this.showTimeoutId&&r)return;r||(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 r={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(r,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 r=i.popupService.addPopup(!1,o,!1);t.destroyFunc=function(){r(),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([n.Autowired("popupService"),r("design:type",s.PopupService)],e.prototype,"popupService",void 0),i([n.Autowired("userComponentFactory"),r("design:type",a.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([n.Autowired("columnApi"),r("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([n.Autowired("gridApi"),r("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("tooltipManager")],e);}();t.TooltipManager=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=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,r=e.rowIndex===t.rowIndex;return o&&i&&r;},e=i([r.Bean("cellPositionUtils")],e);}();t.CellPositionUtils=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),r=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,o,r,n){i._.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,o,r,n);},e.addToolPanelClassesFromColDef=function(e,t,o,r,n){i._.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,o,r,n);},e.addColumnClassesFromCollDef=function(e,t,o,r,n,s){if(!i._.missing(e)){var a;if("function"==typeof e)a=e({colDef:t,column:n,columnGroup:s,context:r.getContext(),api:r.getApi()});else a=e;"string"==typeof a?i._.addCssClass(o,a):Array.isArray(a)&&a.forEach(function(e){i._.addCssClass(o,e);});}},e;}();t.CssClassApplier=r;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i57,r=this&&this.__extends||(_i57=function i(e,t){return(_i57=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;}_i57(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=o&&this.setLabel(o),null!=i&&this.setLabelWidth(i),this.setLabelAlignment(r||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:(this.labelSeparator=e,null!=this.label&&this.refreshLabel(),this);},t.prototype.setLabel=function(e){return this.label===e?this:(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?this:(p._.setElementWidth(this.eLabel,e),this);},n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i58,r=this&&this.__extends||(_i58=function i(e,t){return(_i58=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;}_i58(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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);},n([l.Autowired("columnHoverService"),s("design:type",p.ColumnHoverService)],t.prototype,"columnHoverService",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=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);}},e=i([r.Bean("downloader")],e);}();t.Downloader=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=new a.CellComp(t.$scope,t.beans,o,e,null,!0,!1);r.setParentRow(t.eDummyContainer),i.push(r);});var r=i.map(function(e){return e.getCreateTemplate();}).join(" ");this.eDummyContainer.innerHTML=r,i.forEach(function(e){return e.afterAttached();});for(var n=0,s=0;s<this.eDummyContainer.children.length;s++){var l=this.eDummyContainer.children[s];l.offsetHeight>n&&(n=l.offsetHeight);}return o.removeChild(this.eDummyContainer),i.forEach(function(e){e.detach(),e.destroy();}),p._.clearElement(this.eDummyContainer),n;},i([n.Autowired("beans"),r("design:type",s.Beans)],e.prototype,"beans",void 0),i([n.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),i([n.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),e=i([n.Bean("autoHeightCalculator")],e);}();t.AutoHeightCalculator=u;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),r=o(23),n=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),v=o(128),m=o(32),C=o(14),w=o(44),_=o(58),b=o(91),E=o(0),R=o(123),P=o(202),O=o(203),S=o(18),A=o(37),T=o(27),D=o(26),x=o(63),F=o(127),M=o(204),N=o(206),L=o(208),I=o(6),G=o(209),k=o(211),W=o(87),V=o(62),H=o(49),j=o(155),B=o(213),U=o(66),z=o(148),Y=o(214),K=o(83),X=o(141),q=o(64),Q=o(86),$=o(207),Z=o(205),J=o(189),ee=o(31),te=o(199),oe=o(190),ie=o(7),re=o(46),ne=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),ve=o(153),me=o(149),Ce=o(274),we=o(94),_e=o(215),be=o(142),Ee=o(201),Re=o(216),Pe=o(96),Oe=o(156),Se=o(157),Ae=o(217),Te=o(218),De=o(2),xe=o(219),Fe=o(97),Me=o(158),Ne=o(220),Le=o(221),Ie=o(222),Ge=o(187),ke=o(90),We=o(143),Ve=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 G=this.getRowModelClass(o),k=!De._.missingOrEmpty(e.enterpriseBeans),ie=this.extractModuleEntity(e.modulesToInclude,function(e){return e.beans?e.beans:[];}),Ve=this.extractModuleEntity(e.modulesToInclude,function(e){return e.enterpriseBeans?e.enterpriseBeans:[];}),He=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 Ue=[];e.enterpriseBeans&&(Ue=Ue.concat(e.enterpriseBeans).concat(Ve)),e.frameworkBeans&&(Ue=Ue.concat(e.frameworkBeans));var ze={enterprise:k,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(ze,I.seedBeanInstances);var Ye=[{componentName:"AgCheckbox",theClass:H.AgCheckbox},{componentName:"AgRadioButton",theClass:j.AgRadioButton},{componentName:"AgToggleButton",theClass:Ie.AgToggleButton},{componentName:"AgInputTextField",theClass:Se.AgInputTextField},{componentName:"AgInputTextArea",theClass:Ae.AgInputTextArea},{componentName:"AgInputNumberField",theClass:Fe.AgInputNumberField},{componentName:"AgInputRange",theClass:Me.AgInputRange},{componentName:"AgSelect",theClass:Ne.AgSelect},{componentName:"AgSlider",theClass:Te.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:Oe.AgPanel},{componentName:"AgDialog",theClass:Pe.AgDialog}];e.enterpriseComponents&&(Ye=Ye.concat(e.enterpriseComponents).concat(He));var Ke={overrideBeans:Ue,seed:ze,beans:[G,de.Beans,ke.RowPositionUtils,We.CellPositionUtils,te.PaginationAutoPageSizeService,h.GridApi,pe.UserComponentRegistry,ue.AgComponentUtils,ce.ComponentMetadataProvider,we.ResizeObserverService,pe.UserComponentRegistry,le.UserComponentFactory,ye.MaxDivHeightScaler,me.AutoHeightCalculator,W.CellRendererFactory,b.HorizontalResizeService,ae.PinnedRowModel,A.DragService,g.DisplayedGroupCreator,c.EventService,i.GridOptionsWrapper,m.PopupService,r.SelectionController,p.FilterManager,s.ColumnController,ee.PaginationProxy,a.RowRenderer,y.ExpressionService,f.ColumnFactory,R.CsvCreator,z.Downloader,Y.XmlFactory,K.GridSerializer,v.TemplateService,se.AlignedGridsService,ge.NavigationService,m.PopupService,re.ValueCache,u.ValueService,C.LoggerFactory,w.ColumnUtils,_.AutoWidthCalculator,O.StandardMenuFactory,S.DragAndDropService,n.ColumnApi,D.FocusedCellController,x.MouseEventService,he.Environment,F.CellNavigationService,M.FilterStage,N.SortStage,L.FlattenStage,Z.FilterService,V.ValueFormatterService,X.StylingService,U.ScrollVisibleService,T.SortController,q.ColumnHoverService,Q.ColumnAnimationService,$.SortService,ve.SelectableService,J.AutoGroupColService,oe.ImmutableService,ne.ChangeDetectionService,fe.AnimationFrameService,be.TooltipManager,_e.ZipContainer,Ge.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 Xe=new C.Logger("Context",function(){return Ke.debug;});this.context=new E.Context(Ke,Xe);var qe=new P.GridCore();this.context.wireBean(qe),this.setColumnsAndData(),this.dispatchGridReadyEvent(o),this.logger.log("initialised successfully, enterprise = "+k);}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(),r=e.getRowData();De._.missing(i)&&De._.missing(r)||(De._.exists(i)&&t.setColumnDefs(i,"gridInitializing"),De._.exists(r)&&o.getType()===ie.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&o.setRowData(r));},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."),k.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 k.ClientSideRowModel;},e.prototype.destroy=function(){this.gridOptions.api.destroy();},e.enterpriseBeans=[],e.enterpriseComponents=[],e.enterpriseDefaultComponents=[],e.modulesToInclude=[],e.RowModelClasses={infinite:G.InfiniteRowModel,clientSide:k.ClientSideRowModel},e;}();t.Grid=Ve;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i59,r=this&&this.__extends||(_i59=function i(e,t){return(_i59=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;}_i59(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(58),m=o(7),C=o(2),w=function(e){function t(){return e.call(this,t.TEMPLATE)||this;}return r(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()===m.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()===m.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>',n([g.RefSelector("ePinnedLeftHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedLeftHeader",void 0),n([g.RefSelector("ePinnedRightHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedRightHeader",void 0),n([g.RefSelector("eHeaderContainer"),s("design:type",HTMLElement)],t.prototype,"eHeaderContainer",void 0),n([g.RefSelector("eHeaderViewport"),s("design:type",HTMLElement)],t.prototype,"eHeaderViewport",void 0),n([u.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([u.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),n([u.Autowired("gridApi"),s("design:type",y.GridApi)],t.prototype,"gridApi",void 0),n([u.Autowired("autoWidthCalculator"),s("design:type",v.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),n([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t;}(f.Component);t.HeaderRootComp=w;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i60,r=this&&this.__extends||(_i60=function i(e,t){return(_i60=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;}_i60(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(26),m=o(66),C=o(269),w=o(31),_=o(199),b=o(126),E=o(93),R=o(30),P=o(9),O=o(48),S=o(124),A=o(200),T=o(24),D=o(61),x=o(18),F=o(270),M=o(89),N=o(201),L=o(8),I=o(149),G=o(86),k=o(58),W=o(38),V=o(11),H=o(151),j=o(94),B=o(2),U='<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>',z=function(e){function t(){var t=e.call(this,U)||this;return t.scrollLeft=-1,t.scrollTop=-1,t.nextScrollTop=-1,t.resetLastHorizontalScrollElementDebounce=B._.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t;}return r(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(_t7){for(var o=!1,i=_t7.relatedTarget;B._.exists(i)&&!o;){var r=!!e.gridOptionsWrapper.getDomData(i,b.PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER),n=e.eBodyViewport===i||e.eBottom===i||e.eTop===i;o=r||n,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 o(){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,S.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(),r=o.getColumn(),n=o.isEditing();if(!B._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,i,r,n))switch(e){case"keydown":!n&&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 r=o?o.getRowNode():null,n=i?i.getColumn():null,s=null;if(n){var a=e||t;i.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(n,r);}this.onContextMenu(e,t,r,n,s);},t.prototype.onContextMenu=function(e,t,o,i,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var n=e||t.touches[0];this.contextMenuFactory.showMenu(o,i,r,n),(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,r=this.rangeController,n=g.Constants.PINNED_BOTTOM,s=g.Constants.PINNED_TOP;if(r&&i.isRowsToRender()){var a=[o.isEmpty(s),o.isEmpty(n)],l=a[0]?null:s,p=void 0,u=void 0;a[1]?(p=null,u=this.paginationProxy.getRowCount()-1):(p=n,u=o.getPinnedBottomRowData().length-1);var c=t.getAllDisplayedColumns();if(B._.missingOrEmpty(c))return;r.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,r=this.paginationProxy.getRow(e);do{var n=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,p=l+r.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),v=Math.min((g+y)/2,l),m=null;"top"===t?m=g:"bottom"===t?m=y:"middle"===t?m=v:d>l?m=g:h<p&&(m=y),null!==m&&(this.eBodyViewport.scrollTop=m,this.rowRenderer.redrawAfterScroll()),i=n!==r.rowTop||s!==r.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,r=B._.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+o+"px)",B._.setFixedHeight(this.eHorizontalScrollBody,i),B._.setFixedHeight(this.eBodyHorizontalScrollViewport,i+(r?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,r=t.getLeft(),n=r+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>r,u=i<n,c=s<t.getActualWidth(),d=p||c,h=u,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-r:l-n:d?r:n-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 t(){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,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==i&&this.headerRootComp.setLeftVisible(i),r.forEach(function(t){return B._.setDisplayed(t,e.pinningLeft);}),i&&r.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,r=i.columnController,n=i.gridOptionsWrapper,s=i.pinnedRowModel,a=i.eTop,l=i.eBottom,p=0,u=r.getHeaderRowCount();r.isPivotMode()?(p=0,t=n.getPivotGroupHeaderHeight(),o=n.getPivotHeaderHeight()):(n.isFloatingFilter()&&u++,p=n.isFloatingFilter()?1:0,t=n.getGroupHeaderHeight(),o=n.getHeaderHeight());var c=u-(1+p);e=p*n.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,r=Math.floor(B._.getScrollLeft(e,this.enableRtl));r<0||r+i>o||(this.doHorizontalScroll(r),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,r=o.scrollWidth;if(!(Math.abs(t)+i>r||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 n=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;B._.setScrollLeft(n,e,this.enableRtl);}},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e);},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e);},n([c.Autowired("alignedGridsService"),s("design:type",E.AlignedGridsService)],t.prototype,"alignedGridsService",void 0),n([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([c.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([c.Autowired("pinnedRowModel"),s("design:type",R.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),n([c.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),n([c.Autowired("animationFrameService"),s("design:type",O.AnimationFrameService)],t.prototype,"animationFrameService",void 0),n([c.Autowired("navigationService"),s("design:type",A.NavigationService)],t.prototype,"navigationService",void 0),n([c.Autowired("autoHeightCalculator"),s("design:type",I.AutoHeightCalculator)],t.prototype,"autoHeightCalculator",void 0),n([c.Autowired("columnAnimationService"),s("design:type",G.ColumnAnimationService)],t.prototype,"columnAnimationService",void 0),n([c.Autowired("autoWidthCalculator"),s("design:type",k.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),n([c.Autowired("paginationAutoPageSizeService"),s("design:type",_.PaginationAutoPageSizeService)],t.prototype,"paginationAutoPageSizeService",void 0),n([c.Autowired("beans"),s("design:type",W.Beans)],t.prototype,"beans",void 0),n([c.Autowired("paginationProxy"),s("design:type",w.PaginationProxy)],t.prototype,"paginationProxy",void 0),n([c.Autowired("columnApi"),s("design:type",p.ColumnApi)],t.prototype,"columnApi",void 0),n([c.Autowired("gridApi"),s("design:type",P.GridApi)],t.prototype,"gridApi",void 0),n([c.Autowired("dragService"),s("design:type",f.DragService)],t.prototype,"dragService",void 0),n([c.Autowired("mouseEventService"),s("design:type",y.MouseEventService)],t.prototype,"mouseEventService",void 0),n([c.Autowired("focusedCellController"),s("design:type",v.FocusedCellController)],t.prototype,"focusedCellController",void 0),n([c.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),n([c.Autowired("scrollVisibleService"),s("design:type",m.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),n([c.Autowired("valueService"),s("design:type",T.ValueService)],t.prototype,"valueService",void 0),n([c.Autowired("dragAndDropService"),s("design:type",x.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([c.Autowired("maxDivHeightScaler"),s("design:type",M.MaxDivHeightScaler)],t.prototype,"heightScaler",void 0),n([c.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),n([c.Autowired("resizeObserverService"),s("design:type",j.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),n([c.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),n([c.Optional("contextMenuFactory"),s("design:type",Object)],t.prototype,"contextMenuFactory",void 0),n([c.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),n([V.RefSelector("eBodyViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyViewport",void 0),n([V.RefSelector("eCenterContainer"),s("design:type",HTMLElement)],t.prototype,"eCenterContainer",void 0),n([V.RefSelector("eCenterViewport"),s("design:type",HTMLElement)],t.prototype,"eCenterViewport",void 0),n([V.RefSelector("eLeftContainer"),s("design:type",HTMLElement)],t.prototype,"eLeftContainer",void 0),n([V.RefSelector("eRightContainer"),s("design:type",HTMLElement)],t.prototype,"eRightContainer",void 0),n([V.RefSelector("eCenterColsClipper"),s("design:type",HTMLElement)],t.prototype,"eCenterColsClipper",void 0),n([V.RefSelector("eHorizontalScrollBody"),s("design:type",HTMLElement)],t.prototype,"eHorizontalScrollBody",void 0),n([V.RefSelector("eHorizontalLeftSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalLeftSpacer",void 0),n([V.RefSelector("eHorizontalRightSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalRightSpacer",void 0),n([V.RefSelector("eBodyHorizontalScrollViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollViewport",void 0),n([V.RefSelector("eBodyHorizontalScrollContainer"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollContainer",void 0),n([V.RefSelector("eFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eFullWidthContainer",void 0),n([V.RefSelector("eTop"),s("design:type",HTMLElement)],t.prototype,"eTop",void 0),n([V.RefSelector("eLeftTop"),s("design:type",HTMLElement)],t.prototype,"eLeftTop",void 0),n([V.RefSelector("eRightTop"),s("design:type",HTMLElement)],t.prototype,"eRightTop",void 0),n([V.RefSelector("eTopContainer"),s("design:type",HTMLElement)],t.prototype,"eTopContainer",void 0),n([V.RefSelector("eTopViewport"),s("design:type",HTMLElement)],t.prototype,"eTopViewport",void 0),n([V.RefSelector("eTopFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eTopFullWidthContainer",void 0),n([V.RefSelector("eBottom"),s("design:type",HTMLElement)],t.prototype,"eBottom",void 0),n([V.RefSelector("eLeftBottom"),s("design:type",HTMLElement)],t.prototype,"eLeftBottom",void 0),n([V.RefSelector("eRightBottom"),s("design:type",HTMLElement)],t.prototype,"eRightBottom",void 0),n([V.RefSelector("eBottomContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomContainer",void 0),n([V.RefSelector("eBottomViewport"),s("design:type",HTMLElement)],t.prototype,"eBottomViewport",void 0),n([V.RefSelector("eBottomFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomFullWidthContainer",void 0),n([V.RefSelector("headerRoot"),s("design:type",H.HeaderRootComp)],t.prototype,"headerRootComp",void 0),n([V.RefSelector("overlayWrapper"),s("design:type",N.OverlayWrapperComponent)],t.prototype,"overlayWrapper",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,function(e){return e.childrenAfterGroup;});}},e.prototype.updateSelectableAfterFiltering=function(e){if(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 r=a._.find(t(e),"selectable",!0);i=a._.exists(r);}else i=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(e);e.setRowSelectable(i);}});},i([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("selectableService")],e);}();t.SelectableService=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i61,r=this&&this.__extends||(_i61=function i(e,t){return(_i61=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;}_i61(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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 r=this.cacheParams.maxBlocksInCache>0,n=r?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||!!r&&t>=n){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=[],r=-1,n=!1,s=new a.NumberSequence();a._.missing(e)&&(n=!0);var l=!1;return this.forEachBlockInOrder(function(a,p){l||(n&&r+1!==p?l=!0:(r=p,a.forEachNodeShallow(function(o){var r=o===e||o===t;(n||r)&&i.push(o),r&&(n=!n);},s,o.virtualRowCount)));}),l||n?[]:i;},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,t;}(n.BeanStub);t.RowNodeCache=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i62,r=this&&this.__extends||(_i62=function i(e,t){return(_i62=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;}_i62(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i63,r=this&&this.__extends||(_i63=function i(e,t){return(_i63=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;}_i63(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(t,e),t.prototype.postConstruct=function(){var e=this,t=this.config,o=t.component,i=t.closable,r=t.hideTitleBar,n=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),r?d._.addCssClass(this.eTitleBar,"ag-hidden"):(n&&this.setTitle(n),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,r=e.isTop,n=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:n?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||r&&(l<0&&o.clientY>this.position.y+t.top+(s||0)||l>0&&o.clientY<this.position.y+t.top)||!r&&(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,r=i.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r));var n=e.getGui();d._.addCssClass(n,"ag-button"),0===t?o.insertAdjacentElement("afterbegin",n):t===r?o.insertAdjacentElement("beforeend",n):i[t-1].insertAdjacentElement("afterend",n),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>',n([l.Autowired("popupService"),s("design:type",u.PopupService)],t.prototype,"popupService",void 0),n([l.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eContentWrapper"),s("design:type",HTMLElement)],t.prototype,"eContentWrapper",void 0),n([a.RefSelector("eTitleBar"),s("design:type",HTMLElement)],t.prototype,"eTitleBar",void 0),n([a.RefSelector("eTitleBarButtons"),s("design:type",HTMLElement)],t.prototype,"eTitleBarButtons",void 0),n([a.RefSelector("eTitle"),s("design:type",HTMLElement)],t.prototype,"eTitle",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i64,r=this&&this.__extends||(_i64=function i(e,t){return(_i64=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;}_i64(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i65,r=this&&this.__extends||(_i65=function i(e,t){return(_i65=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;}_i65(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,o=t.min,i=t.max,r=t.step;null!=o&&this.setMinValue(o),null!=i&&this.setMaxValue(i),this.setStep(r||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;}(n.AgAbstractInputField);t.AgInputRange=a;},function(e,t,o){"use strict";var _i66,r=this&&this.__extends||(_i66=function i(e,t){return(_i66=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;}_i66(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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",n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),n([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 _i67,r=this&&this.__extends||(_i67=function i(e,t){return(_i67=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;}_i67(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(_t8,o,i){_t8.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>',n([a.RefSelector("shadowGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"shadowGroup",void 0),n([a.RefSelector("shadowColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"shadowColorPicker",void 0),n([a.RefSelector("shadowBlurSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowBlurSlider",void 0),n([a.RefSelector("shadowXOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowXOffsetSlider",void 0),n([a.RefSelector("shadowYOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowYOffsetSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i68,r=this&&this.__extends||(_i68=function i(e,t){return(_i68=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;}_i68(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 o(t,_o2,i,r){_o2.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getSeriesProperty(t)).setMaxValue(r).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>',n([a.RefSelector("seriesMarkersGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesMarkersGroup",void 0),n([a.RefSelector("seriesMarkerSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesMarkerSizeSlider",void 0),n([a.RefSelector("seriesMarkerStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesMarkerStrokeWidthSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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),r=o(16),n=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 n.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 n.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,r=t.pickSeriesNode(o,i);if(r){var n=r.node;n instanceof s.Shape&&(t.lastPick?t.lastPick.node!==n?t.onSeriesNodePick(e,r.series,n):r.series.tooltipEnabled&&t.showTooltip(e):t.onSeriesNodePick(e,r.series,n));}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,r=t.legend.datumForPoint(o,i);if(r){var n=r.id,s=r.itemId,a=r.enabled,l=p.find(t.series,function(e){return e.id===n;});l&&l.toggleSeriesItem(s,!a);}},this._tooltipClass=this.defaultTooltipClass;var o=new r.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 get(){return this.scene.canvas.element;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function get(){return this.scene.parent;},set:function set(e){this.scene.parent=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function get(){return this._title;},set:function set(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 get(){return this._subtitle;},set:function set(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 get(){return this._series;},set:function set(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 get(){return this._legendPosition;},set:function set(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 get(){return this._legendPadding;},set:function set(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 get(){return this._data;},set:function set(e){this._data=e,this.series.forEach(function(t){return t.data=e;});},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function get(){return this._padding;},set:function set(e){this._padding=e,this.layoutPending=!0;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function get(){return this.scene.size;},set:function set(e){this.scene.size=e,this.layoutPending=!0;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function get(){return this.scene.width;},set:function set(e){this.scene.width=e,this.layoutPending=!0;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function get(){return this.scene.height;},set:function set(e){this.scene.height=e,this.layoutPending=!0;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutPending",{get:function get(){return!!this.layoutCallbackId;},set:function set(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 get(){return!!this.dataCallbackId;},set:function set(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,r=0;if(e&&e.enabled){r+=10;var n=e.node.getBBox();if(e.node.x=this.width/2,e.node.y=r,o=!0,r+=n?n.height:0,t&&t.enabled){var s=t.node.getBBox();t.node.x=this.width/2,t.node.y=r,i=!0,r+=5+(s?s.height:0);}}e&&(e.node.visible=o),t&&(t.node.visible=i),this.captionAutoPadding!==r&&(this.captionAutoPadding=r,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,r=this.legend,n=r.group,s=this.legendPadding,a=this.legendAutoPadding;switch(n.translationX=0,n.translationY=0,this.legendPosition){case"bottom":r.performLayout(o-2*s,0),e=n.getBBox(),n.translationX=(o-e.width)/2-e.x,n.translationY=t+i-e.height-e.y-s,a.bottom!==e.height&&(a.bottom=e.height,this.layoutPending=!0);break;case"top":r.performLayout(o-2*s,0),e=n.getBBox(),n.translationX=(o-e.width)/2-e.x,n.translationY=t+s-e.y,a.top!==e.height&&(a.top=e.height,this.layoutPending=!0);break;case"left":r.performLayout(0,i-2*s),e=n.getBBox(),n.translationX=s-e.x,n.translationY=t+(i-e.height)/2-e.y,a.left!==e.width&&(a.left=e.width,this.layoutPending=!0);break;default:r.performLayout(0,i-2*s),e=n.getBBox(),n.translationX=o-e.width-e.x-s,n.translationY=t+(i-e.height)/2-e.y,a.right!==e.width&&(a.right=e.width,this.layoutPending=!0);}n.translationX=Math.floor(n.translationX),n.translationY=Math.floor(n.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,r=o.length-1;r>=0;r--){var n=o[r];if(i=n.group.pickNode(e,t))return{series:n,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 get(){return this._tooltipClass;},set:function set(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,r=o.parentElement;if(void 0!==t)o.innerHTML=t;else if(!o.innerHTML)return;t&&this.toggleTooltip(!0);var n=this.tooltipRect=o.getBoundingClientRect(),s=e.pageX+i[0],a=e.pageY+i[1];n&&r&&r.parentElement&&s-pageXOffset+n.width>r.parentElement.offsetWidth&&(s-=n.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 _i69,r=this&&this.__extends||(_i69=function i(e,t){return(_i69=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;}_i69(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),Object.defineProperty(t.prototype,"svgPath",{get:function get(){return this._svgPath;},set:function set(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;}(n.Shape);t.Path=a;},function(e,t,o){"use strict";var _i70,r=this&&this.__extends||(_i70=function i(e,t){return(_i70=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;}_i70(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),Object.defineProperty(t.prototype,"nice",{get:function get(){return this._nice;},set:function set(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 get(){return this.scale.domain;},set:function set(e){this.scale.domain=e,this.nice&&this.scale.nice&&this.scale.nice(10);},enumerable:!0,configurable:!0}),t;}(n.Axis);t.NumberAxis=a;},function(e,t,o){"use strict";var _i71,r=this&&this.__extends||(_i71=function i(e,t){return(_i71=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;}_i71(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(103),s=function(e){function t(){var t=new n.BandScale();return t.paddingInner=.2,t.paddingOuter=.3,e.call(this,t)||this;}return r(t,e),t;}(o(227).Axis);t.CategoryAxis=s;},function(e,t,o){"use strict";var _i72,r=this&&this.__extends||(_i72=function i(e,t){return(_i72=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;}_i72(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=new l.ToolPanelColumnGroupComp(e,t,this.onGroupExpanded.bind(this),this.allowDragging,this.expandGroupsByDefault);this.getContext().wireBean(r),this.getGui().appendChild(r.getGui()),i=t+1,this.columnComps[e.getId()]=r;}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,r=function r(e){e.forEach(function(e){if(e instanceof a.OriginalColumnGroup){var n=t.columnComps[e.getId()];n&&(n.isExpanded()?o++:i++);var s=e.getChildren();r(s);}});};r(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={},o=function o(i){var r=!1;return i.forEach(function(i){var n,s=!1;if(i instanceof a.OriginalColumnGroup){var l=i.getChildren();s=o(l);}if(s)n=!0;else{var p=e.columnComps[i.getId()];if(p&&e.filterText){var u=p.getDisplayName();n=null===u||u.toLowerCase().indexOf(e.filterText)>=0;}else n=!!(i instanceof a.OriginalColumnGroup&&i.getOriginalParent());}t[i.getId()]=n,n&&(r=!0);}),r;};return o(this.columnTree),t;},t.prototype.recursivelySetVisibility=function(e,t,o){var i=this;e.forEach(function(e){var r=i.columnComps[e.getId()];if(r){var n=!o||o[e.getId()];r.setDisplayed(t&&n);}if(e instanceof a.OriginalColumnGroup){var s=e,l=void 0;if(r){var p=r.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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"globalEventService",void 0),n([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 _i73,r=this&&this.__extends||(_i73=function i(e,t){return(_i73=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;}_i73(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=this;void 0===t&&(t=!1),void 0===o&&(o=!0),this.valueModel.onFilterValuesReady(function(){var n=r.setFilterParams&&"keep"===r.setFilterParams.newRowsAction;r.valueModel.setValuesType(p.SetFilterModelValuesType.PROVIDED_LIST),r.valueModel.refreshValues(e,n,t),r.updateSelectAll(),(i||e).forEach(function(e){return r.valueModel.selectValue(e);}),r.virtualList.refresh(),o&&r.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);},n([l.RefSelector("eSelectAll"),s("design:type",HTMLInputElement)],t.prototype,"eSelectAll",void 0),n([l.RefSelector("eSelectAllContainer"),s("design:type",HTMLElement)],t.prototype,"eSelectAllContainer",void 0),n([l.RefSelector("eMiniFilter"),s("design:type",HTMLInputElement)],t.prototype,"eMiniFilter",void 0),n([l.RefSelector("ag-filter-loading"),s("design:type",HTMLInputElement)],t.prototype,"eFilterLoading",void 0),n([l.Autowired("valueFormatterService"),s("design:type",l.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),n([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,r=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 n=function(){function e(e,t,o,n,s,a,l,p,u){this.suppressSorting=s,this.colDef=e,this.valueGetter=o,this.doesRowPassOtherFilters=n,this.modelUpdatedFunc=a,this.isLoadingFunc=l,this.valueFormatterService=p,this.column=u,t.getType()===r.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=t),this.filterParams=this.colDef.filterParams?this.colDef.filterParams:{},r._.exists(this.filterParams)&&r._.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:r.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=r.Promise.resolve([]);}else{this.filterValuesExternalPromise=r.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)?r._.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=r._.toStrings(t);}return e;},e.prototype.createAvailableUniqueValues=function(){if(!this.showingAvailableOnly||this.valuesType==i.PROVIDED_LIST||this.valuesType==i.PROVIDED_CB)this.availableUniqueValues=this.allUniqueValues;else{var e=this.getUniqueValues(!0);this.availableUniqueValues=r._.toStrings(e),this.sortValues(this.availableUniqueValues);}},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(r._.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 r(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 n=0;n<i.length;n++){r(i[n]);}else r(i);}}),i;},e.prototype.setMiniFilter=function(e){return e=r._.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(_t9){return null!=_t9&&_t9.toUpperCase().indexOf(e)>=0;},o=0,i=this.availableUniqueValues.length;o<i;o++){var r=this.availableUniqueValues[o];if(r){var n=this.formatter(r.toString()),s=this.valueFormatterService.formatValue(this.column,null,null,n);(t(n)||t(s))&&this.displayedValues.push(r);}}}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],r=this.valueToKey(i);this.selectedValuesMap[r]=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 r._.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],r=this.keyToValue(i);this.allUniqueValues.indexOf(r)>=0&&this.selectValue(r);}}else this.selectAllUsingMiniFilter();},e.prototype.onFilterValuesReady=function(e){this.filterValuesPromise.firstOneOnly(e);},e;}();t.SetValueModel=n;},function(e,t,o){"use strict";var _i74,r=this&&this.__extends||(_i74=function i(e,t){return(_i74=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;}_i74(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r=e.call(this,t.TEMPLATE)||this;return r.selected=!0,r.value=o,r.column=i,r;}return r(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 r=this.gridOptionsWrapper.getLocaleTextFunc();t.innerText="("+r("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(),r={value:this.value,valueFormatted:o,api:this.gridOptionsWrapper.getApi()},n=this.useCellRenderer(i,t,r);n&&n.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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("valueFormatterService"),s("design:type",a.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([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 _i75,r=this&&this.__extends||(_i75=function i(e,t){return(_i75=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;}_i75(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 getRowCount(){return t.length;},getRow:function getRow(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 r=this.params.values[i];this.setSelectedValue(r);}},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()},r=this.userComponentFactory.newCellRenderer(this.params,i);null!=r?a._.bindCellRendererToHtmlElement(r,o):o.innerText=null!=i.valueFormatted?i.valueFormatted:i.value,r?r.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,r=Math.floor(i/this.virtualList.getRowHeight()),n=this.params.values[r];void 0!==n&&this.setSelectedValue(n);},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>',n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),n([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 _i76,r=this&&this.__extends||(_i76=function i(e,t){return(_i76=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;}_i76(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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()},r=this.userComponentFactory.newCellRenderer(this.params,i);return null!=r?a._.bindCellRendererToHtmlElement(r,this.getGui()):this.getGui().innerText=null!=i.valueFormatted?i.valueFormatted:i.value,!!r&&(r.then(function(e){e&&e.destroy&&o.addDestroyFunc(e.destroy.bind(e));}),!0);},n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([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 _i77,r=this&&this.__extends||(_i77=function i(e,t){return(_i77=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;}_i77(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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);},n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("cbPivotMode"),s("design:type",a.AgCheckbox)],t.prototype,"cbPivotMode",void 0),n([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 _i78,r=this&&this.__extends||(_i78=function i(e,t){return(_i78=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;}_i78(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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,r){var n=e.call(this)||this;return n.popupShowing=!1,n.valueColumn=r,n.column=t,n.dragSourceDropTarget=o,n.ghost=i,n;}return r(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 dragItemCallback(){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 getRow(e){return o[e];},getRowCount:function getRowCount(){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 r=this.popupService.addAsModalPopup(i,!0,function(){t.destroy(),e.popupShowing=!1;});t.setComponentCreator(this.createAggSelect.bind(this,r)),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(),r=t.toString(),n=i(r,r);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");},n);},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>',n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("popupService"),s("design:type",a.PopupService)],t.prototype,"popupService",void 0),n([a.Autowired("aggFuncService"),s("design:type",l.AggFuncService)],t.prototype,"aggFuncService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),n([a.RefSelector("eDragHandle"),s("design:type",HTMLElement)],t.prototype,"eDragHandle",void 0),n([a.RefSelector("btRemove"),s("design:type",HTMLElement)],t.prototype,"btRemove",void 0),n([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 r(t,e),t;}(a.Component);},function(e,t,o){"use strict";var _i79,r=this&&this.__extends||(_i79=function i(e,t){return(_i79=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;}_i79(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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();},n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([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 _i80,r=this&&this.__extends||(_i80=function i(e,t){return(_i80=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;}_i80(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([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 r(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",n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eToggleButton"),s("design:type",HTMLButtonElement)],t.prototype,"eToggleButton",void 0),n([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 _i81,r=this&&this.__extends||(_i81=function i(e,t){return(_i81=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;}_i81(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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";},n([a.Autowired("horizontalResizeService"),s("design:type",a.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([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,r,n,s,a,l,p,u,c=o(1),d=o(364),h=o(365),f=o(366),g=o(368),y=o(369),v=o(372),m=o(373),C=o(235),w=o(236),_=o(237),b=function b(){i={base:0},r=[],n=[{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(e){var o,l,u,d,h,f,g=e.id,y=e.alignment,v=e.borders,m=e.font,b=e.interior,E=e.numberFormat,R=e.protection,P=0,O=0,S=0,A=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})),P=f),v&&(O=function(e){var o,i,r,n,s,l,p,u,d=e.borderBottom,h=e.borderTop,f=e.borderLeft,g=e.borderRight;f&&(r=_.convertLegacyBorder(f.lineStyle,f.weight),p=t.convertLegacyColor(f.color)),g&&(n=_.convertLegacyBorder(g.lineStyle,g.weight),u=t.convertLegacyColor(g.color)),d&&(o=_.convertLegacyBorder(d.lineStyle,d.weight),s=t.convertLegacyColor(d.color)),h&&(i=_.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&&(r||p))return!1;if(!a&&(n||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||{},v=y.style,m=y.color,C=c||{},w=C.style,_=C.color,b=d||{},E=b.style,R=b.color;return f==r&&g==p&&v==n&&m==u&&w==i&&_==l&&E==o&&R==s;});return-1===y&&(y=a.length,a.push({left:{style:r,color:p},right:{style:n,color:u},top:{style:i,color:l},bottom:{style:o,color:s},diagonal:{style:void 0,color:void 0}})),y;}(v)),m&&(S=function(e){var o=e.fontName,i=e.color,r=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=w.getFamilyId(h),v=c._.findIndex(n,function(e){return e.name==f&&e.color==g&&e.size==r&&e.bold==s&&e.italic==a&&e.outline==l&&e.shadow==p&&e.strike==u&&e.underline==d&&e.family==y;});return-1===v&&(v=n.length,n.push({name:f,color:g,size:r,bold:s,italic:a,outline:l,shadow:p,strike:u,underline:d,family:y})),v;}(m)),E&&(A=function(e){if(e=c._.utf8_encode(e),C.numberFormatMap[e])return C.numberFormatMap[e];var t=c._.findIndex(r,function(t){return t.formatCode===e;});return-1===t?(t=r.length+164,r.push({formatCode:e,numFmtId:t})):t=r[t].numFmtId,t;}(E.format)),i[g]=p.length,p.push({alignment:y,borderId:O||0,fillId:P||0,fontId:S||0,numFmtId:A||0,protection:R,xfId:0}));},R={getTemplate:function getTemplate(){var e=d["default"].getTemplate(r),t=h["default"].getTemplate(n),o=f["default"].getTemplate(s),i=g["default"].getTemplate(a),c=y["default"].getTemplate(l),C=v["default"].getTemplate(p),w=m["default"].getTemplate(u);return b(),{name:"styleSheet",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[e,t,o,i,c,C,w,{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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i82,r=this&&this.__extends||(_i82=function i(e,t){return(_i82=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;}_i82(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t.prototype.isPopup=function(){return!0;},t;}(o(131).TextCellEditor);t.PopupTextCellEditor=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i83,r=this&&this.__extends||(_i83=function i(e,t){return(_i83=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;}_i83(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t.prototype.isPopup=function(){return!0;},t;}(o(136).SelectCellEditor);t.PopupSelectCellEditor=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i84,r=this&&this.__extends||(_i84=function i(e,t){return(_i84=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;}_i84(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(47),s=o(7),a=o(2),l=function(e){function t(){return e.call(this,t.TEMPLATE)||this;}return r(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;}(n.PopupComponent);t.LargeTextCellEditor=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i85,r=this&&this.__extends||(_i85=function i(e,t){return(_i85=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;}_i85(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),s=o(33),a=o(181),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(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 r=e;return this.conditionToString(r);},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter;},t.prototype.getLastType=function(){return this.lastType;},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=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;}(n.Component);t.SimpleFloatingFilter=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i86,r=this&&this.__extends||(_i86=function i(e,t){return(_i86=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;}_i86(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=t.column.getDefinition();r.filterParams&&r.filterParams.filterOptions&&1===r.filterParams.filterOptions.length&&"inRange"===r.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;},n([a.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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)this.destroyFullWidthRow(o);else{var i=this.getCacheItem(e,!0);switch(t){case n.Column.PINNED_LEFT:this.destroyFullWidthRow(i.left),i.left=o;break;case n.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);}},e.prototype.getCacheItem=function(e,t){var o;void 0===t&&(t=!1);for(var i=0;i<this.cacheItems.length;i++){var r=this.cacheItems[i];if(r.rowNode===e){o=r;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 n.Column.PINNED_LEFT:i.left&&(o=i.left,i.left=void 0);break;case n.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"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),i([s.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroy",null),e=i([s.Bean("detailRowCompCache")],e);}();t.DetailRowCompCache=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i87,r=this&&this.__extends||(_i87=function i(e,t){return(_i87=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;}_i87(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(9),m=o(27),C=o(4),w=o(19),_=o(49),b=o(11),E=o(263),R=o(6),P=o(64),O=o(38),S=o(146),A=o(61),T=o(2),D=function(e){function t(o,i,r){var n=e.call(this,t.TEMPLATE)||this;return n.column=o,n.dragSourceDropTarget=i,n.pinned=r,n;}return r(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 S.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 r=new y.SetLeftFeature(this.column,this.getGui(),this.beans);r.init(),this.addDestroyFunc(r.destroy.bind(r)),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);T._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e);},t.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();T._.addCssClass(t,"ag-header-cell-sortable");}},t.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();T._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e);},t.prototype.appendHeaderComp=function(e,t,o){var i=this,r={column:this.column,displayName:e,enableSorting:t,enableMenu:o,showColumnMenu:function showColumnMenu(e){i.gridApi.showColumnMenuAfterButtonClick(i.column,e);},progressSort:function progressSort(e){i.sortController.progressSort(i.column,!!e,"uiColumnSorted");},setSort:function setSort(e,t){i.sortController.setSortForColumn(i.column,e,!!t,"uiColumnSorted");},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},n=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(r).then(n);},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e);},t.prototype.onColumnMovingChanged=function(){this.column.isMoving()?T._.addCssClass(this.getGui(),"ag-header-cell-moving"):T._.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 dragItemCallback(){return o.createDragItem();},dragItemName:t,dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function dragStarted(){return o.column.setMoving(!0,"uiColumnMoved");},dragStopped:function dragStopped(){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 A.TouchListener(this.eResize);this.addDestroyableEventListener(i,A.TouchListener.EVENT_DOUBLE_TAP,function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized");}),this.addDestroyFunc(i.destroy.bind(i));}}else T._.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&&T._.removeCssClass(this.getGui(),"ag-column-resizing");},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,T._.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>',n([l.Autowired("gridOptionsWrapper"),s("design:type",f.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("dragAndDropService"),s("design:type",u.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([l.Autowired("columnController"),s("design:type",d.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),n([l.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),n([l.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),n([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("sortController"),s("design:type",m.SortController)],t.prototype,"sortController",void 0),n([l.Autowired("eventService"),s("design:type",C.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([l.Autowired("columnHoverService"),s("design:type",P.ColumnHoverService)],t.prototype,"columnHoverService",void 0),n([l.Autowired("beans"),s("design:type",O.Beans)],t.prototype,"beans",void 0),n([b.RefSelector("eResize"),s("design:type",HTMLElement)],t.prototype,"eResize",void 0),n([b.RefSelector("cbSelectAll"),s("design:type",_.AgCheckbox)],t.prototype,"cbSelectAll",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return i&&r&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),r=!1),r?e.forEach(function(e,i){o.push(t.createOneAutoGroupColumn(e,i));}):o.push(this.createOneAutoGroupColumn()),o;},e.prototype.createOneAutoGroupColumn=function(e,o){var i,r=this.generateDefaultColDef(e);i=e?u.Constants.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var n=this.gridOptionsWrapper.getAutoGroupColumnDef();(c._.mergeDeep(r,n),(r=this.columnFactory.mergeColDefs(r)).colId=i,this.gridOptionsWrapper.isTreeData())||c._.missing(r.field)&&c._.missing(r.valueGetter)&&c._.missing(r.filterValueGetter)&&(r.filter=!1);o&&o>0&&(r.headerCheckboxSelection=!1);var a=new s.Column(r,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([n.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("columnFactory"),r("design:type",p.ColumnFactory)],e.prototype,"columnFactory",void 0),e=t=i([n.Bean("autoGroupColService")],e);}();t.AutoGroupColService=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return l._.exists(e)&&e.forEach(function(e,n){var s=t(e),a=i[s];(r&&(r[s]=n),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,r];}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!");}},i([n.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("immutableService")],e);}();t.ImmutableService=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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 r=e.DEFAULT_BY_KEY[t];if(!r)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=r;}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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),r=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 r=void 0;if(e?(r=e,0!==o&&(r+="_"+o)):t?(r=t,0!==o&&(r+="_"+o)):r=""+o,this.existingKeys.indexOf(r)<0)return this.existingKeys.push(r),r;o++;}},e;}();t.ColumnKeyCreator=r;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=o[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(i&&e||!i&&t)&&(r+=this.scrollWidth),g._.setFixedWidth(this.eContainer,r);}},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());}if(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"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),r("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),i([s.Autowired("dragAndDropService"),r("design:type",a.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("columnController"),r("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("scrollVisibleService"),r("design:type",f.ScrollVisibleService)],e.prototype,"scrollVisibleService",void 0),i([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e;}();t.HeaderContainer=y;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i88,r=this&&this.__extends||(_i88=function i(e,t){return(_i88=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;}_i88(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(17),m=o(9),C=o(7),w=o(2),_=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,r){var n=e.call(this,'<div class="ag-header-row" role="row"/>')||this;return n.headerComps={},n.dept=t,n.type=o,n.pinned=i,n.dropTarget=r,n;}return r(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=[],r=0;this.columnController.isPivotMode()?(r=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&o++,r=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var n=o-(1+r),s=0;s<n;s++){i.push(e);}i.push(t);for(s=0;s<r;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?w._.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(w._.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(),r=this.gridOptionsWrapper.isEnsureDomOrder();i.forEach(function(i){if(!i.isEmptyGroup()){var n,s,a=i.getUniqueId(),l=t.getGui();o.indexOf(a)>=0?(w._.removeFromArray(o,a),s=(n=t.headerComps[a]).getGui(),r&&w._.ensureDomOrder(l,s,e),e=s):(n=t.createHeaderComp(i),t.headerComps[a]=n,s=n.getGui(),r?w._.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 _.FloatingFilterWrapper(e);}return this.getContext().wireBean(t),t;},n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("gridApi"),s("design:type",m.GridApi)],t.prototype,"gridApi",void 0),n([p.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),n([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),n([p.Autowired("filterManager"),s("design:type",v.FilterManager)],t.prototype,"filterManager",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n,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";}(n||(n={}));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[n.ColumnMove]=this.moveColumnController,this.dropListeners[n.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?n.Pivot:n.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"),r("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([a.Autowired("columnController"),r("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e;}();t.BodyDropTarget=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return 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 r=this.normaliseDirection(e.hDirection),n=e.dragSource.type,s=e.dragSource.dragItemCallback().columns;s=s.filter(function(e){return!e.getColDef().lockPinned||e.getPinned()==o.pinned;}),this.attemptMoveColumns(n,s,r,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,r){var n=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&&!r;if(e==u.DragSourceType.HeaderCell&&(c=null!==l),c){if(n&&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,r=this.columnController.getDisplayedColumns(this.pinned),n=this.columnController.getAllGridColumns(),s=function s(t){return e.indexOf(t)<0;},a=r.filter(function(t){return e.indexOf(t)>=0;}),l=r.filter(s),p=n.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;h++){if((c-=l[h].getActualWidth())<0)break;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,v=n.length-1;y<=v;){g.push(y),y++;}else{y=i,v=n.length-1;for(var m=n[y];y<=v&&this.isColumnHidden(r,m);){y++,g.push(y),m=n[y];}y=i-1;for(;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([n.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([n.Autowired("columnController"),r("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("dragAndDropService"),r("design:type",u.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e;}();t.MoveColumnController=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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?n.DragAndDropService.ICON_PINNED:n.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"),r("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e;}();t.BodyDropPivotTarget=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i89,r=this&&this.__extends||(_i89=function i(e,t){return(_i89=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;}_i89(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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);}}},n([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("scrollVisibleService"),s("design:type",d.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),t=n([u.Bean("paginationAutoPageSizeService")],t);}(a.BeanStub);t.PaginationAutoPageSizeService=h;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r=this.mouseEventService.getCellPositionForEvent(e);if(!r)return!1;var n=!1;switch(t){case s.Constants.KEY_PAGE_HOME:case s.Constants.KEY_PAGE_END:i||o||(this.onHomeOrEndKey(t),n=!0);break;case s.Constants.KEY_LEFT:case s.Constants.KEY_RIGHT:i&&!o&&(this.onCtrlLeftOrRight(t,r),n=!0);break;case s.Constants.KEY_UP:case s.Constants.KEY_DOWN:i&&!o&&(this.onCtrlUpOrDown(t,r),n=!0);break;case s.Constants.KEY_PAGE_DOWN:i||o||(this.onPageDown(r),n=!0);break;case s.Constants.KEY_PAGE_UP:i||o||(this.onPageUp(r),n=!0);}return n&&e.preventDefault(),n;},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(),r=t.top+o,n=this.paginationProxy.getRowIndexAtPixel(r+i),s=this.paginationProxy.getRow(e.rowIndex).rowTop+o-i,a=this.paginationProxy.getRowIndexAtPixel(s+i),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),n>l&&(n=l),this.navigateTo(n,"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(),r=t.top,n=this.paginationProxy.getRowIndexAtPixel(r+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),n<p&&(n=p),this.navigateTo(n,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed();}},e.prototype.navigateTo=function(e,t,o,i,r){if(h._.exists(o)&&this.gridPanel.ensureColumnVisible(o),h._.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusedCellController.setFocusedCell(i,r,null,!0),this.rangeController){var n={rowIndex:i,rowPinned:null,column:r};this.rangeController.setRangeToCell(n);}},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(),r=o?i[0]:h._.last(i);this.navigateTo(t.rowIndex,null,r,t.rowIndex,r);},e.prototype.onHomeOrEndKey=function(e){var t=e===s.Constants.KEY_PAGE_HOME,o=this.columnController.getAllDisplayedColumns(),i=t?o[0]:h._.last(o),r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,i,r,i);},i([n.Autowired("mouseEventService"),r("design:type",a.MouseEventService)],e.prototype,"mouseEventService",void 0),i([n.Autowired("paginationProxy"),r("design:type",l.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([n.Autowired("focusedCellController"),r("design:type",p.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([n.Autowired("animationFrameService"),r("design:type",u.AnimationFrameService)],e.prototype,"animationFrameService",void 0),i([n.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),i([n.Autowired("columnController"),r("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("navigationService")],e);}();t.NavigationService=f;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i90,r=this&&this.__extends||(_i90=function i(e,t){return(_i90=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;}_i90(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([p.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("userComponentFactory"),s("design:type",c.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([d.RefSelector("eOverlayWrapper"),s("design:type",HTMLElement)],t.prototype,"eOverlayWrapper",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i91,r=this&&this.__extends||(_i91=function i(e,t){return(_i91=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;}_i91(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(26),m=o(8),C=o(9),w=o(11),_=o(6),b=o(94),E=o(192),R=o(2),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(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 r=this.gridPanel.getGui();this.addDestroyableEventListener(r,"focusin",function(){R._.addCssClass(r,"ag-has-focus");}),this.addDestroyableEventListener(r,"focusout",function(e){r.contains(e.relatedTarget)||R._.removeCssClass(r,"ag-has-focus");});var n=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return n();});},t.prototype.onGridSizeChanged=function(){var e={type:_.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,r=-1,n=0;n<o;n++){var s=this.rowModel.getRow(n);if(i){if(e(s)){r=n;break;}}else if(e===s||e===s.data){r=n;break;}}r>=0&&this.gridPanel.ensureIndexVisible(r,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>',n([y.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),n([y.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),n([y.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([y.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([y.Autowired("resizeObserverService"),s("design:type",b.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),n([y.Autowired("columnController"),s("design:type",p.ColumnController)],t.prototype,"columnController",void 0),n([y.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([y.Autowired("filterManager"),s("design:type",c.FilterManager)],t.prototype,"filterManager",void 0),n([y.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),n([y.Autowired("eGridDiv"),s("design:type",HTMLElement)],t.prototype,"eGridDiv",void 0),n([y.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),n([y.Autowired("quickFilterOnScope"),s("design:type",String)],t.prototype,"quickFilterOnScope",void 0),n([y.Autowired("popupService"),s("design:type",g.PopupService)],t.prototype,"popupService",void 0),n([y.Autowired("focusedCellController"),s("design:type",v.FocusedCellController)],t.prototype,"focusedCellController",void 0),n([y.Autowired("loggerFactory"),s("design:type",f.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([y.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),n([y.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),n([y.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),n([w.RefSelector("gridPanel"),s("design:type",h.GridPanel)],t.prototype,"gridPanel",void 0),n([w.RefSelector("sideBar"),s("design:type",Object)],t.prototype,"sideBarComp",void 0),n([w.RefSelector("rootWrapperBody"),s("design:type",HTMLElement)],t.prototype,"eRootWrapperBody",void 0),n([y.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(m.Component);t.GridCore=P;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),n=document.createElement("div");u._.addCssClass(n,"ag-menu"),r.guiPromise.promise.then(function(e){n.appendChild(e);});var s=function s(e){"horizontal"===e.direction&&o();};this.eventService.addEventListener("bodyScroll",s);o=this.popupService.addAsModalPopup(n,!0,function(){i.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu");}),t(n),r.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([n.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("filterManager"),r("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([n.Autowired("popupService"),r("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([n.Bean("menuFactory")],e);}();t.StandardMenuFactory=c;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("selectableService"),r("design:type",l.SelectableService)],e.prototype,"selectableService",void 0),i([n.Autowired("filterService"),r("design:type",a.FilterService)],e.prototype,"filterService",void 0),e=i([n.Bean("filterStage")],e);}();t.FilterStage=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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 i(t,_i92){t.hasChildren()?(t.childrenAfterFilter=e&&!_i92?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 r=function r(e,t){if(e.childrenAfterGroup)for(var n=0;n<e.childrenAfterGroup.length;n++){var s=e.childrenAfterGroup[n],a=t||o.filterManager.doesRowPassFilter(s);s.childrenAfterGroup?r(e.childrenAfterGroup[n],a):i(s,a);}i(e,t);};t.executeFromRootNode(function(e){return r(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([n.Autowired("filterManager"),r("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([n.Bean("filterService")],e);}();t.FilterService=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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(),r=i?this.calculateDirtyNodes(e.rowNodeTransactions):null,n=this.columnController.getValueColumns(),s=u._.missingOrEmpty(n);this.sortService.sort(t,o,i,r,e.changedPath,s);},e.prototype.calculateDirtyNodes=function(e){var t={},o=function o(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([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("sortService"),r("design:type",a.SortService)],e.prototype,"sortService",void 0),i([n.Autowired("sortController"),r("design:type",l.SortController)],e.prototype,"sortController",void 0),i([n.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),e=i([n.Bean("sortStage")],e);}();t.SortStage=c;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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,r,n){var s=this;r.forEachChangedNodeDepthFirst(function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=o?s.doDeltaSort(a,e,i,r,n):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(r);},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,r){var n=e.childrenAfterSort.filter(function(e){var t=!o[e.id],n=r||i.canSkip(e);return t&&n;}).map(this.mapNodeToSortedNode.bind(this)),s={};n.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?n:0===n.length?a:this.mergeSortedArrays(t,n,a);},e.prototype.mergeSortedArrays=function(e,t,o){for(var i=[],r=0,n=0;r<t.length&&n<o.length;){this.compareRowNodes(e,t[r],o[n])<0?i.push(t[r++]):i.push(o[n++]);}for(;r<t.length;){i.push(t[r++]);}for(;n<o.length;){i.push(o[n++]);}return i;},e.prototype.compareRowNodes=function(e,t,o){for(var i=t.rowNode,r=o.rowNode,n=0,s=e.length;n<s;n++){var a=e[n],l=-1===a.inverter,p=this.getValue(i,a.column),c=this.getValue(r,a.column),d=void 0;if(0!==(d=a.column.getColDef().comparator?a.column.getColDef().comparator(p,c,i,r,l):u._.defaultComparator(p,c,this.gridOptionsWrapper.isAccentedSort())))return d*a.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],r=0===o,n=o===e.childrenAfterSort.length-1;i.setFirstChild(r),i.setLastChild(n),i.setChildIndex(o);}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var o=function o(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach(function(e){e.hasChildren()&&o(e);});};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 r=i.getColDef().showRowGroup;if("string"==typeof r){var n=r,s=o.columnController.getPrimaryColumn(n);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([n.Autowired("sortController"),r("design:type",s.SortController)],e.prototype,"sortController",void 0),i([n.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("valueService"),r("design:type",a.ValueService)],e.prototype,"valueService",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([n.Bean("sortService")],e);}();t.SortService=c;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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},r=this.columnController.isPivotMode(),n=r&&t.leafGroup,s=n?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,i,r,0),!n&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,o,i,0)),o;},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,i,r){if(!c._.missingOrEmpty(e))for(var n=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=n&&d,f=i&&!d,g=a&&d&&1===u.childrenAfterGroup.length,y=l&&d&&u.leafGroup&&1===u.childrenAfterGroup.length,v=i&&u.leafGroup,m=s&&u.expanded&&!v;if(!(f||h||m||g||y)&&this.addRowNodeToRowsToDisplay(u,t,o,r),!i||!u.leafGroup)if(d){var C=g||y;if(u.expanded||C){var w=C?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,i,w),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,o,r));}}else if(u.master&&u.expanded){var _=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(_,t,o,r);}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,o,i){t.push(e);var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();e.setUiLevel(r?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([n.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.Autowired("selectionController"),r("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([n.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("columnController"),r("design:type",u.ColumnController)],e.prototype,"columnController",void 0),e=i([n.Bean("flattenStage")],e);}();t.FlattenStage=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i93,r=this&&this.__extends||(_i93=function i(e,t){return(_i93=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;}_i93(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(154),m=o(210),C=o(9),w=o(10),_=o(2),b=o(20),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(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!_._.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;_._.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),_._.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),_._.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),_._.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 _._.missing(this.infiniteCache);},t.prototype.isRowsToRender=function(){return _._.exists(this.infiniteCache);},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[];},t.prototype.reset=function(){if(!_._.missing(this.datasource)){_._.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 m.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 _.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(v.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 _.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){_._.exists(e.remove)||_._.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):_._.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;},n([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("filterManager"),s("design:type",h.FilterManager)],t.prototype,"filterManager",void 0),n([l.Autowired("sortController"),s("design:type",d.SortController)],t.prototype,"sortController",void 0),n([l.Autowired("selectionController"),s("design:type",u.SelectionController)],t.prototype,"selectionController",void 0),n([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),n([l.Autowired("columnApi"),s("design:type",w.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("rowRenderer"),s("design:type",b.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),n([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),t=n([l.Bean("rowModel")],t);}(y.BeanStub);t.InfiniteRowModel=E;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);},n=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([n(0,l.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],e.prototype,"setBeans",null),e;}();t.RowNodeBlockLoader=u;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n,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),v=o(85),m=o(24),C=o(46),w=o(9),_=o(2);!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes";}(n||(n={}));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 r,n=!1;do{r=!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),r=!0,n=!0;}}r&&this.setRowTops();}while(r);return n;},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(_._.missing(i.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(i,o);i.setRowHeight(r.height,r.estimated);}i.setRowTop(e),i.setRowIndex(t),e+=i.rowHeight;}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup)if(!(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&&(_._.removeFromArray(this.rootNode.allLeafChildren,e),_._.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(_._.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=_._.missingOrEmpty(e),o=new v.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=_._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?_._.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:_._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,_._.missing(this.rootNode)||e||!this.columnController.isReady();},e.prototype.isRowsToRender=function(){return _._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0;},e.prototype.getNodesInRangeForSelection=function(e,t){var o,i=!t,r=!1,n=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(a){var l=i&&!r;if(i||a!==t&&a!==e||(i=!0),!(a.group&&s)){var p=i&&!r,u=a.isParentOfNode(o);(p||u)&&n.push(a);}l&&(a!==t&&a!==e||(r=!0,o=a===t?t:e));}),n;},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(_._.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var i=Math.floor((t+o)/2),r=this.rowsToDisplay[i];if(this.isRowInPixel(r,e))return i;r.rowTop<e?t=i+1:r.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=_._.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,n.Normal,0);},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,n.AfterFilter,0);},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,n.AfterFilterAndSort,0);},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,n.PivotNodes,0);},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,i){if(e)for(var r=0;r<e.length;r++){var s=e[r];if(t(s,i++),s.hasChildren()){var a=null;switch(o){case n.Normal:a=s.childrenAfterGroup;break;case n.AfterFilter:a=s.childrenAfterFilter;break;case n.AfterFilterAndSort:a=s.childrenAfterSort;break;case n.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){if(!i)return;i.forEach(function(i){(t?_._.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,r){var n=this;_._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())||(this.groupStage?(t&&_._.exists(t)?t.forEach(function(e){n.groupStage.execute({rowNode:n.rootNode,rowNodeTransaction:e,rowNodeOrder:o,changedPath:i});}):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(i)):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren);},e.prototype.restoreGroupState=function(e){e&&_._.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 _._.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 r=e.nodeManager.updateRowData(i.rowDataTransaction,null);o.push(r),i.callback&&t.push(i.callback.bind(null,r));}),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"),r("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("columnController"),r("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("filterManager"),r("design:type",u.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("$scope"),r("design:type",Object)],e.prototype,"$scope",void 0),i([f.Autowired("selectionController"),r("design:type",g.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("eventService"),r("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("context"),r("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("valueService"),r("design:type",m.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("valueCache"),r("design:type",C.ValueCache)],e.prototype,"valueCache",void 0),i([f.Autowired("columnApi"),r("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([f.Autowired("gridApi"),r("design:type",w.GridApi)],e.prototype,"gridApi",void 0),i([f.Autowired("filterStage"),r("design:type",Object)],e.prototype,"filterStage",void 0),i([f.Autowired("sortStage"),r("design:type",Object)],e.prototype,"sortStage",void 0),i([f.Autowired("flattenStage"),r("design:type",Object)],e.prototype,"flattenStage",void 0),i([f.Optional("groupStage"),r("design:type",Object)],e.prototype,"groupStage",void 0),i([f.Optional("aggregationStage"),r("design:type",Object)],e.prototype,"aggregationStage",void 0),i([f.Optional("pivotStage"),r("design:type",Object)],e.prototype,"pivotStage",void 0),i([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=i([f.Bean("rowModel")],e);}();t.ClientSideRowModel=b;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(22),r=o(6),n=o(2),s=function(){function e(t,o,i,r,n,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.context=i,this.eventService=r,this.columnController=n,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=n._.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 n._.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&&n._.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),o;},e.prototype.executeAdd=function(e,t){var o=this,i=e.add,r=e.addIndex;i&&("number"==typeof r&&r>=0?i.reverse().forEach(function(e){var i=o.addRowNode(e,r);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 n={},s=!1;if(i.forEach(function(e){var i=o.lookupRowNode(e);i&&(i.isSelected()&&(s=!0),i.setSelected(!1,!1,!0),i.clearRowTop(),n[i.id]=!0,delete o.allNodesMap[i.id],t.remove.push(i));}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(e){return!n[e.id];}),s){this.selectionController.updateGroupsFromChildrenSelections();var a={type:r.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 n._.exists(o)?n._.insertIntoArray(this.rootNode.allLeafChildren,i,o):this.rootNode.allLeafChildren.push(i),i;},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsWrapper.getRowNodeIdFunc();if(n._.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=n._.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 r=[];return e.forEach(function(e){var n=i.createNode(e,t,o);r.push(n);}),r;}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 r=new i.RowNode();this.context.wireBean(r);var s=this.gridOptionsWrapper.isTreeData(),a=!s&&n._.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(a&&a.group)r.group=!0,r.childrenAfterGroup=this.recursiveFunction(a.children,r,o+1),r.expanded=!0===a.expanded,r.field=a.field,r.key=a.key,r.canFlower=r.master,this.setLeafChildren(r);else if(r.group=!1,s)r.master=!1,r.expanded=!1;else{this.doesDataFlower?r.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?r.master=this.isRowMasterFunc(e):r.master=!0:r.master=!1;var l=this.columnController.getRowGroupColumns(),p=o+(l?l.length:0);r.expanded=!!r.master&&this.isExpanded(p);}return r.canFlower=r.master,t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=o,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("ag-grid: duplicate node id '"+r.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r;},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!!n._.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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=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(r){i+=o.returnAttributeIfPopulated(e.prefix+r,e.map[r],t);});}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(function(r){i+=o.returnAttributeIfPopulated(r,e.properties.rawMap[r],t);}));var r="<"+e.name+i;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">\r\n":(r+=">\r\n",e.children&&e.children.forEach(function(e){r+=o.createXml(e,t);}),r+"</"+e.name+">\r\n"):r+"/>\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+'"';},e=i([r.Bean("xmlFactory")],e);}();t.XmlFactory=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),n=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="",r=0,n=0,s=0,a=t;s<a.length;s++){var l=a[s],p=this.getHeader(l,r),u=p.fileHeader,c=p.folderHeader,d=p.content;r+=u.length+d.length,n+=c.length,e+=u+d,i+=c;}return e+i+this.buildFolderEnd(o,n,r);},e.prototype.getHeader=function(e,t){var o=e.content,i=e.path,r=e.created,s=n._.utf8_encode,a=n._.decToHex,l=s(i),p=l!==i,u=this.convertTime(r),c=this.convertDate(r),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=n._.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,t|=e.getSeconds()/2;},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate();},e=i([r.Bean("zipContainer")],e);}();t.ZipContainer=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i94,r=this&&this.__extends||(_i94=function i(e,t){return(_i94=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;}_i94(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r=o.title,n=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return i.title=r,i.enabled=null==n||n,i.items=s||[],null!=a&&(i.suppressEnabledCheckbox=a),null!=l&&(i.suppressOpenCloseIcons=l),i;}return r(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();if(this.suppressOpenCloseIcons)return this.expanded=!0,d._.removeCssClass(t,"ag-collapsed"),this;if(e=null!=e?e:!this.expanded,this.expanded===e)return this;if(this.expanded=e,this.setOpenClosedIcons(),d._.addOrRemoveCssClass(t,"ag-collapsed",!e),this.expanded){this.dispatchEvent({type:"expanded"});}return 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>',n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.RefSelector("groupTitle"),s("design:type",HTMLElement)],t.prototype,"groupTitle",void 0),n([l.RefSelector("eGroupOpenedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupOpenedIcon",void 0),n([l.RefSelector("eGroupClosedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupClosedIcon",void 0),n([l.RefSelector("eToolbar"),s("design:type",HTMLElement)],t.prototype,"eToolbar",void 0),n([l.RefSelector("cbGroupEnabled"),s("design:type",c.AgCheckbox)],t.prototype,"cbGroupEnabled",void 0),n([l.RefSelector("lbGroupTitle"),s("design:type",HTMLElement)],t.prototype,"lbGroupTitle",void 0),n([l.RefSelector("eContainer"),s("design:type",HTMLElement)],t.prototype,"groupContainer",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i95,r=this&&this.__extends||(_i95=function i(e,t){return(_i95=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;}_i95(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i96,r=this&&this.__extends||(_i96=function i(e,t){return(_i96=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;}_i96(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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:(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>',n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eSlider"),s("design:type",l.AgInputRange)],t.prototype,"eSlider",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i97,r=this&&this.__extends||(_i97=function i(e,t){return(_i97=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;}_i97(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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 n.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:(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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i98,r=this&&this.__extends||(_i98=function i(e,t){return(_i98=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;}_i98(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i99,r=this&&this.__extends||(_i99=function i(e,t){return(_i99=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;}_i99(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function onDragStart(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect();},onDragging:function onDragging(e){return t.calculateAngleDrag(e);},onDragStop:function onDragStop(){}},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,r=t.height/2;o.style.left=i+8*Math.cos(e)+"px",o.style.top=r+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,r=e.clientX-t.left-o,n=e.clientY-t.top-i,s=Math.atan2(n,r);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:(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>',n([l.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([l.RefSelector("eParentCircle"),s("design:type",HTMLElement)],t.prototype,"eParentCircle",void 0),n([l.RefSelector("eChildCircle"),s("design:type",HTMLElement)],t.prototype,"eChildCircle",void 0),n([l.RefSelector("eAngleValue"),s("design:type",c.AgInputNumberField)],t.prototype,"eAngleValue",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i100,r=this&&this.__extends||(_i100=function i(e,t){return(_i100=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;}_i100(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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;}(n.AgRadioButton);t.AgToggleButton=a;},function(e,t,o){"use strict";var _i101,r=this&&this.__extends||(_i101=function i(e,t){return(_i101=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;}_i101(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),t.prototype.update=function(e){var t=this;if(0!==e.fields.length){var o=this.chart,i=this.chartProxyParams.chartType,r=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;r.indexOf(t)>-1?l[t]=e:o.removeSeries(e);});var u=function u(r,a){var u=t.chartOptions.seriesDefaults,c=l[r.colId],d=c||s.ChartBuilder.createSeries(u);if(d){if(p){if(d.title=e.fields[0].displayName+" vs "+r.displayName,d.xField=e.fields[0].colId,d.xFieldName=e.fields[0].displayName,i===n.ChartType.Bubble){var h=e.fields[2*a+2];d.radiusField=h.colId,d.radiusFieldName=h.displayName;}}else d.title=r.displayName,d.xField=e.category.id,d.xFieldName=e.category.name;d.data=e.data,d.yField=r.colId,d.yFieldName=r.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===n.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===n.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 _i102,r=this&&this.__extends||(_i102=function i(e,t){return(_i102=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;}_i102(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n,s=o(162),a=o(53),l=o(51),p=o(16);!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal";}(n=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=n.Vertical;var i=t.xAxis,r=t.yAxis;return o._xAxis=i,o._yAxis=r,o.scene.root.append([i.group,r.group,o.seriesClipRect]),o.scene.root.append(o.legend.group),o;}return r(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function get(){return this.seriesClipRect;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function get(){return this._xAxis;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function get(){return this._yAxis;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function get(){return this._series;},set:function set(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 r=this.padding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.bottom;var n=this.axisAutoPadding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.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 get(){return this._layout;},set:function set(e){this._layout!==e&&(this._layout=e,this.layoutPending=!0);},enumerable:!0,configurable:!0}),t.prototype.updateAxes=function(){var e,t,o=this.layout===n.Horizontal,i=o?this.yAxis:this.xAxis,r=o?this.xAxis:this.yAxis;if(i&&r){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,r.domain=a.numericExtent(u)||u,i.update(),r.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),r=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 get(){return this.canvas.parent;},set:function set(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 get(){return this.canvas.width;},set:function set(e){this.size=[e,this.height];},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function get(){return this.canvas.height;},set:function set(e){this.size=[this.width,e];},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function get(){return[this.width,this.height];},set:function set(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 get(){return this._dirty;},set:function set(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 get(){return this._root;},set:function set(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,r=o.length,n=0;t.beginPath();for(var s=0;s<r;s++){switch(o[s]){case"M":t.moveTo(i[n++],i[n++]);break;case"L":t.lineTo(i[n++],i[n++]);break;case"C":t.bezierCurveTo(i[n++],i[n++],i[n++],i[n++],i[n++],i[n++]);break;case"Z":t.closePath();}}},Object.defineProperty(e.prototype,"frameIndex",{get:function get(){return this._frameIndex;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderFrameIndex",{get:function get(){return this._renderFrameIndex;},set:function set(e){this._renderFrameIndex!==e&&(this._renderFrameIndex=e,this.dirty=!0);},enumerable:!0,configurable:!0}),e.id=1,e;}();t.Scene=r;},function(e,t,o){"use strict";var _i103,r=this&&this.__extends||(_i103=function i(e,t){return(_i103=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;}_i103(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),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),l=i/r;l>=n?r*=10:l>=s?r*=5:l>=a&&(r*=2);return t<e?-r:r;}(e,t,o);return function(e,t,o){void 0===o&&(o=1);for(var i=Math.abs(o),r=i>0&&i<1?Math.abs(Math.floor(Math.log(i)/Math.LN10)):0,n=Math.pow(10,r),s=Math.max(0,Math.ceil((t-e)/o))||0,a=new l(r,s),p=0;p<s;p++){var u=e+o*p;a[p]=Math.round(u*n)/n;}return a;}(e=Math.ceil(e/i)*i,t=Math.floor(t/i)*i+i/2,i);};var n=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),r=Math.floor(Math.log(i)/Math.LN10),l=i/Math.pow(10,r);return r>=0?(l>=n?10:l>=s?5:l>=a?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(l>=n?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 r(t,e),t;}(Array);t.NumericTicks=l;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(16),n=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 r.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=n.Selection.select(this.group).selectAll(),this.group.append(this.line);}return Object.defineProperty(e.prototype,"range",{get:function get(){return this.scale.range;},set:function set(e){this.scale.range=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domain",{get:function get(){return this.scale.domain;},set:function set(e){this.scale.domain=e;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function get(){return this._title;},set:function set(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 get(){return this._gridLength;},set:function set(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 get(){return this._gridStyle;},set:function set(e){e.length&&(this._gridStyle=e);},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialGrid",{get:function get(){return this._radialGrid;},set:function set(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,n=l.toRadians(this.rotation),c=l.normalizeAngle360(l.toRadians(this.labelRotation));t.translationX=this.translationX,t.translationY=this.translationY,t.rotation=n;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(n),v=!c&&y>=0&&y<=Math.PI?-1:1,m=l.normalizeAngle360(n-Math.PI/2),C=!c&&m>=0&&m<=Math.PI?-1:1,w=c>=0&&c<=Math.PI?-1:1,_=this.parallelLabels,b=this.groupSelection.setData(d);b.exit.remove();var E=b.enter.append(r.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 P=this.gridStyle,O=P.length,S=void 0;if(this.radialGrid){var A=l.normalizeAngle360Inclusive(l.toRadians(this.gridLength));S=R.selectByTag(i.GridLine).each(function(t,i){var r=Math.round(o.convert(i)+f);t.centerX=0,t.centerY=e.scale.range[0]-r,t.endAngle=A,t.radiusX=r,t.radiusY=r;});}else S=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;});S.each(function(t,o,i){var r=P[i%O];t.stroke=r.stroke,t.strokeWidth=e.tickWidth,t.lineDash=r.lineDash,t.fill=void 0;});}var T=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=_&&!c?g*v==-1?"hanging":"bottom":"middle",t.text=T?T({value:h>=0?o:String(o),index:i,fractionDigits:h}):h?o.toFixed(h):String(o),t.textAlign=_?c?g*w==-1?"end":"start":"center":g*C==-1?"end":"start";}),x=g*(this.tickSize+this.tickPadding),F=_?v*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,G=this.getBBox(!1),k=-1===g&&y>Math.PI&&y<2*Math.PI?-1:1;I.rotation=k*g*Math.PI/2,I.x=k*g*(M.y1+M.y2)/2,I.y=-1===g?k*(-L-G.width+Math.max(G.x+G.width,0)):-L-G.width-Math.min(G.x,0),I.textBaseline=1===k?"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,r=-1/0,n=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),r=Math.max(r,l.x+l.width),n=Math.min(n,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),r=Math.max(r,h.x+h.width),n=Math.min(n,h.y),s=Math.max(s,h.y+h.height);}}return i=Math.min(i,0),r=Math.max(r,0),n=Math.min(n,t.y1,t.y2),s=Math.max(s,t.y1,t.y2),new c.BBox(i,n,r-i,s-n);},e;}();t.Axis=h;},function(e,t,o){"use strict";var _i104,r=this&&this.__extends||(_i104=function i(e,t){return(_i104=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;}_i104(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),t.create=function(e,o,i,r,n,s){void 0===n&&(n=0),void 0===s&&(s=2*Math.PI);var a=new t();return a.centerX=e,a.centerY=o,a.innerRadius=i,a.outerRadius=r,a.startAngle=n,a.endAngle=s,a;},Object.defineProperty(t.prototype,"dirtyPath",{get:function get(){return this._dirtyPath;},set:function set(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0));},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerX",{get:function get(){return this._centerX;},set:function set(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function get(){return this._centerY;},set:function set(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerOffset",{get:function get(){return this._centerOffset;},set:function set(e){this._centerOffset!==e&&(this._centerOffset=Math.max(0,e),this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function get(){return this._innerRadius;},set:function set(e){this._innerRadius!==e&&(this._innerRadius=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadius",{get:function get(){return this._outerRadius;},set:function set(e){this._outerRadius!==e&&(this._outerRadius=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function get(){return this._startAngle;},set:function set(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function get(){return this._endAngle;},set:function set(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleOffset",{get:function get(){return this._angleOffset;},set:function set(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 get(){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,r=.5*(o+i),n=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(r),u+=a*Math.sin(r)),l||(e.moveTo(p+n*Math.cos(o),u+n*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+n*Math.cos(i),u+n*Math.sin(i));else{var c=p+n*Math.cos(i);e.lineTo(Math.abs(c)<1e-8?0:c,u+n*Math.sin(i));}e.cubicArc(p,u,n,n,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;}(n.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 get(){return this._enabled;},set:function set(e){this._enabled!==e&&(this._enabled=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function get(){return this._color;},set:function set(e){this._color!==e&&(this._color=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xOffset",{get:function get(){return this._xOffset;},set:function set(e){this._xOffset!==e&&(this._xOffset=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yOffset",{get:function get(){return this._yOffset;},set:function set(e){this._yOffset!==e&&(this._yOffset=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function get(){return this._blur;},set:function set(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),r=o(52),n=o(28),s=function(){function e(){this.node=new r.Text(),this._enabled=!0,this._padding=new i.Padding(10);var e=this.node;e.textAlign="center",e.textBaseline="top",e.pointerEvents=n.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 get(){return this.node.text;},set:function set(e){this.node.text!==e&&(this.node.text=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function get(){return this.node.fontStyle;},set:function set(e){this.node.fontStyle!==e&&(this.node.fontStyle=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function get(){return this.node.fontWeight;},set:function set(e){this.node.fontWeight!==e&&(this.node.fontWeight=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function get(){return this.node.fontSize;},set:function set(e){this.node.fontSize!==e&&(this.node.fontSize=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function get(){return this.node.fontFamily;},set:function set(e){this.node.fontFamily!==e&&(this.node.fontFamily=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function get(){return this.node.fill||"";},set:function set(e){this.node.fill!==e&&(this.node.fill=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function get(){return this._enabled;},set:function set(e){this._enabled!==e&&(this._enabled=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function get(){return this._padding;},set:function set(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),r=o(229),n=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,r=o.strokes,n=t.fills!==i,s=t.strokes!==r;(n||s)&&(this.overriddenPalette={fills:n&&t.fills?t.fills:i,strokes:s&&t.strokes?t.strokes:r});},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 r.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=n;},function(e,t,o){"use strict";var _i105,r=this&&this.__extends||(_i105=function i(e,t){return(_i105=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;}_i105(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this;}return r(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=n;},function(e,t,o){"use strict";var _i106,r=this&&this.__extends||(_i106=function i(e,t){return(_i106=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;}_i106(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r=e.call(this,t.TEMPLATE)||this;return r.allowDragging=o,r.params=i,r;}return r(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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("primaryColsHeaderPanel"),s("design:type",p.PrimaryColsHeaderPanel)],t.prototype,"primaryColsHeaderPanel",void 0),n([a.RefSelector("primaryColsListPanel"),s("design:type",l.PrimaryColsListPanel)],t.prototype,"primaryColsListPanel",void 0),n([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 _i107,r=this&&this.__extends||(_i107=function i(e,t){return(_i107=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;}_i107(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 cellAndHeaderEscaper(e){return e;}})||this;o.mixedStyles={},o.mixedStyleCounter=0,o.rows=[];var i=t.sheetName,r=t.excelFactory,n=t.baseExcelStyles,s=t.styleLinker,a=t.suppressTextAsCDATA,l=t.rowHeight,p=t.headerRowHeight;return o.sheetName=i,o.excelFactory=r,o.baseExcelStyles=n||[],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 r(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=n._.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 onColumn(o,i,r){var s=t.styleLinker(n.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,r));}};},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(r,s,a){var l=o.extractHeaderValue(r),p=i.styleLinker(n.RowType.HEADER,e,s,l,r,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,r=[{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,r,[]);},t.prototype.onNewBodyColumn=function(e,t){var o=this,i=this;return function(r,s,a){var l,p=o.extractRowCellValue(r,s,n.Constants.EXPORT_TYPE_EXCEL,a),u=i.styleLinker(n.RowType.BODY,e,s,p,r,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=n._.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&&n._.mergeDeep(i,n._.deepCloneObject(t));});}),i.id=o,i.name=o;var r=e.join("-");this.mixedStyles[r]={excelID:o,key:r,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=this,r=e&&this.stylesByIds[e],s=void 0!==r;var a,l=function(){if(s&&r.dataType)switch(r.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 ["+r.id+".dataType="+r.dataType+"]");}return t;}();return{styleId:s?e:void 0,data:{type:l,value:"String"===l?(a=o,i.suppressTextAsCDATA?n._.escape(a):"<![CDATA["+a+"]]>"):"Number"===l?Number(o).valueOf()+"":"Boolean"===l?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;}(n.BaseGridSerializingSession);t.ExcelXmlSerializingSession=s;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(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 getTemplate(e){var t=e.size,o=void 0===t?14:t,i=e.colorTheme,r=e.color,n=void 0===r?"00000000":r,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:n}}},{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 v=g.toLocaleLowerCase();y.push({name:"u",properties:{rawMap:{val:"double"===v?"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),r=function r(e){return{name:"color",properties:{rawMap:{rgb:i.convertLegacyColor(e||"#000000")}}};},n={getTemplate:function getTemplate(e){var t=e.left,o=e.right,i=e.top,n=e.bottom,s=e.diagonal,a=t?[r(t.color)]:void 0,l=o?[r(o.color)]:void 0,p=i?[r(i.color)]:void 0,u=n?[r(n.color)]:void 0,c=s?[r(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:n&&n.style}},children:u},{name:"diagonal",properties:{rawMap:{style:s&&s.style}},children:c}]};}};t["default"]=n;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",r=s[e];return e?"Continuous"===e?i:"medium"===i&&a.indexOf(r)>0?"medium"+r:r.charAt(0).toLowerCase()+r.substr(1):"thin";};},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(370),r=o(371),n={getTemplate:function getTemplate(e){var t=e.alignment,o=e.borderId,n=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(r["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:n,applyFont:s?1:void 0,fontId:s,applyNumberFormat:a?1:void 0,numFmtId:a,xfId:p}},children:u.length?u:void 0};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(378),n=o(379),s=o(381),a=function a(e,o){var i=[];return e.forEach(function(e,r){var n,s=e.cells,a=0;e.index=r+1,s.forEach(function(e,s){var l=s+a+1,p=t.getExcelColumnName(l),u=r+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 r=t;i&&(r=Math.max(r,i.min)),e.min=Math.max(e.min,r),e.max=Math.max(e.max,r+o);}(o[l-1],l,a,n),n=o[l-1],e.ref=""+p+u;});}),i;};t.getExcelColumnName=function(e){var o=String.fromCharCode,i=Math.floor(e/26),r=e%26;return i&&26!==e?r?i<26?o(65+i-1)+o(65+r-1):t.getExcelColumnName(i)+o(65+r-1):t.getExcelColumnName(i-1)+"Z":o(65+e-1);};var l={getTemplate:function getTemplate(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,r["default"].getTemplate)}),o.length&&u.push({name:"sheetData",children:i._.map(o,n["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 _i108,r=this&&this.__extends||(_i108=function i(e,t){return(_i108=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;}_i108(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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()),r=!l._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel()),n=!l._.jsonEquals(this.cacheParams.rowGroupCols,t),s=!l._.jsonEquals(this.cacheParams.pivotCols,i),a=!l._.jsonEquals(this.cacheParams.valueCols,o);e=r||n||s||a;}else e=!0;e&&this.reset();}},t.prototype.onFilterChanged=function(){this.reset();},t.prototype.findChangedColumnsInSort=function(e,t){var o=[];[e,t].forEach(function(e){if(e){var t=e.map(function(e){return e.colId;});o=o.concat(t);}});return o.filter(function(o){var i=l._.find(t,function(e){return e.colId===o;}),r=l._.find(e,function(e){return e.colId===o;});return function(e,t){return(e?e.sort:null)!==(t?t.sort:null);}(i,r)||function(o,i){return t.indexOf(o)!==e.indexOf(i);}(i,r);});},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();}),r=this.rootNode.childrenCache,n=this.isSortingWithValueColumn(o),s=this.isSortingWithSecondaryColumn(o);this.gridOptionsWrapper.isServerSideSortingAlwaysResets()||n||s?this.reset():r.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=this,o=e.node;o.expanded?o.master?this.createDetailNode(o):l._.missing(o.childrenCache)&&this.createNodeCache(o):this.gridOptionsWrapper.isPurgeClosedRowNodes()&&l._.exists(o.childrenCache)&&(o.childrenCache.destroy(),o.childrenCache=null);this.updateRowIndexesAndBounds();var i,r={type:l.Events.EVENT_MODEL_UPDATED,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),newPage:!1,newData:!1,animate:(i=t.gridOptionsWrapper.isAnimateRows(),o.master?i&&o.expanded:i),keepRenderedRows:!0};this.eventService.dispatchEvent(r);},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(),r=this.gridOptionsWrapper.getMaxBlocksInCache();i&&r>=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."),r=void 0),r>=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."),r=void 0);var n={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:r,blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.rowHeight,dynamicRowHeight:i};return n.maxConcurrentRequests>=1||(n.maxConcurrentRequests=2),n.blockSize>=1||(n.blockSize=u.ServerSideBlock.DefaultBlockSize),n.initialRowCount>=1||(n.initialRowCount=0),n.overflowSize>=1||(n.overflowSize=1),n;},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 r=t.map(function(t){return{colId:t.field,sort:e[o].sort};});e.splice(o,1);var n=function n(t){var i=r[t];if(e.some(function(e){return e.colId===i.colId;}))return"continue";e.splice(o++,0,i);};for(i=0;i<r.length;i++){n(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();},n([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("filterManager"),s("design:type",l.FilterManager)],t.prototype,"filterManager",void 0),n([l.Autowired("sortController"),s("design:type",l.SortController)],t.prototype,"sortController",void 0),n([l.Autowired("gridApi"),s("design:type",l.GridApi)],t.prototype,"gridApi",void 0),n([l.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("rowRenderer"),s("design:type",l.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),n([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),n([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[l.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),t=n([l.Bean("rowModel")],t);}(l.BeanStub);t.ServerSideRowModel=c;},function(e,t,o){"use strict";var _i109,r=this&&this.__extends||(_i109=function i(e,t){return(_i109=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;}_i109(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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,r){var n=e.call(this,t,i)||this;return n.params=i,n.parentRowNode=o,n.parentCache=r,n.level=o.level+1,n.groupLevel=i.rowGroupCols?n.level<i.rowGroupCols.length:void 0,n.leafGroup=!!i.rowGroupCols&&n.level===i.rowGroupCols.length-1,n;}return r(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(),r=this.getEndRow(),n=(i<r?i:r)-1;if(l._.missing(n)||l._.missing(o))return console.warn("ag-grid: error: topPointer = "+n+", bottomPointer = "+o),null;for(;;){var s=Math.floor((o+n)/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;n=s-1;}}},t.prototype.setDataAndId=function(e,t,o){var i=this;if(e.stub=!1,l._.exists(t)){var r=this.createIdForIndex(o);if(e.setDataAndId(t,r),e.setRowHeight(this.gridOptionsWrapper.getRowHeightForNode(e).height),this.usingTreeData){var n=this.gridOptionsWrapper.getServerSideGroupKeyFunc();l._.exists(n)&&n&&(e.key=n(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 r=t.valueService.getValue(t.rowGroupColumn,e);l._.missing(e.groupData)&&(e.groupData={}),e.groupData[o.getColId()]=r;}});},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(),r=function r(e){return{rowHeight:e.rowHeight,rowTop:e.rowTop};},n=o;n<=i;n++){if(!(n>=t)){var s=this.getRowUsingLocalIndex(n);if(s){if(s.rowIndex===e)return r(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 r(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(),r=o;r<=i;r++){if(!(r>=t)){var n=this.getRowUsingLocalIndex(r);if(n){if(n.isPixelInRange(e))return n.rowIndex;if(n.master&&n.expanded&&n.detailNode.isPixelInRange(e))return n.detailNode.rowIndex;if(n.group&&n.expanded&&l._.exists(n.childrenCache)){var s=n.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(),r=o;r<=i;r++){if(!(r>=e)){var n=this.getRowUsingLocalIndex(r);n&&t(n);}}},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,n([l.Autowired("rowRenderer"),s("design:type",l.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("valueService"),s("design:type",l.ValueService)],t.prototype,"valueService",void 0),n([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),n([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 _i110,r=this&&this.__extends||(_i110=function i(e,t){return(_i110=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;}_i110(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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);}},n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([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 _i111,r=this&&this.__extends||(_i111=function i(e,t){return(_i111=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;}_i111(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(t,e),t.prototype.init=function(){var e=this;this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:function onDragging(t){e.dragging=!0,e.rangeController.autoScrollService.check(t),e.changedCell&&e.onDrag(t);},onDragStop:function onDragStop(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(),r=a._.last(this.rangeController.getCellRanges()),n=r.startRow,s=r.endRow;n&&s&&(this.rowPositionUtils.before(s,n)?(this.setRangeStartRow(s),this.setRangeEndRow(n)):(this.setRangeStartRow(n),this.setRangeEndRow(s)));o!==e&&(this.setCellComp(e),window.setTimeout(function(){t.isAlive()&&e.appendChild(i);},1)),this.setCellRange(r);},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);},n([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),n([a.Autowired("dragService"),s("design:type",a.DragService)],t.prototype,"dragService",void 0),n([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),n([a.Autowired("mouseEventService"),s("design:type",a.MouseEventService)],t.prototype,"mouseEventService",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("cellNavigationService"),s("design:type",a.CellNavigationService)],t.prototype,"cellNavigationService",void 0),n([a.Autowired("rowPositionUtils"),s("design:type",a.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),n([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 r=o(1);Object.keys(r).forEach(function(e){t[e]=r[e];});},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(285),n=o(13);t.ChartsModule={moduleName:"chartsModule",enterpriseBeans:[r.ChartService,n.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"==(typeof window==="undefined"?"undefined":_typeof2(window))&&(o=window);}e.exports=o;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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,(r=parseInt(o[2],16))/255,(n=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),r=parseInt(o[2],16),n=parseInt(o[3],16),s=void 0!==o[4]?parseInt(o[4],16):15;return new e((i+=16*i)/255,(r+=16*r)/255,(n+=16*n)/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,r){void 0===r&&(r=1);var n=e.HSBtoRGB(t,o,i);return new e(n[0],n[1],n[2],r);},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),r=Math.max(e,t,o),n=NaN;if(i!==r){var s=r-i,a=(r-e)/s,l=(r-t)/s,p=(r-o)/s;n=e===r?p-l:t===r?2+a-p:4+l-a,(n/=6)<0&&(n+=1);}return[360*n,0!==r?(r-i)/r:0,r];},e.HSBtoRGB=function(e,t,o){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var i=0,r=0,n=0;if(0===t)i=r=n=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,r=u,n=l;break;case 1:i=p,r=o,n=l;break;case 2:i=l,r=o,n=u;break;case 3:i=l,r=p,n=o;break;case 4:i=u,r=l,n=o;break;case 5:i=o,r=l,n=p;}}return[i,r,n];},e.prototype.derive=function(t,o,i,r){var n=e.RGBtoHSB(this.r,this.g,this.b),s=n[2];0==s&&i>1&&(s=.05);var a=((n[0]+t)%360+360)%360,l=Math.max(Math.min(n[1]*o,1),0);s=Math.max(Math.min(s*i,1),0);var p=Math.max(Math.min(this.a*r,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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(7),r=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,n=/([^\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),r=Math.abs(e.clientY-t.clientY);return Math.max(i,r)<=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("."),r=e,n=0;n<i.length;n++){if(r=r[i[n]],this.missing(r))return null;}return r;}return e[t];}},e.getElementSize=function(e){var t=window.getComputedStyle(e),o=t.height,i=t.width,r=t.paddingTop,n=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(r),paddingRight:parseFloat(n),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)),e="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 r=o[i],n=e[r];t(r,n);}},e.cloneObject=function(e){for(var t={},o=Object.keys(e),i=0;i<o.length;i++){var r=o[i],n=e[r];t[r]=n;}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 r=t(e[i],i);o.push(r);}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 r=t[o];r!==i&&("object"==_typeof2(r)&&"object"==_typeof2(i)?e.mergeDeep(r,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(r,""),o=t.slice(t.indexOf("(")+1,t.indexOf(")")).match(n);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 r=e,n=null,s=0;s<r.length;s++){var a=r[s];if("string"==typeof t){if(a[t]===o){n=a;break;}}else if(t(a)){n=a;break;}}return n;},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 r=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 n=1===o.key.length,s=e.isNumpadDelWithNumlockOnForEdgeOrIe(o);return n||s;}return e.PRINTABLE_CHARACTERS.indexOf(r)>=0;},e.isUserSuppressingKeyboardEvent=function(e,t,o,i,r){var n=e.getSuppressKeyboardEventFunc(),s=i.getColDef().suppressKeyboardEvent;if(!n&&!s)return!1;var a={event:t,editing:r,column:i,api:e.getApi(),node:o,data:o.data,colDef:i.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(s&&s(a))return!0;return!!n&&n(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 r=e[i];if(t._.exists(r))return r;}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 r=e.parentElement.firstChild;r;){t._.addOrRemoveCssClass(r,o,i?r!==e:r===e),r=r.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,r=0===e.className.indexOf(t+" "),n=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return o||i||r||n;}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,r=e[o+1]===t;i&&r&&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 r=t[i];this.insertIntoArray(e,r,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,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&r)return 0;if(i)return-1;if(r)return 1;if("string"==typeof e){if(!o)return n(e,t);try{return e.localeCompare(t);}catch(o){return n(e,t);}}return e<t?-1:e>t?1:0;function n(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 r=document.createElement("span");return r.appendChild(i),r;},e.createIconNoSpan=function(e,t,o,i){var r=null,n=o&&o.getColDef().icons;if(n&&(r=n[e]),t&&!r){var s=t.getIcons();s&&(r=s[e]);}if(r){var a=void 0;if("function"==typeof r)a=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");a=r;}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 r=o.hyphenToCamelCase(i);r&&(e.style[r]=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 r=0,n=e;r<n.length;r++){if("touch"===i[n[r]+"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 r=o.join("|");t(i,r),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 r=t.camelCaseToHyphen(e);o.push(r+": "+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,r=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,r=10*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:i,pixelY:r};},e.debounce=function(e,t,o){var i;return void 0===o&&(o=!1),function(){for(var r=[],n=0;n<arguments.length;n++){r[n]=arguments[n];}var s=this,a=o&&!i;window.clearTimeout(i),i=window.setTimeout(function(){i=null,o||e.apply(s,r);},t),a&&e.apply(s,r);};},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 r=o.split("."),n=t[r[0]];return null!=n?e.get(n,r.slice(1,r.length).join("."),i):i;}var s=t[o];return null!=s?s:i;},e.addSafePassiveEventListener=function(t,o,i,r){var n=e.PASSIVE_EVENTS.indexOf(i)>=0?{passive:!0}:void 0;e.OUTSIDE_ANGULAR_EVENTS.indexOf(i)>=0?t.addEventListenerOutsideAngular(o,i,r,n):o.addEventListener(i,r,n);},e.camelCaseToHumanText=function(e){if(!e||null==e)return null;return 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(" ");},e.message=function(e){var t=document.createElement("div");t.innerHTML=e;var o=document.querySelector("#__ag__message");if(!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 o(e,_o3){var i=t[e.id],r=t[_o3.id],n=void 0!==i,s=void 0!==r;return n&&s?i-r:!n&&!s?e.__objectId-_o3.__objectId:n?1:-1;},i=!1,r=0;r<e.length-1;r++){if(o(e[r],e[r+1])>0){i=!0;break;}}i&&e.sort(o);}},e.fuzzyCheckStrings=function(e,t,o){var i=this,r={},n=e.filter(function(e){return!t.some(function(t){return t===e;});});return n.length>0&&n.forEach(function(e){return r[e]=i.fuzzySuggestions(e,o);}),r;},e.fuzzySuggestions=function(e,o,i,r){var n=r?t._.string_weighted_distances:t._.string_distances,s=o.map(function(t){return{value:t,relevance:n(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,r=e.toLowerCase(),n=new Array(r.length-1);for(t=o=0,i=n.length;o<=i;t=o+=1){n[t]=r.slice(t,t+2);}return n;},e.string_distances=function(e,o){if(0===e.length&&0===o.length)return 0;var i,r,n=t._.get_bigrams(e),s=t._.get_bigrams(o),a=n.length+s.length,l=0;for(i=0,r=n.length;i<r;i++){var p,u=n[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,""),r=0,n=0,s=0;s<o.length;s++){var a=i.indexOf(o[s]);-1!==a&&(n=a,r+=100*(i.length-n)/i.length,r*=r);}return r;},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 r=function(e){for(var t,o,i=[],r=0,n=e.length;r<n;){(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<n?56320==(64512&(o=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&o)+65536):(i.push(t),r--):i.push(t);}return i;}(e),n=r.length,s=-1,a="";++s<n;){a+=i(r[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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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 r=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,r){t.then(function(t){i--,o[r]=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 resolve(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=r;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i112,r=this&&this.__extends||(_i112=function i(e,t){return(_i112=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;}_i112(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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,r){var n=e.call(this,'<div class="ag-row-drag"></div>')||this;return n.rowNode=t,n.column=o,n.cellValue=i,n.beans=r,n;}return r(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 v(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 dragItemCallback(){return t;},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc(function(){return e.beans.dragAndDropService.removeDragSource(o);});},n([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 r=e.call(this)||this;return r.parent=t,r.column=i,r.rowNode=o,r;}return r(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,r){var n=e.call(this,t,i,r)||this;return n.beans=o,n;}return r(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);},n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t;}(g),v=function(e){function t(t,o,i,r){var n=e.call(this,t,i,r)||this;return n.beans=o,n;}return r(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);},n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i113,r=this&&this.__extends||(_i113=function i(e,t){return(_i113=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;}_i113(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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,r,n){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=r,s.eCell=n,s;}return r(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);},n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i114,r=this&&this.__extends||(_i114=function i(e,t){return(_i114=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;}_i114(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t;}return r(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(),r=i&&y._.exists(this.eMenu),n=r?new d.TouchListener(this.eMenu,!0):o;if(this.params.enableMenu){var s=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(n,d.TouchListener[s],function(o){t.getApi().showColumnMenuAfterMouseClick(e.params.column,o.touchStart);});}if(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();}),r&&this.addDestroyFunc(function(){return n.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(),r=new Date().getTime()-e.lastMovingChanged<50;if(!(i||r)){var n=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(n);}}),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,r=e.isSorting()&&i;y._.setDisplayed(this.eSortOrder,r),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>',n([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("sortController"),s("design:type",c.SortController)],t.prototype,"sortController",void 0),n([p.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),n([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),n([f.RefSelector("eFilter"),s("design:type",HTMLElement)],t.prototype,"eFilter",void 0),n([f.RefSelector("eSortAsc"),s("design:type",HTMLElement)],t.prototype,"eSortAsc",void 0),n([f.RefSelector("eSortDesc"),s("design:type",HTMLElement)],t.prototype,"eSortDesc",void 0),n([f.RefSelector("eSortNone"),s("design:type",HTMLElement)],t.prototype,"eSortNone",void 0),n([f.RefSelector("eSortOrder"),s("design:type",HTMLElement)],t.prototype,"eSortOrder",void 0),n([f.RefSelector("eMenu"),s("design:type",HTMLElement)],t.prototype,"eMenu",void 0),n([f.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([f.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),t;}(a.Component);t.HeaderComp=v;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i115,r=this&&this.__extends||(_i115=function i(e,t){return(_i115=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;}_i115(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(_t10){if(!f._.isStopPropagationForAgGrid(_t10)){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 o(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>',n([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([u.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([d.RefSelector("agOpened"),s("design:type",HTMLElement)],t.prototype,"eOpenIcon",void 0),n([d.RefSelector("agClosed"),s("design:type",HTMLElement)],t.prototype,"eCloseIcon",void 0),t;}(a.Component);t.HeaderGroupComp=g;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i116,r=this&&this.__extends||(_i116=function i(e,t){return(_i116=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;}_i116(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.RefSelector("eLoadingIcon"),s("design:type",HTMLElement)],t.prototype,"eLoadingIcon",void 0),n([u.RefSelector("eLoadingText"),s("design:type",HTMLElement)],t.prototype,"eLoadingText",void 0),t;}(l.Component);t.LoadingCellRenderer=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i117,r=this&&this.__extends||(_i117=function i(e,t){return(_i117=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;}_i117(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=o.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(r);},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i118,r=this&&this.__extends||(_i118=function i(e,t){return(_i118=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;}_i118(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=o.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(r);},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i119,r=this&&this.__extends||(_i119=function i(e,t){return(_i119=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;}_i119(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this;}return r(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t;},t;}(o(47).PopupComponent);t.TooltipComponent=n;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i120,r=this&&this.__extends||(_i120=function i(e,t){return(_i120=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;}_i120(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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;}(n.Component);t.DefaultDateComponent=a;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i121,r=this&&this.__extends||(_i121=function i(e,t){return(_i121=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;}_i121(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=t;this.dateComp.setDate(u._.parseYyyyMmDdToDate(r.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();});},n([l.Autowired("userComponentFactory"),s("design:type",p.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([d.RefSelector("eReadOnlyText"),s("design:type",HTMLInputElement)],t.prototype,"eReadOnlyText",void 0),n([d.RefSelector("eDateWrapper"),s("design:type",HTMLInputElement)],t.prototype,"eDateWrapper",void 0),t;}(f.SimpleFloatingFilter);t.DateFloatingFilter=y;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i122,r=this&&this.__extends||(_i122=function i(e,t){return(_i122=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;}_i122(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(137),s=o(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t.prototype.getDefaultFilterOptions=function(){return n.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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i123,r=this&&this.__extends||(_i123=function i(e,t){return(_i123=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;}_i123(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(138),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return r(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type;},t.prototype.getDefaultFilterOptions=function(){return n.TextFilter.DEFAULT_FILTER_OPTIONS;},t;}(o(186).TextInputFloatingFilter);t.TextFloatingFilter=s;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i124,r=this&&this.__extends||(_i124=function i(e,t){return(_i124=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;}_i124(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=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 r=o.getColDef();return i.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,i;}return r(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(_i125){e.gridOptionsWrapper.isGroupSelectsChildren()&&_i125.group||(_i125.isSelected()?t++:_i125.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;"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!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));},n([p.Autowired("gridApi"),s("design:type",c.GridApi)],t.prototype,"gridApi",void 0),n([p.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),n([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),n([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([p.Autowired("selectionController"),s("design:type",g.SelectionController)],t.prototype,"selectionController",void 0),n([p.Autowired("gridOptionsWrapper"),s("design:type",y.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t;}(l.BeanStub);t.SelectAllFeature=v;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultColumnTypes={numericColumn:{headerClass:"ag-numeric-header",cellClass:"ag-numeric-cell"}};},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(150);function r(e,t,o,r){var n,s,a=r.agGrid;if(s=a+".quickFilterText",n=t.$eval(a)){var l=e[0],p={$scope:t,$compile:o,quickFilterOnScope:s},u=new i.Grid(l,n,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",r],scope:!0};});};},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i126,r=this&&this.__extends||(_i126=function i(e,t){return(_i126=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;}_i126(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(92),m=o(9),C=o(19),w=o(38),_=o(146),b=o(2),E=function(e){function t(o,i,r){var n=e.call(this,t.TEMPLATE)||this;return n.childColumnsDestroyFuncs=[],n.columnGroup=o,n.dragSourceDropTarget=i,n.pinned=r,n;}return r(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 _.HoverFeature(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new v.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 setExpanded(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,r=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===r.length;){i=i.getParent();}var n=i.getColGroupDef();n&&(e=n.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[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 r={type:y.DragSourceType.HeaderCell,eElement:e,dragItemName:t,dragItemCallback:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function dragStarted(){return i.forEach(function(e){return e.setMoving(!0,"uiColumnDragged");});},dragStopped:function dragStopped(){return i.forEach(function(e){return e.setMoving(!1,"uiColumnDragged");});}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc(function(){return o.dragAndDropService.removeDragSource(r);});}}},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 r=i.getDisplayedLeafColumns();this.resizeTakeFromCols=b._.filter(r,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>',n([f.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([f.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),n([f.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),n([f.Autowired("dragAndDropService"),s("design:type",y.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([f.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([f.Autowired("gridApi"),s("design:type",m.GridApi)],t.prototype,"gridApi",void 0),n([f.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),n([f.Autowired("beans"),s("design:type",w.Beans)],t.prototype,"beans",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i127,r=this&&this.__extends||(_i127=function i(e,t){return(_i127=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;}_i127(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(64),m=o(2),C=o(19),w=o(9),_=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 r(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(_t11){var o=e.filterManager.getFilterComponent(e.column,"NO_UI").resolveNow(null,function(e){return e.getModel();});e.onParentModelChanged(o,_t11);};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);m._.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 t(){e.destroy&&e.destroy();};if(this.isAlive()){this.addDestroyFunc(t);var o=e.getGui();m._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),m._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),m._.setDisplayed(this.eButtonWrapper,!this.suppressFilterButton);var i=m._.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()),r=this.userComponentFactory.createFinalParams(o,"filter",i),n={api:this.gridApi,column:this.column,filterParams:r,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,n,e);if(!s){var a=this.getFilterComponentPrototype(o);if(a&&a.prototype&&a.prototype.getModelAsString){var l=this.userComponentFactory.createUserComponentFromConcreteClass(E.ReadOnlyFloatingFilter,n);s=m.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(){m._.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>',n([a.Autowired("columnHoverService"),s("design:type",v.ColumnHoverService)],t.prototype,"columnHoverService",void 0),n([a.Autowired("eventService"),s("design:type",y.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("beans"),s("design:type",h.Beans)],t.prototype,"beans",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("gridApi"),s("design:type",w.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("columnApi"),s("design:type",_.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("filterManager"),s("design:type",b.FilterManager)],t.prototype,"filterManager",void 0),n([a.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),n([c.RefSelector("eFloatingFilterBody"),s("design:type",HTMLElement)],t.prototype,"eFloatingFilterBody",void 0),n([c.RefSelector("eButtonWrapper"),s("design:type",HTMLElement)],t.prototype,"eButtonWrapper",void 0),n([c.RefSelector("eButtonShowMainFilter"),s("design:type",HTMLElement)],t.prototype,"eButtonShowMainFilter",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i128,r=this&&this.__extends||(_i128=function i(e,t){return(_i128=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;}_i128(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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="";},n([l.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),t;}(a.Component);t.ReadOnlyFloatingFilter=p;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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([n.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e;}();t.RowContainerComponent=l;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var i=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=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===n.DragSourceType.RowDrag;},e.prototype.getIconName=function(){return n.DragAndDropService.ICON_MOVE;},e.prototype.onDragEnter=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_ENTER,e),this.dragAndDropService.setGhostIcon(n.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),r=-1,s=null;switch(i>this.rowModel.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(i),s=this.rowModel.getRow(r)),t.vDirection){case n.VDirection.Down:o="down";break;case n.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:r,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"),r("design:type",n.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),i([s.Autowired("focusedCellController"),r("design:type",a.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([s.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Optional("rangeController"),r("design:type",Object)],e.prototype,"rangeController",void 0),i([s.Autowired("eventService"),r("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"postConstruct",null),e;}();t.RowDragFeature=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i129,r=this&&this.__extends||(_i129=function i(e,t){return(_i129=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;}_i129(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(),r=t+o,n=e.getEndRow()-1;n>=i;n--){if(!(n<r)){var s=n-o,a=this.getRow(s,!0);a?e.setRowNode(n,a):(e.setBlankRowNode(n),e.setDirty());}}},t.prototype.insertItems=function(e,t,o){for(var i=e.getStartRow(),r=e.getEndRow(),n=[],s=0;s<o.length;s++){var a=t+s;if(a>=i&&a<r){var l=o[s],p=e.setNewData(a,l);n.push(p);}}return n;},t.prototype.insertItemsAtIndex=function(e,t){var o=this,i=[];this.forEachBlockInReverseOrder(function(r){r.getEndRow()<=e||(o.moveItemsDown(r,e,t.length),o.insertItems(r,e,t).forEach(function(e){return i.push(e);}));}),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var r={type:u.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r);},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();},n([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("columnApi"),s("design:type",g.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),n([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[c.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i130,r=this&&this.__extends||(_i130=function i(e,t){return(_i130=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;}_i130(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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));},n([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i131,r=this&&this.__extends||(_i131=function i(e,t){return(_i131=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;}_i131(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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();}},n([a.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([a.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([a.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),n([a.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t=n([a.Bean("changeDetectionService")],t);}(h.BeanStub);t.ChangeDetectionService=g;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i132,r=this&&this.__extends||(_i132=function i(e,t){return(_i132=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;}_i132(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=function(e){function t(){return e.call(this)||this;}return r(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 r=this.isZeroPagesToDisplay(),n=t&&e===o-1||r;g._.addOrRemoveCssClass(this.btNext,"ag-disabled",n);var s=!t||r||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(),r=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=i*o+1)+i-1,r&&t>n&&(t=n)),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;}},n([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("paginationProxy"),s("design:type",f.PaginationProxy)],t.prototype,"paginationProxy",void 0),n([l.Autowired("rowRenderer"),s("design:type",h.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),n([u.RefSelector("btFirst"),s("design:type",HTMLElement)],t.prototype,"btFirst",void 0),n([u.RefSelector("btPrevious"),s("design:type",HTMLElement)],t.prototype,"btPrevious",void 0),n([u.RefSelector("btNext"),s("design:type",HTMLElement)],t.prototype,"btNext",void 0),n([u.RefSelector("btLast"),s("design:type",HTMLElement)],t.prototype,"btLast",void 0),n([u.RefSelector("lbRecordCount"),s("design:type",Object)],t.prototype,"lbRecordCount",void 0),n([u.RefSelector("lbFirstRowOnPage"),s("design:type",Object)],t.prototype,"lbFirstRowOnPage",void 0),n([u.RefSelector("lbLastRowOnPage"),s("design:type",Object)],t.prototype,"lbLastRowOnPage",void 0),n([u.RefSelector("eSummaryPanel"),s("design:type",Object)],t.prototype,"eSummaryPanel",void 0),n([u.RefSelector("lbCurrent"),s("design:type",Object)],t.prototype,"lbCurrent",void 0),n([u.RefSelector("lbTotal"),s("design:type",Object)],t.prototype,"lbTotal",void 0),n([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t;}(a.Component);t.PaginationComp=v;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i133,r=this&&this.__extends||(_i133=function i(e,t){return(_i133=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;}_i133(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,o.style.left=r+i.width/2+"px",this.update();}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var o=this.spectrumAlphaSlider,i=o.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,o.style.left=r+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,r=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-r.width/2+"px",i.style.top=(1-t)*o.height-r.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],r=o[1],n=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(r,n);},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>',n([p.RefSelector("spectrumColor"),s("design:type",HTMLElement)],t.prototype,"spectrumColor",void 0),n([p.RefSelector("spectrumVal"),s("design:type",HTMLElement)],t.prototype,"spectrumVal",void 0),n([p.RefSelector("spectrumDragger"),s("design:type",HTMLElement)],t.prototype,"spectrumDragger",void 0),n([p.RefSelector("spectrumHue"),s("design:type",HTMLElement)],t.prototype,"spectrumHue",void 0),n([p.RefSelector("spectrumHueSlider"),s("design:type",HTMLElement)],t.prototype,"spectrumHueSlider",void 0),n([p.RefSelector("spectrumAlpha"),s("design:type",HTMLElement)],t.prototype,"spectrumAlpha",void 0),n([p.RefSelector("spectrumAlphaSlider"),s("design:type",HTMLElement)],t.prototype,"spectrumAlphaSlider",void 0),n([p.RefSelector("recentColors"),s("design:type",HTMLElement)],t.prototype,"recentColors",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i134,r=this&&this.__extends||(_i134=function i(e,t){return(_i134=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;}_i134(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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;},n([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eWrapper"),s("design:type",HTMLElement)],t.prototype,"eWrapper",void 0),n([a.RefSelector("eDisplayField"),s("design:type",Object)],t.prototype,"eDisplayField",void 0),n([a.RefSelector("eButton"),s("design:type",HTMLButtonElement)],t.prototype,"eButton",void 0),t;}(u.AgAbstractField);t.AgPickerField=d;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(122),r=o(150),n=!1;t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!n){n=!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 set(e){this.__agGridSetProperty(t,e);},get:function get(){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 r.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,r=e.nodeValue;i.ComponentUtil.ALL_PROPERTIES.indexOf(o)>=0&&(this[o]=r);},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 r="on"+o;"function"==typeof this[r]&&this[r](i);},document.registerElement("ag-grid",{prototype:e});}};},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),r=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,r=0;return this.items.forEach(function(n){i._.clearElement(t);var s=n.tabbedItem.bodyPromise.resolveNow(null,function(e){return e.cloneNode(!0);});null!=s&&(t.appendChild(s),o<e.offsetWidth&&(o=e.offsetWidth),r<e.offsetHeight&&(r=e.offsetHeight));}),this.eGui.removeChild(e),{height:r,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=r;},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var _i135,r=this&&this.__extends||(_i135=function i(e,t){return(_i135=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;}_i135(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r(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>',n([u.RefSelector("eCenter"),s("design:type",HTMLElement)],t.prototype,"eCenter",void 0),n([u.RefSelector("eOk"),s("design:type",HTMLElement)],t.prototype,"eOk",void 0),n([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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=o(2);t.defaultGroupComparator=function(e,t,o,r,n){void 0===n&&(n=!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(r)&&r.group,l=!s&&!a;return s&&a?i._.defaultComparator(o.key,r.key,n):l?i._.defaultComparator(e,t,n):s?1:-1;};},function(e,t,o){"use strict";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.wrap=function(e,t,o,i){var r=this;void 0===o&&(o=[]);var n=this.createWrapper(e,i);return t.forEach(function(e){r.createMethod(n,e,!0);}),o.forEach(function(e){r.createMethod(n,e,!1);}),n;},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";/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v21.2.2
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/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 r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},r=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t);};Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(21),a=o(286),l=function(){function e(){this.activeCharts=[];}return e.prototype.chartCurrentRange=function(e){void 0===e&&(e=n.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=n.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,r,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:!(r||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(r){r.appendChild(d.getGui());var f=this.environment.getTheme();f.el&&!f.el.contains(r)&&n._.addCssClass(r,f.theme);}else u?u(h):d.addEventListener(a.GridChartComp.EVENT_DESTROYED,function(){n._.removeFromArray(p.activeCharts,h);});return h;},e.prototype.createChartRef=function(e){var t=this,o={destroyChart:function destroyChart(){t.activeCharts.indexOf(o)>=0&&(e.destroy(),n._.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([n.Autowired("rangeController"),r("design:type",s.RangeController)],e.prototype,"rangeController",void 0),i([n.Autowired("columnController"),r("design:type",n.ColumnController)],e.prototype,"columnController",void 0),i([n.Autowired("environment"),r("design:type",n.Environment)],e.prototype,"environment",void 0),i([n.Autowired("context"),r("design:type",n.Context)],e.prototype,"context",void 0),i([n.Autowired("gridOptionsWrapper"),r("design:type",n.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([n.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"destroyAllActiveCharts",null),e=i([n.Bean("chartService")],e);}();t.ChartService=l;},function(e,t,o){"use strict";var _i136,r=this&&this.__extends||(_i136=function i(e,t){return(_i136=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;}_i136(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(55),m=o(13),C=o(165),w=o(164),_=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.params=o,i;}return r(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:v.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 r=this.eChart.querySelector("canvas");r&&this.eChart.removeChild(r);}var n=this.params.processChartOptions?this.params.processChartOptions:this.gridOptionsWrapper.getProcessChartOptionsFunc(),s=this.model.getSelectedDimension().colId!==u.ChartModel.DEFAULT_CATEGORY,a={chartType:this.model.getChartType(),processChartOptions:n,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(),r=o&&i.xAxis instanceof w.NumberAxis,n=!o&&i.xAxis instanceof C.CategoryAxis;return r||n;}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 r=e.getSelectedDimension(),n={data:i,category:{id:r.colId,name:r.displayName},fields:o};t.update(n);}},t.prototype.handleEmptyChart=function(e,t){var o=this.chartProxy.getChart().parent,i=this.model.isPivotChart()&&!this.model.isPivotMode(),r=1;this.chartController.isActiveXYChart()&&(r=this.model.getChartType()===a.ChartType.Bubble?3:2);var n=t.length<r||0===e.length;return o&&a._.addOrRemoveCssClass(o,"ag-chart-empty",i||n),i?(this.eEmpty.innerText=this.chartTranslator.translate("pivotChartRequiresPivotMode"),!0):!!n&&(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>',n([a.RefSelector("eChart"),s("design:type",HTMLElement)],t.prototype,"eChart",void 0),n([a.RefSelector("eChartComponentsWrapper"),s("design:type",HTMLElement)],t.prototype,"eChartComponentsWrapper",void 0),n([a.RefSelector("eDockedContainer"),s("design:type",HTMLElement)],t.prototype,"eDockedContainer",void 0),n([a.RefSelector("eEmpty"),s("design:type",HTMLElement)],t.prototype,"eEmpty",void 0),n([a.Autowired("resizeObserverService"),s("design:type",a.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("environment"),s("design:type",a.Environment)],t.prototype,"environment",void 0),n([a.Autowired("chartTranslator"),s("design:type",m.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(a.Component);t.GridChartComp=_;},function(e,t,o){"use strict";var _i137,r=this&&this.__extends||(_i137=function i(e,t){return(_i137=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;}_i137(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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],r=o[1],n=a._.createIconNoSpan(i,e.gridOptionsWrapper,void 0,!0);e.addDestroyableEventListener(n,"click",r),e.getGui().appendChild(n);});},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(),r=this.getContext(),n=this.menuPanel=new a.AgPanel({minWidth:220,width:220,height:"100%",closable:!0,hideTitleBar:!0});return r.wireBean(this.menuPanel),n.setParentComponent(this),i.appendChild(n.getGui()),this.tabbedMenu=new l.TabbedChartMenu({controller:this.chartController,type:o.getCurrentChartType(),panels:this.tabs}),r.wireBean(this.tabbedMenu),this.addDestroyableEventListener(this.menuPanel,a.Component.EVENT_DESTROYED,function(){t.tabbedMenu.destroy();}),new a.Promise(function(i){window.setTimeout(function(){n.setBodyComponent(t.tabbedMenu),t.tabbedMenu.showTab(e),t.addDestroyableEventListener(o.getChartComponentsWrapper(),"click",function(){a._.containsClass(o.getGui(),"ag-has-menu")&&t.hideMenu();}),i(n);},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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([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 _i138,r=this&&this.__extends||(_i138=function i(e,t){return(_i138=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;}_i138(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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,r=t.type,n=t.panels;return o.chartController=i,o.currentChartType=r,o.panels=n,o;}return r(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)),r=i.comp,n=i.tab;e.tabs.push(n),e.addDestroyFunc(function(){return r.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 r=new o(this.chartController);this.getContext().wireBean(r),i.appendChild(r.getGui());var n=document.createElement("div");return n.innerText=this.chartTranslator.translate(t),{comp:r,tab:{title:n,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",n([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i139,r=this&&this.__extends||(_i139=function i(e,t){return(_i139=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;}_i139(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 r=0===i,n=r?"categories":e.chartController.isActiveXYChart()?"xyValues":"series",s=new a.AgGroupComponent({title:e.chartTranslator.translate(n),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1});e.getContext().wireBean(s),o.forEach(e.getColumnStateMapper(r,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 r=e?new a.AgRadioButton():new a.AgCheckbox();o.getContext().wireBean(r),r.setLabel(a._.escape(i.displayName)),r.setValue(i.selected),o.columnComps[i.colId]=r,e&&(r.setInputName("chartDimension"+o.getCompId()),o.dimensionComps.push(r)),o.addDestroyableEventListener(r,a.AgAbstractField.EVENT_CHANGED,function(){i.selected=r.getValue(),o.chartController.updateForMenuChange(i);}),t.addItem(r);};},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>',n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i140,r=this&&this.__extends||(_i140=function i(e,t){return(_i140=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;}_i140(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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={},r={},n={},s=this.gridRowModel.getRowCount()-1,a=(e.endRow>0?Math.min(e.endRow,s):s)-e.startRow+1,l=function l(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 toString(){return h[0];}}:a[i]=h.slice().reverse().join(" - "),l.group&&(r[h.toString()]=s);var f=h.slice(1,h.length).toString();f&&(n[f]=r[f]);}else a[i]=d;}else a[p.ChartModel.DEFAULT_CATEGORY]=(s+1).toString();}),e.valueCols.forEach(function(e){var o=[],r=e.getColDef().pivotKeys;r&&(o=r.slice());var n=e.getColDef().headerName;n&&o.push(n),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(n).map(function(e){return n[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 r=a._.last(i),n=r&&r.colId,s={},l=[];return t.forEach(function(e){var t=s;i.forEach(function(o){var r=o.colId,s=e[r];if(r===n){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 r=[];t.__children.forEach(function(e){r.push(e[i.getId()]);});var n=o.aggregationStage.aggregateValues(r,e.aggFunc);void 0!==n.value?t[i.getId()]=n.value:t[i.getId()]=n;});}),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);},n([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"gridRowModel",void 0),n([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("aggregationStage"),s("design:type",l.AggregationStage)],t.prototype,"aggregationStage",void 0),n([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 _i141,r=this&&this.__extends||(_i141=function i(e,t){return(_i141=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;}_i141(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o;}return r(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>',n([a.RefSelector("formatPanelWrapper"),s("design:type",HTMLElement)],t.prototype,"formatPanelWrapper",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(a.Component);t.ChartFormattingPanel=v;},function(e,t,o){"use strict";var _i142,r=this&&this.__extends||(_i142=function i(e,t){return(_i142=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;}_i142(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(_t12,o,i,r){i.setLabel(e.chartTranslator.translate(o)).setValue(e.chartProxy.getLegendProperty(_t12)).setMaxValue(r).setTextFieldWidth(45).onValueChange(function(o){return e.chartProxy.setLegendProperty(_t12,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 setFont(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>',n([a.RefSelector("legendGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"legendGroup",void 0),n([a.RefSelector("legendPositionSelect"),s("design:type",a.AgSelect)],t.prototype,"legendPositionSelect",void 0),n([a.RefSelector("legendPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"legendPaddingSlider",void 0),n([a.RefSelector("markerSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"markerSizeSlider",void 0),n([a.RefSelector("markerStrokeSlider"),s("design:type",a.AgSlider)],t.prototype,"markerStrokeSlider",void 0),n([a.RefSelector("markerPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"markerPaddingSlider",void 0),n([a.RefSelector("itemPaddingXSlider"),s("design:type",a.AgSlider)],t.prototype,"itemPaddingXSlider",void 0),n([a.RefSelector("itemPaddingYSlider"),s("design:type",a.AgSlider)],t.prototype,"itemPaddingYSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i143,r=this&&this.__extends||(_i143=function i(e,t){return(_i143=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;}_i143(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 setEnabled(t){return e.chartProxy.setSeriesProperty("labelEnabled",t);},suppressEnabledCheckbox:!1,initialFont:t,setFont:function setFont(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>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesStrokeWidthSlider",void 0),n([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),n([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",u.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i144,r=this&&this.__extends||(_i144=function i(e,t){return(_i144=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;}_i144(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 setFont(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(_o4,i,r){var n=new a.AgAngleSelect().setLabel(_o4).setLabelWidth("flex").setValue(i).onValueChange(r);t.getContext().wireBean(n),e.addCompToPanel(n);},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>',n([a.RefSelector("axisGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"axisGroup",void 0),n([a.RefSelector("axisLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"axisLineWidthSlider",void 0),n([a.RefSelector("axisColorInput"),s("design:type",a.AgColorPicker)],t.prototype,"axisColorInput",void 0),n([a.Autowired("chartTranslator"),s("design:type",u.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i145,r=this&&this.__extends||(_i145=function i(e,t){return(_i145=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;}_i145(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(_t13,o,i,r){o.setLabel(i).setValue(e.chartProxy.getCommonAxisProperty(_t13)).setMaxValue(r).setTextFieldWidth(45).onValueChange(function(o){return e.chartProxy.setCommonAxisProperty(_t13,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>',n([a.RefSelector("axisTicksGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"axisTicksGroup",void 0),n([a.RefSelector("axisTicksColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"axisTicksColorPicker",void 0),n([a.RefSelector("axisTicksWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksWidthSlider",void 0),n([a.RefSelector("axisTicksSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksSizeSlider",void 0),n([a.RefSelector("axisTicksPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksPaddingSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i146,r=this&&this.__extends||(_i146=function i(e,t){return(_i146=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;}_i146(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 get(){return this._parent;},set:function set(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]),r=[],n=0,s=i.length;n<s;n++){r.push(i.charCodeAt(n));}var a=new Blob([new Uint8Array(r)],{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 get(){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 r=this.element,n=this.context,s=this.overrides=e.makeHdpiOverrides(i);for(var a in s){s.hasOwnProperty(a)&&(n["$"+a]||(n["$"+a]=n[a]),n[a]=s[a]);}if(o){var l=r.width/this.pixelRatio,p=r.height/this.pixelRatio;r.width=Math.round(l*i),r.height=Math.round(p*i),r.style.width=Math.round(l)+"px",r.style.height=Math.round(p)+"px",n.resetTransform();}this._pixelRatio=i;}},Object.defineProperty(e.prototype,"width",{get:function get(){return this._width;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function get(){return this._height;},enumerable:!0,configurable:!0}),e.prototype.resize=function(e,t){var o=this.element,i=this.context,r=this.tempCanvas;this._width=e,this._height=t,r.width=o.width,r.height=o.height;var n=r.getContext("2d");n.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(n.canvas,0,0),i.resetTransform();},Object.defineProperty(e.prototype,"textMeasuringContext",{get:function get(){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 get(){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 get(){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 r=this.textMeasuringContext;return r.font=t,r.textBaseline=o,r.textAlign=i,r.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,r=i[o];if(r){var n=r[t];if(n)return n;}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 save(){this.$save(),t++;},restore:function restore(){t>0&&(this.$restore(),t--);},setTransform:function setTransform(t,o,i,r,n,s){this.$setTransform(t*e,o*e,i*e,r*e,n*e,s*e);},resetTransform:function resetTransform(){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 r(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,r,n,s,a){var l=(o-e)*(a-n)-(i-t)*(s-r);if(0===l)return null;var p=((s-r)*(t-n)-(e-r)*(a-n))/l,u=((o-e)*(t-n)-(i-t)*(e-r))/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,n,s,a,l,p,u,c,d,h){for(var f=[],g=c-h,y=d-u,v=u*(h-c)-c*(d-u),m=r(e,o,s,l),C=r(t,n,a,p),w=g*m[0]+y*C[0],_=g*m[1]+y*C[1],b=g*m[2]+y*C[2],E=g*m[3]+y*C[3]+v,R=i.cubicRoots(w,_,b,E),P=0;P<R.length;P++){var O=R[P],S=O*O,A=O*S,T=m[0]*A+m[1]*S+m[2]*O+m[3],D=C[0]*A+C[1]*S+C[2]*O+C[3],x=void 0;(x=u!==d?(T-u)/(d-u):(D-c)/(h-c))>=0&&x<=1&&f.push({x:T,y:D});}return f;},t.bezierCoefficients=r;},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 r(e,t){var o=-t/e;return 0!==e&&o>=0&&o<=1?[o]:[];}function n(e,t,o){if(0===e)return r(t,o);var i=t*t-4*e*o,n=[];if(0===i){var s=-t/(2*e);s>=0&&s<=1&&n.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&&n.push(l),p>=0&&p<=1&&n.push(p);}return n;}t.linearRoot=r,t.quadraticRoots=n,t.cubicRoots=function(e,t,o,r){if(0===e)return n(t,o,r);var s=t/e,a=o/e,l=(3*a-s*s)/9,p=(9*s*a-27*(r/e)-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 v=-1/3*s-(h+f)/2;v>=0&&v<=1&&c.push(v);}}else{var m=Math.acos(p/Math.sqrt(-l*l*l)),C=1/3*s,w=2*Math.sqrt(-l),_=w*Math.cos(1/3*m)-C,b=w*Math.cos(1/3*(m+2*Math.PI))-C,E=w*Math.cos(1/3*(m+4*Math.PI))-C;_>=0&&_<=1&&c.push(_),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,r=o(16),n=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 r.Group(),this.itemSelection=n.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 get(){return this._size;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function get(){return this._data;},set:function set(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 get(){return this._orientation;},set:function set(e){this._orientation!==e&&(this._orientation=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function get(){return this._enabled;},set:function set(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 get(){return this._itemPaddingX;},set:function set(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 get(){return this._itemPaddingY;},set:function set(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 get(){return this._markerPadding;},set:function set(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 get(){return this._labelColor;},set:function set(e){this._labelColor!==e&&(this._labelColor=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontStyle",{get:function get(){return this._labelFontStyle;},set:function set(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontWeight",{get:function get(){return this._labelFontWeight;},set:function set(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontSize",{get:function get(){return this._labelFontSize;},set:function set(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontFamily",{get:function get(){return this._labelFontFamily;},set:function set(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.requestLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerSize",{get:function get(){return this._markerSize;},set:function set(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 get(){return this._markerStrokeWidth;},set:function set(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,r=this.itemSelection.setData(this.data);r.exit.remove();var n=r.enter.append(s.MarkerLabel),a=this.itemSelection=r.merge(n),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 v=0;do{var m=0;v=0,f=0,h++;for(var C=0;C<l;){(b=c[C]).width>f&&(f=b.width),++C%h==0&&(m+=f,f=0,v++);}C%h!=0&&(m+=f,v++),g=m+(v-1)*p;}while(g>e&&v>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;m=0;var w=0,_=0;for(C=0;C<l;){var b=c[C];_||(w+=b.height),b.width>f&&(f=b.width),++C%h==0&&(m+=f,f=0,_++);}C%h!=0&&(m+=f,_++),g=m+(_-1)*p,y=w+(h-1)*u;}while(y>t&&h>1);}var E=(e-g)/2,R=(t-y)/2,P=0,O=0;f=0,a.each(function(e,t,o){e.translationX=Math.floor(E+P),e.translationY=Math.floor(R+O);var i=c[o];i.width>f&&(f=i.width),(o+1)%h==0?(P+=f+p,O=0,f=0):O+=i.height+u;}),this.update();var S=this._size,A=this.oldSize;S[0]=g,S[1]=y,S[0]===A[0]&&S[1]===A[1]||(A[0]=S[0],A[1]=S[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 _i147,r=this&&this.__extends||(_i147=function i(e,t){return(_i147=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;}_i147(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),Object.defineProperty(t.prototype,"labelText",{get:function get(){return this.label.text;},set:function set(e){this.label.text=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function get(){return this.label.fontStyle;},set:function set(e){this.label.fontStyle=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function get(){return this.label.fontWeight;},set:function set(e){this.label.fontWeight=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function get(){return this.label.fontSize;},set:function set(e){this.label.fontSize=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function get(){return this.label.fontFamily;},set:function set(e){this.label.fontFamily=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function get(){return this.label.fill;},set:function set(e){this.label.fill=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function get(){return this._markerSize;},set:function set(e){this._markerSize!==e&&(this._markerSize=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerFill",{get:function get(){return this.marker.fill;},set:function set(e){this.marker.fill=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStroke",{get:function get(){return this.marker.stroke;},set:function set(e){this.marker.stroke=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function get(){return this.marker.strokeWidth;},set:function set(e){this.marker.strokeWidth=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function get(){return this.marker.opacity;},set:function set(e){this.marker.opacity=e,this.label.opacity=e;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function get(){return this._padding;},set:function set(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;}(n.Group);t.MarkerLabel=l;},function(e,t,o){"use strict";var _i148,r=this&&this.__extends||(_i148=function i(e,t){return(_i148=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;}_i148(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function get(){return this.scene.root;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function get(){return this._series;},set:function set(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 r=this.padding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.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;}(n.Chart);t.PolarChart=a;},function(e,t,o){"use strict";var _i149,r=this&&this.__extends||(_i149=function i(e,t){return(_i149=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;}_i149(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 n.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 r(t,e),Object.defineProperty(t.prototype,"chart",{get:function get(){return this._chart;},set:function set(e){this._chart!==e&&(this._chart=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function get(){return this._title;},set:function set(e){this._title!==e&&(this._title=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function get(){return this._xField;},set:function set(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function get(){return this._yField;},set:function set(e){this._yField!==e&&(this._yField=e,this.yData=[],this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function get(){return this._marker;},set:function set(e){this._marker!==e&&(this._marker=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function get(){return this._markerSize;},set:function set(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function get(){return this._markerStrokeWidth;},set:function set(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 r=e.xAxis.scale instanceof s["default"],n=r?u.numericExtent(this.xData)||[0,1]:this.xData,a=u.numericExtent(this.yData)||[0,1];if(r){var l=n;(p=l[0])===(c=l[1])&&(n[0]=p-1,n[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=n,this.domainY=a,!0;},Object.defineProperty(t.prototype,"fill",{get:function get(){return this._fill;},set:function set(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 get(){return this._stroke;},set:function set(e){this._stroke!==e&&(this._stroke=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function get(){return this._strokeWidth;},set:function set(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,r=t.yAxis,n=i.scale,s=r.scale,a=(n.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,v=this.marker,m=this.markerSize,C=this.markerStrokeWidth,w=this.lineNode,_=w.path,b=[];_.clear();for(var E=0;E<f;E++){var R=d[E],P=h[E],O=n.convert(R)+a,S=s.convert(P)+u;E?_.lineTo(O,S):_.moveTo(O,S),v&&b.push({seriesDatum:c[E],x:O,y:S,fill:g,stroke:y,strokeWidth:C,radius:m/2});}w.stroke=y,w.strokeWidth=this.strokeWidth;var A=this.groupSelection.setData(b);A.exit.remove();var T=A.enter.append(l.Group);T.append(p.Arc).each(function(e){return e.type=p.ArcType.Chord;});var D=this.highlightedNode,x=A.merge(T);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,r="";if(!t||!o)return r;var n=this.title;if(this.tooltipRenderer&&this.xField)r=this.tooltipRenderer({datum:e.seriesDatum,xField:t,yField:o,title:n,color:i});else{n=n?'<div class="title" '+('style="color: white; background-color: '+i+'"')+">"+n+"</div>":"";var s=e.seriesDatum,a=s[t],l=s[o];r=n+'<div class="content">'+("number"==typeof a?h.toFixed(a):String(a))+": "+("number"==typeof l?h.toFixed(l):String(l))+"</div>";}return r;},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 _i150,r=this&&this.__extends||(_i150=function i(e,t){return(_i150=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;}_i150(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(t,e),Object.defineProperty(t.prototype,"chart",{get:function get(){return this._chart;},set:function set(e){this._chart!==e&&(this._chart=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function get(){return this._title;},set:function set(e){this._title!==e&&(this._title=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function get(){return this._xField;},set:function set(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function get(){return this._yField;},set:function set(e){this._yField!==e&&(this._yField=e,this.yData=[],this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusField",{get:function get(){return this._radiusField;},set:function set(e){this._radiusField!==e&&(this._radiusField=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function get(){return this._marker;},set:function set(e){this._marker!==e&&(this._marker=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function get(){return this._markerSize;},set:function set(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minMarkerSize",{get:function get(){return this._minMarkerSize;},set:function set(e){this._minMarkerSize!==e&&(this._minMarkerSize=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function get(){return this._markerStrokeWidth;},set:function set(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,r=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,r/2];var d=e.xAxis.scale instanceof n["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])===(v=g[1])&&(h[0]=y-1,h[1]=v+1);}var y,v,m=f;return(y=m[0])===(v=m[1])&&(f[0]=y-1,f[1]=v+1),this.domainX=h,this.domainY=f,!0;},Object.defineProperty(t.prototype,"fill",{get:function get(){return this._fill;},set:function set(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 get(){return this._stroke;},set:function set(e){this._stroke!==e&&(this._stroke=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function get(){return this._fillOpacity;},set:function set(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function get(){return this._strokeOpacity;},set:function set(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,r=t.yAxis,n=i.scale,s=r.scale,p=(n.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,v=this.stroke,m=this.fillOpacity,C=this.strokeOpacity,w=this.markerStrokeWidth,_=this.markerSize,b=[],E=0;E<g;E++){var R=d[E],P=h[E],O=n.convert(R)+p,S=s.convert(P)+u;b.push({seriesDatum:c[E],x:O,y:S,fill:y,stroke:v,strokeWidth:w,radius:this.radiusField?this.radiusScale.convert(f[E]):_/2});}var A=this.groupSelection.setData(b);A.exit.remove();var T=A.enter.append(a.Group);T.append(l.Arc).each(function(e){return e.type=l.ArcType.Chord;});var D=this.highlightedNode,x=A.merge(T);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=m,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,r=this.xFieldName,n=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:r,yFieldName:n,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>"+r+"</b>: "+("number"==typeof c?d.toFixed(c):String(c))+"<br><b>"+n+"</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 _i151,r=this&&this.__extends||(_i151=function i(e,t){return(_i151=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;}_i151(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n,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";}(n||(n={}));var v=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 r(t,e),Object.defineProperty(t.prototype,"fills",{get:function get(){return this._fills;},set:function set(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 get(){return this._strokes;},set:function set(e){this._strokes=e,this.scheduleData();},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function get(){return this._fillOpacity;},set:function set(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function get(){return this._strokeOpacity;},set:function set(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function get(){return this._chart;},set:function set(e){this._chart!==e&&(this._chart=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function get(){return this._xField;},set:function set(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFields",{get:function get(){return this._yFields;},set:function set(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 get(){return this._yFieldNames;},set:function set(e){this._yFieldNames=e,this.update();},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"grouped",{get:function get(){return this._grouped;},set:function set(e){this._grouped!==e&&(this._grouped=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normalizedTo",{get:function get(){return this._normalizedTo;},set:function set(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 get(){return this._strokeWidth;},set:function set(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function get(){return this._shadow;},set:function set(e){this._shadow!==e&&(this._shadow=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelEnabled",{get:function get(){return this._labelEnabled;},set:function set(e){this._labelEnabled!==e&&(this._labelEnabled=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function get(){return this._labelFontStyle;},set:function set(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function get(){return this._labelFontWeight;},set:function set(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function get(){return this._labelFontSize;},set:function set(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function get(){return this._labelFontFamily;},set:function set(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function get(){return this._labelColor;},set:function set(e){this._labelColor!==e&&(this._labelColor=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFormatter",{get:function get(){return this._labelFormatter;},set:function set(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,r=this.normalizedTo,n=(this.xData=e.map(function(e){return e[t];}),this.ySums=[]),s=this.yData=e.map(function(e,t){var r=[],s=0;return o.forEach(function(t){var o=e[t];isFinite(o)&&i.get(t)||(o=0),o>0&&(s+=o),r.push(o);}),n[t]=s,r;}),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(r)?(a=0,l=r,s.forEach(function(e,t){var o=n[t];e.forEach(function(t,i){return e[i]=t/o*r;});})):(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,r=!(t.yAxis instanceof y.NumberAxis),s=r?t.yAxis:t.xAxis,a=r?t.xAxis:t.yAxis,u=s.scale,c=a.scale,d=this.groupScale,f=this.yFields,g=this.fills,v=this.strokes,m=this.fillOpacity,C=this.strokeOpacity,w=this.grouped,_=this.strokeWidth,b=this.enabled,E=this.labelEnabled,R=this.labelFontStyle,P=this.labelFontWeight,O=this.labelFontSize,S=this.labelFontFamily,A=this.labelColor,T=this.labelFormatter,D=this.data,x=this.xData,F=this.yData;d.range=[0,u.bandwidth];for(var M=w?d.bandwidth:u.bandwidth,N=[],L=0;L<i;L++){for(var I=x[L],G=F[L],k=G.length,W=u.convert(I),V=0,H=void 0,j=0;j<k;j++){H=G[j];var B=f[j],U=b.get(B),z=w?W+d.convert(B):W,Y=c.convert(w?H:V+H),K=c.convert(w?0:V),X=D[L],q=X[B],Q="number"==typeof q,$=void 0;$=T?T({value:Q?q:NaN}):Q&&isFinite(q)?q.toFixed(2):"",N.push({seriesDatum:X,yValue:q,yField:B,x:r?Math.min(Y,K):z,y:r?z:Math.min(Y,K),width:r?Math.abs(K-Y):M,height:r?M:Math.abs(K-Y),fill:g[j%g.length],stroke:v[j%v.length],strokeWidth:_,label:U&&$?{text:$,fontStyle:R,fontWeight:P,fontSize:O,fontFamily:S,fill:A,x:r?Y+(q>=0?-1:1)*Math.abs(K-Y)/2:z+M/2,y:r?z+M/2:Y+(q>=0?1:-1)*Math.abs(K-Y)/2}:void 0}),w?V=H:V+=H;}}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=n.Bar,e.crisp=!0;}),te=J.enter.append(p.Text).each(function(e){e.tag=n.Label,e.pointerEvents=h.PointerEvents.None,e.textAlign="center",e.textBaseline="middle";}),oe=this.highlightedNode,ie=Z.merge(ee),re=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=m,t.strokeOpacity=C,t.strokeWidth=o.strokeWidth,t.fillShadow=e.shadow,t.visible=o.height>0;}),re.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=re;}},t.prototype.getTooltipHtml=function(e){var t="";if(this.tooltipEnabled){var o=this.xField,i=e.yField,r=this.yFields.indexOf(i),n=e.seriesDatum,s=this.fills[r%this.fills.length],a=this.yFieldNames[r]||void 0;if(this.tooltipRenderer&&o)t=this.tooltipRenderer({datum:n,xField:o,yField:i,title:a,color:s});else{a=a?'<div class="title" '+('style="color: white; background-color: '+s+'"')+">"+a+"</div>":"";var l=n[o],p=n[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,r=this.id;this.yFields.forEach(function(n,s){e.push({id:r,itemId:n,enabled:t.enabled.get(n)||!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=v;},function(e,t,o){"use strict";var _i152,r=this&&this.__extends||(_i152=function i(e,t){return(_i152=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;}_i152(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 n.Group()),t.strokeGroup=t.group.appendChild(new n.Group()),t.markerGroup=t.group.appendChild(new n.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 r(t,e),Object.defineProperty(t.prototype,"fills",{get:function get(){return this._fills;},set:function set(e){this._fills=e,this.scheduleData();},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function get(){return this._strokes;},set:function set(e){this._strokes=e,this.scheduleData();},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function get(){return this._fillOpacity;},set:function set(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function get(){return this._strokeOpacity;},set:function set(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function get(){return this._chart;},set:function set(e){this._chart!==e&&(this._chart=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function get(){return this._xField;},set:function set(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFields",{get:function get(){return this._yFields;},set:function set(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 get(){return this._yFieldNames;},set:function set(e){this._yFieldNames=e,this.update();},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normalizedTo",{get:function get(){return this._normalizedTo;},set:function set(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 get(){return this._strokeWidth;},set:function set(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function get(){return this._marker;},set:function set(e){this._marker!==e&&(this._marker=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function get(){return this._markerSize;},set:function set(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function get(){return this._markerStrokeWidth;},set:function set(e){this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function get(){return this._shadow;},set:function set(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 r=this.enabled,n=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=[],n=0;return o.forEach(function(t){var o=e[t];isFinite(o)&&r.get(t)||(o=0),o<0&&(o=Math.abs(o)),o>0&&(n+=o),i.push(o);}),p[t]=n,i;}),c=1/0,d=-1/0;isFinite(n)?(c=0,d=n,u.forEach(function(e,t){var o=p[t];e.forEach(function(t,i){return e[i]=t/o*n;});})):(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],v=g[1];y===v&&(h[0]=y-1,h[1]=v+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,r=t.xAxis,n=t.yAxis,s=r.scale,a=n.scale,l=(s.bandwidth||0)/2,u=(a.bandwidth||0)/2,h=this.yFields,f=this.enabled,g=this.fills,y=this.strokes,v=this.fillOpacity,m=this.strokeOpacity,C=this.strokeWidth,w=this.data,_=this.xData,b=this.yData,E=this.marker,R=this.markerSize,P=this.markerStrokeWidth,O=[],S=[],A=2*i-1,T=0;T<i;T++){for(var D=_[T],x=b[T],F=x.length,M=s.convert(D)+l,N=0,L=void 0,I=0;I<F;I++){L=x[I];var G=a.convert(N+L)+u,k=h[I],W=w[T],V=W[k];E&&S.push({seriesDatum:W,yValue:V,yField:k,x:M,y:G,fill:g[I%g.length],stroke:y[I%y.length],radius:R/2,text:this.yFieldNames[I]});var H=(O[I]||(O[I]={yField:k,points:[]})).points;H[T]={x:M,y:G},H[A-T]={x:M,y:a.convert(N)+u},N+=L;}}var j=this.areaSelection.setData(O),B=this.strokeSelection.setData(O),U=this.markerSelection.setData(S);j.exit.remove(),B.exit.remove(),U.exit.remove();var z=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;}),K=U.enter.append(d.Arc).each(function(e){return e.type=d.ArcType.Chord;}),X=this.highlightedNode,q=j.merge(z),Q=B.merge(Y),$=U.merge(K);q.each(function(t,o,i){var r=t.path;t.fill=g[i%g.length],t.fillOpacity=v,t.fillShadow=e.shadow,t.visible=!!f.get(o.yField),r.clear();for(var n=o.points,s=n.length,a=0;a<s;a++){var l=n[a],p=l.x,u=l.y;a?r.lineTo(p,u):r.moveTo(p,u);}r.closePath();}),Q.each(function(e,t,o){var r=e.path;e.stroke=y[o%y.length],e.strokeWidth=C,e.visible=!!f.get(t.yField),e.strokeOpacity=m,r.clear();for(var n=t.points,s=0;s<i;s++){var a=n[s],l=a.x,p=a.y;s?r.lineTo(l,p):r.moveTo(l,p);}}),$.each(function(t,o){t.centerX=o.x,t.centerY=o.y,t.radiusX=o.radius,t.radiusY=o.radius,t.fill=t===X&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===X&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.strokeWidth=P,t.visible=o.radius>0&&!!f.get(o.yField);}),this.areaSelection=q,this.strokeSelection=Q,this.markerSelection=$;}},t.prototype.getTooltipHtml=function(e){var t="";if(this.tooltipEnabled){var o=this.xField,i=e.yField,r=this.yFields.indexOf(i),n=this.fills[r%this.fills.length],s=e.text;if(this.tooltipRenderer&&o)t=this.tooltipRenderer({datum:e.seriesDatum,xField:o,yField:i,title:s,color:n});else{s=s?'<div class="title" '+('style="color: white; background-color: '+n+'"')+">"+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,r=this.id;this.yFields.forEach(function(n,s){e.push({id:r,itemId:n,enabled:t.enabled.get(n)||!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 _i153,r=this&&this.__extends||(_i153=function i(e,t){return(_i153=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;}_i153(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n,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),v=o(1);!function(e){e[e.Sector=0]="Sector",e[e.Callout=1]="Callout",e[e.Label=2]="Label";}(n||(n={}));var m=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 r(t,e),Object.defineProperty(t.prototype,"data",{get:function get(){return this._data;},set:function set(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 get(){return this._title;},set:function set(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 get(){return this._calloutColors;},set:function set(e){this._calloutColors!==e&&(this._calloutColors=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutStrokeWidth",{get:function get(){return this._calloutStrokeWidth;},set:function set(e){this._calloutStrokeWidth!==e&&(this._calloutStrokeWidth=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutLength",{get:function get(){return this._calloutLength;},set:function set(e){this._calloutLength!==e&&(this._calloutLength=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelOffset",{get:function get(){return this._labelOffset;},set:function set(e){this._labelOffset!==e&&(this._labelOffset=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function get(){return this._labelFontStyle;},set:function set(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function get(){return this._labelFontWeight;},set:function set(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function get(){return this._labelFontSize;},set:function set(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function get(){return this._labelFontFamily;},set:function set(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function get(){return this._labelColor;},set:function set(e){this._labelColor!==e&&(this._labelColor=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelMinAngle",{get:function get(){return this._labelMinAngle;},set:function set(e){this._labelMinAngle!==e&&(this._labelMinAngle=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function get(){return this._chart;},set:function set(e){this._chart!==e&&(this._chart=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleField",{get:function get(){return this._angleField;},set:function set(e){this._angleField!==e&&(this._angleField=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusField",{get:function get(){return this._radiusField;},set:function set(e){this._radiusField!==e&&(this._radiusField=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelField",{get:function get(){return this._labelField;},set:function set(e){this._labelField!==e&&(this._labelField=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelEnabled",{get:function get(){return this._labelEnabled;},set:function set(e){this._labelEnabled!==e&&(this._labelEnabled=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fills",{get:function get(){return this._fills;},set:function set(e){this._fills=e,this.strokes=e.map(function(e){return v.Color.fromString(e).darker().toHexString();}),this.scheduleData();},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function get(){return this._strokes;},set:function set(e){this._strokes=e,this.calloutColors=e,this.scheduleData();},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function get(){return this._fillOpacity;},set:function set(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function get(){return this._strokeOpacity;},set:function set(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function get(){return this._rotation;},set:function set(e){this._rotation!==e&&(this._rotation=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadiusOffset",{get:function get(){return this._outerRadiusOffset;},set:function set(e){this._outerRadiusOffset!==e&&(this._outerRadiusOffset=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadiusOffset",{get:function get(){return this._innerRadiusOffset;},set:function set(e){this._innerRadiusOffset!==e&&(this._innerRadiusOffset=e,this.scheduleData());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function get(){return this._strokeWidth;},set:function set(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.scheduleLayout());},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function get(){return this._shadow;},set:function set(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,r=o.map(function(e,o){return i[o]&&+e[t.angleField]||0;}),n=r.reduce(function(e,t){return e+t;},0),s=(e=0,r.map(function(t){return e+=t/n;})),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),v=Math.PI/2,m=0;return s.reduce(function(e,i){var r,n,s=u?d[m]:1,p=f.convert(e)+y,h=f.convert(i)+y,C=(p+h)/2,w=Math.abs(h-p),_=Math.cos(C),b=Math.sin(C),E=c.toRadians(t.labelMinAngle),R=a&&w>E,P=c.normalizeAngle180(C),O=-3*Math.PI/4;return P>=O&&P<(O+=v)?(r="center",n="bottom"):P>=O&&P<(O+=v)?(r="left",n="middle"):P>=O&&P<(O+=v)?(r="center",n="hanging"):(r="right",n="middle"),g.push({index:m,seriesDatum:o[m],radius:s,startAngle:p,endAngle:h,midAngle:C,midCos:_,midSin:b,label:R?{text:l[m],textAlign:r,textBaseline:n}:void 0}),m++,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,r=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 v=this.title;v&&(v.node.translationY=-t.radius-d-2,v.node.visible=v.enabled);var m=this.groupSelection.setData(this.groupSelectionData);m.exit.remove();var C=m.enter.append(s.Group);C.append(h.Sector).each(function(e){return e.tag=n.Sector;}),C.append(a.Line).each(function(e){e.tag=n.Callout,e.pointerEvents=g.PointerEvents.None;}),C.append(l.Text).each(function(e){e.tag=n.Label,e.pointerEvents=g.PointerEvents.None;});var w=m.merge(C),_=1/0,b=[],E=[],R=this.highlightedNode;w.selectByTag(n.Sector).each(function(t,o,n){var s=y.convert(o.radius),a=Math.max(0,s+d);_>a&&(_=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[n%i.length],t.stroke=t===R&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:r[n%r.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 P=this.calloutLength;w.selectByTag(n.Callout).each(function(t,o,i){if(o.label){var r=E[i]+b[i];t.strokeWidth=e.calloutStrokeWidth,t.stroke=c[i%c.length],t.x1=o.midCos*r,t.y1=o.midSin*r,t.x2=o.midCos*(r+P),t.y2=o.midSin*(r+P);}else t.stroke=void 0;});var O=this.labelOffset;w.selectByTag(n.Label).each(function(t,o,i){var r=o.label;if(r){var n=b[i],s=E[i]+n+P+O;t.fontStyle=e.labelFontStyle,t.fontWeight=e.labelFontWeight,t.fontSize=e.labelFontSize,t.fontFamily=e.labelFontFamily,t.text=r.text,t.x=o.midCos*s,t.y=o.midSin*s,t.fill=e.labelColor,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;}else t.fill=void 0;}),this.groupSelection=w;}},t.prototype.getTooltipHtml=function(e){var t="",o=this.angleField;if(!o)return t;var i=this.title?this.title.text:void 0,r=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:r});else{i=i?'<div class="title" '+('style="color: white; background-color: '+r+'"')+">"+i+"</div>":"";var n=this.labelField?e.seriesDatum[this.labelField]+": ":"",s=e.seriesDatum[o];t=i+'<div class="content">'+n+("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,r=this.strokes,n=this.id;this.data.forEach(function(s,a){e.push({id:n,itemId:a,enabled:t.enabled[a],label:{text:String(s[o])},marker:{fill:i[a%i.length],stroke:r[a%r.length]}});});}},t.prototype.toggleSeriesItem=function(e,t){this.enabled[e]=t,this.scheduleData();},t.className="PieSeries",t;}(f.Series);t.PieSeries=m;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(16),n=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 r.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=n.Selection.select(this.group).selectAll(),this.axisLineSelection=n.Selection.select(this.group).selectAll(),this.separatorSelection=n.Selection.select(this.group).selectAll(),this.labelSelection=n.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 get(){return this.scale.domain;},set:function set(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 get(){return this.scale.range;},set:function set(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 get(){return 1.5*this.labelFontSize;},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLength",{get:function get(){return this._gridLength;},set:function set(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 get(){return this._gridStyle;},set:function set(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,r=Math.abs(o.range[1]-o.range[0])/o.domain.length||0,n=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:[],v=!!f&&f.depth>1,m=i.ticks(),C=this.mirrorLabels?1:-1,w=a.normalizeAngle360(p),_=!c&&w>=0&&w<=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?m:[]);R.exit.remove();var P=R.enter.append(s.Line),O=R.merge(P),S=this.labelSelection.setData(y);S.exit.remove();var A=S.enter.append(l.Text),T=S.merge(A),D=this.labelFormatter,x=0;T.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===_?"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 r=t.getBBox();r&&r.width>x&&(x=r.width);});var F=C*this.labelPadding,M=n?_*Math.PI/2:-1===E?Math.PI:0,N=this.labelGrid,L=[];T.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&&v){var n=o.children.length?o.screenX-o.leafCount*r/2:o.screenX-r/2;o.children.length?L.push({y:n,x1:-x+o.screenY+h/2,x2:-x+o.screenY-h/2,toString:function toString(){return String(i);}}):o.number&&!N||L.push({y:n,x1:0,x2:-x-2*e.labelPadding,toString:function toString(){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 toString(){return String(L.length);}});var G=this.separatorSelection.setData(L);G.exit.remove();var k=G.enter.append(s.Line),W=G.merge(k);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=O,this.labelSelection=T;for(var V=f?f.depth+1:1,H=[],j=0;j<V;j++){H.push(j);}var B=this.axisLineSelection.setData(H);B.exit.remove();var U=B.enter.append(s.Line),z=B.merge(U);if(this.axisLineSelection=z,z.each(function(t,i,r){var n=r>0?-x-2*e.labelPadding-(r-1)*h:0;t.x1=n,t.x2=n,t.y1=o.range[0],t.y2=o.range[1],t.strokeWidth=e.lineWidth,t.stroke=e.lineColor,t.visible=g.length>0&&(0===r||N&&v);}),this.gridLength){var Y=this.gridStyle,K=Y.length;O.each(function(t,r,n){var s=Math.round(i.convert(r));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[n%K];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,r=-1/0;return this.labelSelection.each(function(n,s,a){if(a>0||e){n.computeTransformMatrix();var l=u.Matrix.flyweight(n.matrix),p=n.parent;p.computeTransformMatrix(),l.preMultiplySelf(p.matrix);var c=n.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),r=Math.max(r,d.y+d.height);}}}),new p.BBox(t,i,o-t,r-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 r(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 n(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&&(r(n(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,r=t.length-1;r>=0;r--){var n=t[r];n.prelim+=o,n.mod+=o,i+=n.change,o+=n.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(),r=0;return t&&e.forEach(function(e){return r=Math.max(r,e.labels.length);}),e.forEach(function(e){if(t)for(;e.labels.length<r;){e.labels.unshift("");}!function(e,t){var o=t.labels.slice().reverse(),r=o.length-1;o.forEach(function(t,o){var n=e.children,s=n.find(function(e){return e.label===t;}),a=o!==r;if(s&&a)e=s;else{var l=new i(t,e);l.number=n.length,n.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,r=o.y;i>this.right&&(this.right=i),i<this.left&&(this.left=i),r>this.bottom&&(this.bottom=r),r<this.top&&(this.top=r);},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(r){return e(r,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 r=this.leafCount-1,n=this.depth,s=this.dimensions,l=1,p=1;if(e>0&&r){var u=(s.right-s.left)/r;l=e/r/u;}if(t>0&&n){var c=(s.bottom-s.top)/n;p=t/n/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 _i154,r=this&&this.__extends||(_i154=function i(e,t){return(_i154=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;}_i154(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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,r=t.yAxis;return o._xAxis=i,o._yAxis=r,o.scene.root.append([i.group,r.group,o.seriesRoot]),o.scene.root.append(o.legend.group),o;}return r(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function get(){return this._seriesRoot;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function get(){return this._xAxis;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function get(){return this._yAxis;},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function get(){return this._series;},set:function set(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 r=this.padding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.bottom;var n=this.axisAutoPadding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.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 get(){return this._layout;},set:function set(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,r=o?this.xAxis:this.yAxis;if(i&&r){var n=[],l=[],p=void 0;this.series.forEach(function(e,t){if(e.visible){var o=e.getDomainX(),i=e.getDomainY(),r=void 0===p;r&&(p="number"==typeof o[0]),(p||r)&&n.push(o),l.push(i);}});var u=(e=new Array()).concat.apply(e,n),c=(t=new Array()).concat.apply(t,l);i.domain=a.numericExtent(u)||u,r.domain=a.numericExtent(c)||c,i.update(),r.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;}(n.Chart);t.GroupedCategoryChart=u;},function(e,t,o){"use strict";var _i155,r=this&&this.__extends||(_i155=function i(e,t){return(_i155=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;}_i155(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 setEnabled(t){return e.chartProxy.setSeriesProperty("labelEnabled",t);},suppressEnabledCheckbox:!1,initialFont:t,setFont:function setFont(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 r=new u.CalloutPanel(this.chartProxy);this.getContext().wireBean(r),i.addCompToPanel(r),this.activePanels.push(r),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>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesStrokeWidthSlider",void 0),n([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),n([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i156,r=this&&this.__extends||(_i156=function i(e,t){return(_i156=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;}_i156(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(_t14,o,i,r){o.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getSeriesProperty(_t14)).setMaxValue(r).setTextFieldWidth(45).onValueChange(function(o){return e.chartProxy.setSeriesProperty(_t14,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>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("calloutGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"calloutGroup",void 0),n([a.RefSelector("calloutLengthSlider"),s("design:type",a.AgSlider)],t.prototype,"calloutLengthSlider",void 0),n([a.RefSelector("calloutStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"calloutStrokeWidthSlider",void 0),n([a.RefSelector("labelOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"labelOffsetSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i157,r=this&&this.__extends||(_i157=function i(e,t){return(_i157=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;}_i157(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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 i(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(r){e.chart.title||(e.chart.title=u.Caption.create({text:t}),i(o));var s=e.chart.title;s.text=r,e.chart.title=s,n.setEnabled(a._.exists(e.chart.title.text));});var r={name:this.chartTranslator.translate("font"),enabled:!0,suppressEnabledCheckbox:!0,initialFont:o,setFont:i},n=new p.LabelPanel(r);this.getContext().wireBean(n),this.chartGroup.addItem(n),this.activePanels.push(n),n.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>',n([a.RefSelector("chartGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"chartGroup",void 0),n([a.RefSelector("titleInput"),s("design:type",a.AgInputTextArea)],t.prototype,"titleInput",void 0),n([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i158,r=this&&this.__extends||(_i158=function i(e,t){return(_i158=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;}_i158(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(_t15,o,i){o.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getChartPadding(_t15)).setMaxValue(200).setTextFieldWidth(45).onValueChange(function(o){return e.chartProxy.setChartPaddingProperty(_t15,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>',n([a.RefSelector("chartPaddingGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"chartPaddingGroup",void 0),n([a.RefSelector("paddingTopSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingTopSlider",void 0),n([a.RefSelector("paddingRightSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingRightSlider",void 0),n([a.RefSelector("paddingBottomSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingBottomSlider",void 0),n([a.RefSelector("paddingLeftSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingLeftSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i159,r=this&&this.__extends||(_i159=function i(e,t){return(_i159=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;}_i159(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),n([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),n([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i160,r=this&&this.__extends||(_i160=function i(e,t){return(_i160=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;}_i160(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),n([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),n([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),n([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([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 _i161,r=this&&this.__extends||(_i161=function i(e,t){return(_i161=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;}_i161(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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],r=i.getGui(),n=this.miniCharts[e],s=n.getGui();i.refreshSelected(),n.refreshSelected();var l=1===t?-1:1,p=s.style.left=a._.getAbsoluteWidth(this.getGui())*l+"px";a._.removeCssClass(s,"ag-hidden"),a._.addCssClass(r,"ag-animating"),a._.addCssClass(s,"ag-animating"),this.activePalette=e,this.chartController.setChartWithPalette(this.chartController.getChartType(),this.activePalette),this.isAnimating=!0,window.setTimeout(function(){r.style.left=-1*parseFloat(p)+"px",s.style.left="0px";},50),window.setTimeout(function(){o.isAnimating=!1,a._.removeCssClass(r,"ag-animating"),a._.removeCssClass(s,"ag-animating"),a._.addCssClass(r,"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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.RefSelector("eMiniChartsContainer"),s("design:type",HTMLElement)],t.prototype,"eMiniChartsContainer",void 0),n([a.RefSelector("eCardSelector"),s("design:type",HTMLElement)],t.prototype,"eCardSelector",void 0),n([a.RefSelector("ePrevBtn"),s("design:type",HTMLElement)],t.prototype,"ePrevBtn",void 0),n([a.RefSelector("eNextBtn"),s("design:type",HTMLElement)],t.prototype,"eNextBtn",void 0),n([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 _i162,r=this&&this.__extends||(_i162=function i(e,t){return(_i162=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;}_i162(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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),v=o(100),m=o(103),C=o(73),w=function(e){function t(o,i){var r=e.call(this,t.TEMPLATE)||this;r.wrappers={};var n=i.getPalettes();return r.fills=n[o].fills,r.strokes=n[o].strokes,r.chartController=i,r;}return r(t,e),t.prototype.init=function(){var e=this,t={columnGroup:[P,S,T],barGroup:[O,A,D],pieGroup:[b,E],lineGroup:[R],scatterGroup:[x,F],areaGroup:[M,N,L]},o=this.getGui();Object.keys(t).forEach(function(i){var r=t[i],n=new a.AgGroupComponent({title:e.chartTranslator.translate(i),suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0});e.getContext().wireBean(n),r.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),n.addItem(o);}),o.appendChild(n.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>',n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(a.Component);t.MiniChartsContainer=w;var _=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 r(t,e),n([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),t;}(a.Component);t.MiniChart=_;var b=function(e){function t(o,i,r){var n=e.call(this)||this;return n.radius=(n.size-2*n.padding)/2,n.center=n.radius+n.padding,n.sectors=t.angles.map(function(e){var t=d.Sector.create(n.center,n.center,0,n.radius,e[0],e[1]);return t.stroke=void 0,t;}),n.scene.parent=o,n.root.append(n.sectors),n.updateColors(i,r),n;}return r(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)]],n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_);t.MiniPie=b;var E=function(e){function t(t,o,i){var r=e.call(this)||this;return r.radius=(r.size-2*r.padding)/2,r.center=r.radius+r.padding,r.sectors=b.angles.map(function(e){var t=d.Sector.create(r.center,r.center,.6*r.radius,r.radius,e[0],e[1]);return t.stroke=void 0,t;}),r.scene.parent=t,r.root.append(r.sectors),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),R=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=f["default"]();a.domain=[0,4],a.range=[s,n-s];var l=f["default"]();l.domain=[0,10],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1,r.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=n-2*s,c.height=n-2*s,c.append(r.lines);var d=r.root;return d.append(c),d.append(p),d.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),P=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale();a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f["default"]();l.domain=[0,4],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1,r.axes=[p,u];var c=Math.floor(1)%2/2,d=l.convert(0);r.bars=[2,3,4].map(function(e,t){var o=l.convert(e),i=new v.Rect();i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(r)+Math.floor(i.x%1+r%1),i.height=Math.floor(n)+Math.floor(i.y%1+n%1),i;});var h=r.root;return h.append(r.bars),h.append(p),h.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),O=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale();a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f["default"]();l.domain=[0,4],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1,r.axes=[p,u];var c=Math.floor(1)%2/2,d=l.convert(0);r.bars=[2,3,4].map(function(e,t){var o=l.convert(e),i=new v.Rect();i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(n)+Math.floor(i.y%1+n%1),i.height=Math.floor(r)+Math.floor(i.x%1+r%1),i;});var h=r.root;return h.append(r.bars),h.append(p),h.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),S=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale();a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f["default"]();l.domain=[0,16],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);r.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 v.Rect();i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(r)+Math.floor(i.x%1+r%1),i.height=Math.floor(n)+Math.floor(i.y%1+n%1),i;});});var h=r.root;return h.append([].concat.apply([],r.bars)),h.append(p),h.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),A=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale();a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f["default"]();l.domain=[0,16],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);r.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 v.Rect();i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(n)+Math.floor(i.y%1+n%1),i.height=Math.floor(r)+Math.floor(i.x%1+r%1),i;});});var h=r.root;return h.append([].concat.apply([],r.bars)),h.append(p),h.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),T=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale();a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f["default"]();l.domain=[0,10],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);r.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 v.Rect();i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(r)+Math.floor(i.x%1+r%1),i.height=Math.floor(n)+Math.floor(i.y%1+n%1),i;});});var h=r.root;return h.append([].concat.apply([],r.bars)),h.append(p),h.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),D=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=new m.BandScale();a.domain=[0,1,2],a.range=[s,n-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f["default"]();l.domain=[0,10],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);r.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 v.Rect();i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var r=a.bandwidth,n=d-o;return i.width=Math.floor(n)+Math.floor(i.y%1+n%1),i.height=Math.floor(r)+Math.floor(i.x%1+r%1),i;});});var h=r.root;return h.append([].concat.apply([],r.bars)),h.append(p),h.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),x=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=f["default"]();a.domain=[-.5,4],a.range=[2*s,n-s];var l=f["default"]();l.domain=[-.5,3.5],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-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);});}),r.points=c;var d=new y.ClipRect();d.x=s,d.y=s,d.width=n-2*s,d.height=n-2*s,d.append(r.points);var h=r.root;return h.append(d),h.append(p),h.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),F=function(e){function t(t,o,i){var r=e.call(this)||this;r.scene.parent=t;var n=r.size,s=r.padding,a=f["default"]();a.domain=[0,1],a.range=[2*s,n-s];var l=f["default"]();l.domain=[0,1],l.range=[n-s,s];var p=g.Line.create(s,s,s,n-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,n-s,n-s,n-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);});}),r.points=c;var d=new y.ClipRect();d.x=s,d.y=s,d.width=n-2*s,d.height=n-2*s,d.append(r.points);var h=r.root;return h.append(d),h.append(p),h.append(u),r.updateColors(o,i),r;}return r(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,n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),M=function(e){function t(o,i,r,n){void 0===n&&(n=t.data);var s=e.call(this)||this;s.scene.parent=o;var a=s.size,l=s.padding,p=new m.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=n.length,v=2*y-1,C=[],w=u.convert(0),_=0;_<y;_++){for(var b=n[_],E=b.length,R=p.convert(_),P=void 0,O=0;O<E;O++){P=b[O];var S=u.convert(P),A=C[O]||(C[O]=[]);A[_]={x:R,y:S},A[v-_]={x:R,y:w};}}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 T=s.root;return T.append(s.areas),T.append(c),T.append(d),s.updateColors(i,r),s;}return r(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]],n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),N=function(e){function t(o,i,r,n){void 0===n&&(n=t.data);var s=e.call(this)||this;s.scene.parent=o;var a=s.size,l=s.padding,p=new m.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=n.length,v=2*y-1,C=[],w=0;w<y;w++){for(var _=n[w],b=_.length,E=p.convert(w),R=0,P=void 0,O=0;O<b;O++){P=_[O];var S=u.convert(R+P),A=C[O]||(C[O]=[]);A[w]={x:E,y:S},A[v-w]={x:E,y:u.convert(R)},R+=P;}}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 T=s.root;return T.append(s.areas),T.append(c),T.append(d),s.updateColors(i,r),s;}return r(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]],n([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t;}(_),L=function(e){function t(o,i,r,n){return void 0===n&&(n=t.data),e.call(this,o,i,r,n)||this;}return r(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;});}),n([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 _i163,r=this&&this.__extends||(_i163=function i(e,t){return(_i163=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;}_i163(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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 get(){return this._active;},set:function set(e){this._active!==e&&(this._active=e,this.dirty=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyPath",{get:function get(){return this._dirtyPath;},set:function set(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0));},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function get(){return this._x;},set:function set(e){this._x!==e&&(this._x=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function get(){return this._y;},set:function set(e){this._y!==e&&(this._y=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function get(){return this._width;},set:function set(e){this._width!==e&&(this._width=e,this.dirtyPath=!0);},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function get(){return this._height;},set:function set(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 r=t[i];r.visible&&r.render(e),e.restore();}},t.className="ClipRect",t;}(n.Node);t.ClipRect=a;},function(e,t,o){"use strict";var _i164,r=this&&this.__extends||(_i164=function i(e,t){return(_i164=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;}_i164(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r=s.ChartBuilder.createSeries(i.chartOptions.seriesDefaults);return r&&i.chart.addSeries(r),i;}return r(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 r=this.overriddenPalette?this.overriddenPalette:this.chartProxyParams.getSelectedPalette();i.fills=r.fills,i.strokes=r.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===n.ChartType.GroupedBar||e===n.ChartType.StackedBar||e===n.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===n.ChartType.GroupedColumn||t===n.ChartType.GroupedBar,normalizedTo:t===n.ChartType.NormalizedColumn||t===n.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 _i165,r=this&&this.__extends||(_i165=function i(e,t){return(_i165=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;}_i165(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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 r(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===n.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;}),r={};o.series.map(function(e){return e;}).forEach(function(e){var t=e.yFields[0];i.indexOf(t)>-1?r[t]=e:o.removeSeries(e);}),e.fields.forEach(function(i,n){var a=t.chartOptions.seriesDefaults,l=r[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[n%c.length]];var d=u.strokes;p.strokes=[d[n%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===n.ChartType.Area?.7:1,normalizedTo:this.chartProxyParams.chartType===n.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 _i166,r=this&&this.__extends||(_i166=function i(e,t){return(_i166=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;}_i166(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=o(50),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(n.ChartType.Line,o.defaultOptions()),t.grouping?o.chart=s.ChartBuilder.createGroupedLineChart(o.chartOptions):o.chart=s.ChartBuilder.createLineChart(o.chartOptions),o;}return r(t,e),t.prototype.update=function(e){var t=this,o=this.chart;if(0!==e.fields.length){var i=this.chart,r=e.fields.map(function(e){return e.colId;}),n={};i.series.map(function(e){return e;}).forEach(function(e){var t=e.yField;r.indexOf(t)>-1?n[t]=e:i.removeSeries(e);}),e.fields.forEach(function(o,r){var a=t.chartOptions.seriesDefaults,l=n[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[r%c.length];var d=u.strokes;p.stroke=d[r%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 _i167,r=this&&this.__extends||(_i167=function i(e,t){return(_i167=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;}_i167(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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=n.ChartBuilder.createPolarChart(o.chartOptions),o;}return r(t,e),t.prototype.update=function(e){if(0!==e.fields.length){var t=this.chart,o=t.series[0],i=o&&o.angleField,r=e.fields[0].colId,s=e.fields[0].displayName,a=o,l=void 0;if(i!==r){t.removeSeries(o);var p=this.chartOptions.seriesDefaults,u=p.title?Object.create(p.title):{};u.text=s,p.title=u,p.angleField=r,l=p.calloutColors,a=n.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 _i168,r=this&&this.__extends||(_i168=function i(e,t){return(_i168=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;}_i168(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=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=n.ChartBuilder.createDoughnutChart(o.chartOptions),o;}return r(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;}),r={};o.series.forEach(function(e){var t=e,o=t.angleField;i.indexOf(o)>=0&&(r[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=r[o.colId];a.text=o.displayName,s.angleField=o.colId,s.showInLegend=0===i;var u=s.calloutColors,c=p||n.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||(r[o.colId]=c);});var p=[];for(var u in r){p.push(r[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),r=o(106),n=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),v=o(40),m=o(108),C=o(117),w=o(80),_=o(81),b=o(240),E=o(176),R=o(175),P=o(82),O=o(118),S=o(43),A=o(109),T=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 G=o(168);t.SetValueModel=G.SetValueModel;var k=o(118);t.StatusBar=k.StatusBar;var W=o(82);t.StatusBarService=W.StatusBarService;var V=o(76);t.ClipboardService=V.ClipboardService;var H=o(111);t.EnterpriseBoot=H.EnterpriseBoot;var j=o(106);t.EnterpriseMenu=j.EnterpriseMenu;var B=o(75);t.MenuItemComponent=B.MenuItemComponent;var U=o(107);t.MenuList=U.MenuList;var z=o(21);t.RangeController=z.RangeController;var Y=o(112);t.RowGroupDropZonePanel=Y.RowGroupDropZonePanel;var K=o(114);t.ContextMenuFactory=K.ContextMenuFactory;var X=o(115);t.ViewportRowModel=X.ViewportRowModel;var q=o(170);t.RichSelectCellEditor=q.RichSelectCellEditor;var Q=o(171);t.RichSelectRow=Q.RichSelectRow;var $=o(77);t.VirtualList=$.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 re=o(172);t.PivotModePanel=re.PivotModePanel;var ne=o(40);t.AggFuncService=ne.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([r.EnterpriseMenuFactory,C.ExcelCreator,w.ExcelXmlFactory,_.ExcelXlsxFactory,n.RangeController,s.ClipboardService,g.PivotStage,y.PivotColDefService,u.ContextMenuFactory,a.GroupStage,l.AggregationStage,p.EnterpriseBoot,v.AggFuncService,h.LicenseManager,f.MD5,m.MenuItemMapper,P.StatusBarService],ye),i.Grid.setEnterpriseComponents([{componentName:"AgPrimaryColsHeader",theClass:A.PrimaryColsHeaderPanel},{componentName:"AgPrimaryColsList",theClass:T.PrimaryColsListPanel},{componentName:"AgHorizontalResize",theClass:E.HorizontalResizeComp},{componentName:"AgSideBar",theClass:d.SideBarComp},{componentName:"AgStatusBar",theClass:O.StatusBar},{componentName:"AgNameValue",theClass:S.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 _i169,r=this&&this.__extends||(_i169=function i(e,t){return(_i169=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;}_i169(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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,r,n){var s=e.call(this)||this;return s.processingColumnStateChange=!1,s.columnGroup=t,s.columnDept=o,s.expandedCallback=i,s.allowDragging=r,s.expanded=n,s;}return r(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 dragItemCallback(){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,r={visible:0,hidden:0},n={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";r[p]++,l&&n[p]++;}return n.visible+n.hidden!==i&&(r.visible-=n.visible,r.hidden-=n.hidden),null==(e=r.visible>0&&r.hidden>0?null:r.visible>0)?void 0:e;},t.prototype.isColumnVisible=function(e,t){if(t){var o=e.isPivotActive(),i=e.isRowGroupActive(),r=e.isValueActive();return o||i||r;}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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.RefSelector("cbSelect"),s("design:type",a.AgCheckbox)],t.prototype,"cbSelect",void 0),n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("eGroupOpenedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupOpenedIcon",void 0),n([a.RefSelector("eGroupClosedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupClosedIcon",void 0),n([a.RefSelector("eColumnGroupIcons"),s("design:type",HTMLElement)],t.prototype,"eColumnGroupIcons",void 0),n([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 _i170,r=this&&this.__extends||(_i170=function i(e,t){return(_i170=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;}_i170(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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,r){var n=e.call(this)||this;return n.processingColumnStateChange=!1,n.column=t,n.columnDept=o,n.allowDragging=i,n.groupsExist=r,n;}return r(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 r={type:a.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:i,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r);}else o.removePivotColumn(t,"columnMenu");if(t.isValueActive())if(e){var n=this.columnController.getValueColumns().slice();n.push(t);var s={type:a.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:n,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 r=this.columnController.getRowGroupColumns().slice();a._.removeFromArray(r,e);var n={type:a.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:r};this.eventService.dispatchEvent(n);}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 dragItemCallback(){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(),r=!this.column.isAnyFunctionAllowed();e=i||r;}else e=!!this.column.getColDef().lockVisible;this.cbSelect.setReadOnly(e);var n=t&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(n),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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([a.RefSelector("cbSelect"),s("design:type",a.AgCheckbox)],t.prototype,"cbSelect",void 0),n([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 _i171,r=this&&this.__extends||(_i171=function i(e,t){return(_i171=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;}_i171(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([a.RefSelector("eDetailGrid"),s("design:type",HTMLElement)],t.prototype,"eDetailGrid",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([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 _i172,r=this&&this.__extends||(_i172=function i(e,t){return(_i172=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;}_i172(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(){},n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([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 _i173,r=this&&this.__extends||(_i173=function i(e,t){return(_i173=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;}_i173(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(){},n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([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 _i174,r=this&&this.__extends||(_i174=function i(e,t){return(_i174=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;}_i174(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([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 _i175,r=this&&this.__extends||(_i175=function i(e,t){return(_i175=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;}_i175(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=0,n=null,s=0,l={};t&&!a._.missingOrEmpty(t)&&t.forEach(function(t){for(var p=e.rangeController.getRangeStartRow(t),u=e.rangeController.getRangeEndRow(t);;){if(a._.missing(p)||!p||e.rowPositionUtils.before(u,p)||!p||!t.columns)break;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===n||d<n)&&(n=d),r++),i++);}}}}),p=e.cellNavigationService.getRowBelow(p);}});var p=i>1,u=r>1;this.setAggregationComponentValue("count",i,p),this.setAggregationComponentValue("sum",o,u),this.setAggregationComponentValue("min",n,u),this.setAggregationComponentValue("max",s,u),this.setAggregationComponentValue("avg",o/r,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>',n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),n([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("cellNavigationService"),s("design:type",a.CellNavigationService)],t.prototype,"cellNavigationService",void 0),n([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("cellPositionUtils"),s("design:type",a.CellPositionUtils)],t.prototype,"cellPositionUtils",void 0),n([a.Autowired("rowPositionUtils"),s("design:type",a.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),n([a.RefSelector("sumAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"sumAggregationComp",void 0),n([a.RefSelector("countAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"countAggregationComp",void 0),n([a.RefSelector("minAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"minAggregationComp",void 0),n([a.RefSelector("maxAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"maxAggregationComp",void 0),n([a.RefSelector("avgAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"avgAggregationComp",void 0),n([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 _i176,r=this&&this.__extends||(_i176=function i(e,t){return(_i176=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;}_i176(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(){},n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([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 _i177,r=this&&this.__extends||(_i177=function i(e,t){return(_i177=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;}_i177(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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(){},n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([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 _i178,r=this&&this.__extends||(_i178=function i(e,t){return(_i178=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;}_i178(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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" />',n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([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 _i179,r=this&&this.__extends||(_i179=function i(e,t){return(_i179=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;}_i179(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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>',n([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("filterManager"),s("design:type",a.FilterManager)],t.prototype,"filterManager",void 0),n([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.RefSelector("eFilterToolPanelHeader"),s("design:type",HTMLElement)],t.prototype,"eFilterToolPanelHeader",void 0),n([a.RefSelector("eFilterName"),s("design:type",HTMLElement)],t.prototype,"eFilterName",void 0),n([a.RefSelector("agFilterToolPanelBody"),s("design:type",HTMLElement)],t.prototype,"agFilterToolPanelBody",void 0),n([a.RefSelector("eFilterIcon"),s("design:type",HTMLElement)],t.prototype,"eFilterIcon",void 0),n([a.RefSelector("eExpand"),s("design:type",HTMLElement)],t.prototype,"eExpand",void 0),n([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 _i180,r=this&&this.__extends||(_i180=function i(e,t){return(_i180=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;}_i180(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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],r=this.valueFormatterService.formatValue(this.column,null,null,i);null!=r&&(t[o]=r);}var n=t.length>10?t.slice(0,10).concat("..."):t,s="("+t.length+") "+n.join(",");this.eFloatingFilterText.value=s;}else this.eFloatingFilterText.value="";}else this.eFloatingFilterText.value="";},n([a.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),n([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 _i181,r=this&&this.__extends||(_i181=function i(e,t){return(_i181=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;}_i181(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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"/>',n([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),n([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([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 _i182,r=this&&this.__extends||(_i182=function i(e,t){return(_i182=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;}_i182(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());});Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stringList=[],t.stringMap={},t;}return r(t,e),t.prototype.onNewHeaderGroupingRow=function(){var e=[],t=this;return this.rows.push({cells:e,height:this.headerRowHeight}),{onColumn:function onColumn(o,i,r){var s=t.styleLinker(n.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,r));}};},t.prototype.onNewHeaderColumn=function(e,t){var o=this,i=this;return function(r,s,a){var l=o.extractHeaderValue(r),p=i.styleLinker(n.RowType.HEADER,e,s,l,r,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,r=[{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,r,this.stringList);},t.prototype.onNewBodyColumn=function(e,t){var o=this,i=this;return function(r,s,a){var l,p=o.extractRowCellValue(r,s,n.Constants.EXPORT_TYPE_EXCEL,a),u=i.styleLinker(n.RowType.BODY,e,s,p,r,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=n._.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],r=void 0!==i;var n=function(){if(r&&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:r?e:void 0,data:{type:n,value:"s"===n?this.getStringPosition(null==o?"":o).toString():"n"===n?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 getTemplate(){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 getTemplate(){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),r=o(344),n=o(345),s={getTemplate:function getTemplate(e){var t=e.table,o=e.name,s=t.columns,a=t.rows,l=i._.map(s,function(e){return r["default"].getTemplate(e);}),p=i._.map(a,function(e){return n["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 getTemplate(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),r=o(346),n={getTemplate:function getTemplate(e){var t=e.cells;return{name:"Row",children:i._.map(t,function(e){return r["default"].getTemplate(e);})};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(e){var t=e.mergeAcross,o=e.styleId,i=e.data,r={};return t&&(r.MergeAcross=t),o&&(r.StyleID=o),{name:"Cell",properties:{prefixedAttributes:[{prefix:"ss:",map:r}]},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 getTemplate(){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 getTemplate(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 getTemplate(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 getTemplate(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 getTemplate(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 getTemplate(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 getTemplate(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 getTemplate(e){var t=e.id,o=e.name;return{name:"Style",properties:{prefixedAttributes:[{prefix:"ss:",map:{ID:t,Name:o||t}}]}};}};},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={getTemplate:function getTemplate(){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),r=o(357),n={getTemplate:function getTemplate(){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"}],r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(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),r={getTemplate:function getTemplate(){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"]=r;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(360),r=o(361),n=o(362),s={getTemplate:function getTemplate(){return{name:"a:themeElements",children:[i["default"].getTemplate(),r["default"].getTemplate(),n["default"].getTemplate()]};}};t["default"]=s;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function i(e){return{name:"a:"+e[0],children:[{name:"a:"+e[1],properties:{rawMap:{val:e[2],lastClr:e[3]}}}]};},r={getTemplate:function getTemplate(){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"]=r;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=function r(e){var t=e[0],o=e[1];return{name:"a:"+t,properties:{rawMap:{script:e[2],typeface:o,panose:e[3]}}};},n={getTemplate:function getTemplate(){var e=i._.utf8_encode;return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[r(["latin","Calibri Light",void 0,"020F0302020204030204"]),r(["ea",""]),r(["cs",""]),r(["font",e("游ゴシック Light"),"Jpan"]),r(["font",e("맑은 고딕"),"Hang"]),r(["font",e("等线 Light"),"Hans"]),r(["font",e("新細明體"),"Hant"]),r(["font","Times New Roman","Arab"]),r(["font","Times New Roman","Hebr"]),r(["font","Tahoma","Thai"]),r(["font","Nyala","Ethi"]),r(["font","Vrinda","Beng"]),r(["font","Shruti","Gujr"]),r(["font","MoolBoran","Khmr"]),r(["font","Tunga","Knda"]),r(["font","Raavi","Guru"]),r(["font","Euphemia","Cans"]),r(["font","Plantagenet Cherokee","Cher"]),r(["font","Microsoft Yi Baiti","Yiii"]),r(["font","Microsoft Himalaya","Tibt"]),r(["font","MV Boli","Thaa"]),r(["font","Mangal","Deva"]),r(["font","Gautami","Telu"]),r(["font","Latha","Taml"]),r(["font","Estrangelo Edessa","Syrc"]),r(["font","Kalinga","Orya"]),r(["font","Kartika","Mlym"]),r(["font","DokChampa","Laoo"]),r(["font","Iskoola Pota","Sinh"]),r(["font","Mongolian Baiti","Mong"]),r(["font","Times New Roman","Viet"]),r(["font","Microsoft Uighur","Uigh"]),r(["font","Sylfaen","Geor"]),r(["font","Arial","Armn"]),r(["font","Leelawadee UI","Bugi"]),r(["font","Microsoft JhengHei","Bopo"]),r(["font","Javanese Text","Java"]),r(["font","Segoe UI","Lisu"]),r(["font","Myanmar Text","Mymr"]),r(["font","Ebrima","Nkoo"]),r(["font","Nirmala UI","Olck"]),r(["font","Ebrima","Osma"]),r(["font","Phagspa","Phag"]),r(["font","Estrangelo Edessa","Syrn"]),r(["font","Estrangelo Edessa","Syrj"]),r(["font","Estrangelo Edessa","Syre"]),r(["font","Nirmala UI","Sora"]),r(["font","Microsoft Tai Le","Tale"]),r(["font","Microsoft New Tai Lue","Talu"]),r(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[r(["latin","Calibri",void 0,"020F0502020204030204"]),r(["ea",""]),r(["cs",""]),r(["font",e("游ゴシック"),"Jpan"]),r(["font",e("맑은 고딕"),"Hang"]),r(["font",e("等线"),"Hans"]),r(["font",e("新細明體"),"Hant"]),r(["font","Arial","Arab"]),r(["font","Arial","Hebr"]),r(["font","Tahoma","Thai"]),r(["font","Nyala","Ethi"]),r(["font","Vrinda","Beng"]),r(["font","Shruti","Gujr"]),r(["font","DaunPenh","Khmr"]),r(["font","Tunga","Knda"]),r(["font","Raavi","Guru"]),r(["font","Euphemia","Cans"]),r(["font","Plantagenet Cherokee","Cher"]),r(["font","Microsoft Yi Baiti","Yiii"]),r(["font","Microsoft Himalaya","Tibt"]),r(["font","MV Boli","Thaa"]),r(["font","Mangal","Deva"]),r(["font","Gautami","Telu"]),r(["font","Latha","Taml"]),r(["font","Estrangelo Edessa","Syrc"]),r(["font","Kalinga","Orya"]),r(["font","Kartika","Mlym"]),r(["font","DokChampa","Laoo"]),r(["font","Iskoola Pota","Sinh"]),r(["font","Mongolian Baiti","Mong"]),r(["font","Arial","Viet"]),r(["font","Microsoft Uighur","Uigh"]),r(["font","Sylfaen","Geor"]),r(["font","Arial","Armn"]),r(["font","Leelawadee UI","Bugi"]),r(["font","Microsoft JhengHei","Bopo"]),r(["font","Javanese Text","Java"]),r(["font","Segoe UI","Lisu"]),r(["font","Myanmar Text","Mymr"]),r(["font","Ebrima","Nkoo"]),r(["font","Nirmala UI","Olck"]),r(["font","Ebrima","Osma"]),r(["font","Phagspa","Phag"]),r(["font","Estrangelo Edessa","Syrn"]),r(["font","Estrangelo Edessa","Syrj"]),r(["font","Estrangelo Edessa","Syre"]),r(["font","Nirmala UI","Sora"]),r(["font","Microsoft Tai Le","Tale"]),r(["font","Microsoft New Tai Lue","Talu"]),r(["font","Ebrima","Tfng"])]}]};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=function r(e,t,o){return{name:"a:"+e,properties:{rawMap:{val:t}},children:o};},n=function n(e){var t=e[0],o=e[1],i=e[2],n=e[3],s=e[4],a=e[5],l=[];return l.push(r("satMod",i)),n&&l.push(r("lumMod",n)),s&&l.push(r("tint",s)),a&&l.push(r("shade",a)),{name:"a:gs",properties:{rawMap:{pos:t}},children:[{name:"a:schemeClr",properties:{rawMap:{val:o}},children:l}]};},s=function s(e,t){return{name:"a:solidFill",children:[r("schemeClr",e,t)]};},a=function a(e){var t=e[0],o=e[1],i=e[2],r=e[3],s=e[4],a=s[0],l=s[1];return{name:"a:gradFill",properties:{rawMap:{rotWithShape:t}},children:[{name:"a:gsLst",children:[n(o),n(i),n(r)]},{name:"a:lin",properties:{rawMap:{ang:a,scaled:l}}}]};},l=function l(e){return{name:"a:ln",properties:{rawMap:{w:e[0],cap:e[1],cmpd:e[2],algn:e[3]}},children:[s("phClr"),r("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]};},p=function p(e){var t=[];if(e){var o=e[0],n=e[1],s=e[2],a=e[3],l=e[4];t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:o,dist:n,dir:s,algn:a,rotWithShape:l}},children:[r("srgbClr","000000",[r("alpha","63000")])]});}return{name:"a:effectStyle",children:[i._.assign({},{name:"a:effectLst"},t.length?{children:t}:{})]};},u={getTemplate:function getTemplate(){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",[r("tint","95000"),r("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),r=function r(e){return{name:"si",children:[{name:"t",textNode:i._.utf8_encode(i._.escape(e.toString()))}]};},n={getTemplate:function getTemplate(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.length,uniqueCount:e.length}},children:i._.map(e,r)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(235),n={getTemplate:function getTemplate(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(236),n={getTemplate:function getTemplate(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(367),n={getTemplate:function getTemplate(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(e){var t=e.patternType,o=e.fgTheme,i=e.fgTint,r=e.fgRgb,n=e.bgRgb,s=e.bgIndexed,a={name:"patternFill",properties:{rawMap:{patternType:t}}};return(o||i||r)&&(a.children=[{name:"fgColor",properties:{rawMap:{theme:o,tint:i,rgb:r}}}]),s&&(a.children||(a.children=[]),a.children.push({name:"bgColor",properties:{rawMap:{indexed:s,rgb:n}}})),{name:"fill",children:[a]};}};},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(237),n={getTemplate:function getTemplate(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(238),n={getTemplate:function getTemplate(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function i(e){return{Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"}[e]||"general";},r=function r(e){return{Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"}[e]||void 0;},n=function n(e){var t=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(t,0);},s={getTemplate:function getTemplate(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&&n(s),textRotation:a,shrinkToFit:l,vertical:p&&r(p),wrapText:u}}};}};t["default"]=s;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(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),r=o(238),n={getTemplate:function getTemplate(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(374),n={getTemplate:function getTemplate(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(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),r={getTemplate:function getTemplate(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"]=r;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(377),n={getTemplate:function getTemplate(e){return{name:"sheets",children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(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 getTemplate(e){var t=e.min,o=e.max,i=e.s,r=e.width,n=void 0===r?10:r,s=e.hidden,a=e.bestFit,l=function(e){return Math.max(Math.ceil((e-12)/7+1),10);}(n);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),r=o(239),n=o(380),s={getTemplate:function getTemplate(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,n=0;n<e.length;n++){(a=e[n]).mergeAcross&&(o.push({pos:n,excelPos:i}),i+=e[n].mergeAcross),i++;}if(o.length)for(n=o.length-1;n>=0;n--){for(var s=[],a=e[o[n].pos],l=1;l<=a.mergeAcross;l++){s.push({ref:""+r.getExcelColumnName(o[n].excelPos+1+l)+(t+1),styleId:a.styleId,data:{type:"empty",value:null}});}s.length&&e.splice.apply(e,[o[n].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,n["default"].getTemplate)};}};t["default"]=s;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(177),n={getTemplate:function getTemplate(e){var t=e.ref,o=e.data,n=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:n?r.getStyleId(n):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"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(e){return{name:"mergeCell",properties:{rawMap:{ref:e}}};}};},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),r=o(383),n={getTemplate:function getTemplate(e){return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:i._.map(e,r["default"].getTemplate)};}};t["default"]=n;},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t["default"]={getTemplate:function getTemplate(e){return{name:"Relationship",properties:{rawMap:{Id:e.Id,Type:e.Type,Target:e.Target}}};}};},function(e,t,o){"use strict";var _i183,r=this&&this.__extends||(_i183=function i(e,t){return(_i183=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;}_i183(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o());}),n=this&&this.__decorate||function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==(typeof Reflect==="undefined"?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--){(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);}return n>3&&s&&Object.defineProperty(t,o,s),s;},s=this&&this.__metadata||function(e,t){if("object"==(typeof Reflect==="undefined"?"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 r(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,r=null;if(this.forEachBlockInOrder(function(n){i||(n.isDisplayIndexInBlock(e)?(t=n.getRowBounds(e,o.getVirtualRowCount()),i=!0):n.isBlockBefore(e)&&(r=n));}),!i){var n=void 0,s=void 0;null!==r?(n=r.getBlockTop()+r.getBlockHeight(),s=r.getDisplayIndexEnd()):(n=this.cacheTop,s=this.displayIndexStart);var a=e-s;t={rowHeight:this.cacheParams.rowHeight,rowTop:n+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,r=!1;if(this.forEachBlockInOrder(function(n){r||(n.isPixelInRange(e)?(t=n.getRowIndexAtPixel(e,o.getVirtualRowCount()),r=!0):n.getBlockTop()<e&&(i=n));}),!r){var n=void 0,s=void 0;i?(n=i.getBlockTop()+i.getBlockHeight(),s=i.getDisplayIndexEnd()):(n=this.cacheTop,s=this.displayIndexStart);var a=(e-n)/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,r=this.getBlockSize();this.forEachBlockInOrder(function(n,s){var a=s-i-1,p=a*r;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+=r*o.cacheParams.rowHeight;}i=s,n.setDisplayIndexes(e,o.getVirtualRowCount(),t),o.blockHeights[s]=n.getBlockHeight();});var n=(i+1)*r-1,s=this.getVirtualRowCount()-n-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 r=this.getBlockSize();if(l._.missing(o)){var n,s=void 0,a=void 0;if(i){s=i.getBlockNumber()+1,n=i.getDisplayIndexEnd(),a=i.getBlockHeight()+i.getBlockTop();for(;!(e>=n&&e<n+r);){n+=r;var p=this.blockHeights[s];l._.exists(p)?a+=p:a+=this.cacheParams.rowHeight*r,s++;}}else{var u=e-this.displayIndexStart;s=Math.floor(u/r),n=this.displayIndexStart+s*r,a=this.cacheTop+s*r*this.cacheParams.rowHeight;}o=this.createBlock(s,n,{value:a}),this.logger.log("block missing, rowIndex = "+e+", creating #"+s+", displayIndexStart = "+n);}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),r=this.getBlock(i);if(r)return r.getRowUsingLocalIndex(e,!0).rowIndex;if(this.forEachBlockInOrder(function(e,o){i>o&&(t=e);}),t){var n=o*(t.getBlockNumber()+1)-1,s=e-n;return t.getRowUsingLocalIndex(n,!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 r=new l.NumberSequence(t);return i.setDisplayIndexes(r,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 r=e.slice(1,e.length);return i?i.getChildCache(r):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,r=this.parentRowNode.level+1;if(r<this.cacheParams.rowGroupCols.length){var n=this.cacheParams.rowGroupCols[r].field,s=t.indexOf(n)>-1,a=e.indexOf(n)>-1;o=s&&a;}else o=!0;o?this.purgeCache():this.forEachBlockInOrder(function(o){if(o.isGroupLevel()){o.forEachNodeShallow(function(o){var i=o.childrenCache;i&&i.refreshCacheAfterSort(e,t);},new l.NumberSequence(),i.getVirtualRowCount());}});},n([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[l.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),n([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),r=o(106),n=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),v=o(40),m=o(108),C=o(117),w=o(80),_=o(81),b=o(240),E=o(176),R=o(175),P=o(82),O=o(118),S=o(43),A=o(109),T=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 G=o(168);t.SetValueModel=G.SetValueModel;var k=o(118);t.StatusBar=k.StatusBar;var W=o(82);t.StatusBarService=W.StatusBarService;var V=o(76);t.ClipboardService=V.ClipboardService;var H=o(111);t.EnterpriseBoot=H.EnterpriseBoot;var j=o(106);t.EnterpriseMenu=j.EnterpriseMenu;var B=o(75);t.MenuItemComponent=B.MenuItemComponent;var U=o(107);t.MenuList=U.MenuList;var z=o(21);t.RangeController=z.RangeController;var Y=o(112);t.RowGroupDropZonePanel=Y.RowGroupDropZonePanel;var K=o(114);t.ContextMenuFactory=K.ContextMenuFactory;var X=o(115);t.ViewportRowModel=X.ViewportRowModel;var q=o(170);t.RichSelectCellEditor=q.RichSelectCellEditor;var Q=o(171);t.RichSelectRow=Q.RichSelectRow;var $=o(77);t.VirtualList=$.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 re=o(172);t.PivotModePanel=re.PivotModePanel;var ne=o(40);t.AggFuncService=ne.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([r.EnterpriseMenuFactory,C.ExcelCreator,w.ExcelXmlFactory,_.ExcelXlsxFactory,n.RangeController,s.ClipboardService,g.PivotStage,y.PivotColDefService,u.ContextMenuFactory,a.GroupStage,l.AggregationStage,p.EnterpriseBoot,v.AggFuncService,h.LicenseManager,f.MD5,m.MenuItemMapper,P.StatusBarService],ye),i.Grid.setEnterpriseComponents([{componentName:"AgPrimaryColsHeader",theClass:A.PrimaryColsHeaderPanel},{componentName:"AgPrimaryColsList",theClass:T.PrimaryColsListPanel},{componentName:"AgHorizontalResize",theClass:E.HorizontalResizeComp},{componentName:"AgSideBar",theClass:d.SideBarComp},{componentName:"AgStatusBar",theClass:O.StatusBar},{componentName:"AgNameValue",theClass:S.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}]);}]);});
|