/*! For license information please see 2.e44d7c69.chunk.js.LICENSE.txt */ (this["webpackJsonpbarapp-panel"]=this["webpackJsonpbarapp-panel"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(358)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","color","size","style","width","height"]),d=t.reactIconBase,p=void 0===d?{}:d,f=a||p.size||"1em";return o.default.createElement("svg",r({children:n,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:u||f,width:s||f},p,c,{style:r({verticalAlign:"middle",color:i||p.color},p.style||{},l)}))};l.propTypes={color:i.default.string,size:i.default.oneOfType([i.default.string,i.default.number]),width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),style:i.default.object},l.contextTypes={reactIconBase:i.default.shape(l.propTypes)},t.default=l,e.exports=t.default},function(e,t,n){"use strict";e.exports=n(388)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return c}));var r=n(110),o=function(e,t){return e&&t},i=function(e,t){return e&&!0!==e&&e+" "+t},a=function(e,t){return e&&(!0===e?t:e+" "+t)},l=function(e,t){return e&&!0!==e?e.replace("large screen","large-screen").replace(/ vertically/g,"-vertically").split(" ").map((function(e){return e.replace("-"," ")+" "+t})).join(" "):null},s=function(e){return"justified"===e?"justified":i(e,"aligned")},u=function(e){return i(e,"aligned")},c=function(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n=!1),n&&"equal"===e)return"equal width";var o=typeof e;return"string"!==o&&"number"!==o||!t?Object(r.a)(e):Object(r.a)(e)+" "+t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(143);var o=n(120);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);e.exports=r?function(e){return e&&i(o,e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return D})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return P})),n.d(t,"g",(function(){return N}));var r=n(15),o=n(0),i=n.n(o),a=(n(5),n(47)),l=n(334),s=n(52),u=n(3),c=n(243),d=n.n(c),p=(n(109),n(38)),f=n(140),h=n.n(f),v=function(e){var t=Object(l.a)();return t.displayName=e,t},g=v("Router-History"),m=v("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.a.createElement(m.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(g.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;var b=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);var O={},w=0;function _(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(O[e])return O[e];var t=d.a.compile(e);return w<1e4&&(O[e]=t,w++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.a.createElement(m.Consumer,null,(function(e){e||Object(s.a)(!1);var r=e.history,l=e.staticContext,c=o?r.push:r.replace,d=Object(a.c)(t?"string"===typeof n?_(n,t.params):Object(u.a)({},n,{pathname:_(n.pathname,t.params)}):n);return l?(c(d),null):i.a.createElement(b,{onMount:function(){c(d)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,Object(u.a)({},d,{key:n.key}))||c(d)},to:n})}))}var E={},M=0;function P(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=E[n]||(E[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return M<1e4&&(r[e]=i,M++),i}(n,{end:i,strict:l,sensitive:u}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var c=s[0],p=s.slice(1),f=e===c;return i&&!f?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var x=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(m.Consumer,null,(function(t){t||Object(s.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?P(n.pathname,e.props):t.match,o=Object(u.a)({},t,{location:n,match:r}),a=e.props,l=a.children,c=a.component,d=a.render;return Array.isArray(l)&&function(e){return 0===i.a.Children.count(e)}(l)&&(l=null),i.a.createElement(m.Provider,{value:o},o.match?l?"function"===typeof l?l(o):l:c?i.a.createElement(c,o):d?d(o):null:"function"===typeof l?l(o):null)}))},t}(i.a.Component);function S(e){return"/"===e.charAt(0)?e:"/"+e}function R(e,t){if(!e)return t;var n=S(e);return 0!==t.pathname.indexOf(n)?t:Object(u.a)({},t,{pathname:t.pathname.substr(n.length)})}function j(e){return"string"===typeof e?e:Object(a.e)(e)}function T(e){return function(){Object(s.a)(!1)}}function A(){}i.a.Component;var D=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(m.Consumer,null,(function(t){t||Object(s.a)(!1);var n,r,o=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?P(o.pathname,Object(u.a)({},e.props,{path:a})):t.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.a.Component);function N(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(p.a)(t,["wrappedComponentRef"]);return i.a.createElement(m.Consumer,null,(function(t){return t||Object(s.a)(!1),i.a.createElement(e,Object(u.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}i.a.useContext},function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";for(var r=function(e){return null!==e&&!Array.isArray(e)&&"object"===typeof e},o={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},i=0;i<24;i+=1)o[112+i]="F"+(i+1);for(var a=0;a<26;a+=1){var l=a+65;o[l]=[String.fromCharCode(l+32),String.fromCharCode(l)]}var s={codes:o,getCode:function(e){return r(e)?e.keyCode||e.which||this[e.key]:this[e]},getKey:function(e){var t=r(e);if(t&&e.key)return e.key;var n=o[t?e.keyCode||e.which:e];return Array.isArray(n)&&(n=t?n[e.shiftKey?1:0]:n[0]),n},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};s.Spacebar=s[" "],s.Digit0=s[0],s.Digit1=s[1],s.Digit2=s[2],s.Digit3=s[3],s.Digit4=s[4],s.Digit5=s[5],s.Digit6=s[6],s.Digit7=s[7],s.Digit8=s[8],s.Digit9=s[9],s.Tilde=s["~"],s.GraveAccent=s["`"],s.ExclamationPoint=s["!"],s.AtSign=s["@"],s.PoundSign=s["#"],s.PercentSign=s["%"],s.Caret=s["^"],s.Ampersand=s["&"],s.PlusSign=s["+"],s.MinusSign=s["-"],s.EqualsSign=s["="],s.DivisionSign=s["/"],s.MultiplicationSign=s["*"],s.Comma=s[","],s.Decimal=s["."],s.Colon=s[":"],s.Semicolon=s[";"],s.Pipe=s["|"],s.BackSlash=s["\\"],s.QuestionMark=s["?"],s.SingleQuote=s["'"],s.DoubleQuote=s['"'],s.LeftCurlyBrace=s["{"],s.RightCurlyBrace=s["}"],s.LeftParenthesis=s["("],s.RightParenthesis=s[")"],s.LeftAngleBracket=s["<"],s.RightAngleBracket=s[">"],s.LeftSquareBracket=s["["],s.RightSquareBracket=s["]"],e.exports=s},function(e,t,n){"use strict";var r=n(40),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r.a?r.a.toStringTag:void 0;var s=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(s){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o},u=Object.prototype.toString;var c=function(e){return u.call(e)},d=r.a?r.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?s(e):c(e)}},function(e,t,n){"use strict";var r=n(78),o=n(43),i=n(55),a=n(31);var l=function(e,t){var n=-1,r=Object(a.a)(e)?Array(e.length):[];return Object(i.a)(e,(function(e,o,i){r[++n]=t(e,o,i)})),r},s=n(18);t.a=function(e,t){return(Object(s.a)(e)?r.a:l)(e,Object(o.a)(t,3))}},function(e,t,n){"use strict";var r=n(167),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";var r=n(59),o=n(114);t.a=function(e){return null!=e&&Object(o.a)(e.length)&&!Object(r.a)(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return W}));var r=n(0),o=n.n(r),i=(n(5),o.a.createContext(null));var a=function(e){e()};function l(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var s={notify:function(){},get:function(){return[]}};function u(e,t){var n,r=s;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=l())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=s)},getListeners:function(){return r}};return a}var c="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var d=function(e){var t=e.store,n=e.context,a=e.children,l=Object(r.useMemo)((function(){var e=u(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=Object(r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=l.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[l,s]);var d=n||i;return o.a.createElement(d.Provider,{value:l},a)},p=n(3),f=n(38),h=n(140),v=n.n(h),g=n(109),m=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],y=["reactReduxForwardedRef"],b=[],O=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}function _(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function C(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function E(e,t,n,r,o,i,a,l,s,u){if(e){var c=!1,d=null,p=function(){if(!c){var e,n,p=t.getState();try{e=r(p,o.current)}catch(f){n=f,d=f}n||(d=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var M=function(){return[null,0]};function P(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,l=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,s=n.methodName,c=void 0===s?"connectAdvanced":s,d=n.renderCountProp,h=void 0===d?void 0:d,P=n.shouldHandleStateChanges,x=void 0===P||P,S=n.storeKey,R=void 0===S?"store":S,j=(n.withRef,n.forwardRef),T=void 0!==j&&j,A=n.context,D=void 0===A?i:A,N=Object(f.a)(n,m),z=D;return function(t){var n=t.displayName||t.name||"Component",i=l(n),a=Object(p.a)({},N,{getDisplayName:l,methodName:c,renderCountProp:h,shouldHandleStateChanges:x,storeKey:R,displayName:i,wrappedComponentName:n,WrappedComponent:t}),s=N.pure;var d=s?r.useMemo:function(e){return e()};function m(n){var i=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(f.a)(n,y);return[n.context,e,t]}),[n]),l=i[0],s=i[1],c=i[2],h=Object(r.useMemo)((function(){return l&&l.Consumer&&Object(g.isContextConsumer)(o.a.createElement(l.Consumer,null))?l:z}),[l,z]),v=Object(r.useContext)(h),m=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(v)&&Boolean(v.store);var P=m?n.store:v.store,S=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(P)}),[P]),R=Object(r.useMemo)((function(){if(!x)return O;var e=u(P,m?null:v.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[P,m,v]),j=R[0],T=R[1],A=Object(r.useMemo)((function(){return m?v:Object(p.a)({},v,{subscription:j})}),[m,v,j]),D=Object(r.useReducer)(w,b,M),N=D[0][0],k=D[1];if(N&&N.error)throw N.error;var F=Object(r.useRef)(),L=Object(r.useRef)(c),I=Object(r.useRef)(),G=Object(r.useRef)(!1),B=d((function(){return I.current&&c===L.current?I.current:S(P.getState(),c)}),[P,N,c]);_(C,[L,F,G,c,B,I,T]),_(E,[x,P,j,S,L,F,G,I,T,k],[P,j,S]);var V=Object(r.useMemo)((function(){return o.a.createElement(t,Object(p.a)({},B,{ref:s}))}),[s,t,B]);return Object(r.useMemo)((function(){return x?o.a.createElement(h.Provider,{value:A},V):V}),[h,V,A])}var P=s?o.a.memo(m):m;if(P.WrappedComponent=t,P.displayName=m.displayName=i,T){var S=o.a.forwardRef((function(e,t){return o.a.createElement(P,Object(p.a)({},e,{reactReduxForwardedRef:t}))}));return S.displayName=i,S.WrappedComponent=t,v()(S,t)}return v()(P,t)}}function x(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function S(e,t){if(x(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function V(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?P:n,o=t.mapStateToPropsFactories,i=void 0===o?D:o,a=t.mapDispatchToPropsFactories,l=void 0===a?A:a,s=t.mergePropsFactories,u=void 0===s?z:s,c=t.selectorFactory,d=void 0===c?I:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,c=void 0===s||s,h=a.areStatesEqual,v=void 0===h?V:h,g=a.areOwnPropsEqual,m=void 0===g?S:g,y=a.areStatePropsEqual,b=void 0===y?S:y,O=a.areMergedPropsEqual,w=void 0===O?S:O,_=Object(f.a)(a,G),C=B(e,i,"mapStateToProps"),E=B(t,l,"mapDispatchToProps"),M=B(n,u,"mergeProps");return r(d,Object(p.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:E,initMergeProps:M,pure:c,areStatesEqual:v,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:w},_))}}var W=H();var U,q=n(42);U=q.unstable_batchedUpdates,a=U},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},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 o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t-1:!!s&&Object(r.a)(e,t,n)>-1}},function(e,t,n){"use strict";var r=n(79);t.a=function(e,t,n){var o=null==e?void 0:Object(r.a)(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){function n(e){return null==e||""===e?null:e}function r(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function o(e){return!r(e)}function i(e){return null==e||0===e.length}function a(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function l(e){if(void 0!==e){if(null===e||""===e)return null;if("number"===typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function s(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function u(e,t,n){void 0===n&&(n=!1);var r=null==e,o=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&o)return 0;if(r)return-1;if(o)return 1;function i(e,t){return e>t?1:e=0&&e.splice(n,1)}function b(e,t){x(t,(function(t){return y(e,t)}))}function O(e,t,n){e.splice(n,0,t)}function w(e,t,n){b(e,t),x(t.slice().reverse(),(function(t){return O(e,t,n)}))}function _(e,t){return e.indexOf(t)>-1}function C(e,t){null!=t&&null!=e&&x(t,(function(t){return e.push(t)}))}function E(e,t){for(var n=0;n0},last:v,areEqual:g,compareArrays:function(e,t){return g(e,t)},shallowCompare:function(e,t){return g(e,t)},sortNumerically:m,removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var r=e[n]===t,o=e[n+1]===t;r&&o&&e.splice(n+1,1)}},removeFromArray:y,removeAllFromArray:b,insertIntoArray:O,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var r=t.length-1;r>=0;r--){O(e,t[r],n)}},moveInArray:w,includes:_,flatten:function(e){return[].concat.apply([],e)},pushAll:C,toStrings:function(e){return S(e,a)},findIndex:E,fill:function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=0),void 0===r&&(r=e.length);for(var o=n;o=0;n--)t(e[n],n)},map:S,filter:R,reduce:function(e,t,n){if(null==e||null==n)return null;for(var r=n,o=0;o=0)){var o=n[e],i=H(o)&&o.constructor===Object;r[e]=i?D(o):o}})),r}}function N(e,t){return e[t]}function z(e,t,n){e[t]=n}function k(e,t,n,r){var o=N(e,n);void 0!==o&&z(t,n,r?r(o):o)}function F(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){x(Object.keys(e),(function(e){return t[e]=null}))})),Object.keys(t)}function L(e){if(!e)return[];var t=Object;if("function"===typeof t.values)return t.values(e);var n=[];for(var r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&n.push(e[r]);return n}function I(e,t,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1),r(t)&&T(t,(function(t,r){var i=e[t];if(i!==r){if(o)if(null==i&&null!=r)"object"===typeof r&&r.constructor===Object&&(i={},e[t]=i);H(r)&&H(i)&&!Array.isArray(i)?I(i,r,n,o):(n||void 0!==r)&&(e[t]=r)}}))}function G(e){for(var t=[],n=1;n1;)if(null==(o=o[r.shift()]))return n;var i=o[r[0]];return null!=i?i:n},set:function(e,t,n){if(null!=e){for(var r=t.split("."),o=e;r.length>1;)if(null==(o=o[r.shift()]))return;o[r[0]]=n}},deepFreeze:function e(t){return Object.freeze(t),x(d(t),(function(t){(H(t)||"function"===typeof t)&&e(t)})),t},getValueUsingField:B,removeAllReferences:V,isNonNullObject:H}),U=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,q=/([^\s,]+)/g,K={};function Y(e,t){K[t]||(e(),K[t]=!0)}function $(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function Q(e){return!!(e&&e.constructor&&e.call&&e.apply)}function X(e){te(e,400)}var Z=[],J=!1;function ee(e){Z.push(e),J||(J=!0,window.setTimeout((function(){var e=Z.slice();Z.length=0,J=!1,e.forEach((function(e){return e()}))}),0))}function te(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function ne(e,t,n){var r;return void 0===n&&(n=!1),function(){for(var o=[],i=0;in;(e()||l)&&(t(),a=!0,null!=i&&(window.clearInterval(i),i=null),l&&r&&console.warn(r))};l(),a||(i=window.setInterval(l,10))}function oe(e){e&&e()}var ie=Object.freeze({__proto__:null,doOnce:Y,getFunctionName:$,getFunctionParameters:function(e){var t=e.toString().replace(U,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(q)||[]},isFunction:Q,executeInAWhile:X,executeNextVMTurn:ee,executeAfter:te,debounce:ne,waitUntil:re,compose:function(){for(var e=[],t=0;t> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return d(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),r(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),T(this.beanWrappers,(function(t,n){var r;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var o=e.getBeansForParameters(r,n.bean.name),i=function(e,t){var n=[null].concat(t);return new(e.bind.apply(e,n))}(n.bean,o);n.beanInstance=i}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n=void 0;return n=e.prototype.constructor?$(e.prototype.constructor):""+e,void console.error("Context item "+n+" is not a bean")}var r={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=r},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,r){var o=n.agClassAttributes;o&&o.forEach((function(n){var o=t.lookupBeanInstance(r,n.beanName,n.optional);e[n.attributeName]=o}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,r){T(n.autowireMethods,(function(n,o){if("agConstructor"!==n){var i=t.getBeansForParameters(o,r);e[n].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var r=n.constructor;if(r.hasOwnProperty("__agBeanMetaData"))t(r.__agBeanMetaData,this.getBeanName(r));n=Object.getPrototypeOf(n)}},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 n=this,r=[];return e&&T(e,(function(e,o){var i=n.lookupBeanInstance(t,o);r[Number(e)]=i})),r},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var r=this.beanWrappers[t];return r?r.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach((function(e){return n.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var r={};this.forEachMetaDataInHierarchy(e,(function(e){var o=e[t];o&&o.forEach((function(e){e!=n&&(r[e]=!0)}))})),Object.keys(r).forEach((function(t){return e[t]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var n=e;"function"===typeof n.destroy&&n.destroy()})),[]):[]},e}();function le(e,t,n){var r=ve(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function se(e,t,n){var r=ve(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function ue(e,t,n){var r=ve(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function ce(e){return function(t){ve(t).beanName=e}}function de(e){return function(t,n,r){fe(t,e,!1,t,n,null)}}function pe(e){return function(t,n,r){fe(t,e,!0,t,n,null)}}function fe(e,t,n,r,o,i){if(null!==t)if("number"!==typeof i){var a=ve(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:o,beanName:t,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function he(e){return function(t,n,r){var o,i="function"==typeof t?t:t.constructor;if("number"===typeof r){var a=void 0;n?(o=ve(i),a=n):(o=ve(i),a="agConstructor"),o.autowireMethods||(o.autowireMethods={}),o.autowireMethods[a]||(o.autowireMethods[a]={}),o.autowireMethods[a][r]=e}}}function ve(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var ge,me=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ye=function(e,t){return function(n,r){t(n,r,e)}},be=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,r){if(void 0===r&&(r=null),this.frameworkOverrides=n,r){var o=t.useAsyncEvents();this.addGlobalListener(r,o)}},e.prototype.getListeners=function(e,t,n){var r=t?this.allAsyncListeners:this.allSyncListeners,o=r.get(e);return!o&&n&&(o=new Set,r.set(e,o)),o},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var r=this.getListeners(e,n,!1);r&&(r.delete(t),0===r.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(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,t){var n=this,r=e.type,o=this.getListeners(r,t,!1);o&&function(r){r.forEach((function(r){t?n.dispatchAsync((function(){return r(e)})):r(e)}))}(o),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(o){t?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(r,(function(){return o(r,e)}),!0)})):n.frameworkOverrides.dispatchEvent(r,(function(){return o(r,e)}),!0)}))},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()}))},me([ye(0,he("loggerFactory")),ye(1,he("gridOptionsWrapper")),ye(2,he("frameworkOverrides")),ye(3,he("globalEventListener"))],e.prototype,"setBeans",null),e=me([ce("eventService")],e)}(),Oe=function(){function e(){}return 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.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.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.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e.INPUT_SELECTOR="input, select, button, textarea",e.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",e.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",e}();(ge=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",ge.CommunityAllModules="@ag-grid-community/all",ge.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",ge.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",ge.CsvExportModule="@ag-grid-community/csv-export",ge.EnterpriseCoreModule="@ag-grid-enterprise/core",ge.EnterpriseAllModules="@ag-grid-enterprise/all",ge.RowGroupingModule="@ag-grid-enterprise/row-grouping",ge.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",ge.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",ge.MenuModule="@ag-grid-enterprise/menu",ge.SetFilterModule="@ag-grid-enterprise/set-filter",ge.MultiFilterModule="@ag-grid-enterprise/multi-filter",ge.StatusBarModule="@ag-grid-enterprise/status-bar",ge.SideBarModule="@ag-grid-enterprise/side-bar",ge.RangeSelectionModule="@ag-grid-enterprise/range-selection",ge.MasterDetailModule="@ag-grid-enterprise/master-detail",ge.RichSelectModule="@ag-grid-enterprise/rich-select",ge.GridChartsModule="@ag-grid-enterprise/charts",ge.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",ge.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",ge.ExcelExportModule="@ag-grid-enterprise/excel-export",ge.ClipboardModule="@ag-grid-enterprise/clipboard",ge.AngularModule="@ag-grid-community/angular",ge.ReactModule="@ag-grid-community/react",ge.VueModule="@ag-grid-community/vue",ge.PolymerModule="@ag-grid-community/polymer";var we=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&Y((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(e,t){if(this.isRegistered(e))return!0;var n="AG Grid: unable to use "+t+" as module "+e+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/";return Y((function(){console.warn(n)}),t+e),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return d(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),_e=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ce=0,Ee=function(){function e(e,t,n,r){this.instanceId=Ce++,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new be,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?e.sort!==Oe.SORT_ASC&&e.sort!==Oe.SORT_DESC||(this.sort=e.sort):e.initialSort!==Oe.SORT_ASC&&e.initialSort!==Oe.SORT_DESC||(this.sort=e.initialSort);var t=l(e.sortIndex),n=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var r=s(e.hide),o=s(e.initialHide);this.visible=void 0!==r?!r:!o,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),a=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==a&&(this.flex=a)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation()},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.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=r(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=r(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();null!=this.colDef.minWidth?this.minWidth=Math.max(this.colDef.minWidth,1):this.minWidth=e,null!=this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(o(this.colDef)||o(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},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;function n(e,t,n){Y((function(){n?console.warn(e,n):Y((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!we.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){r(e[o])&&(we.isPackageBased()?n("AG Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):n("AG Grid: "+o+" is only valid with AG Grid Enterprise Module "+t.ModuleNames.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(we.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"===this.colDef.cellEditor&&(we.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){r(e[t])&&n("AG Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}r(this.colDef.width)&&"number"!==typeof this.colDef.width&&n("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),e.pinnedRowCellRenderer&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererParams&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererFramework&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowValueGetter&&n("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=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.createColumnFunctionCallbackParams(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.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},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,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===Oe.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===Oe.SORT_DESC},e.prototype.isSortNone=function(){return o(this.sort)},e.prototype.isSorting=function(){return r(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=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,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,r){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var o=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);r&&I(o,r),this.eventService.dispatchEvent(o)},e.prototype.setPinned=function(e){!0===e||e===Oe.PINNED_LEFT?this.pinned=Oe.PINNED_LEFT:e===Oe.PINNED_RIGHT?this.pinned=Oe.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===Oe.PINNED_LEFT||this.pinned===Oe.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===Oe.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===Oe.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var r=!0===t;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},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(o(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(o(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(e,t,n){void 0===t&&(t="api"),void 0===n&&(n=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),r(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},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,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},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([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_e([de("columnUtils")],e.prototype,"columnUtils",void 0),_e([de("columnApi")],e.prototype,"columnApi",void 0),_e([de("gridApi")],e.prototype,"gridApi",void 0),_e([de("context")],e.prototype,"context",void 0),_e([se],e.prototype,"initialise",null),e}(),Me=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pe=function(){function e(e,t,n,r){this.displayedChildren=[],this.localEventService=new be,this.groupId=t,this.instanceId=n,this.originalColumnGroup=e,this.pinned=r}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();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},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=v(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}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 n=!1;return this.children.forEach((function(r){t===r&&(n=!0),r instanceof e&&r.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n},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()||0})),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(n){n instanceof Ee?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof Ee?t.push(n):n instanceof e&&n.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.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!(!!n&&n.originalColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(r){if(!(r instanceof e&&(!r.displayedChildren||!r.displayedChildren.length)))switch(r.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.originalColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case e.HEADER_GROUP_SHOW_CLOSED:n.originalColumnGroup.isExpanded()||t.displayedChildren.push(r);break;default:t.displayedChildren.push(r)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",Me([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),xe=function(){function e(e,t,n,r){this.localEventService=new be,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=r}return e.prototype.setOriginalParent=function(e){this.originalParent=e},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 n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)},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(n){n instanceof Ee?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(Ee.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,r=!1,o=this.findChildrenRemovingPadding(),i=0,a=o.length;i=0}function Le(e){for(var t=[],n=ke(e);n;)t.push(n),n=n.parentElement;return t}function Ie(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:Le(e)}function Ge(e,t,n,r){var o=_(je,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,r,o)}var Be=Object.freeze({__proto__:null,stopPropagationForAgGrid:Ae,isStopPropagationForAgGrid:De,isEventSupported:Ne,getCtrlForEvent:ze,addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},getTarget:ke,isElementInEventPath:Fe,createEventPath:Le,addAgGridEventPath:function(e){e.__agGridEventPath=Ie(e)},getEventPath:Ie,addSafePassiveEventListener:Ge}),Ve=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},He=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}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 be),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.addManagedListener=function(e,t,n){var r=this;if(!this.destroyed){e instanceof HTMLElement?Ge(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var o=function o(){return e.removeEventListener(t,n),r.destroyFunctions=r.destroyFunctions.filter((function(e){return e!==o})),null};return this.destroyFunctions.push(o),o}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&x(e,(function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",Ve([de("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Ve([de("context")],e.prototype,"context",void 0),Ve([de("eventService")],e.prototype,"eventService",void 0),Ve([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ve([ue],e.prototype,"destroy",null),e}(),We=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ue=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qe=function(e,t){return function(n,r){t(n,r,e)}},Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var r=new f,o=this.extractExistingTreeData(n),i=o.existingCols,a=o.existingGroups,l=o.existingColKeys;r.addExistingKeys(l);var s=this.recursivelyCreateColumns(e,0,t,i,r,a),u=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+u);var c=this.balanceColumnTree(s,0,u,r);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(e,t){e instanceof xe&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:c,treeDept:u}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof xe){var o=e;n.push(o)}else{var i=e;r.push(i.getId()),t.push(i)}})),{existingCols:t,existingGroups:n,existingColKeys:r}},t.prototype.createForAutoGroups=function(e,t){var n=this,r=[];return e.forEach((function(e){var o=n.createAutoGroupTreeItem(t,e);r.push(o)})),r},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,r=this.findDepth(e)-1;r>=0;r--){var o=new xe(null,"FAKE_PATH_"+t.getId()+"}_"+r,!0,r);this.context.createBean(o),o.setChildren([n]),n.setOriginalParent(o),n=o}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof xe;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,r){for(var o=[],i=0;i=t;d--){var p=r.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),h=new xe(f,p,!0,t);this.context.createBean(h),c&&c.setChildren([h]),c=h,u||(u=c)}if(u&&c){if(o.push(u),e.some((function(e){return e instanceof xe}))){c.setChildren([a]);continue}c.setChildren(e);break}o.push(a)}}return o},t.prototype.findMaxDept=function(e,t){for(var n=t,r=0;r"']/g,Xe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ze(e,t){if(t=Math.floor(t),0===e.length||0===t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,n-e.length)}function Je(e,t,n){return e.length>t?e:((t-=e.length)>n.length&&(n+=Ze(n,t/n.length)),n.slice(0,t)+e)}function et(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function tt(e){return null===e||void 0===e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function nt(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function rt(e){return null==e?null:e.toString().toString().replace(Qe,(function(e){return Xe[e]}))}function ot(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(" ")}function it(e,t){return e===t||null!=e&&e.slice(0,t.length)===t}var at=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function r(e){if(e>=0&&e<=31&&10!==e)return"_x"+Je(e.toString(16).toUpperCase(),4,"0")+"_";if(0==(4294967168&e))return t(e);var r="";return 0==(4294965248&e)?r=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),r=t(e>>12&15|224),r+=n(e,6)):0==(4292870144&e)&&(r=t(e>>18&7|240),r+=n(e,12),r+=n(e,6)),r+=t(63&e|128)}for(var o=function(e){var t=[];if(!e)return[];for(var n,r,o=e.length,i=0;i=55296&&n<=56319&&i=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dt=function(e,t){return function(n,r){t(n,r,e)}},pt=function(){for(var e=0,t=0,n=arguments.length;t=0,a=o>=0;return i&&a?r-o:i?1:a?-1:e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)}))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=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)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.viewportColumns.map((function(e){return e.getId()})).join("#");if(this.extractViewport(),e!==this.viewportColumns.map((function(e){return e.getId()})).join("#")){var t={type:Ye.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.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)},t.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 n={type:Ye.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var n=this.getPrimaryColumn(t),r=null;return this.secondaryColumns.forEach((function(t){var o=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;g(o,e)&&i===n&&(r=t)})),r},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?v(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?v(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(r){r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===n,e)}))},t.prototype.autoSizeColumns=function(e,t,n){var r=this;void 0===n&&(n="api"),this.animationFrameService.flushAllFrames();var o=[],i=-1;for(null==t&&(t=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==i;)i=0,this.actionOnGridColumns(e,(function(e){if(o.indexOf(e)>=0)return!1;var a=r.autoWidthCalculator.getPreferredWidthForColumn(e,t);if(a>0){var l=r.normaliseColumnWidth(e,a);e.setActualWidth(l,n),o.push(e),i++}return!0}),n);this.fireColumnResizedEvent(o,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,n,r){if(void 0===r&&(r=null),e&&e.length){var o={type:Ye.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:r,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns([e],t,n)},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns(n,e,t)},t.prototype.getColumnsFromTree=function(e){var t=[];return function e(n){for(var r=0;r=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,t,n,r){for(var o,i=[],a=null,l=function(l){var s,u=t[l],c=t.length-l,d=Math.min(u.getColSpan(e),c),p=[u];if(d>1){for(var f=d-1,h=1;h<=f;h++)p.push(t[l+h]);l+=f}if(n?(s=!1,p.forEach((function(e){n(e)&&(s=!0)}))):s=!0,s){if(0===i.length&&a)!!r&&r(u)&&i.push(a);i.push(u)}a=u,o=l},s=0;st.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){if(e.getColDef().autoHeight)return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,o=this.viewportRight+200;return!(to&&n>o)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,r,o,a){var l=this;if(void 0===a&&(a="api"),e&&!i(e)){var s=!1;if(e.forEach((function(e){var o=l.getPrimaryColumn(e);if(o){if(n){if(t.indexOf(o)>=0)return;t.push(o)}else{if(t.indexOf(o)<0)return;y(t,o)}r(o),s=!0}})),s){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a);var u={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:a};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Ye.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Ye.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Ye.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,o,i){var a=this;t.length=0,r(e)&&e.forEach((function(e){var n=a.getPrimaryColumn(e);n&&t.push(n)})),this.primaryColumns.forEach((function(e){var n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(n,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Ye.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var r=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(r)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Ye.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Ye.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var n=e.getMinWidth();r(n)&&t0?i+=n:a=!1})),n>=o&&(!a||n<=i)},t.prototype.resizeColumnSets=function(e,t,n){if(!e||e.every(this.checkMinAndMaxWidthsForSet.bind(this))){var o=[],i=[];e.forEach((function(e){var t=e.width,a=e.columns,l=e.ratios,s={},u={};a.forEach((function(e){return i.push(e)}));for(var c=!0,d=0,p=function(){if(++d>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],n=0,o=t;a.forEach((function(t,r){if(u[t.getId()])o-=s[t.getId()];else{e.push(t);var i=l[r];n+=i}}));var i=1/n;e.forEach((function(n,a){var d;a===e.length-1?d=o:(d=Math.round(l[a]*t*i),o-=d);var p=n.getMinWidth(),f=n.getMaxWidth();r(p)&&d0&&d>f&&(d=f,u[n.getId()]=!0,c=!0),s[n.getId()]=d}))};c;){if("break"===p())break}a.forEach((function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),o.push(e))}))}));var a=o.length>0,l=this.refreshFlexedColumns({resizingCols:i,skipSetLeft:!0});a&&(this.setLeftValues(n),this.updateBodyWidths(),this.checkViewportColumns());var s=i.concat(l);(a||t)&&this.fireColumnResizedEvent(s,t,n,l)}else if(t){var u=e&&e.length>0?e[0].columns:null;this.fireColumnResizedEvent(u,t,n)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){var r=this.getPrimaryColumn(e);r&&(r.setAggFunc(t),this.fireColumnEvent(Ye.EVENT_COLUMN_VALUE_CHANGED,[r],n))}},t.prototype.fireColumnEvent=function(e,t,n){var r={type:e,columns:t,column:t&&1==t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)},t.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var r=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,r);var o={type:Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)},t.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="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 r=this.getGridColumns(e);if(!!this.doesMovePassRules(r,t)){w(this.gridColumns,r,t),this.updateDisplayedColumns(n);var o={type:Ye.EVENT_COLUMN_MOVED,columns:r,column:1===r.length?r[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o),this.columnAnimationService.finish()}},t.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return w(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=!1,n=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(n=!1):t=!0})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof xe){var r=n,o=r.getColGroupDef();if(o&&o.marryChildren){var i=[];r.getLeafColumns().forEach((function(t){var n=e.indexOf(t);i.push(n)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>r.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var r=this.gridColumns[e];this.moveColumn(r,t,n)},t.prototype.getColumnDefs=function(){var e=this,t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&t.sort((function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case Oe.PINNED_LEFT:return this.leftWidth;case Oe.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var r={type:Ye.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case Oe.PINNED_LEFT:return this.getDisplayedLeftColumns();case Oe.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return i(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return i(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:Ye.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var r,o=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),r=!0===t||t===Oe.PINNED_LEFT?Oe.PINNED_LEFT:t===Oe.PINNED_RIGHT?Oe.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==r&&(e.setPinned(r),!0)}),n,(function(){return{type:Ye.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,t,n,o){var a=this;if(!i(e)){var l=[];if(e.forEach((function(e){var n=a.getGridColumn(e);n&&(!1!==t(n)&&l.push(n))})),l.length&&(this.updateDisplayedColumns(n),r(o)&&o)){var s=o();s.columns=l,s.column=1===l.length?l[0]:null,this.eventService.dispatchEvent(s)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&r(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},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,o=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,a=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:o,sortIndex:i,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:a}},t.prototype.getColumnState=function(){if(o(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.pivotMode||this.orderColumnStateList(e),e},t.prototype.getPrimaryAndAutoGroupCols=function(){return this.groupAutoColumns?pt(this.primaryColumns,this.groupAutoColumns):this.primaryColumns},t.prototype.orderColumnStateList=function(e){var t=lt(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],r=1e3,i=1e3,a=[];this.groupAutoColumns&&(a=a.concat(this.groupAutoColumns)),t&&(a=a.concat(t)),a.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},a=e.getColDef(),l=t(a.sort,a.initialSort),s=t(a.sortIndex,a.initialSortIndex),u=t(a.hide,a.initialHide),c=t(a.pinned,a.initialPinned),d=t(a.width,a.initialWidth),p=t(a.flex,a.initialFlex),f=t(a.rowGroupIndex,a.initialRowGroupIndex),h=t(a.rowGroup,a.initialRowGroup);null!=f||null!=h&&0!=h||(f=null,h=null);var v=t(a.pivotIndex,a.initialPivotIndex),g=t(a.pivot,a.initialPivot);null!=v||null!=g&&0!=g||(v=null,g=null);var m=t(a.aggFunc,a.initialAggFunc),y={colId:e.getColId(),sort:l,sortIndex:s,hide:u,pinned:c,width:d,flex:p,rowGroup:h,rowGroupIndex:f,pivot:g,pivotIndex:v,aggFunc:m};o(f)&&h&&(y.rowGroupIndex=r++),o(v)&&g&&(y.pivotIndex=i++),n.push(y)})),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(void 0===t&&(t="api"),i(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;this.columnAnimationService.start();var r=this.compareColumnStatesAndRaiseEvents(t);this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns.slice(),a=!0,l={},s={},u=[],c=this.rowGroupColumns.slice(),d=this.pivotColumns.slice();e.state&&e.state.forEach((function(r){var i=Oe.GROUP_AUTO_COLUMN_ID,c=r.colId||"";if(it(c,i))u.push(r);else{var d=n.getPrimaryColumn(c);d?(n.syncColumnWithStateItem(d,r,e.defaultState,l,s,!1,t),y(o,d)):a=!1}}));var p=function(r){return n.syncColumnWithStateItem(r,null,e.defaultState,l,s,!1,t)};o.forEach(p);var f=function(e,t,n,r){var o=e[n.getId()],i=e[r.getId()],a=null!=o,l=null!=i;if(a&&l)return o-i;if(a)return-1;if(l)return 1;var s=t.indexOf(n),u=t.indexOf(r),c=s>=0;return c&&u>=0?s-u:c?-1:1};this.rowGroupColumns.sort(f.bind(this,l,c)),this.pivotColumns.sort(f.bind(this,s,d)),this.updateGridColumns();var h=this.groupAutoColumns?this.groupAutoColumns.slice():[];return u.forEach((function(r){var o=n.getAutoColumn(r.colId);y(h,o),n.syncColumnWithStateItem(o,r,e.defaultState,null,null,!0,t)})),h.forEach(p),this.applyOrderAfterApplyState(e),this.updateDisplayedColumns(t),this.dispatchEverythingChanged(t),r(),this.columnAnimationService.finish(),a},t.prototype.applyOrderAfterApplyState=function(e){if(this.gridColsArePrimary&&e.applyOrder&&e.state){var t=[],n={},r={};this.gridColumns.forEach((function(e){return r[e.getId()]=e})),e.state.forEach((function(e){if(e.colId&&!n[e.colId]){var o=r[e.colId];o&&(t.push(o),n[e.colId]=!0)}})),this.gridColumns.forEach((function(e){n[e.getColId()]||t.push(e)})),t=this.putFixedColumnsFirst(t),this.doesMovePassMarryChildren(t)?this.gridColumns=t:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var t=this;if(!!!this.columnDefs)return function(){};var n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),o={};return r.forEach((function(e){o[e.colId]=e})),function(){if(!t.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=t.getPrimaryAndAutoGroupCols(),a=function(n,r,o,i){if(!g(r.map(i),o.map(i))){var a={type:n,columns:o,column:1===o.length?o[0]:null,api:t.gridApi,columnApi:t.columnApi,source:e};t.eventService.dispatchEvent(a)}},l=function(e){var t=[];return i.forEach((function(n){var r=o[n.getColId()];r&&e(r,n)&&t.push(n)})),t},s=function(e){return e.getColId()};a(Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,s),a(Ye.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,s);l((function(e,t){var n=null!=e.aggFunc,r=n!=t.isValueActive(),o=n&&e.aggFunc!=t.getAggFunc();return r||o})).length>0&&t.fireColumnEvent(Ye.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.fireColumnResizedEvent(l((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.raiseColumnPinnedEvent(l((function(e,t){return e.pinned!=t.getPinned()})),e);t.raiseColumnVisibleEvent(l((function(e,t){return e.hide==t.isVisible()})),e);l((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(),t.raiseColumnMovedEvent(r,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,r=this.getCommonValue(e,(function(e){return e.getPinned()})),o={type:Ye.EVENT_COLUMN_PINNED,pinned:null!=r?r:null,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),r=1;r=d&&e.setActualWidth(f,l)}var h=s("sort").value1;void 0!==h&&(h===Oe.SORT_DESC||h===Oe.SORT_ASC?e.setSort(h):e.setSort(void 0));var v=s("sortIndex").value1;if(void 0!==v&&e.setSortIndex(v),!a){var g=s("aggFunc").value1;void 0!==g&&("string"===typeof g?(e.setAggFunc(g),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(r(g)&&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 is intended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.isValueActive()&&(e.setValueActive(!1,l),y(this.valueColumns,e))));var m=s("rowGroup","rowGroupIndex"),b=m.value1,O=m.value2;void 0===b&&void 0===O||("number"===typeof O||b?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),o&&"number"===typeof O&&(o[e.getId()]=O)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),y(this.rowGroupColumns,e)));var w=s("pivot","pivotIndex"),_=w.value1,C=w.value2;void 0===_&&void 0===C||("number"===typeof C||_?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),i&&"number"===typeof C&&(i[e.getId()]=C)):e.isPivotActive()&&(e.setPivotActive(!1,l),y(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var r=t(e);r&&n.push(r)})),n},t.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},t.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns,this.primaryColumnsMap)},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getColumn=function(e,t,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var r=0;r=0:d?void 0!==h?h:!!(void 0!==g)&&(null!=g&&g>=0):t.indexOf(n)>=0)&&((d?null!=v||null!=g:null!=v)?u.push(n):c.push(n))}));var d=function(e){var t=r(e.getColDef()),n=o(e.getColDef());return null!=t?t:n};u.sort((function(e,t){var n=d(e),r=d(t);return n===r?0:n=0&&p.push(e)})),c.forEach((function(e){p.indexOf(e)<0&&p.push(e)})),t.forEach((function(e){p.indexOf(e)<0&&n(e,!1)})),p.forEach((function(e){t.indexOf(e)<0&&n(e,!0)})),p},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof xe){var n=e.getColGroupDef(),r={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(r)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof xe){var n=t;e.push({groupId:n.getGroupId(),open:n.isExpanded()})}})),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var r=[];e.forEach((function(e){var t=e.groupId,o=e.open,i=n.getOriginalColumnGroup(t);i&&i.isExpanded()!==o&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+o+")"),i.setExpanded(o),r.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),r.forEach((function(e){var t={type:Ye.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var r;void 0===n&&(n="api"),r=e instanceof xe?e.getId():e||"",this.setColumnGroupState([{groupId:r,open:t}],n)},t.prototype.getOriginalColumnGroup=function(e){if(e instanceof xe)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(n){if(n instanceof xe){var r=n;r.getId()===e&&(t=r)}})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&_(e.groupAutoColumns,t),r=e.valueColumns&&_(e.valueColumns,t);return n||r})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&_(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){r(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&r(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},t.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var n=e&&e.length>0;if(n||this.secondaryColumnsPresent){if(n){this.processSecondaryColumnDefinitions(e);var r=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.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)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){e&&function e(o){o.forEach((function(o){if(r(o.children)){var i=o;n&&n(i),e(i.children)}else t&&t(o)}))}(e)}},t.prototype.updateGridColumns=function(){var e=this;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.gridColumns=this.putFixedColumnsFirst(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive();var t={type:Ye.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();if(!(e===Oe.ROW_MODEL_TYPE_CLIENT_SIDE||e===Oe.ROW_MODEL_TYPE_SERVER_SIDE)){Y((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLikeLastPrimary=function(){if(!o(this.lastPrimaryOrder)){var e=lt(this.lastPrimaryOrder.map((function(e,t){return[e,t]}))),t=!0;if(this.gridColumns.forEach((function(n){e.has(n)&&(t=!1)})),!t){var n=lt(this.gridColumns.map((function(e){return[e,!0]}))),r=this.lastPrimaryOrder.filter((function(e){return n.has(e)})),i=lt(r.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!i.has(e)})),l=r.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=l.indexOf(e)>=0,r=n.indexOf(e)<0;t&&r&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var r=n.map((function(e){return l.indexOf(e)})),o=Math.max.apply(Math,r);O(l,e,o+1)}else l.push(e)}else l.push(e)})),this.gridColumns=l}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},t.prototype.putFixedColumnsFirst=function(e){var t=e.filter((function(e){return e.getColDef().lockPosition})),n=e.filter((function(e){return!e.getColDef().lockPosition}));return t.concat(n)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!o(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)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.getColDef().autoHeight}))},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this,n=this.primaryColumns.slice(0),r=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(o){if(r){var i=t.getWidthOfColsInList(o);o.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var a=0;o.forEach((function(t){t.setLeft(a,e),a+=t.getActualWidth()}))}b(n,o)})),n.forEach((function(t){t.setLeft(null,e)}))},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof Pe&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof Ee&&t.push(e)}))},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case Oe.PINNED_LEFT:n=this.viewportRowLeft[t];break;case Oe.PINNED_RIGHT:n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return o(n)&&(n=[]),n},t.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function t(n,r,o){for(var i=!1,a=0;ao;return e.getFlex()&&n},a=this.displayedColumnsCenter.filter((function(e){return!i(e)})),l=this.displayedColumnsCenter.filter((function(e){return i(e)})),s=[];if(!l.length)return[];var u,c=[];e:for(;;){var d=l.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(a);for(var p=0;pm&&(v=m),v){f.setActualWidth(v,n),y(l,f),s.push(f),a.push(f);continue e}c[p]=Math.round(h)}break}var b=u;return l.forEach((function(e,t){e.setActualWidth(Math.min(c[t],b),n),s.push(e),b-=c[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(s,!0,n,l),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),l},t.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var i=[],a=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?a.push(e):i.push(e)}));var l=i.slice(0),s=!1,u=function(e){y(i,e),a.push(e)};for(i.forEach((function(e){return e.resetActualWidth(t)}));!s;){s=!0;var c=e-this.getWidthOfColsInList(a);if(c<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var d=c/this.getWidthOfColsInList(i),p=c,f=i.length-1;f>=0;f--){var h=i[f],v=h.getMinWidth(),g=h.getMaxWidth(),m=Math.round(h.getActualWidth()*d);r(v)&&m0||this.usingTreeData)&&!t&&!e){var n=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);(!this.autoColsEqual(n,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=n)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return g(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e){return"number"!==typeof e?"":yt(Math.round(100*e)/100)},formatNumberCommas:yt,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),Ot=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ot(t,e),t.prototype.calculateColInitialWidth=function(e){var t,n=this.gridOptionsWrapper,r=null!=e.minWidth?e.minWidth:n.getMinColWidth(),o=null!=e.maxWidth?e.maxWidth:n.getMaxColWidth()||mt(),i=l(e.width),a=l(e.initialWidth);return t=null!=i?i:null!=a?a:n.getColWidth(),Math.max(Math.min(t,o),r)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],r=!1;return function t(o,i){for(var a=0;a=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ct(t,e),t.prototype.createDisplayedGroups=function(e,t,n,r,o){var i,a,l=this,s=[],u=this.mapOldGroupsById(o);return e.forEach((function(e){for(var o=l.getOriginalPathForColumn(t,e),c=[],d=!a,p=0;p=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Tt(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=At([ce("agStackComponentsRegistry")],t)}(He),Nt=function(){for(var e=0,t=0,n=arguments.length;t=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var n=t.match(e.hexRe);if(n)return new e((r=parseInt(n[1],16))/255,(o=parseInt(n[2],16))/255,(i=parseInt(n[3],16))/255,(a=void 0!==n[4]?parseInt(n[4],16):255)/255);if(n=t.match(e.shortHexRe)){var r=parseInt(n[1],16),o=parseInt(n[2],16),i=parseInt(n[3],16),a=void 0!==n[4]?parseInt(n[4],16):15;return new e((r+=16*r)/255,(o+=16*o)/255,(i+=16*i)/255,(a+=16*a)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var n=t.match(e.rgbRe);if(n)return new e(+n[1]/255,+n[2]/255,+n[3]/255);if(n=t.match(e.rgbaRe))return new e(+n[1]/255,+n[2]/255,+n[3]/255,+n[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,n,r,o){void 0===o&&(o=1);var i=e.HSBtoRGB(t,n,r);return new e(i[0],i[1],i[2],o)},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)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"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,n){var r=Math.min(e,t,n),o=Math.max(e,t,n),i=NaN;if(r!==o){var a=o-r,l=(o-e)/a,s=(o-t)/a,u=(o-n)/a;i=e===o?u-s:t===o?2+l-u:4+s-l,(i/=6)<0&&(i+=1)}return[360*i,0!==o?(o-r)/o:0,o]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var r=0,o=0,i=0;if(0===t)r=o=i=n;else{var a=6*(e-Math.floor(e)),l=a-Math.floor(a),s=n*(1-t),u=n*(1-t*l),c=n*(1-t*(1-l));switch(a>>0){case 0:r=n,o=c,i=s;break;case 1:r=u,o=n,i=s;break;case 2:r=s,o=n,i=c;break;case 3:r=s,o=u,i=n;break;case 4:r=c,o=s,i=n;break;case 5:r=n,o=s,i=u}}return[r,o,i]},e.prototype.derive=function(t,n,r,o){var i=e.RGBtoHSB(this.r,this.g,this.b),a=i[2];0==a&&r>1&&(a=.05);var l=((i[0]+t)%360+360)%360,s=Math.max(Math.min(i[1]*n,1),0);a=Math.max(Math.min(a*r,1),0);var u=Math.max(Math.min(this.a*o,1),0),c=e.HSBtoRGB(l,s,a);return c.push(u),e.fromArray(c)},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}();function Ft(e,t){void 0===t&&(t=",");var n=[],r=function(e){return"\r"===e||"\n"===e},o=!1;if(""===e)return[[""]];for(var i,a,l,s=function(s,u,c){var d=e[c-1],p=e[c],f=e[c+1],h=function(){n[s]||(n[s]=[]),n[s][u]||(n[s][u]="")};if(h(),'"'===p){if(o)return'"'===f?(n[s][u]+='"',c++):o=!1,i=s,a=u,l=c,"continue";if(void 0===d||d===t||r(d))return o=!0,i=s,a=u,l=c,"continue"}if(!o){if(p===t)return u++,h(),i=s,a=u,l=c,"continue";if(r(p))return u=0,s++,h(),"\r"===p&&"\n"===f&&c++,i=s,a=u,l=c,"continue"}n[s][u]+=p,i=s,a=u,l=c},u=0,c=0,d=0;d1)&&!window.MSStream),Ht}function Jt(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");if(Kt()&&0===t&&null===n){return!0==={a:!0,body:!0,button:!0,frame:!0,iframe:!0,img:!0,input:!0,isindex:!0,object:!0,select:!0,textarea:!0}[e.nodeName.toLowerCase()]?"0":null}return-1!==t||null!==n&&(""!==n||Xt())?t.toString():null}function en(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var r=2*e;if(n.style.height=r+"px",r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),e}function tn(){return null==Ut&&nn(),Ut}function nn(){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 n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(Ut=n,Wt=0===n)}function rn(){return null==Wt&&nn(),Wt}function on(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function an(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var ln,sn=Object.freeze({__proto__:null,isBrowserIE:Kt,isBrowserEdge:Yt,isBrowserSafari:$t,isBrowserChrome:Qt,isBrowserFirefox:Xt,isIOSUserAgent:Zt,getTabIndex:Jt,getMaxDivHeight:en,getScrollbarWidth:tn,isInvisibleScrollbar:rn,hasOverflowScrolling:function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),n=!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 r=window.getComputedStyle(t);if("touch"===r.overflowScrolling&&(n=!0),!n)for(var o=0,i=e;o=0)){if(e.classList)e.classList.add(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ");n.indexOf(t)<0&&(n.push(t),e.setAttribute("class",n.join(" ")))}else e.setAttribute("class",t);return e}t.split(" ").forEach((function(t){return un(e,t)}))}}function cn(e,t){if(e&&t&&0!==t.length)if(t.indexOf(" ")>=0)t.split(" ").forEach((function(t){return cn(e,t)}));else if(e.classList)e.classList.remove(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ").filter((function(e){return e!==t})).join(" ");e.setAttribute("class",n)}}function dn(e,t,n){n?un(e,t):cn(e,t)}function pn(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var n=e.className===t,r=e.className.indexOf(" "+t+" ")>=0,o=0===e.className.indexOf(t+" "),i=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return n||r||o||i}return!1}function fn(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,Oe.INPUT_SELECTOR),r=t.call(e,Oe.FOCUSABLE_EXCLUDE),o=Sn(e);return n&&!r&&o}function hn(e,t){dn(e,"ag-hidden",!t)}function vn(e,t){dn(e,"ag-invisible",!t)}function gn(e,t){var n="disabled",r=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};r(e),Yn(e.querySelectorAll("input"),(function(e){return r(e)}))}function mn(e,t,n){for(var r=0;e;){if(pn(e,t))return!0;if(e=e.parentElement,n&&++r>n)break}return!1}function yn(e){var t=window.getComputedStyle(e),n=t.height,r=t.width,o=t.paddingTop,i=t.paddingRight,a=t.paddingBottom,l=t.paddingLeft,s=t.marginTop,u=t.marginRight,c=t.marginBottom,d=t.marginLeft,p=t.boxSizing;return{height:parseFloat(n),width:parseFloat(r),paddingTop:parseFloat(o),paddingRight:parseFloat(i),paddingBottom:parseFloat(a),paddingLeft:parseFloat(l),marginTop:parseFloat(s),marginRight:parseFloat(u),marginBottom:parseFloat(c),marginLeft:parseFloat(d),boxSizing:p}}function bn(e){var t=yn(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function On(e){var t=yn(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function wn(e){var t=yn(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function _n(e){var t=yn(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function Cn(){if("boolean"===typeof ln)return ln;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='
\n \n \n
',document.body.appendChild(e),e.scrollLeft=1,ln=0===Math.floor(e.scrollLeft),document.body.removeChild(e),ln}function En(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),Qt()&&!Cn()&&(n=e.scrollWidth-e.clientWidth-n)),n}function Mn(e,t,n){n&&(Cn()?t*=-1:($t()||Qt())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function Pn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function xn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Sn(e){return null!==e.offsetParent}function Rn(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function jn(e){return e&&e.clientHeight?e.clientHeight:0}function Tn(e){return e&&e.clientWidth?e.clientWidth:0}function An(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function Dn(e,t){for(var n=0;n1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var r=0;r1?n=Math.max(n,parseInt(i[1],10)):Math.floor(o)!==o&&(n=Math.max(n,o.toString().split(".")[1].length))}for(var a=0,l=0,s=0,u=0,c=0,d=0;d'),document.body&&document.body.appendChild(n)}n.insertBefore(t,n.children[0])},bindCellRendererToHtmlElement:function(e,t){e.then((function(e){var n=e.getGui();null!=n&&("object"===typeof n?t.appendChild(n):t.innerHTML=n)}))}});function Xn(e,t,n){e.setAttribute(Jn(t),n.toString())}function Zn(e,t){e.removeAttribute(Jn(t))}function Jn(e){return"aria-"+e}function er(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function tr(e){return parseInt(e.getAttribute("aria-posinset"),10)}function nr(e){return e.getAttribute("aria-describedby")||""}function rr(e,t){Xn(e,"label",t)}function or(e,t){Xn(e,"labelledby",t)}function ir(e,t){Xn(e,"describedby",t)}function ar(e,t){Xn(e,"disabled",t)}function lr(e,t){Xn(e,"expanded",t)}function sr(e,t){Xn(e,"setsize",t)}function ur(e,t){Xn(e,"posinset",t)}function cr(e,t){Xn(e,"multiselectable",t)}function dr(e,t){Xn(e,"rowcount",t)}function pr(e,t){Xn(e,"rowindex",t)}function fr(e,t){Xn(e,"colcount",t)}function hr(e,t){Xn(e,"colindex",t)}function vr(e,t){Xn(e,"colspan",t)}function gr(e,t){Xn(e,"sort",t)}function mr(e){Zn(e,"sort")}function yr(e,t){var n="selected";t?Xn(e,n,t):Zn(e,n)}function br(e,t){Xn(e,"checked",void 0===t?"mixed":t)}var Or=Object.freeze({__proto__:null,getAriaSortState:er,getAriaLevel:function(e){return parseInt(e.getAttribute("aria-level"),10)},getAriaPosInSet:tr,getAriaDescribedBy:nr,setAriaLabel:rr,setAriaLabelledBy:or,setAriaDescribedBy:ir,setAriaLevel:function(e,t){Xn(e,"level",t)},setAriaDisabled:ar,setAriaExpanded:lr,removeAriaExpanded:function(e){Zn(e,"expanded")},setAriaSetSize:sr,setAriaPosInSet:ur,setAriaMultiSelectable:cr,setAriaRowCount:dr,setAriaRowIndex:pr,setAriaColCount:fr,setAriaColIndex:hr,setAriaColSpan:vr,setAriaSort:gr,removeAriaSort:mr,setAriaSelected:yr,setAriaChecked:br});function wr(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return ht(e,2)})).join(n);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return ht(e,2)})).join(":")),r}function _r(e){if(!e)return null;var t=e.split(" "),n=t[0],r=t[1];if(!n)return null;var o=n.split("-").map((function(e){return parseInt(e,10)}));if(3!==o.filter((function(e){return!isNaN(e)})).length)return null;var i=o[0],a=o[1],l=o[2],s=new Date(i,a-1,l);if(s.getFullYear()!==i||s.getMonth()!==a-1||s.getDate()!==l)return null;if(!r||"00:00:00"===r)return s;var u=r.split(":").map((function(e){return parseInt(e,10)})),c=u[0],d=u[1],p=u[2];return c>=0&&c<24&&s.setHours(c),d>=0&&d<60&&s.setMinutes(d),p>=0&&p<60&&s.setSeconds(p),s}var Cr=Object.freeze({__proto__:null,serialiseDate:wr,parseDateTimeFromString:_r});function Er(e,t,n){var r={},o=e.filter((function(e){return!t.some((function(t){return t===e}))}));return o.length>0&&o.forEach((function(e){return r[e]=Mr(e,n)})),r}function Mr(e,t,n,r){var o=r?Sr:xr,i=t.map((function(t){return{value:t,relevance:o(e.toLowerCase(),t.toLocaleLowerCase())}}));return i.sort((function(e,t){return t.relevance-e.relevance})),n&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function Pr(e){var t,n,r,o=e.toLowerCase(),i=new Array(o.length-1);for(t=n=0,r=i.length;n<=r;t=n+=1)i[t]=o.slice(t,t+2);return i}function xr(e,t){if(0===e.length&&0===t.length)return 0;var n,r,o=Pr(e),i=Pr(t),a=o.length+i.length,l=0;for(n=0,r=o.length;n0?2*l/a:0}function Sr(e,t){for(var n=e.replace(/\s/g,""),r=t.replace(/\s/g,""),o=0,i=0,a=0;a-1)return r;var o=document.createElement("span");return o.appendChild(r),o}function Ar(e,t,n,r){var o=null,i=n&&n.getColDef().icons;if(i&&(o=i[e]),t&&!o){var a=t.getIcons();a&&(o=a[e])}if(!o){var l=document.createElement("span"),s=jr[e];return s||(r?s=e:(console.warn("AG Grid: Did not find icon "+e),s="")),l.setAttribute("class","ag-icon ag-icon-"+s),l.setAttribute("unselectable","on"),l.setAttribute("role","presentation"),l}var u=void 0;if("function"===typeof o)u=o();else{if("string"!==typeof o)throw new Error("icon from grid options needs to be a string or a function");u=o}return"string"===typeof u?Rn(u):Wn(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Dr=Object.freeze({__proto__:null,iconNameClassMap:jr,createIcon:Tr,createIconNoSpan:Ar});function Nr(e,t){return(e.which||e.keyCode)===t}function zr(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,n=function(e){return(Yt()||Kt())&&"Del"===e.key&&46===e.charCode}(e);return t||n}function kr(e,t,n,r,o){var i=e.getSuppressKeyboardEventFunc(),a=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i&&!a)return!1;var l={event:t,editing:o,column:r,api:e.getApi(),node:n,data:n.data,colDef:r.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(a&&a(l))return!0;return!!i&&i(l)}function Fr(e,t,n,o){var i=o.getDefinition(),a=i&&i.suppressHeaderKeyboardEvent;return!!r(a)&&!!a({api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:o,headerRowIndex:n,event:t})}var Lr=Object.freeze({__proto__:null,isKeyPressed:Nr,isEventFromPrintableCharacter:zr,isUserSuppressingKeyboardEvent:kr,isUserSuppressingHeaderKeyboardEvent:Fr});function Ir(e,t,n){if(0===n)return!1;var r=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(r,o)<=n}var Gr=Object.freeze({__proto__:null,normalizeWheel:function(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}},isLeftClick:function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},areEventsNear:Ir});var Br=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(e){for(var n=function(e,n){var r=t[e.id],o=t[n.id],i=void 0!==r,a=void 0!==o;return i&&a?r-o:!i&&!a?e.__objectId-n.__objectId:i?1:-1},r=!1,o=0;o0){r=!0;break}r&&e.sort(n)}},traverseNodesWithKey:function(e,t){var n=[];!function e(r){if(!r)return;r.forEach((function(r){if(r.group||r.hasChildren()){n.push(r.key);var o=n.join("|");t(r,o),e(r.childrenAfterGroup),n.pop()}}))}(e)}});function Vr(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Hr,Wr=Object.freeze({__proto__:null,convertToSet:Vr}),Ur=function(){return(Ur=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(Yr||(Yr={}));var eo=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Yr.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return Xr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(this.state==Yr.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=Yr.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===Yr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Yr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Yr.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=Yr.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;un(this.tooltipComp.getGui(),"ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ro=new Kr,oo=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=ro.next(),n.cssClassStates={},t&&n.setTemplate(t),n}return to(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new eo(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;x(Un(e.childNodes),(function(r){if(r instanceof HTMLElement){var o=n.createComponentFromElement(r,(function(e){e.getGui()&&n.copyAttributesFromNode(r,e.getGui())}),t);if(o){if(o.addItems&&r.children.length){n.createChildComponentsFromTags(r,t);var i=Array.prototype.slice.call(r.children);o.addItems(i)}n.swapComponentForNode(o,e,r)}else r.childNodes&&n.createChildComponentsFromTags(r,t)}}))},t.prototype.createComponentFromElement=function(e,n,r){var o=e.nodeName,i=r?r[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(o);if(a){t.elementGettingCreated=e;var l=new a(i);return l.setParentComponent(this),this.createBean(l,null,n),l}return null},t.prototype.copyAttributesFromNode=function(e,t){qn(e.attributes,(function(e,n){return t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var r=e.getGui();t.replaceChild(r,n),t.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors((function(r){n[r.attributeName]===t&&(n[r.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,r=$(t.constructor);n&&n[r]&&n[r].querySelectors&&x(n[r].querySelectors,(function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=Rn(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(n){var r=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)r(e.eGui);else{var o=e.eGui.querySelector(n.querySelector);o&&r(o.__agComponent||o)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=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,t){if(t||(t=this.eGui),null!=e)if(Wn(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,n))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,vn(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,hn(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){!0!==this.cssClassStates[e]&&(un(this.eGui,e),this.cssClassStates[e]=!0)},t.prototype.removeCssClass=function(e){!1!==this.cssClassStates[e]&&(cn(this.eGui,e),this.cssClassStates[e]=!1)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassStates[e]!==t&&(dn(this.eGui,e,t),this.cssClassStates[e]=t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",no([de("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),no([le],t.prototype,"preConstructOnComponent",null),no([le],t.prototype,"createChildComponentsPreConstruct",null),t}(He),io=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ao=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return io(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){un(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&cn(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(oo);function lo(e){return so.bind(this,"[ref="+e+"]",e)}function so(e,t,n,r,o){null!==e?"number"!==typeof o?function(e,t,n){var r=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,$(e.constructor));r[t]||(r[t]=[]);r[t].push(n)}(n,"querySelectors",{attributeName:r,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var uo,co=function(){function e(){}return e.BACKSPACE=8,e.TAB=9,e.ENTER=13,e.SHIFT=16,e.ESCAPE=27,e.SPACE=32,e.LEFT=37,e.UP=38,e.RIGHT=39,e.DOWN=40,e.DELETE=46,e.A=65,e.C=67,e.V=86,e.D=68,e.Z=90,e.Y=89,e.F2=113,e.PAGE_UP=33,e.PAGE_DOWN=34,e.PAGE_HOME=36,e.PAGE_END=35,e}(),po=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ho=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return po(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===co.BACKSPACE||e.keyPress===co.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==co.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),this.addManagedListener(n.getGui(),"keydown",(function(e){var t=e.keyCode;t!==co.PAGE_UP&&t!==co.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){$t()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var o=t.getValue(),i=r(o)&&o.length||0;i&&n.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.focusOut=function(){var e=this.eInput.getInputElement();Kt()&&e.setSelectionRange(0,0)},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},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='
',fo([lo("eInput")],t.prototype,"eInput",void 0),t}(ao),vo=function(){function e(e,t,n,r){var o=this;this.alive=!0,this.context=e,t.newDateComponent(n).then((function(t){o.alive?(o.dateComp=t,t&&(r.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),o.tempValue&&t.setDate(o.tempValue))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},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.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e}(),go=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.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){if("string"!==typeof t){M(["displayKey","displayName","test"],(function(e){return!!t[e]||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain a '"+e+"'"),!1)}))&&(e.customFilterOptions[t.displayKey]=t)}}))},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}(),mo={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},yo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bo=function(){return(bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wo=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.eFocusableElement=t,r.callbacks=n,r.callbacks=bo({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},n),r}return yo(t,e),t.prototype.postConstruct=function(){un(this.eFocusableElement,t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||De(e)||(t.callbacks.shouldStopEventPropagation(e)?Ae(e):e.keyCode===co.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",Oo([de("focusService")],t.prototype,"focusService",void 0),Oo([se],t.prototype,"postConstruct",null),t}(He),_o=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Co=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Eo=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return _o(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new wo(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},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.resetTemplate=function(e){var t='\n
\n
\n '+this.createBodyTemplate()+"\n
\n
";this.setTemplate(t,e)},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){if(t.checkForDeprecatedParams(e),this.providedFilterParams=e,"keep"===e.newRowsAction)this.newRowsActionKeep=!0;else if("clear"===e.newRowsAction)this.newRowsActionKeep=!1;else{var n=[Oe.ROW_MODEL_TYPE_SERVER_SIDE,Oe.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=n.indexOf(this.rowModel.getType())>=0}this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(t&&!(t.length<1)){var n=document.createElement("div");un(n,"ag-filter-apply-panel");Vr(t).forEach((function(t){return function(t){var r,o;switch(t){case"apply":r=e.translate("applyFilter"),o=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":r=e.translate("clearFilter"),o=function(){return e.onBtClear()};break;case"reset":r=e.translate("resetFilter"),o=function(){return e.onBtReset()};break;case"cancel":r=e.translate("cancelFilter"),o=function(t){e.onBtCancel(t)};break;default:return void console.warn("Unknown button type specified")}var i=Rn(''+r+"\n ");n.appendChild(i),e.addManagedListener(i,"click",o)}(t)})),this.getGui().appendChild(n)}},t.checkForDeprecatedParams=function(e){var t=e.buttons||[];if(!(t.length>0)){var n=e.applyButton,r=e.resetButton;e.clearButton&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.clearButton is deprecated. Please use filterParams.buttons instead"),t.push("clear")),r&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.resetButton is deprecated. Please use filterParams.buttons instead"),t.push("reset")),n&&(console.warn("AG Grid: as of AG Grid v23.2, filterParams.applyButton is deprecated. Please use filterParams.buttons instead"),t.push("apply")),e.apply&&(console.warn("AG Grid: as of AG Grid v21, filterParams.apply is deprecated. Please use filterParams.buttons instead"),t.push("apply")),e.buttons=t}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=ne(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){var t=this;return(e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this,n=this.getModel(),r=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=n?this.setModelIntoUi(n).then(r):this.resetUiToDefaults().then(r)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){var e=this;this.newRowsActionKeep||this.resetUiToDefaults().then((function(){return e.appliedModel=null}))},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,r=n&&n.key;"Enter"!==r&&"Space"!==r||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive){var n=this.isModelValid(this.getModelFromUi());gn(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return t.checkForDeprecatedParams(e),!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,mo[e])},Co([de("rowModel")],t.prototype,"rowModel",void 0),Co([se],t.prototype,"postConstruct",null),t}(oo),Mo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Po=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(uo||(uo={}));var xo,So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mo(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.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(uo.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(uo.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(uo.One),condition2:this.createCondition(uo.Two)}:this.createCondition(uo.One):null},t.prototype.getCondition1Type=function(){return this.eType1.getValue()},t.prototype.getCondition2Type=function(){return this.eType2.getValue()},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,r=!e.operator,o=!t.operator;if(!r&&o||r&&!o)return!1;if(r){var i=e,a=t;n=this.areSimpleModelsEqual(i,a)}else{var l=e,s=t;n=l.operator===s.operator&&this.areSimpleModelsEqual(l.condition1,s.condition1)&&this.areSimpleModelsEqual(l.condition2,s.condition2)}return n},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,n="OR"===t.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,uo.One),this.setConditionIntoUi(t.condition2,uo.Two)}else{var r=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(r.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(r,uo.One),this.setConditionIntoUi(null,uo.Two)}return $r.resolve()},t.prototype.doesFilterPass=function(e){var t=this,n=this.getModel();if(null==n)return!0;var r=n.operator,o=[];if(r){var i=n;o.push(i.condition1,i.condition2)}else o.push(n);return(r&&"OR"===r?P:M)(o,(function(n){return t.individualConditionPasses(e,n)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new go,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return _(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions();x(t,(function(t){var n,r;if("string"===typeof t)n=t,r=e.translate(n);else{n=t.displayKey;var o=e.optionsFactory.getCustomOption(n);r=o?e.gridOptionsWrapper.getLocaleTextFunc()(o.displayKey,o.displayName):e.translate(n)}var i=function(){return{value:n,text:r}};e.eType1.addOption(i()),e.eType2.addOption(i())}));var n=t.length<=1;this.eType1.setDisabled(n),this.eType2.setDisabled(n)},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n \n '+this.createValueTemplate(uo.One)+'\n
\n \n \n
\n \n '+this.createValueTemplate(uo.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.isCondition2Enabled();this.alwaysShowBothConditions?(this.eJoinOperatorAnd.setDisabled(!e),this.eJoinOperatorOr.setDisabled(!e),this.eType2.setDisabled(!e),gn(this.eCondition2Body,!e)):(hn(this.eJoinOperatorPanel,e),hn(this.eType2.getGui(),e),hn(this.eCondition2Body,e))},t.prototype.isCondition2Enabled=function(){return this.allowTwoConditions&&this.isConditionUiComplete(uo.One)},t.prototype.resetUiToDefaults=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),n="ag-simple-filter-and-or-"+this.getCompId(),r=this.optionsFactory.getDefaultOption();return this.eType1.setValue(r,e).setAriaLabel(t),this.eType2.setValue(r,e).setAriaLabel(t),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(n).setLabel(this.translate("andCondition")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(n).setLabel(this.translate("orCondition")),$r.resolve()},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(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",Po([lo("eOptions1")],t.prototype,"eType1",void 0),Po([lo("eOptions2")],t.prototype,"eType2",void 0),Po([lo("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),Po([lo("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Po([lo("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Po([lo("eCondition1Body")],t.prototype,"eCondition1Body",void 0),Po([lo("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(Eo),Ro=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ro(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.individualConditionPasses=function(e,n){var r=this.scalarFilterParams.valueGetter(e.node),o=this.mapRangeFromModel(n),i=o.from,a=o.to,l=n.type,s=this.optionsFactory.getCustomOption(l);if(s&&(null!=i||s.hideFilterInput))return s.test(i,r);if(null==r){switch(l){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0}return!1}var u=this.comparator(),c=u(i,r);switch(l){case t.EQUALS:return 0===c;case t.NOT_EQUAL:return 0!==c;case t.GREATER_THAN:return c>0;case t.GREATER_THAN_OR_EQUAL:return c>=0;case t.LESS_THAN:return c<0;case t.LESS_THAN_OR_EQUAL:return c<=0;case t.IN_RANGE:var d=u(a,r);return this.scalarFilterParams.inRangeInclusive?c>=0&&d<=0:c>0&&d<0;default:return console.warn('AG Grid: Unexpected type of filter "'+l+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(So),To=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ao=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Do=function(e){function t(){return e.call(this,"dateFilter")||this}return To(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapRangeFromModel=function(e){return{from:_r(e.dateFrom),to:_r(e.dateTo)}},t.prototype.setValueFromFloatingFilter=function(e){this.dateCondition1FromComp.setDate(null==e?null:_r(e)),this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},t.prototype.setConditionIntoUi=function(e,t){var n=e?[_r(e.dateFrom),_r(e.dateTo)]:[null,null],r=n[0],o=n[1],i=this.getFromToComponents(t),a=i[0],l=i[1];a.setDate(r),l.setDate(o)},t.prototype.resetUiToDefaults=function(t){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){n.dateCondition1FromComp.setDate(null),n.dateCondition1ToComp.setDate(null),n.dateCondition2FromComp.setDate(null),n.dateCondition2ToComp.setDate(null)}))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||te?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t,this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new vo(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.dateCondition1FromComp.destroy(),e.dateCondition1ToComp.destroy(),e.dateCondition2FromComp.destroy(),e.dateCondition2ToComp.destroy()}))},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===uo.One?"1":"2";return'\n
\n
\n
\n
'},t.prototype.isConditionUiComplete=function(e){var t=e===uo.One?this.getCondition1Type():this.getCondition2Type();if(t===So.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(t))return!0;var n=this.getFromToComponents(e),r=n[0],o=n[1],i=null==this.dateFilterParams.minValidYear?1e3:this.dateFilterParams.minValidYear,a=function(e){return null!=e&&e.getUTCFullYear()>i};return a(r.getDate())&&(!this.showValueTo(t)||a(o.getDate()))},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=e===uo.One?this.getCondition1Type():this.getCondition2Type(),n=this.getFromToComponents(e),r=n[0],o=n[1];return{dateFrom:wr(r.getDate()),dateTo:wr(o.getDate()),type:t,filterType:this.getFilterType()}},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.dateCondition1FromComp.setInputPlaceholder(t),this.dateCondition1FromComp.setInputAriaLabel(n),this.dateCondition1ToComp.setInputPlaceholder(t),this.dateCondition1ToComp.setInputAriaLabel(n),this.dateCondition2FromComp.setInputPlaceholder(t),this.dateCondition2FromComp.setInputAriaLabel(n),this.dateCondition2ToComp.setInputPlaceholder(t),this.dateCondition2ToComp.setInputAriaLabel(n)},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.getCondition1Type();hn(this.eCondition1PanelFrom,this.showValueFrom(t)),hn(this.eCondition1PanelTo,this.showValueTo(t));var n=this.getCondition2Type();hn(this.eCondition2PanelFrom,this.showValueFrom(n)),hn(this.eCondition2PanelTo,this.showValueTo(n))},t.prototype.getFromToComponents=function(e){return e===uo.One?[this.dateCondition1FromComp,this.dateCondition1ToComp]:[this.dateCondition2FromComp,this.dateCondition2ToComp]},t.DEFAULT_FILTER_OPTIONS=[jo.EQUALS,jo.GREATER_THAN,jo.LESS_THAN,jo.NOT_EQUAL,jo.IN_RANGE],Ao([lo("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),Ao([lo("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),Ao([lo("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),Ao([lo("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),Ao([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(jo),No=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new be,this.eElement=e,this.preventMouseClick=t;var r=this.onTouchStart.bind(this),o=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",o,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",r,{passive:!0}),n.eElement.removeEventListener("touchmove",o,{passive:!0}),n.eElement.removeEventListener("touchend",i,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var n={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),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}(),zo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ko=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return zo(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},t.prototype.workOutTemplate=function(){var e=h(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=rt(this.currentDisplayName);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,n){if(null!=t){var r=Ar(e,this.gridOptionsWrapper,n);r&&t.appendChild(r)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new No(this.getGui(),!0),o=t.isSuppressMenuHide(),i=o&&r(this.eMenu),a=i?new No(this.eMenu,!0):n;if(this.params.enableMenu){var l=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(a,No[l],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,No.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),i&&this.addDestroyFunc((function(){return a.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=Zt()&&e;return this.params.enableMenu&&!t},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),dn(this.eMenu,"ag-header-menu-always-show",t)}else xn(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.removeSortIcons=function(){xn(this.eSortAsc),xn(this.eSortDesc),xn(this.eSortNone),xn(this.eSortOrder)},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.currentSort){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,Ee.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var r=e.params.column.isMoving(),o=(new Date).getTime()-e.lastMovingChanged<50;if(!(r||o)){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}})),this.addManagedListener(this.params.column,Ee.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,Ye.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(dn(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),dn(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),dn(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&dn(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&dn(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();dn(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(),n=t.indexOf(e),r=t.length>1,o=e.isSorting()&&r;hn(this.eSortOrder,o),n>=0?this.eSortOrder.innerHTML=(n+1).toString():Pn(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,Ee.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();dn(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='',ko([de("sortController")],t.prototype,"sortController",void 0),ko([de("menuFactory")],t.prototype,"menuFactory",void 0),ko([lo("eFilter")],t.prototype,"eFilter",void 0),ko([lo("eSortAsc")],t.prototype,"eSortAsc",void 0),ko([lo("eSortDesc")],t.prototype,"eSortDesc",void 0),ko([lo("eSortNone")],t.prototype,"eSortNone",void 0),ko([lo("eSortOrder")],t.prototype,"eSortOrder",void 0),ko([lo("eMenu")],t.prototype,"eMenu",void 0),ko([lo("eLabel")],t.prototype,"eLabel",void 0),ko([lo("eText")],t.prototype,"eText",void 0),t}(oo),Lo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Io=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Go=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Lo(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){if(this.params.template){Y((function(){return console.warn("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!De(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Ae(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var r=this.params.columnGroup.getOriginalColumnGroup();this.addManagedListener(r,xe.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,xe.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new No(e,!0);this.addManagedListener(n,No.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();hn(this.eOpenIcon,e),hn(this.eCloseIcon,!e)}else hn(this.eOpenIcon,!1),hn(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Ar(e,this.gridOptionsWrapper,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return hn(this.eOpenIcon,!1),void hn(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(r(e)){var t=rt(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='',Io([de("columnModel")],t.prototype,"columnModel",void 0),Io([lo("agOpened")],t.prototype,"eOpenIcon",void 0),Io([lo("agClosed")],t.prototype,"eCloseIcon",void 0),t}(oo),Bo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(xo=t.RowHighlightPosition||(t.RowHighlightPosition={}))[xo.Above=0]="Above",xo[xo.Below=1]="Below";var Vo,Ho,Wo,Uo=function(){function e(){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var n=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var r=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(r)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,r){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:r}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return this.rowPinned===Oe.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===Oe.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.createBean(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 n=r(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var i=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||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(t){var n=this.gridOptionsWrapper.getRowNodeIdFunc();n?this.data?(this.id=n(this.data),this.id&&"string"===typeof this.id&&it(this.id,e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row ID's cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature.")):this.id=void 0:this.id=t},e.prototype.isPixelInRange=function(e){return!(!r(this.rowTop)||!r(this.rowHeight))&&(e>=this.rowTop&&er&&(r=i)):t=!0})),!t)){(n||r<10)&&(r=this.gridOptionsWrapper.getRowHeightForNode(this).height);r!=this.rowHeight&&function(t){var n=e.rowModel;e.setRowHeight(t),n.onRowHeightChanged&&n.onRowHeightChanged()}(r)}},e.prototype.setRowIndex=function(t){this.rowIndex!==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 n=G({},this.createGlobalRowEvent(Ye.EVENT_ROW_GROUP_OPENED),{expanded:t});this.rowNodeEventThrottle.dispatchExpanded(n),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.rowRenderer.refreshCells({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 n=this.columnModel.getPrimaryColumn(e),r=this.valueService.getValue(n,this);this.valueService.setValue(this,n,t),this.dispatchCellChangedEvent(n,t,r)},e.prototype.setGroupValue=function(e,t){var n=this.columnModel.getGridColumn(e);o(this.groupData)&&(this.groupData={});var r=n.getColId(),i=this.groupData[r];i!==t&&(this.groupData[r]=t,this.dispatchCellChangedEvent(n,t,i))},e.prototype.setAggData=function(e){var t=this,n=F([this.aggData,e]),r=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.columnModel.getGridColumn(e),o=t.aggData?t.aggData[e]:void 0,i=r?r[e]:void 0;t.dispatchCellChangedEvent(n,o,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&i(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,r){var o={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:r};this.dispatchLocalEvent(o)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||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,n=!1,r=!1;if(this.childrenAfterGroup)for(var o=0;o0){this.selectionService.updateGroupsFromChildrenSelections();var d={type:Ye.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(d)}n&&this.selectionService.setLastSelectedNode(this)}return c},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var n=this.gridOptionsWrapper.isGroupSelectsChildren(),r=this.selectionService.getLastSelectedNode(),o=this.rowModel.getNodesInRangeForSelection(this,r),i=0;o.forEach((function(r){r.group&&n||!1===e&&t===r||r.selectThisNode(e)&&i++})),this.selectionService.updateGroupsFromChildrenSelections();var a={type:Ye.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(a),i},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){var n=!this.selectable&&t,r=this.selected===t;if(n||r)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(Ye.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterFilter:this.childrenAfterGroup;if(o(n))return 0;for(var r=0,i=0;i=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yo=function(e){function t(){return e.call(this,'\n ')||this}return qo(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(r+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return Ae(e)})),this.addGuiEventListener("dblclick",(function(e){return Ae(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){var n=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):n?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,Uo.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Uo.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Uo.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return!!e&&"function"===typeof e.checkboxSelection},Ko([lo("eCheckbox")],t.prototype,"eCheckbox",void 0),Ko([se],t.prototype,"postConstruct",null),t}(oo),$o=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(Vo=t.DragSourceType||(t.DragSourceType={}))[Vo.ToolPanel=0]="ToolPanel",Vo[Vo.HeaderCell=1]="HeaderCell",Vo[Vo.RowDrag=2]="RowDrag",Vo[Vo.ChartPanel=3]="ChartPanel",(Ho=t.VerticalDirection||(t.VerticalDirection={}))[Ho.Up=0]="Up",Ho[Ho.Down=1]="Down",(Wo=t.HorizontalDirection||(t.HorizontalDirection={}))[Wo.Left=0]="Left",Wo[Wo.Right=1]="Right";var Xo,Zo,Jo,ei=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var r;return $o(n,e),r=n,n.prototype.init=function(){this.ePinnedIcon=Tr("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Tr("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Tr("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Tr("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Tr("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Tr("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Tr("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Tr("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Tr("dropNotAllowed",this.gridOptionsWrapper,null)},n.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={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:n,dragSource:e}),this.dragService.addDragSource(n,t)},n.prototype.removeDragSource=function(e){var t=c(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),y(this.dragSourceAndParamsList,t))},n.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},n.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),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()},n.prototype.onDragging=function(e,t){var n=this,r=this.getHorizontalDirection(e),o=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var i=this.dropTargets.filter((function(t){return n.isMouseOnDropTarget(e,t)})),a=i.length,l=null;if(a>0&&(l=1===a?i[0]:i.reduce((function(e,t){if(!e)return t;var n=e.getContainer(),r=t.getContainer();return n.contains(r)?t:e}))),l!==this.lastDropTarget)this.leaveLastTargetIfExists(e,r,o,t),this.enterDragTargetIfExists(l,e,r,o,t),this.lastDropTarget=l;else if(l&&l.onDragging){var s=this.createDropTargetEvent(l,e,r,o,t);l.onDragging(s)}},n.prototype.enterDragTargetIfExists=function(e,t,n,r,o){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,r,o);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},n.prototype.leaveLastTargetIfExists=function(e,t,n,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var o=this.createDropTargetEvent(this.lastDropTarget,e,t,n,r);this.lastDropTarget.onDragLeave(o)}this.setGhostIcon(null)}},n.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n},n.prototype.allContainersIntersect=function(e,t){for(var n=0,r=t;n=o.left&&e.clientX=o.top&&e.clientYr?t.HorizontalDirection.Left:t.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientY,r=e.clientY;return n===r?null:n>r?t.VerticalDirection.Up:t.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,r,o){var i=e.getContainer(),a=i.getBoundingClientRect(),l=this,s=l.gridApi,u=l.columnApi,c=l.dragItem,d=l.dragSource;return{event:t,x:t.clientX-a.left,y:t.clientY-a.top,vDirection:r,hDirection:n,dragSource:d,fromNudge:o,dragItem:c,api:s,columnApi:u,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,r=on()-2,o=an()-2,i=e.pageY-n/2,a=e.pageX-10,l=this.gridOptionsWrapper.getDocument(),s=window.pageYOffset||l.documentElement.scrollTop,u=window.pageXOffset||l.documentElement.scrollLeft;r>0&&a+t.clientWidth>r+u&&(a=r+u-t.clientWidth),a<0&&(a=0),o>0&&i+t.clientHeight>o+s&&(i=o+s-t.clientHeight),i<0&&(i=0),t.style.left=a+"px",t.style.top=i+"px"}},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=Rn(r.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&un(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;Q(n)&&(n=n()),t.innerHTML=rt(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsWrapper.getDocument(),i=o.fullscreenElement||o.querySelector("body");this.eGhostParent=i,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},n.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),Pn(this.eGhostIcon);var n=null;switch(e||(e=this.dragSource.defaultIconName||r.ICON_NOT_ALLOWED),e){case r.ICON_PINNED:n=this.ePinnedIcon;break;case r.ICON_MOVE:n=this.eMoveIcon;break;case r.ICON_LEFT:n=this.eLeftIcon;break;case r.ICON_RIGHT:n=this.eRightIcon;break;case r.ICON_GROUP:n=this.eGroupIcon;break;case r.ICON_AGGREGATE:n=this.eAggregateIcon;break;case r.ICON_PIVOT:n=this.ePivotIcon;break;case r.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case r.ICON_HIDE:n=this.eHideIcon}dn(this.eGhostIcon,"ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.GHOST_TEMPLATE='
\n \n
\n
',Qo([de("dragService")],n.prototype,"dragService",void 0),Qo([de("environment")],n.prototype,"environment",void 0),Qo([de("columnApi")],n.prototype,"columnApi",void 0),Qo([de("gridApi")],n.prototype,"gridApi",void 0),Qo([se],n.prototype,"init",null),Qo([ue],n.prototype,"clearDragSourceParamsList",null),n=r=Qo([ce("dragAndDropService")],n)}(He),ti=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ni=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ri=function(e){function n(t,n,r,o,i){var a=e.call(this)||this;return a.dragSource=null,a.cellValueFn=t,a.rowNode=n,a.column=r,a.customGui=o,a.dragStartPixels=i,a}return ti(n,e),n.prototype.isCustomGui=function(){return null!=this.customGui},n.prototype.postConstruct=function(){this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(Ar("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource());this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new ai(this,this.beans,this.rowNode,this.column):new ii(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)},n.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isEnableMultiRowDragging())return 1;var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&Y((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(e){var n=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var r={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},o=this.column&&this.column.getColDef().rowDragText;this.dragSource={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=n.getSelectedCount();return o?o(r,e):1===e?n.cellValueFn():e+" rows"},getDragItem:function(){return r},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},n.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},ni([de("beans")],n.prototype,"beans",void 0),ni([se],n.prototype,"postConstruct",null),ni([ue],n.prototype,"removeDragSource",null),n}(oo),oi=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.column=r,o.rowNode=n,o}return ti(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,n=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=Q(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(He),ii=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return ti(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Uo.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)},ni([se],t.prototype,"postConstruct",null),t}(oi),ai=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return ti(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Ye.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ye.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),r=this.beans.dragAndDropService.hasExternalDropZones(),o=t&&!r||n;this.setDisplayedOrVisible(o)},ni([se],t.prototype,"postConstruct",null),t}(oi),li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),si=function(){return(si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ci=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.prototype.init=function(e,t,n,r,o,i,a){this.params=a,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=o,this.comp=e,this.compClass=i;var l=this.isTopLevelFooter(),s=this.isEmbeddedRowMismatch(),u=null==a.value,c=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var d=a.node;if(d.footer)c=(a.colDef&&a.colDef.showRowGroup)!==(d.rowGroupColumn&&d.rowGroupColumn.getColId())}this.cellIsBlank=!l&&(s||u||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===Oe.PINNED_LEFT,t=this.params.pinned===Oe.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var n=t.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}o(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var r=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=r}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),n=e.valueFormatted,r=e.value,o=null!=n?n:r;this.comp.setInnerRenderer(t,o)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(!t||!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,r=this.params,o=r.value,i=r.scope,a=r.node,l=this.valueFormatterService.formatValue(e,a,i,o);return si(si({},n),{valueFormatted:l})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var n=A(this.params);n.value=this.params.value,"function"===typeof e?t=e(n):"string"===typeof e?t=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(e){return e&&e.componentClass==t.compClass};if(n&&!r(n))return n;var o=this.displayedGroupNode.rowGroupColumn,i=o?o.getColDef():void 0;if(i){var a=this.userComponentFactory.getCellRendererDetails(i,e);if(a&&!r(a))return a;if(r(a)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Uo.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,t=Ar("groupExpanded",this.gridOptionsWrapper,null),n=Ar("groupContracted",this.gridOptionsWrapper,null);t&&this.eExpanded.appendChild(t),n&&this.eContracted.appendChild(n);var r=e.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(r,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,Uo.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var o=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Uo.EVENT_ALL_CHILDREN_COUNT_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Uo.EVENT_MASTER_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Uo.EVENT_HAS_CHILDREN_CHANGED,o)},t.prototype.onExpandClicked=function(e){De(e)||(Ae(e),this.onExpandOrContract())},t.prototype.onExpandOrContract=function(){var e=this.displayedGroupNode,t=!e.expanded;e.setExpanded(t)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var n=this.params.column;return null==n||"string"!==typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,n=e.displayedGroupNode,r=e.columnModel,o=t.node,i=this.isExpandable();if(i){var a=!!this.showingValueForOpenedParent||o.expanded;this.comp.setExpandedDisplayed(a),this.comp.setContractedDisplayed(!a)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var l=r.isPivotMode(),s=l&&n.leafGroup,u=i&&!s,c=o.footer&&-1===o.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),l?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",s):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,Uo.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node,n=!!e.colDef,r=this.gridOptionsWrapper.isTreeData(),o=!n||r||!0===e.colDef.showRowGroup?t.uiLevel:0;e.padding>=0&&Y((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, 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"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+o,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new ri((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},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,t=this.displayedGroupNode,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var r=new Yo;this.getContext().createBean(r),r.init({rowNode:t,column:this.params.column}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(r)}))}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){Nr(e,co.ENTER)&&!this.params.suppressEnterExpand&&(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){De(e)||(Fe(this.eExpanded,e)||Fe(this.eContracted,e)||this.onExpandOrContract())},ui([de("expressionService")],t.prototype,"expressionService",void 0),ui([de("valueFormatterService")],t.prototype,"valueFormatterService",void 0),ui([de("columnModel")],t.prototype,"columnModel",void 0),ui([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ui([de("gridOptions")],t.prototype,"gridOptions",void 0),t}(He),di=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return di(t,e),t.prototype.init=function(e){var t=this,n={setInnerRenderer:function(e,n){return t.setRenderDetails(e,n)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,n){return t.addOrRemoveCssClass(e,n)},setContractedDisplayed:function(e){return hn(t.eContracted,e)},setExpandedDisplayed:function(e){return hn(t.eExpanded,e)},setCheckboxVisible:function(e){return dn(t.eCheckbox,"ag-invisible",!e)}};this.createManagedBean(new ci).init(n,this.getGui(),this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e)},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var r=this.userComponentFactory.createCellRenderer(e);if(!r)return;r.then((function(e){if(e){var t=function(){return n.context.destroyBean(e)};n.isAlive()?(n.eValue.appendChild(e.getGui()),n.addDestroyFunc(t)):t()}}))}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='\n \n \n \n \n \n ',pi([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),pi([lo("eExpanded")],t.prototype,"eExpanded",void 0),pi([lo("eContracted")],t.prototype,"eContracted",void 0),pi([lo("eCheckbox")],t.prototype,"eCheckbox",void 0),pi([lo("eValue")],t.prototype,"eValue",void 0),pi([lo("eChildCount")],t.prototype,"eChildCount",void 0),t}(oo),hi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return hi(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 n=Math.abs(t),o=e.formatValue(n),i=r(o)?o:n,a=t>=0;this.eDelta.innerHTML=a?"\u2191"+i:"\u2193"+i,dn(this.eDelta,"ag-value-change-delta-up",a),dn(this.eDelta,"ag-value-change-delta-down",!a)},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(){cn(this.eValue,"ag-value-change-value-highlight"),Pn(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(r(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:r(e.value)?this.eValue.innerHTML=t:Pn(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof t&&"number"===typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&un(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='',vi([de("filterManager")],t.prototype,"filterManager",void 0),t}(oo),mi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return mi(t,e),t.prototype.init=function(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=Rn(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&un(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;return o(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,r(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:r(e.value)?this.eCurrent.innerHTML=t:Pn(this.eCurrent),!0))},t.TEMPLATE='\n \n ',yi([de("filterManager")],t.prototype,"filterManager",void 0),t}(oo),Oi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_i=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Oi(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},t.prototype.setupLoading=function(){var e=Ar("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='
\n \n \n
',wi([lo("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),wi([lo("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(oo),Ci=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ei=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mi=function(e){function t(){var t=e.call(this,'
')||this;return t.startedByEnter=!1,t}return Ci(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,o(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=e.keyPress===co.ENTER;var n=!1;e.values.forEach((function(r){var o={value:r},i=t.valueFormatterService.formatValue(e.column,null,null,r),a=null!==i&&void 0!==i;o.text=a?i:r,t.eSelect.addOption(o),n=n||e.value===r})),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Ei([de("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ei([lo("eSelect")],t.prototype,"eSelect",void 0),t}(ao),Pi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pi(t,e),t.prototype.isPopup=function(){return!0},t}(ho),Si=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Si(t,e),t.prototype.isPopup=function(){return!0},t}(Mi),ji=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ti=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ai=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ji(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),r(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t===co.LEFT||t===co.UP||t===co.RIGHT||t===co.DOWN||e.shiftKey&&t===co.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='
\n \n
',Ti([lo("eTextArea")],t.prototype,"eTextArea",void 0),t}(ao),Di=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ni=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zi=function(e){function t(){return e.call(this,"numberFilter")||this}return Di(t,e),t.prototype.mapRangeFromModel=function(e){return{from:e.filter,to:e.filterTo}},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.resetUiToDefaults=function(t){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){[n.eValueFrom1,n.eValueFrom2,n.eValueTo1,n.eValueTo2].forEach((function(e){return e.setValue(null,t)})),n.resetPlaceholder()}))},t.prototype.setConditionIntoUi=function(e,t){var n=t===uo.One,r=n?this.eValueFrom1:this.eValueFrom2,o=n?this.eValueTo1:this.eValueTo2;r.setValue(e?""+e.filter:null),o.setValue(e?""+e.filterTo:null)},t.prototype.setValueFromFloatingFilter=function(e){this.eValueFrom1.setValue(e),this.eValueTo1.setValue(null),this.eValueFrom2.setValue(null),this.eValueTo2.setValue(null)},t.prototype.comparator=function(){return function(e,t){return e===t?0:e\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValueFrom'+t+'">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValueTo'+t+'">\n "},t.prototype.isConditionUiComplete=function(e){var t=e===uo.One,n=t?this.getCondition1Type():this.getCondition2Type();if(n===So.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(n))return!0;var r=t?this.eValueFrom1:this.eValueFrom2,o=t?this.eValueTo1:this.eValueTo2;return null!=this.stringToFloat(r.getValue())&&(!this.showValueTo(n)||null!=this.stringToFloat(o.getValue()))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if("number"===typeof e)return e;var t=n(e);return null!=t&&""===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||"-"===t.trim()?null:parseFloat(t)},t.prototype.createCondition=function(e){var t=e===uo.One,n=t?this.getCondition1Type():this.getCondition2Type(),r=t?this.eValueFrom1:this.eValueFrom2,o=this.stringToFloat(r.getValue()),i={filterType:this.getFilterType(),type:n};if(!this.doesFilterHaveHiddenInput(n)&&(i.filter=o,this.showValueTo(n))){var a=t?this.eValueTo1:this.eValueTo2,l=this.stringToFloat(a.getValue());i.filterTo=l}return i},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.getCondition1Type(),n=this.getCondition2Type();hn(this.eValueFrom1.getGui(),this.showValueFrom(t)),hn(this.eValueTo1.getGui(),this.showValueTo(t)),hn(this.eValueFrom2.getGui(),this.showValueFrom(n)),hn(this.eValueTo2.getGui(),this.showValueTo(n))},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Qt()||Yt()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[jo.EQUALS,jo.NOT_EQUAL,jo.LESS_THAN,jo.LESS_THAN_OR_EQUAL,jo.GREATER_THAN,jo.GREATER_THAN_OR_EQUAL,jo.IN_RANGE],Ni([lo("eValueFrom1")],t.prototype,"eValueFrom1",void 0),Ni([lo("eValueTo1")],t.prototype,"eValueTo1",void 0),Ni([lo("eValueFrom2")],t.prototype,"eValueFrom2",void 0),Ni([lo("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(jo),ki=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fi=function(e){function t(){return e.call(this)||this}return ki(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=n.replace("[LOADING...]",r("loadingOoo","Loading..."));this.setTemplate(o)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',t}(oo),Li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ii=function(e){function t(){return e.call(this)||this}return Li(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=n.replace("[NO_ROWS_TO_SHOW]",r("noRowsToShow","No Rows To Show"));this.setTemplate(o)},t.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',t}(oo),Gi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bi=function(e){function t(){return e.call(this,'
')||this}return Gi(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=rt(t)},t}(ao),Vi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wi=function(e){function t(){return e.call(this,'\n
\n \n
')||this}return Vi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(Kt()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11; reverting to text date picker"):t.type="date"),this.addManagedListener(t,"mousedown",(function(){return t.focus()})),this.addManagedListener(this.eDateInput.getInputElement(),"input",(function(t){t.target===document.activeElement&&e.onDateChanged()}))},t.prototype.getDate=function(){return _r(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(wr(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Qt()||Xt()},Hi([lo("eDateInput")],t.prototype,"eDateInput",void 0),t}(oo),Ui=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ui(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,n=this.conditionToString(t.condition1),r=this.conditionToString(t.condition2);return n+" "+t.operator+" "+r}var o=e,i=this.optionsFactory.getCustomOption(o.type);return i&&i.hideFilterInput?(this.gridOptionsWrapper.getLocaleTextFunc()(i.displayKey,i.displayName),i.displayName):this.conditionToString(o)},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}else this.lastType=this.optionsFactory.getDefaultOption()},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 go,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!!e&&!this.doesFilterHaveHiddenInput(e)&&e!==So.IN_RANGE&&e!==So.EMPTY},t}(oo),Ki=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$i=function(e){function t(){return e.call(this,'\n ')||this}return Ki(t,e),t.prototype.getDefaultFilterOptions=function(){return Do.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){var t=e.type,n=_r(e.dateFrom);if(t===So.IN_RANGE){var r=_r(e.dateTo);return wr(n,!1)+"-"+wr(r,!1)}return null==n?""+t:""+wr(n,!1)},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){hn(this.eDateWrapper,e),hn(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var r=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(r),r){if(t){var o=t;this.dateComp.setDate(_r(o.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=wr(this.dateComp.getDate());this.params.parentFilterInstance((function(n){n&&n.onFloatingFilterChanged(e.getLastType(),t)}))},t.prototype.createDateComponent=function(){var e=this,t=Eo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:ne(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new vo(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},Yi([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Yi([lo("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Yi([lo("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(qi),Qi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zi=function(e){function t(){return e.call(this,"textFilter")||this}return Qi(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getCleanValue=function(e){var r=n(e.getValue());return this.textFilterParams.trimInput?t.trimInput(r):r},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValue1.onValueChange(t),this.eValue2.onValueChange(t)},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.comparator=this.textFilterParams.textCustomComparator||t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===uo.One?this.eValue1:this.eValue2).setValue(e?e.filter:null)},t.prototype.createCondition=function(e){var t=e===uo.One,n=t?this.getCondition1Type():this.getCondition2Type(),r=t?this.eValue1:this.eValue2,o=this.getCleanValue(r);r.setValue(o,!0);var i={filterType:this.getFilterType(),type:n};return this.doesFilterHaveHiddenInput(n)||(i.filter=o),i},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(t){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){n.forEachInput((function(e){return e.setValue(null,t)})),n.resetPlaceholder()}))},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("filterOoo");this.forEachInput((function(n){n.setInputPlaceholder(t),n.setInputAriaLabel(e("ariaFilterValue","Filter Value"))}))},t.prototype.forEachInput=function(e){x([this.eValue1,this.eValue2],e)},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.setValue(e),this.eValue2.setValue(null)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===uo.One?"1":"2";return'\n '},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),hn(this.eCondition1Body,this.showValueFrom(this.getCondition1Type())),hn(this.eCondition2Body,this.isCondition2Enabled()&&this.showValueFrom(this.getCondition2Type()))},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),t&&t.suppressFocus||this.eValue1.getInputElement().focus()},t.prototype.isConditionUiComplete=function(e){var t=e===uo.One,n=t?this.getCondition1Type():this.getCondition2Type();return n!==So.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||null!=this.getCleanValue(t?this.eValue1:this.eValue2))},t.prototype.individualConditionPasses=function(e,t){var n=t.filter,r=t.type,o=this.textFilterParams.valueGetter(e.node),i=this.formatter(o),a=this.optionsFactory.getCustomOption(r);if(a&&(null!=n||a.hideFilterInput))return a.test(n,i);if(null==o)return r===So.NOT_EQUAL||r===So.NOT_CONTAINS;var l=this.formatter(n);return this.comparator(r,i,l)},t.DEFAULT_FILTER_OPTIONS=[So.CONTAINS,So.NOT_CONTAINS,So.EQUALS,So.NOT_EQUAL,So.STARTS_WITH,So.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,n,r){switch(e){case t.CONTAINS:return n.indexOf(r)>=0;case t.NOT_CONTAINS:return n.indexOf(r)<0;case t.EQUALS:return n===r;case t.NOT_EQUAL:return n!=r;case t.STARTS_WITH:return 0===n.indexOf(r);case t.ENDS_WITH:var o=n.lastIndexOf(r);return o>=0&&o===n.length-r.length;default:return console.warn('AG Grid: Unexpected type of filter "'+e+'", it looks like the filter was configured with incorrect Filter Options'),!1}},Xi([lo("eValue1")],t.prototype,"eValue1",void 0),Xi([lo("eValue2")],t.prototype,"eValue2",void 0),t}(So),Ji=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ea=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ji(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n ')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=Eo.isUseApplyButton(this.params.filterParams);var n=Eo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=ne(this.syncUpWithParentFilter.bind(this),n),o=this.eFloatingFilterInput.getGui();this.addManagedListener(o,"input",r),this.addManagedListener(o,"keypress",r),this.addManagedListener(o,"keydown",r);var i=t.column.getDefinition();i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),l=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+l("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=Nr(e,co.ENTER);if(!this.applyActive||n){var r=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(r=Zi.trimInput(r),this.eFloatingFilterInput.setValue(r,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),r)}))}},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},ea([de("columnModel")],t.prototype,"columnModel",void 0),ea([lo("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),ea([se],t.prototype,"postConstruct",null),t}(qi),na=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return na(t,e),t.prototype.getDefaultFilterOptions=function(){return zi.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==So.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(ta),oa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ia=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oa(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return Zi.DEFAULT_FILTER_OPTIONS},t}(ta),aa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),la=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:Wi,agColumnHeader:Fo,agColumnGroupHeader:Go,agTextColumnFloatingFilter:ia,agNumberColumnFloatingFilter:ra,agDateColumnFloatingFilter:$i,agAnimateShowChangeCellRenderer:gi,agAnimateSlideCellRenderer:bi,agGroupCellRenderer:fi,agGroupRowRenderer:fi,agLoadingCellRenderer:_i,agCellEditor:ho,agTextCellEditor:ho,agSelectCellEditor:Mi,agPopupTextCellEditor:xi,agPopupSelectCellEditor:Ri,agLargeTextCellEditor:Ai,agTextColumnFilter:Zi,agNumberColumnFilter:zi,agDateColumnFilter:Do,agLoadingOverlay:Fi,agNoRowsOverlay:Ii,agTooltipComponent:Bi},t.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"}},t.jsComponents={},t.frameworkComponents={},t}return aa(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&T(this.gridOptions.components,(function(t,n){return e.registerComponent(t,n)})),null!=this.gridOptions.frameworkComponents&&T(this.gridOptions.frameworkComponents,(function(t,n){return e.registerFwComponent(t,n)}))},t.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},t.prototype.registerComponent=function(e,t){var n=this.translateIfDeprecated(e);this.frameworkComponents[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComponents[n]=t},t.prototype.registerFwComponent=function(e,t){var n=this.translateIfDeprecated(e);this.jsComponents[n]?console.error("Trying to register a component that you have already registered for plain javascript: "+n):this.frameworkComponents[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),n=this.frameworkComponents[t]||this.getFrameworkOverrides().frameworkComponent(t);if(n)return{componentFromFramework:!0,component:n};var r=this.jsComponents[t];if(r)return{componentFromFramework:!1,component:r};var o=this.agGridDefaults[t];return o?{componentFromFramework:!1,component:o}:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(Y((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},la([de("gridOptions")],t.prototype,"gridOptions",void 0),la([se],t.prototype,"init",null),t=la([ce("userComponentRegistry")],t)}(He),ua={propertyName:"dateComponent",isCellRenderer:function(){return!1}},ca={propertyName:"headerComponent",isCellRenderer:function(){return!1}},da={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},pa={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},fa={propertyName:"cellEditor",isCellRenderer:function(){return!1}},ha={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},va={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},ga={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},ma={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},ya={propertyName:"filter",isCellRenderer:function(){return!1}},ba={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},Oa={propertyName:"toolPanel",isCellRenderer:function(){return!1}},wa={propertyName:"statusPanel",isCellRenderer:function(){return!1}},_a=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ca=function(){return(Ca=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _a(t,e),t.prototype.newDateComponent=function(e){return this.lookupAndCreateComponent(this.gridOptions,e,ua,"agDateInput")},t.prototype.newHeaderComponent=function(e){return this.lookupAndCreateComponent(e.column.getColDef(),e,ca,"agColumnHeader")},t.prototype.newHeaderGroupComponent=function(e){return this.lookupAndCreateComponent(e.columnGroup.getColGroupDef(),e,da,"agColumnGroupHeader")},t.prototype.newFullWidthCellRenderer=function(e,t,n){return this.lookupAndCreateComponent(this.gridOptions,e,{propertyName:t,isCellRenderer:function(){return!0}},n)},t.prototype.getFullWidthCellRendererDetails=function(e,t,n){return this.getCompDetails(this.gridOptions,t,n,e)},t.prototype.createFullWidthCellRenderer=function(e,t){return this.createAndInitComponent(e,{propertyName:t,isCellRenderer:function(){return!0}})},t.prototype.newCellRenderer=function(e,t){return this.lookupAndCreateComponent(e,t,pa,null,!0)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,ha.propertyName,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,ha.propertyName,null,t)},t.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.lookupAndCreateComponent(this.gridOptions.groupRowRendererParams,e,ha,null,!0)},t.prototype.newInnerCellRenderer=function(e,t){return this.lookupAndCreateComponent(e,t,ha,null)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,pa.propertyName,null,t)},t.prototype.createCellRenderer=function(e){return this.createAndInitComponent(e,pa)},t.prototype.newCellEditor=function(e,t){return this.lookupAndCreateComponent(e,t,fa,"agCellEditor")},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,fa.propertyName,"agCellEditor",t,!0)},t.prototype.createCellEditor=function(e){return this.createAndInitComponent(e,fa)},t.prototype.newLoadingOverlayComponent=function(e){return this.lookupAndCreateComponent(this.gridOptions,e,va,"agLoadingOverlay")},t.prototype.newNoRowsOverlayComponent=function(e){return this.lookupAndCreateComponent(this.gridOptions,e,ga,"agNoRowsOverlay")},t.prototype.newTooltipComponent=function(e){return this.lookupAndCreateComponent(e.colDef,e,ma,"agTooltipComponent")},t.prototype.newFilterComponent=function(e,t,n){return this.lookupAndCreateComponent(e,t,ya,n,!1)},t.prototype.newSetFilterCellRenderer=function(e,t){return this.lookupAndCreateComponent(e,t,pa,null,!0)},t.prototype.newFloatingFilterComponent=function(e,t,n){return this.lookupAndCreateComponent(e,t,ba,n,!0)},t.prototype.newToolPanelComponent=function(e,t){return this.lookupAndCreateComponent(e,t,Oa)},t.prototype.newStatusPanelComponent=function(e,t){return this.lookupAndCreateComponent(e,t,wa)},t.prototype.getCompDetails=function(e,t,n,r,o){void 0===o&&(o=!1);var i=this.lookupComponent(e,t,r,n);if(i&&i.componentClass){var a=this.mergeParamsWithApplicationProvidedParams(e,t,r,i.params);return Ca(Ca({},i),{params:a})}o&&this.logComponentMissing(e,t)},t.prototype.lookupAndCreateComponent=function(e,t,n,r,o){void 0===o&&(o=!1);var i=this.getCompDetails(e,n.propertyName,r,t,!o);return i?this.createAndInitComponent(i,n,r):null},t.prototype.createAndInitComponent=function(e,t,n){if(!e)return null;var r=e.params,o=e.componentClass,i=e.componentFromFramework,a=this.createComponentInstance(t,n,o,i);if(!a)return null;this.addReactHacks(r);var l=this.initComponent(a,r);return null==l?$r.resolve(a):l.then((function(){return a}))},t.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=A(t));var n=this.context.getBean("frameworkComponentWrapper");n&&(e.frameworkComponentWrapper=n)},t.prototype.createUserComponentFromConcreteClass=function(e,t){var n=new e;return this.initComponent(n,t),n},t.prototype.lookupComponent=function(e,t,n,r){var o,i,a,l=this;if(void 0===n&&(n=null),e){var s=e,u=s[t+"Selector"],c=u?u(n):null;c?(i=c.component,a=c.frameworkComponent,o=c.params):(i=s[t],a=s[t+"Framework"]),!0===i&&(i=void 0)}var d=function(e){var t=l.userComponentRegistry.retrieve(e);t?(i=t.componentFromFramework?void 0:t.component,a=t.componentFromFramework?t.component:void 0):(i=void 0,a=void 0)};return"string"===typeof i&&d(i),null==i&&null==a&&null!=r&&d(r),i&&!this.agComponentUtils.doesImplementIComponent(i)&&(i=this.agComponentUtils.adaptFunction(t,i)),i||a?{componentFromFramework:null==i,componentClass:i||a,params:o}:null},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,r){void 0===r&&(r=null);var o={};I(o,n);var i=e?e[t+"Params"]:null;null!=i&&("function"===typeof i?I(o,i(n)):"object"===typeof i&&I(o,i));return I(o,r),o},t.prototype.logComponentMissing=function(e,t,n){var r=e?e[t]:n,o=r||n;console.error("Could not find component "+o+", did you forget to configure this component?")},t.prototype.createComponentInstance=function(e,t,n,r){var o=e.propertyName;if(!r)return new n;if(!this.frameworkComponentWrapper)return console.warn("AG Grid - Because you are using our new React UI (property reactUi=true), it is not possible to use a React Component for "+e.propertyName+". This is work in progress and we plan to support this soon. In the meantime, please either set reactUi=false, or replace this component with one written in JavaScript."),null;var i=n,a=this.componentMetadataProvider.retrieve(o);return this.frameworkComponentWrapper.wrap(i,a.mandatoryMethodList,a.optionalMethodList,e,t)},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},Ea([de("gridOptions")],t.prototype,"gridOptions",void 0),Ea([de("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Ea([de("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Ea([de("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Ea([pe("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=Ea([ce("userComponentFactory")],t)}(He);(Xo=t.RowGroupingDisplayType||(t.RowGroupingDisplayType={})).SINGLE_COLUMN="singleColumn",Xo.MULTIPLE_COLUMNS="multipleColumns",Xo.GROUP_ROWS="groupRows",Xo.CUSTOM="custom",(Zo=t.TreeDataDisplayType||(t.TreeDataDisplayType={})).AUTO="auto",Zo.CUSTOM="custom",(Jo=t.ServerSideStoreType||(t.ServerSideStoreType={})).Full="full",Jo.Partial="partial";var Pa=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 n=[];return t.forEach((function(t){var r=e.DEFAULT_BY_KEY[t];r?n.push(r):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===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var n=[];return t?(t.forEach((function(t){var r=null;if("string"===typeof t){var o=e.DEFAULT_BY_KEY[t];if(!o)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(","));r=o}else r=t;n.push(r)})),n):n},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}(),xa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sa=function(e,t){return function(n,r){t(n,r,e)}},Ra=function(){for(var e=0,t=0,n=arguments.length;t0?n:t}var Aa,Da,Na=function(){function e(){this.propertyEventService=new be,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var n;return n=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,this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=Pa.parse(this.gridOptions.sideBar));var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with '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.isRowModelServerSide()){var o=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&we.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),r=Ra(zt.ALL_PROPERTIES,zt.FRAMEWORK_PROPERTIES);e.checkProperties(n,r,r,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=Ra(xt.ALL_PROPERTIES,xt.FRAMEWORK_PROPERTIES,d(Ye).map((function(e){return jt.getCallbackForEvent(e)}))),n=Ra(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,n,r,o){var i=Er(e,t,n);T(i,(function(e,t){console.warn("ag-grid: invalid "+r+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+r+" properties please check: "+o)},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var r=this.getDomDataKey(),i=e[r];o(i)&&(i={},e[r]=i),i[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return ja(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return ja(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return ja(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return ja(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===Oe.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===Oe.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===Oe.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return o(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===Oe.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return ja(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return ja(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return ja(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return ja(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return ja(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return ja(this.gridOptions.suppressTouch)},e.prototype.isMaintainColumnOrder=function(){return ja(this.gridOptions.maintainColumnOrder)},e.prototype.isSuppressRowTransform=function(){return ja(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return ja(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return ja(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!ja(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return ja(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){var e=ja(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 ja(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isColumnHoverHighlight=function(){return ja(this.gridOptions.columnHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return ja(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return ja(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMaintainOrder=function(){return ja(this.gridOptions.groupMaintainOrder)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType(t.RowGroupingDisplayType.MULTIPLE_COLUMNS,this.gridOptions.groupDisplayType):ja(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType(t.RowGroupingDisplayType.GROUP_ROWS,this.gridOptions.groupDisplayType))},e.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType(t.RowGroupingDisplayType.CUSTOM,this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType(t.TreeDataDisplayType.CUSTOM,this.gridOptions.treeDataDisplayType)},e.prototype.isGroupRemoveSingleChildren=function(){return ja(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return ja(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return ja(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return ja(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return ja(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return ja(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return ja(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return ja(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isPivotSuppressAutoColumn=function(){return ja(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return ja(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return ja(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return ja(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return ja(this.gridOptions.suppressRowDrag)},e.prototype.isSuppressMoveWhenRowDragging=function(){return ja(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isEnableMultiRowDragging=function(){return ja(this.gridOptions.enableMultiRowDragging)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||Oe.DOM_LAYOUT_NORMAL;return-1===[Oe.DOM_LAYOUT_PRINT,Oe.DOM_LAYOUT_AUTO_HEIGHT,Oe.DOM_LAYOUT_NORMAL].indexOf(e)?(Y((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+Oe.DOM_LAYOUT_NORMAL+", "+Oe.DOM_LAYOUT_AUTO_HEIGHT+" and "+Oe.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),Oe.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return ja(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return ja(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return ja(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return ja(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return ja(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return ja(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return ja(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return ja(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return ja(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return ja(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return ja(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return ja(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return ja(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return ja(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return ja(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return ja(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return ja(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return ja(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return this.gridOptions.undoRedoCellEditingLimit},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.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},e.prototype.getServerSideStoreParamsFunc=function(){return this.gridOptions.getServerSideStoreParams},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.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.gridOptions.isApplyServerSideTransaction},e.prototype.getDefaultGroupOrderComparator=function(){return this.gridOptions.defaultGroupOrderComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return ja(this.gridOptions.embedFullWidthRows)||ja(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return ja(this.gridOptions.detailRowAutoHeight)},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.isImmutableData=function(){return ja(this.gridOptions.immutableData)},e.prototype.isEnsureDomOrder=function(){return ja(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!ja(this.gridOptions.enableCharts)&&we.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return ja(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return ja(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return ja(this.gridOptions.stopEditingWhenCellsLoseFocus)},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"number"==typeof(e=this.gridOptions.paginationPageSize)?e:"string"==typeof e?parseInt(e,10):void 0;var e},e.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||ja(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return Ta(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return ja(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return ja(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isEnableRtl=function(){return ja(this.gridOptions.enableRtl)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return ja(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return ja(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return ja(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 ja(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return ja(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return ja(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return ja(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return ja(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return ja(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return ja(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return ja(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return ja(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return ja(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return ja(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return ja(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return ja(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return ja(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return ja(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return ja(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getAsyncTransactionWaitMillis=function(){return r(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:Oe.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return ja(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&ja(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return ja(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return ja(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return ja(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){return ja(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isShowOpenedGroup=function(){return ja(this.gridOptions.showOpenedGroup)},e.prototype.isEnableRangeSelection=function(){return we.isRegistered(t.ModuleNames.RangeSelectionModule)&&ja(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return ja(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return ja(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(Y((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},e.prototype.isSuppressMultiRangeSelection=function(){return ja(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return ja(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return ja(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(){return!!ja(this.gridOptions.masterDetail)&&we.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return ja(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return r(e)&&e>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 ja(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return ja(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return ja(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return ja(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return ja(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return ja(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return ja(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+nt(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return ja(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return ja(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return ja(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return ja(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.gridOptions.isServerSideGroupOpenByDefault},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.gridOptions.isGroupOpenByDefault},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.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextHeaderFunc=function(){return this.gridOptions.navigateToNextHeader},e.prototype.getTabToNextHeaderFunc=function(){return this.gridOptions.tabToNextHeader},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){return!!ja(this.gridOptions.treeData)&&we.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return ja(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return ja(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return ja(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return ja(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 Ta(this.gridOptions.viewportRowModelPageSize,5)},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return ja(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.isServerSideFilteringAlwaysResets=function(){return ja(this.gridOptions.serverSideFilteringAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getAllowProcessChartOptions=function(){return this.gridOptions.allowProcessChartOptions},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return r(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=!1);var r=this.gridOptions,o=r[e];if(n||o!==t){r[e]=t;var i={type:e,currentValue:t,previousValue:o};this.propertyEventService.dispatchEvent(i)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(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.getTooltipShowDelay=function(){var e=this.gridOptions.tooltipShowDelay;return r(e)?(e<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,e)):null},e.prototype.isTooltipMouseTrack=function(){return ja(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return ja(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&r(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&r(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(r(e)&&e>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return r(t)?Math.max(t,n.MIN_COL_WIDTH):n.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth=0?this.gridOptions.scrollbarWidth:tn();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:Ye.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.enableOldSetFilterModel&&console.warn("AG Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards."),e.floatingFilter&&(console.warn("AG Grid: since v23.1, floatingFilter on the gridOptions is deprecated. Please use floatingFilter on the colDef instead."),e.defaultColDef||(e.defaultColDef={}),null==e.defaultColDef.floatingFilter&&(e.defaultColDef.floatingFilter=!0)),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected.");var n=function(t,n,r){null!=e[t]&&(console.warn("ag-grid: since version "+r+", '"+t+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==e[n]&&(e[n]=e[t]))};if(n("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),n("deltaRowDataMode","immutableData","23.1.x"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),n("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var r=e.groupRowRendererParams;e.groupRowInnerRenderer&&(r.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(r.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(r.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&(console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.detailRowAutoHeight=!0),e.suppressColumnStateEvents&&(console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.detailRowAutoHeight=!0),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType=t.RowGroupingDisplayType.MULTIPLE_COLUMNS),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType=t.RowGroupingDisplayType.GROUP_ROWS),e.groupSuppressAutoColumn){var o=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+o+" = 'custom'`"),e.groupDisplayType=t.RowGroupingDisplayType.CUSTOM}e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `defaultGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator)},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&o(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()&&(o(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."),o(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.gridOptions.localeText;return function(t,n){return e&&e[t]?e[t]:n}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=jt.getCallbackForEvent(e);"function"===typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||o(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 n={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context},r=this.gridOptions.getRowHeight(n);if(this.isNumeric(r))return 0===r&&Y((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,r),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var o=this.getDefaultRowHeight();return{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"===typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.prototype.matchesGroupDisplayType=function(e,n){var r=L(t.RowGroupingDisplayType);return r.indexOf(n)<0?(console.warn("AG Grid: '"+n+"' is not a valid groupDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):n===e},e.prototype.matchesTreeDataDisplayType=function(e,n){var r=L(t.TreeDataDisplayType);return r.indexOf(n)<0?(console.warn("AG Grid: '"+n+"' is not a valid treeDataDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):n===e},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_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresentFunc",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",e.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",e.PROP_PROCESS_CHART_OPTIONS="processChartOptions",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",xa([de("gridOptions")],e.prototype,"gridOptions",void 0),xa([de("columnModel")],e.prototype,"columnModel",void 0),xa([de("eventService")],e.prototype,"eventService",void 0),xa([de("environment")],e.prototype,"environment",void 0),xa([Sa(0,he("gridApi")),Sa(1,he("columnApi"))],e.prototype,"agWire",null),xa([ue],e.prototype,"destroy",null),xa([se],e.prototype,"init",null),e=n=xa([ce("gridOptionsWrapper")],e)}(),za=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 n=0;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},La=function(e,t){return function(n,r){t(n,r,e)}},Ia=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ka(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()&&this.addManagedListener(this.eventService,Ye.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Ye.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return T(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return T(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;T(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===Oe.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new za(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,n={},r=0;return T(this.selectedNodes,(function(o,i){if(i&&i.id!==e.id){var a=t.selectedNodes[i.id];r+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),T(n,(function(e,t){t.calculateSelectedFromChildren()})),r},t.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)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){r(t)&&e.id!==t.id&&t&&(r(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},t.prototype.syncInNewRowNode=function(e){r(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===Oe.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var r=0,o=n.length;r=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ba=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnModel.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},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.columnModel.moveColumnByIndex(e,t,"api")):this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n,r){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,r)},e.prototype.setColumnWidths=function(e,t,n){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,n)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){return this.columnModel.autoSizeColumns(e,t,"api")},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(qr.removeAllReferences.bind(window,this,"Column API"),100)},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.columnModel.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.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.columnModel.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},e.prototype.setColumnState=function(e){return this.columnModel.applyColumnState({state:e,applyOrder:!0},"api")},Ga([de("columnModel")],e.prototype,"columnModel",void 0),Ga([ue],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Ga([ce("columnApi")],e)}();(Aa=t.SelectionHandleType||(t.SelectionHandleType={}))[Aa.FILL=0]="FILL",Aa[Aa.RANGE=1]="RANGE",(Da=t.CellRangeType||(t.CellRangeType={}))[Da.VALUE=0]="VALUE",Da[Da.DIMENSION=1]="DIMENSION";var Va,Ha="ag-cell-range-selected",Wa=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e){this.cellComp=e,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Ha,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),this.cellComp.setAriaSelected(this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle()},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,r=!t&&e.right,o=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return _([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,n=this,r=this.beans.gridOptionsWrapper.isEnableRtl(),o=!1,i=!1,a=!1,l=!1,s=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,d=u.columnModel;r?(e=d.getDisplayedColAfter(s),t=d.getDisplayedColBefore(s)):(e=d.getDisplayedColBefore(s),t=d.getDisplayedColAfter(s));var p=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(n.cellCtrl.getCellPosition(),e)}));e||(l=!0),t||(i=!0);for(var f=0;f=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ja=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Za([de("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Za([de("paginationProxy")],e.prototype,"paginationProxy",void 0),Za([de("context")],e.prototype,"context",void 0),Za([de("columnApi")],e.prototype,"columnApi",void 0),Za([de("gridApi")],e.prototype,"gridApi",void 0),Za([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Za([de("expressionService")],e.prototype,"expressionService",void 0),Za([de("rowRenderer")],e.prototype,"rowRenderer",void 0),Za([de("$compile")],e.prototype,"$compile",void 0),Za([de("templateService")],e.prototype,"templateService",void 0),Za([de("valueService")],e.prototype,"valueService",void 0),Za([de("eventService")],e.prototype,"eventService",void 0),Za([de("columnModel")],e.prototype,"columnModel",void 0),Za([de("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Za([de("navigationService")],e.prototype,"navigationService",void 0),Za([de("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Za([pe("rangeService")],e.prototype,"rangeService",void 0),Za([de("focusService")],e.prototype,"focusService",void 0),Za([pe("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Za([de("popupService")],e.prototype,"popupService",void 0),Za([de("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Za([de("stylingService")],e.prototype,"stylingService",void 0),Za([de("columnHoverService")],e.prototype,"columnHoverService",void 0),Za([de("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Za([de("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Za([de("animationFrameService")],e.prototype,"taskQueue",void 0),Za([de("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Za([de("sortController")],e.prototype,"sortController",void 0),Za([de("filterManager")],e.prototype,"filterManager",void 0),Za([de("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Za([de("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Za([de("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Za([de("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Za([de("selectionService")],e.prototype,"selectionService",void 0),Za([pe("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Za([de("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Za([de("rowModel")],e.prototype,"rowModel",void 0),Za([de("ctrlsService")],e.prototype,"ctrlsService",void 0),Za([de("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),Za([de("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Za([se],e.prototype,"postConstruct",null),e=Za([ce("beans")],e)}(),el=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tl=function(e){function t(t,n,r){var o=e.call(this)||this;return o.cellCtrl=t,o.beans=n,o.column=r,o}return el(t,e),t.prototype.onMouseEvent=function(e,t){if(!De(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,r=t.gridOptionsWrapper,o=this.cellCtrl.createEvent(e,Ye.EVENT_CELL_CLICKED);n.dispatchEvent(o);var i=this.column.getColDef();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(o)}),0),(r.isSingleClickEdit()||i.singleClickEdit)&&!r.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Zt()||Ne("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,Ye.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey,o=e.target,i=this.beans,a=i.eventService,l=i.rangeService;if(!this.isRightClickInExistingRange(e)){var s=l&&0!=l.getCellRanges().length;if(!r||!s){var u=(Kt()||Yt())&&!this.cellCtrl.isEditing()&&!fn(o);this.cellCtrl.focusCell(u)}if(r&&s&&e.preventDefault(),!this.containsWidget(o)){if(l){var c=this.cellCtrl.getCellPosition();if(r)l.extendLatestRangeToCell(c);else{var d=t||n;l.setRangeToCell(c,d)}}a.dispatchEvent(this.cellCtrl.createEvent(e,Ye.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return mn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ye.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ye.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),n=t.contains(e.target),r=t.contains(e.relatedTarget);return n&&r},t.prototype.destroy=function(){},t}(Ja),nl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rl=function(e){function t(t,n,r,o,i,a){var l=e.call(this)||this;return l.cellCtrl=t,l.beans=n,l.column=r,l.rowNode=o,l.rowCtrl=a,l}return nl(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case co.ENTER:this.onEnterKeyDown(e);break;case co.F2:this.onF2KeyDown();break;case co.ESCAPE:this.onEscapeKeyDown();break;case co.TAB:this.onTabKeyDown(e);break;case co.BACKSPACE:case co.DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case co.DOWN:case co.UP:case co.RIGHT:case co.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,co.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(co.ENTER),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(co.F2)},t.prototype.onEscapeKeyDown=function(){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(ke(e)!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):zr(e)&&(this.cellCtrl.startRowOrCellEdit(null,t),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var n=this.rowNode.isSelected(),r=!n;if(r||!t.isSuppressRowDeselection()){var o=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:o});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:o})}}e.preventDefault()},t.prototype.destroy=function(){},t}(He),ol=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),il=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},al=function(e){function t(t,n,r,o){var i=e.call(this,'
')||this;return i.rowNode=t,i.column=n,i.beans=r,i.eCell=o,i}return ol(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Ar("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag,r=Kt();r||e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e}):function(){try{var n=JSON.stringify(t.rowNode.data);r?e.dataTransfer.setData("text",n):(e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n))}catch(o){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},il([se],t.prototype,"postConstruct",null),t}(oo),ll=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sl=function(){return(sl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0)&&n}return n},n.prototype.setAnimateFlags=function(e){if(e){var t=r(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.rowType!==Va.Normal},n.prototype.getRowType=function(){return this.rowType},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var r=t.rowComp.getFullWidthCellRenderer();if(!r)return!1;if(!r.refresh)return!1;var o=e.createFullWidthParams(t.element,n);return r.refresh(o)},n=t(this.fullWidthGui,null),r=t(this.centerGui,null),o=t(this.leftGui,Oe.PINNED_LEFT),i=t(this.rightGui,Oe.PINNED_RIGHT);return n&&r&&o&&i},n.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Uo.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Uo.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,Ye.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,Ye.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,Ye.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,Ye.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,Ye.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,Ye.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,Ye.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.onColumnMoved=function(){this.updateColumnLists()},n.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Uo.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Uo.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},n.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(n){var r=e===t.RowHighlightPosition.Above,o=e===t.RowHighlightPosition.Below;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",o)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},n.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),n.rowComp.setAriaExpanded(e&&t)}))},n.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},n.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},n.prototype.getRowPosition=function(){return{rowPinned:this.rowNode.rowPinned,rowIndex:this.rowNode.rowIndex}},n.prototype.onKeyboardNavigate=function(e){var t=c(this.allRowGuis,(function(t){return t.element.contains(e.target)}));if((t?t.element:null)===e.target){var n=this.rowNode,r=this.beans.focusService.getFocusedCell(),o={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:r&&r.column};this.beans.navigationService.navigateToNextCell(e,e.keyCode,o,!0),e.preventDefault()}},n.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!De(e)){var t=c(this.allRowGuis,(function(t){return t.element.contains(e.target)})),n=t?t.element:null,r=n===e.target,o=null;r||(o=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&r||!o)&&this.beans.navigationService.onTabKeyDown(this,e)}},n.prototype.onFullWidthRowFocused=function(e){var t=this.rowNode,n=this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:this.centerGui.element;dn(r,"ag-full-width-focus",n),n&&r.focus({preventScroll:!0})},n.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},n.prototype.removeCellCtrl=function(e,t){var n={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(n.list.push(e),n.map[e.getInstanceId()]=e)})),n},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},n.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}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!De(e)){var t=this.createRowEventWithSource(Ye.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=mn(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnModel;this.beans.focusService.setFocusedCell(t.rowIndex,n.getAllDisplayedColumns()[0],t.rowPinned,!0)}},n.prototype.onRowClick=function(e){if(!(De(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Ye.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,r=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var o=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())o?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!r,clearSelection:!r,rangeSelect:r});else{var a=!o&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:r})}}}},n.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=e.clientHeight;if(null!=n&&n>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},r=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(r),n()}},n.prototype.createFullWidthParams=function(e,t){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted: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),registerRowDragger:function(e,t,r){return n.addFullWidthRowDragging(e,t,r)}}},n.prototype.addFullWidthRowDragging=function(e,t,n){if(void 0===n&&(n=""),this.isFullWidth()){var r=new ri((function(){return n}),this.rowNode,void 0,e,t);this.createManagedBean(r,this.beans.context)}},n.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=e},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)})))},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.getAllCellCtrls().forEach((function(t){return t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(Ye.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},n.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},n.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var t=e?this.createRowEvent(Ye.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Ye.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),this.editingRow||(this.getAllCellCtrls().forEach((function(r){var o=r===n;o?r.startEditing(e,t,o):r.startEditing(null,null,o)})),this.setEditingRow(!0))},n.prototype.getAllCellCtrls=function(){return vl(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode,this.scope);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,this.scope,(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}),(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!1)}))}))},n.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},n.prototype.getInitialRowClasses=function(e){var t={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),scope:this.scope,pinned:e};return this.beans.rowCssClassCalculator.getInitialRowClasses(t)},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()});return G({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.onRowSelected=function(){var e=this,t=this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.setAriaSelected(!!t||void 0),n.rowComp.addOrRemoveCssClass("ag-row-selected",t),n.rowComp.setAriaLabel(e.createAriaLabel())}))},n.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},n.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Uo.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||un(e,"ag-row-hover")})),this.addManagedListener(this.rowNode,Uo.EVENT_MOUSE_LEAVE,(function(){cn(e,"ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(r(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.allRowGuis.forEach((function(t){return t.rowComp.setHeight(e)}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ye.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+Ye.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ye.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Ye.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(Ye.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},n.prototype.setupRemoveAnimation=function(){if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},n.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},n.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&r(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(n)}},n.prototype.getInitialRowTop=function(){return this.initialTop},n.prototype.getInitialTransform=function(){return this.initialTransform},n.prototype.setInitialRowTop=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.initialTop=n:this.initialTransform="translateY("+n+")"},n.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(n){return t?n.rowComp.setTop(e):n.rowComp.setTransform("translateY("+e+")")}))},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==e&&(t=n)})),null!=t||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(e)>=0&&(t=n)})),t},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes())},n.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),n=this.beans.headerNavigationService.getHeaderRowCount(),r=this.rowNode.rowIndex%2===0;this.allRowGuis.forEach((function(o){o.rowComp.setRowIndex(t),o.rowComp.setAriaRowIndex(n+e.rowNode.rowIndex+1),o.rowComp.addOrRemoveCssClass("ag-row-even",r),o.rowComp.addOrRemoveCssClass("ag-row-odd",!r)}))},n.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},n.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},n.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},n.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},n.DOM_DATA_KEY_RENDERED_ROW="renderedRow",n}(He),wl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_l=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cl=function(){for(var e=0,t=0,n=arguments.length;t=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(o(t))return null;var n=document.activeElement;return o(this.gridOptionsWrapper.getDomData(n,dl.DOM_DATA_KEY_CELL_CTRL))?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&!!e.recycleRows,r=e.animate&&this.gridOptionsWrapper.isAnimateRows(),o=n?this.recycleRows():null;n||this.removeAllRowComps();var i=function(){if(null==t||null==o)return!1;var e=!1;return T(o,(function(n,r){var o=r.getRowNode(),i=o.rowIndex==t.rowIndex,a=o.rowPinned==t.rowPinned;i&&a&&(e=!0)})),e}();this.redraw(o,r),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i||this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},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, e.g. 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.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach((function(t){t.stopEditing(e)}))},t.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach((function(e){return e.onNewColumnsLoaded()}))},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach((function(t){return e=e.concat(t.getAllCellCtrls())})),e},t.prototype.getAllRowCtrls=function(){var e=this,t=Cl(this.topRowCtrls,this.bottomRowCtrls);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(n){return t.push(e.rowCtrlsByRowIndex[n])})),t},t.prototype.addRenderedRowListener=function(e,t,n){var r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){return e.flashCell({flashDelay:t,fadeDelay:n})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){if(e.refreshShouldDestroy()){var n=e.getRowCtrl();n&&n.refreshCell(e)}else e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){return this.getCellCtrls(e.rowNodes,e.columns).map((function(e){return e.getCellRenderer()})).filter((function(e){return null!=e}))},t.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.getCellCtrls=function(e,t){var n,o,i=this,a=[];r(e)&&(n={top:{},bottom:{},normal:{}},e.forEach((function(e){var t=e.id;e.rowPinned===Oe.PINNED_TOP?n.top[t]=!0:e.rowPinned===Oe.PINNED_BOTTOM?n.bottom[t]=!0:n.normal[t]=!0}))),r(t)&&(o={},t.forEach((function(e){var t=i.columnModel.getGridColumn(e);r(t)&&(o[t.getId()]=!0)})));var l=function(e){var t=e.getRowNode(),i=t.id,l=t.rowPinned;if(r(n))if(l===Oe.PINNED_BOTTOM){if(!n.bottom[i])return}else if(l===Oe.PINNED_TOP){if(!n.top[i])return}else if(!n.normal[i])return;e.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId();o&&!o[t]||a.push(e)}))};return T(this.rowCtrlsByRowIndex,(function(e,t){l(t)})),this.topRowCtrls&&this.topRowCtrls.forEach(l),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(l),a},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];T(this.rowCtrlsByRowIndex,(function(t,n){null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);var t={};return T(this.rowCtrlsByRowIndex,(function(e,n){var r=n.getRowNode();t[r.id]=n})),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach((function(e){var n=t.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(e){return!t[e]}));this.removeRowCtrls(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=vt(this.firstRenderedRow,this.lastRenderedRow),r=function(e,r){var o=r.getRowNode().rowIndex;null!=o&&(ot.lastRenderedRow)&&t.doNotUnVirtualiseRow(r)&&n.push(o)};return T(this.rowCtrlsByRowIndex,r),T(e,r),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){r(o.createOrUpdateRowCtrl(i,e,t,n))})),e)&&(n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask((function(){o.destroyRowCtrls(e,t),o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t));this.updateAllRowCtrls(),this.checkAngularCompile(),this.gridBodyCtrl.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:Ye.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];T(this.rowCtrlsByRowIndex,(function(t,n){if(n.isFullWidth()){var r=n.getRowNode().rowIndex;e.push(r.toString())}})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(e){var t=[],n=!!e,r=n?{}:void 0;n&&r&&e.forEach((function(e){return r[e.id]=!0})),T(this.rowCtrlsByRowIndex,(function(e,o){if(o.isFullWidth()){var i=o.getRowNode();if(n&&r){var a=i.level>0&&i.parent?i.parent.id:void 0;if(!r[i.id]&&!r[a])return}if(!o.refreshFullWidth()){var l=o.getRowNode().rowIndex;t.push(l.toString())}}})),this.removeRowCtrls(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,t,n,o){var i,a=this.rowCtrlsByRowIndex[e];if(a||r(i=this.paginationProxy.getRow(e))&&r(t)&&t[i.id]&&i.alreadyRendered&&(a=t[i.id],t[i.id]=null),!a){if(i||(i=this.paginationProxy.getRow(e)),!r(i))return;a=this.createRowCon(i,n,o)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a,a},t.prototype.destroyRowCtrls=function(e,t){var n=this,r=[];T(e,(function(e,o){o&&(n.cachedRowCtrls&&o.isCacheable()?n.cachedRowCtrls.addRow(o):(o.destroyFirstPass(),t?(n.zombieRowCtrls[o.getInstanceId()]=o,r.push((function(){o.destroySecondPass(),delete n.zombieRowCtrls[o.getInstanceId()]}))):o.destroySecondPass()))})),t&&(r.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),X(r))},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var r=this.gridOptionsWrapper.getRowBufferInPixels(),o=this.ctrlsService.getGridBodyCtrl(),i=!1,a=void 0,l=void 0;do{var s=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getCurrentPagePixelRange(),c=u.pageFirstPixel,d=u.pageLastPixel,p=this.rowContainerHeightService.getDivStretchOffset(),f=o.getScrollFeature().getVScrollPosition(),h=f.top,v=f.bottom;a=Math.max(h+s-r,c)+p,l=Math.min(v+s+r,d)+p,i=this.ensureAllRowsInRangeHaveHeightsCalculated(a,l)}while(i);var g=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getRowIndexAtPixel(l),y=this.paginationProxy.getPageFirstRow(),b=this.paginationProxy.getPageLastRow();gb&&(m=b),e=g,t=m}else e=0,t=-1;var O=this.gridOptionsWrapper.getDomLayout()===Oe.DOM_LAYOUT_NORMAL,w=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),_=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);O&&!w&&t-e>_&&(t=e+_);var C=e!==this.firstRenderedRow,E=t!==this.lastRenderedRow;if(C||E){this.firstRenderedRow=e,this.lastRenderedRow=t;var M={type:Ye.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(M)}if(this.paginationProxy.isRowsToRender()){var P={type:Ye.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(P)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),r=e.isEditing(),o=t.detail;return!!(n||r||o)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowCon=function(e,t,n){var r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;var o=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=n&&!o&&!this.printLayout;return new Ol(this.$scope,e,this.beans,t,i,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.getRowByPosition=function(e){var t;switch(e.rowPinned){case Oe.PINNED_TOP:t=this.topRowCtrls[e.rowIndex];break;case Oe.PINNED_BOTTOM:t=this.bottomRowCtrls[e.rowIndex];break;default:t=this.rowCtrlsByRowIndex[e.rowIndex]}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case Oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var n=e>this.lastRenderedRow;return!(tthis.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],y(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),Pl=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,n,r,i){o(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,n,r,i)},e.addToolPanelClassesFromColDef=function(e,t,n,r,i){o(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,n,r,i)},e.addColumnClassesFromCollDef=function(e,t,n,r,i,a){if(!o(e)){var l;if("function"===typeof e)l=e({colDef:t,column:i,columnGroup:a,context:r.getContext(),api:r.getApi()});else l=e;"string"===typeof l?un(n,l):Array.isArray(l)&&l.forEach((function(e){un(n,e)}))}},e}(),xl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rl=function(e){function t(t,n){var r=e.call(this)||this;return r.columns=t,r.element=n,r}return xl(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Sl([de("columnHoverService")],t.prototype,"columnHoverService",void 0),Sl([se],t.prototype,"postConstruct",null),t}(He),jl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Al=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=o,i.beans=r,i.printLayout=r.gridOptionsWrapper.getDomLayout()===Oe.DOM_LAYOUT_PRINT,i}return jl(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?v(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,Ee.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.printLayout&&this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=r(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),r=t.getOldLeft(),o=this.modifyLeftForPrintLayout(t,r),i=this.modifyLeftForPrintLayout(t,n);this.setLeft(o),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},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){if(!this.printLayout)return t;if(e.getPinned()===Oe.PINNED_LEFT)return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===Oe.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(r(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof Ee)t=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&vr(this.ariaEl,n.length),t=n[0]}var o=this.beans.columnModel.getAriaColumnIndex(t);hr(this.ariaEl,o)},Tl([se],t.prototype,"postConstruct",null),t}(He),Dl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zl=function(e){function t(t,n){var r=e.call(this,n)||this;return r.labelSeparator="",r.labelAlignment="left",r.label="",r.config=t||{},r}return Dl(t,e),t.prototype.postConstruct=function(){un(this.getGui(),"ag-labeled"),un(this.eLabel,"ag-label");var e=this.config,t=e.labelSeparator,n=e.label,r=e.labelWidth,o=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(o||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){Pn(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(un(this.eLabel,"ag-hidden"),this.eLabel.setAttribute("role","presentation")):(cn(this.eLabel,"ag-hidden"),this.eLabel.removeAttribute("role"))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return dn(t,"ag-label-align-left","left"===e),dn(t,"ag-label-align-right","right"===e),dn(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Ln(this.eLabel,e),this},Nl([se],t.prototype,"postConstruct",null),t}(oo),kl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fl=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.className=r,o.disabled=!1,o}return kl(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&un(this.getGui(),this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return In(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.previousValue=this.value,this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return gn(t,e),dn(t,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(zl),Ll=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Il=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gl=function(e){function t(t,n,r,o){void 0===r&&(r="text"),void 0===o&&(o="input");var i=e.call(this,t,'\n
\n
\n \n
",n)||this;return i.inputType=r,i.displayFieldTag=o,i}return Ll(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),un(this.eLabel,this.className+"-label"),un(this.eWrapper,this.className+"-input-wrapper"),un(this.eInput,this.className+"-input"),un(this.getGui(),"ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,n=t.width,r=t.value;null!=n&&this.setWidth(n),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.refreshLabel=function(){r(this.getLabel())?or(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Ln(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Kn(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return rr(this.eInput,e),this},t.prototype.setDisabled=function(t){return gn(this.eInput,t),e.prototype.setDisabled.call(this,t)},Il([lo("eLabel")],t.prototype,"eLabel",void 0),Il([lo("eWrapper")],t.prototype,"eWrapper",void 0),Il([lo("eInput")],t.prototype,"eInput",void 0),t}(Fl),Bl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vl=function(e){function t(t,n,r){void 0===n&&(n="ag-checkbox"),void 0===r&&(r="checkbox");var o=e.call(this,t,n,r)||this;return o.labelAlignment="right",o.selected=!1,o.readOnly=!1,o.passive=!1,o}return Bl(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){dn(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return dn(this.eWrapper,"ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,r){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:r});var o=this.getInputElement(),i={type:Ye.EVENT_CHECKBOX_CHANGED,id:o.id,name:o.name,selected:e,previousValue:n};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){dn(this.eWrapper,"ag-checked",!0===e),dn(this.eWrapper,"ag-indeterminate",null==e)},t}(Gl),Hl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ul=function(e){function t(t,n){var r=e.call(this)||this;r.cbSelectAllVisible=!1,r.processingEventFromCheckbox=!1,r.cbSelectAll=t,r.column=n;var o=n.getColDef();return r.filteredOnly=!!o&&!!o.headerCheckboxSelectionFilteredOnly,r}return Hl(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Ye.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Vl.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshHeaderAriaDescribedBy(this.cbSelectAllVisible)},t.prototype.refreshHeaderAriaDescribedBy=function(e){var t=this.cbSelectAll.getParentComponent(),n=t&&t.getGui();if(n&&Sn(n)){var r="";n&&(r=nr(n));var o=this.cbSelectAll.getInputElement().id,i=-1!==r.indexOf(o);e?i||ir(n,o+" "+r.trim()):i&&ir(n,r.trim().split(" ").filter((function(e){return e===o})).join(" "))}},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.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAll.setInputAriaLabel(n+" ("+t+")")},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,r=function(r){e.gridOptionsWrapper.isGroupSelectsChildren()&&r.group||(r.isSelected()?t++:r.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(r):this.gridApi.forEachNode(r),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===Oe.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.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.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))},Wl([de("gridApi")],t.prototype,"gridApi",void 0),Wl([de("columnApi")],t.prototype,"columnApi",void 0),Wl([de("rowModel")],t.prototype,"rowModel",void 0),Wl([de("selectionService")],t.prototype,"selectionService",void 0),Wl([se],t.prototype,"postConstruct",null),t}(He),ql=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ql(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,r=t.column;return Fr(this.gridOptionsWrapper,e,n,r)},t.prototype.getColumn=function(){return this.column},t.prototype.getPinned=function(){return this.pinned},Kl([de("focusService")],t.prototype,"focusService",void 0),t}(oo),$l=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ql=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xl=function(e){function n(t,r){var o=e.call(this,n.TEMPLATE)||this;return o.headerCompVersion=0,o.refreshFunctions=[],o.column=t,o.pinned=r,o}return $l(n,e),n.prototype.postConstruct=function(){this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.addActiveHeaderMouseListeners(),this.createManagedBean(new wo(this.getFocusableElement(),{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.createManagedBean(new Rl([this.column],this.getGui())),this.addManagedListener(this.column,Ee.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.createManagedBean(new Ul(this.cbSelectAll,this.column)),this.cbSelectAll.setParentComponent(this),this.createManagedBean(new Al(this.column,this.getGui(),this.beans)),this.addAttributes(),Pl.addHeaderClassesFromColDef(this.column.getColDef(),this.getGui(),this.gridOptionsWrapper,this.column,null),this.addManagedListener(this.eventService,Ye.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.appendHeaderComp()},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.updateState=function(){var e=this.column.getColDef();this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshFunctions.forEach((function(e){return e()}))},n.prototype.refreshHeaderComp=function(){if(this.headerComp){var e=this.column.getColDef();if(!(this.colDefHeaderComponent!=e.headerComponent||this.colDefHeaderComponentFramework!=e.headerComponentFramework)&&this.attemptHeaderCompRefresh()){var t=this.draggable&&!this.moveDragSource,n=!this.draggable&&this.moveDragSource;(t||n)&&this.attachDraggingToHeaderComp()}else this.appendHeaderComp()}},n.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0),this.removeMoveDragSource()},n.prototype.removeMoveDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},n.prototype.attemptHeaderCompRefresh=function(){if(!this.headerComp.refresh)return!1;var e=this.createParams(),t=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(this.getComponentHolder(),"headerComponent",e);return this.headerComp.refresh(t)},n.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},n.prototype.setActiveHeader=function(e){dn(this.getGui(),"ag-header-active",e)},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.focusService.setFocusedHeader(t.getRowIndex(),this.getColumn())}this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.handleKeyDown=function(e){var t=this.headerComp;if(t){if(e.keyCode===co.SPACE){var n=this.cbSelectAll;n.isDisplayed()&&!n.getGui().contains(document.activeElement)&&(e.preventDefault(),n.setValue(!n.getValue()))}if(e.keyCode===co.ENTER)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var r=e.shiftKey;this.sortController.progressSort(this.column,r,"uiColumnSorted")}}},n.prototype.onTabKeyDown=function(){},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.addColumnHoverListener=function(){this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){if(this.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.columnHoverService.isHovered(this.column);dn(this.getGui(),"ag-column-hover",e)}},n.prototype.setupSortableClass=function(){var e=this,t=this.getGui(),n=function(){dn(t,"ag-header-cell-sortable",!!e.sortable)},r=function(){e.sortable?gr(t,er(e.column)):mr(t)};n(),r(),this.refreshFunctions.push(n),this.refreshFunctions.push(r),this.addManagedListener(this.column,Ee.EVENT_SORT_CHANGED,r.bind(this))},n.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();dn(this.getGui(),"ag-header-cell-filtered",e)},n.prototype.appendHeaderComp=function(){this.headerCompVersion++;var e=this.column.getColDef();this.colDefHeaderComponent=e.headerComponent,this.colDefHeaderComponentFramework=e.headerComponentFramework;var t=this.createParams(),n=this.afterHeaderCompCreated.bind(this,this.headerCompVersion);this.userComponentFactory.newHeaderComponent(t).then(n)},n.prototype.createParams=function(){var e=this,t=this.column.getColDef();return this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu,{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,n){e.sortController.setSortForColumn(e.column,t,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},n.prototype.afterHeaderCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.getGui().appendChild(this.headerCompGui),this.attachDraggingToHeaderComp()):this.destroyBean(t)},n.prototype.onColumnMovingChanged=function(){this.column.isMoving()?un(this.getGui(),"ag-header-cell-moving"):cn(this.getGui(),"ag-header-cell-moving")},n.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsWrapper.isSuppressMovableColumns()&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},n.prototype.attachDraggingToHeaderComp=function(){var e=this;this.removeMoveDragSource(),this.draggable&&(this.moveDragSource={type:t.DragSourceType.HeaderCell,eElement:this.headerCompGui,defaultIconName:ei.ICON_HIDE,getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return e.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return e.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.setupResize=function(){var e,t,n=this,r=this.getComponentHolder(),o=[],i=function(){o.forEach((function(e){return e()})),o.length=0},a=function(){var a=n.column.isResizable(),l=!n.gridOptionsWrapper.isSuppressAutoSize()&&!r.suppressAutoSize;(a!==e||l!==t)&&(e=a,t=l,i(),function(){if(hn(n.eResize,e),e){var r=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(o.push(r),t){var i=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),a=function(){n.columnModel.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",a);var l=new No(n.eResize);l.addEventListener(No.EVENT_DOUBLE_TAP,a),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",a),l.removeEventListener(No.EVENT_DOUBLE_TAP,a),l.destroy()}))}}}())};a(),this.addDestroyFunc(i),this.refreshFunctions.push(a)},n.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),r=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnModel.setColumnWidths(r,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&cn(this.getGui(),"ag-column-resizing")},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,un(this.getGui(),"ag-column-resizing")},n.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="header",t.colDef=this.column.getColDef(),t},n.prototype.setupTooltip=function(){var e=this,t=function(){var t=e.column.getColDef().headerTooltip;e.setTooltip(t)};t(),this.refreshFunctions.push(t)},n.prototype.setupMovingCss=function(){this.addManagedListener(this.column,Ee.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},n.prototype.setupWidth=function(){this.addManagedListener(this.column,Ee.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.setupMenuClass=function(){this.addManagedListener(this.column,Ee.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this))},n.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==Oe.PINNED_LEFT&&(t*=-1):this.pinned===Oe.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='
\n \n \n
',Ql([de("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Ql([de("columnModel")],n.prototype,"columnModel",void 0),Ql([de("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Ql([de("menuFactory")],n.prototype,"menuFactory",void 0),Ql([de("gridApi")],n.prototype,"gridApi",void 0),Ql([de("columnApi")],n.prototype,"columnApi",void 0),Ql([de("sortController")],n.prototype,"sortController",void 0),Ql([de("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Ql([de("columnHoverService")],n.prototype,"columnHoverService",void 0),Ql([de("beans")],n.prototype,"beans",void 0),Ql([lo("eResize")],n.prototype,"eResize",void 0),Ql([lo("cbSelectAll")],n.prototype,"cbSelectAll",void 0),Ql([se],n.prototype,"postConstruct",null),Ql([ue],n.prototype,"destroyHeaderComp",null),n}(Yl),Zl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},es=function(e){function n(t,r){var o=e.call(this,n.TEMPLATE)||this;return o.removeChildListenersFuncs=[],o.column=t,o.pinned=r,o}return Zl(n,e),n.prototype.postConstruct=function(){Pl.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.column);var e=this.columnModel.getDisplayNameForColumnGroup(this.column,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.setupExpandable(),this.createManagedBean(new Rl(this.column.getOriginalColumnGroup().getLeafColumns(),this.getGui())),this.createManagedBean(new Al(this.column,this.getGui(),this.beans)),this.createManagedBean(new wo(this.getFocusableElement(),{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.beans.focusService.setFocusedHeader(t.getRowIndex(),this.getColumn())}},n.prototype.handleKeyDown=function(e){var t=document.activeElement===this.getGui();if(this.expandable&&t&&e.keyCode===co.ENTER){var n=this.getColumn(),r=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getOriginalColumnGroup(),r,"uiColumnExpanded")}},n.prototype.onTabKeyDown=function(){},n.prototype.setupExpandable=function(){var e=this.getColumn().getOriginalColumnGroup();this.refreshExpanded(),this.addManagedListener(e,xe.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,xe.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.getColumn(),t=this.getGui(),n=e.isExpandable(),r=e.isExpanded();this.expandable=n,n?lr(t,r):t.removeAttribute("aria-expanded")},n.prototype.setupMovingCss=function(){var e=this;this.column.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addManagedListener(t,Ee.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},n.prototype.getComponentHolder=function(){return this.column.getColGroupDef()},n.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="headerGroup",t.colDef=this.getComponentHolder(),t.column=this.getColumn(),t},n.prototype.setupTooltip=function(){var e=this.getComponentHolder(),t=e&&e.headerTooltip;null!=t&&this.setTooltip(t)},n.prototype.onColumnMovingChanged=function(){dn(this.getGui(),"ag-header-cell-moving",this.column.isMoving())},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getUniqueId())},n.prototype.appendHeaderGroupComp=function(e){var t=this,n={displayName:e,columnGroup:this.column,setExpanded:function(e){t.columnModel.setColumnGroupOpened(t.column.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var r=this.column,o=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===o.length;)r=r.getParent();var i=r.getColGroupDef();i&&(e=i.headerName),e||(e=o?this.columnModel.getDisplayNameForColumn(o[0],"header",!0):"")}var a=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(n).then(a)},n.prototype.afterHeaderCompCreated=function(e,t){var n=this;this.getGui().appendChild(t.getGui()),this.addDestroyFunc((function(){n.getContext().destroyBean(t)})),this.setupMove(t.getGui(),e)},n.prototype.addClasses=function(){var e=this.column.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+e+"-group")},n.prototype.setupMove=function(e,n){var r=this;if(e&&!this.isSuppressMoving()){var o=this.column.getOriginalColumnGroup().getLeafColumns(),i={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ei.ICON_HIDE,dragItemName:n,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return r.dragAndDropService.removeDragSource(i)}))}},n.prototype.getDragItemForGroup=function(){var e=this.column.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),y(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.column.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},n.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.column,Pe.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},n.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},n.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.column.getLeafColumns().forEach((function(n){n.addEventListener(Ee.EVENT_WIDTH_CHANGED,t),n.addEventListener(Ee.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(Ee.EVENT_WIDTH_CHANGED,t),n.removeEventListener(Ee.EVENT_VISIBLE_CHANGED,t)}))}))},n.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},n.prototype.onWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.column.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)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",(function(t){var r=[];e.column.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||r.push(e.getColId())})),r.length>0&&e.columnModel.autoSizeColumns(r,n,"uiColumnResized")}))}}else xn(this.eHeaderCellResize)},n.prototype.onResizeStart=function(e){var t=this,n=this.column.getDisplayedLeafColumns();this.resizeCols=n.filter((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 r=null;if(e&&(r=this.columnModel.getDisplayedGroupAfter(this.column)),r){var o=r.getDisplayedLeafColumns();this.resizeTakeFromCols=o.filter((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;un(this.getGui(),"ag-column-resizing")},n.prototype.onResizing=function(e,t){var n=[],r=this.normaliseDragChange(t);n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+r}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-r}),this.columnModel.resizeColumnSets(n,e,"uiColumnDragged"),e&&cn(this.getGui(),"ag-column-resizing")},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==Oe.PINNED_LEFT&&(t*=-1):this.pinned===Oe.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='
\n \n
',Jl([de("columnModel")],n.prototype,"columnModel",void 0),Jl([de("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Jl([de("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Jl([de("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Jl([de("beans")],n.prototype,"beans",void 0),Jl([de("gridApi")],n.prototype,"gridApi",void 0),Jl([de("columnApi")],n.prototype,"columnApi",void 0),Jl([se],n.prototype,"postConstruct",null),n}(Yl),ts=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ns=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rs=function(e){function t(){return e.call(this,'\n ')||this}return ts(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var r=n.getModelAsString(e);t.eFloatingFilterText.setValue(r)}})):this.eFloatingFilterText.setValue("")},ns([lo("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),ns([de("columnModel")],t.prototype,"columnModel",void 0),t}(oo),os=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),is=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),as=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ls=function(e){function n(t,r){var o=e.call(this,n.TEMPLATE)||this;return o.column=t,o.pinned=r,o}return is(n,e),n.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.createManagedBean(new Rl([this.column],this.getGui())),this.createManagedBean(new wo(this.getFocusableElement(),{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},n.prototype.onTabKeyDown=function(e){var t=document.activeElement,n=this.getGui();if(!(t===n)){e.preventDefault();var r=this.focusService.findNextFocusableElement(n,null,e.shiftKey);r?r.focus():n.focus()}},n.prototype.handleKeyDown=function(e){var t=document.activeElement,n=this.getGui(),r=t===n;switch(e.keyCode){case co.UP:case co.DOWN:r||e.preventDefault();case co.LEFT:case co.RIGHT:if(r)return;e.stopPropagation();case co.ENTER:r&&this.focusService.focusInto(n)&&e.preventDefault();break;case co.ESCAPE:r||this.getGui().focus()}},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.beans.focusService.setFocusedHeader(t.getRowIndex(),this.getColumn())}},n.prototype.setupFloatingFilter=function(){var e=this,t=this.column.getColDef();(t.filter&&t.floatingFilter||t.filterFramework&&t.floatingFilterComponentFramework)&&(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(t){t&&(e.setupWithFloatingFilter(t),e.setupSyncWithFilter())})))},n.prototype.setupLeftPositioning=function(){var e=new Al(this.column,this.getGui(),this.beans);this.createManagedBean(e)},n.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){e.onParentModelChanged(e.currentParentModel(),t)};this.addManagedListener(this.column,Ee.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},n.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},n.prototype.setupColumnHover=function(){this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&dn(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},n.prototype.setupWidth=function(){this.addManagedListener(this.column,Ee.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupWithFloatingFilter=function(e){var t=this,n=function(){t.getContext().destroyBean(e)};if(this.isAlive()){this.addDestroyFunc(n);var r=e.getGui();dn(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),dn(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),hn(this.eButtonWrapper,!this.suppressFilterButton);var o=Ar("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(o),this.eFloatingFilterBody.appendChild(r),e.afterGuiAttached&&e.afterGuiAttached()}else n()},n.prototype.parentFilterInstance=function(e){var t=this.getFilterComponent();t&&t.then(e)},n.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},n.getDefaultFloatingFilterType=function(e){if(null==e)return null;var n=null;if("string"===typeof e.filter)n=os.getFloatingFilterType(e.filter);else if(e.filterFramework);else if(!0===e.filter){n=we.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}return n},n.prototype.getFloatingFilterInstance=function(){var e=this.column.getColDef(),t=n.getDefaultFloatingFilterType(e),r=this.filterManager.createFilterParams(this.column,e),o=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(e,"filter",r),i={api:this.gridApi,column:this.column,filterParams:o,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),showParentFilter:this.showParentFilter.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!e.floatingFilterComponentParams&&!!e.floatingFilterComponentParams.suppressFilterButton;var a=this.userComponentFactory.newFloatingFilterComponent(e,i,t);if(!a){var l=this.userComponentFactory.createUserComponentFromConcreteClass(rs,i);a=$r.resolve(l)}return a},n.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},n.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(n){return n&&n.onParentModelChanged(e,t)}))},n.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.")},n.TEMPLATE='
\n \n \n
',as([de("columnHoverService")],n.prototype,"columnHoverService",void 0),as([de("userComponentFactory")],n.prototype,"userComponentFactory",void 0),as([de("gridApi")],n.prototype,"gridApi",void 0),as([de("filterManager")],n.prototype,"filterManager",void 0),as([de("menuFactory")],n.prototype,"menuFactory",void 0),as([de("beans")],n.prototype,"beans",void 0),as([lo("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),as([lo("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),as([lo("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),as([se],n.prototype,"postConstruct",null),n}(Yl),ss=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),us=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(gl||(gl={}));var cs,ds=function(e){function t(t,n,r){var o=e.call(this,'
')||this;o.headerComps={},o.setRowIndex(t),o.type=n,o.pinned=r;var i=gl[n].toLowerCase().replace(/_/g,"-");return o.addCssClass("ag-header-row-"+i),$t()&&(o.getGui().style.transform="translateZ(0)"),o}return ss(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(n){e(t.headerComps[n])}))},t.prototype.setRowIndex=function(e){this.dept=e,pr(this.getGui(),e+1)},t.prototype.getRowIndex=function(){return this.dept},t.prototype.getType=function(){return this.type},t.prototype.destroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.destroyChildComponents(e)},t.prototype.destroyChildComponents=function(e){var t=this;e.forEach((function(e){var n=t.headerComps[e];t.getGui().removeChild(n.getGui()),t.destroyBean(n),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,n=this.columnModel.getHeaderRowCount(),r=[],o=0;this.columnModel.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnModel.hasFloatingFilters()&&(n++,o=1),e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+o),a=0;a=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fs=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!r(e)}return e.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("MoveColumnController"),this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?ei.ICON_PINNED:ei.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var r=e.dragItem.visibleState,o=(n||[]).filter((function(e){return r[e.getId()]}));this.setColumnsVisible(o,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(r,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(r,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=en-50):(this.needToMoveLeft=en-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!o(e.hDirection)){var r=this.normaliseX(e.x);t||this.checkCenterForScrolling(r);var i=this.normaliseDirection(e.hDirection),a=e.dragSource.type,l=e.dragSource.getDragItem().columns;l=l.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(a,l,i,r,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),n=m(e.map((function(e){return t.indexOf(e)}))),r=n[0];return v(n)-r!==n.length-1?null:r},e.prototype.attemptMoveColumns=function(e,n,r,o,i){var a=r===t.HorizontalDirection.Left,l=r===t.HorizontalDirection.Right,s=n.slice();this.columnModel.sortColumnsLikeGridColumns(s);var u=this.calculateValidMoves(s,l,o),c=this.calculateOldIndex(s);if(0!==u.length){var d=u[0],p=null!==c&&!i;if(e==t.DragSourceType.HeaderCell&&(p=null!==c),p){if(a&&d>=c)return;if(l&&d<=c)return}for(var f=0;f0){for(var p=0;p0){var f=l[u-1];r=s.indexOf(f)+1}else-1===(r=s.indexOf(l[0]))&&(r=0);var h=[r],v=function(e,t){return e-t};if(t){for(var g=r+1,m=i.length-1;g<=m;)h.push(g),g++;h.sort(v)}else{g=r,m=i.length-1;for(var y=i[g];g<=m&&this.isColumnHidden(o,y);)g++,h.push(g),y=i[g];g=r-1;for(;g>=0;)h.push(g),g--;h.sort(v).reverse()}return h},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(ei.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(ei.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ei.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(r.length>0&&(this.dragAndDropService.setGhostIcon(ei.ICON_PINNED),this.failedMoveAttempts>7)){var o=this.needToMoveLeft?Oe.PINNED_LEFT:Oe.PINNED_RIGHT;this.setColumnsPinned(r,o,"uiColumnDragged"),this.dragAndDropService.nudge()}}},ps([de("loggerFactory")],e.prototype,"loggerFactory",void 0),ps([de("columnModel")],e.prototype,"columnModel",void 0),ps([de("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ps([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ps([de("ctrlsService")],e.prototype,"ctrlsService",void 0),ps([se],e.prototype,"init",null),e}(),hs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vs=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=e.dragItem.columns;n&&n.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?ei.ICON_PINNED:ei.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.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},hs([de("columnModel")],e.prototype,"columnModel",void 0),hs([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),gs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ms=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ys=function(e){function n(t,n){var r=e.call(this)||this;return r.pinned=t,r.eContainer=n,r}return gs(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case Oe.PINNED_LEFT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case Oe.PINNED_RIGHT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}}))},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new fs(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new vs(this.pinned)),this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel},n.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},ms([de("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ms([de("columnModel")],n.prototype,"columnModel",void 0),ms([de("ctrlsService")],n.prototype,"ctrlsService",void 0),ms([se],n.prototype,"postConstruct",null),ms([se],n.prototype,"init",null),n}(He),bs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Os=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ws=function(e){function t(t,n,r){var o=e.call(this)||this;return o.groupsRowComps=[],o.eContainer=t,o.pinned=r,o.eViewport=n,o}return bs(t,e),t.prototype.forEachHeaderElement=function(e){this.groupsRowComps&&this.groupsRowComps.forEach((function(t){return t.forEachHeaderElement(e)})),this.columnsRowComp&&this.columnsRowComp.forEachHeaderElement(e),this.filtersRowComp&&this.filtersRowComp.forEachHeaderElement(e)},t.prototype.init=function(){this.addManagedListener(this.eventService,Ye.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this)),this.setupDragAndDrop()},t.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},t.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},t.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},t.prototype.onScrollbarWidthChanged=function(){this.setWidthOfPinnedContainer()},t.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===Oe.PINNED_LEFT,t=this.pinned===Oe.PINNED_RIGHT,n=this.columnModel,r=this.gridOptionsWrapper.isEnableRtl(),o=this.gridOptionsWrapper.getScrollbarWidth();if(e||t){var i=n[e?"getDisplayedColumnsLeftWidth":"getDisplayedColumnsRightWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(r&&e||!r&&t)&&(i+=o),In(this.eContainer,i)}},t.prototype.getRowComps=function(){var e=[];return this.groupsRowComps&&(e=e.concat(this.groupsRowComps)),this.columnsRowComp&&e.push(this.columnsRowComp),this.filtersRowComp&&e.push(this.filtersRowComp),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.refresh=function(e){void 0===e&&(e=!1),this.refreshRowComps(e)},t.prototype.setupDragAndDrop=function(){var e=this.eViewport?this.eViewport:this.eContainer,t=new ys(this.pinned,e);this.createManagedBean(t)},t.prototype.destroyRowComps=function(e){void 0===e&&(e=!1),this.groupsRowComps.forEach(this.destroyRowComp.bind(this)),this.groupsRowComps=[],this.destroyRowComp(this.filtersRowComp),this.filtersRowComp=void 0,e||(this.destroyRowComp(this.columnsRowComp),this.columnsRowComp=void 0)},t.prototype.destroyRowComp=function(e){e&&(this.destroyBean(e),this.eContainer.removeChild(e.getGui()))},t.prototype.refreshRowComps=function(e){var t=this;void 0===e&&(e=!1);var n,r=new Kr;!function(){var e=t.columnModel.getHeaderRowCount()-1;t.groupsRowComps.forEach(t.destroyRowComp.bind(t)),t.groupsRowComps=[];for(var n=0;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(cs=t.HeaderNavigationDirection||(t.HeaderNavigationDirection={}))[cs.UP=0]="UP",cs[cs.DOWN=1]="DOWN",cs[cs.LEFT=2]="LEFT",cs[cs.RIGHT=3]="RIGHT";var Es,Ms=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return _s(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},n.prototype.registerHeaderRoot=function(e){this.headerRoot=e},n.prototype.getHeaderRowCount=function(){return 0===this.headerRoot.getHeaderContainers().size?0:this.getHeaderContainer().getRowComps().length},n.prototype.getHeaderRowType=function(e){if(this.getHeaderRowCount())return this.getHeaderContainer().getRowComps()[e].getType()},n.prototype.getHeaderContainer=function(e){return void 0===e&&(e="center"),null===e&&(e="center"),this.headerRoot.getHeaderContainers().get(e)},n.prototype.navigateVertically=function(e,n,r){if(n||(n=this.focusService.getFocusedHeader()),!n)return!1;var o=n.headerRowIndex,i=n.column,a=this.getHeaderRowCount(),l=e===t.HeaderNavigationDirection.UP,s=l?o-1:o+1,u=null,c=!1;s<0&&(s=0,u=i,c=!0),s>=a&&(s=-1);var d=this.getHeaderRowType(o);if(!c){if(d===gl.COLUMN_GROUP){var p=i;u=l?i.getParent():p.getDisplayedChildren()[0]}else if(d===gl.FLOATING_FILTER)u=i;else{p=i;u=l?p.getParent():p}if(!u)return!1}return this.focusService.focusHeaderPosition({headerRowIndex:s,column:u},void 0,!1,!0,r)},n.prototype.navigateHorizontally=function(e,n,r){void 0===n&&(n=!1);var o,i,a=this.focusService.getFocusedHeader();return e===t.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",o=this.headerPositionUtils.findHeader(a,i)):(i="After",o=this.headerPositionUtils.findHeader(a,i)),o?this.focusService.focusHeaderPosition(o,i,n,!0,r):!n||this.focusNextHeaderRow(a,i,r)},n.prototype.focusNextHeaderRow=function(e,t,n){var r,o=e.headerRowIndex,i=null;return"Before"===t?o>0&&(r=o-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"end")):(r=o+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"start")),this.focusService.focusHeaderPosition(i,t,!0,!0,n)},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof Pe){var r=e.getDisplayedLeafColumns();n="Before"===t?v(r):r[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},Cs([de("focusService")],n.prototype,"focusService",void 0),Cs([de("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),Cs([de("animationFrameService")],n.prototype,"animationFrameService",void 0),Cs([de("ctrlsService")],n.prototype,"ctrlsService",void 0),Cs([se],n.prototype,"postConstruct",null),n=Cs([ce("headerNavigationService")],n)}(He),Ps=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ss=function(e){function t(t){var n=e.call(this)||this;return n.callback=t,n}return Ps(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,Na.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===Oe.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),o=e.getDisplayedColumnsRightWidth(),i=t?n+r+o:n;this.callback(i)},xs([de("columnModel")],t.prototype,"columnModel",void 0),xs([se],t.prototype,"postConstruct",null),t}(He),Rs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),js=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ts=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.headerContainers=new Map,t}return Rs(n,e),n.prototype.postConstruct=function(){var e=this;this.createManagedBean(new wo(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.printLayout=this.gridOptionsWrapper.getDomLayout()===Oe.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this),this.registerHeaderContainer(new ws(this.eHeaderContainer,this.eHeaderViewport,null),"center"),this.registerHeaderContainer(new ws(this.ePinnedLeftHeader,null,Oe.PINNED_LEFT),"left"),this.registerHeaderContainer(new ws(this.ePinnedRightHeader,null,Oe.PINNED_RIGHT),"right"),this.headerContainers.forEach((function(t){return e.createManagedBean(t)})),this.headerNavigationService.registerHeaderRoot(this),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.createManagedBean(new Ss((function(t){return e.eHeaderContainer.style.width=t+"px"}))),this.columnModel.isReady()&&this.refreshHeader(),this.setupHeaderHeight(),this.ctrlsService.registerHeaderRootComp(this)},n.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},n.prototype.registerHeaderContainer=function(e,t){this.headerContainers.set(t,e)},n.prototype.onTabKeyDown=function(e){var n=this.gridOptionsWrapper.isEnableRtl(),r=e.shiftKey!==n?t.HeaderNavigationDirection.LEFT:t.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(r,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var n=null;switch(e.keyCode){case co.LEFT:n=t.HeaderNavigationDirection.LEFT;case co.RIGHT:r(n)||(n=t.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,e);break;case co.UP:n=t.HeaderNavigationDirection.UP;case co.DOWN:r(n)||(n=t.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(n,null,e)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=e.relatedTarget,n=this.getGui();!t&&n.contains(document.activeElement)||n.contains(t)||this.focusService.clearFocusedHeader()},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===Oe.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},n.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},n.prototype.forEachHeaderElement=function(e){this.headerContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},n.prototype.refreshHeader=function(){this.headerContainers.forEach((function(e){return e.refresh()}))},n.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();dn(this.getGui(),"ag-pivot-on",e),dn(this.getGui(),"ag-pivot-off",!e)},n.prototype.setHeaderHeight=function(){var e,t,n,r=this.columnModel,o=this.gridOptionsWrapper,i=0,a=r.getHeaderRowCount();r.isPivotMode()?(t=o.getPivotGroupHeaderHeight(),n=o.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(a++,i=1),t=o.getGroupHeaderHeight(),n=o.getHeaderHeight());var l=a-(1+i);e=i*o.getFloatingFiltersHeight(),e+=l*t;var s=(e+=n)+1+"px";this.getGui().style.height=s,this.getGui().style.minHeight=s},n.prototype.addPreventHeaderScroll=function(){var e=this;this.addManagedListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.ctrlsService.getGridBodyCtrl().getScrollFeature().scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},n.prototype.getHeaderContainers=function(){return this.headerContainers},n.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth()>0;hn(this.ePinnedLeftHeader,e)},n.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth()>0;hn(this.ePinnedRightHeader,e)},n.TEMPLATE='',js([lo("ePinnedLeftHeader")],n.prototype,"ePinnedLeftHeader",void 0),js([lo("ePinnedRightHeader")],n.prototype,"ePinnedRightHeader",void 0),js([lo("eHeaderContainer")],n.prototype,"eHeaderContainer",void 0),js([lo("eHeaderViewport")],n.prototype,"eHeaderViewport",void 0),js([de("columnModel")],n.prototype,"columnModel",void 0),js([de("gridApi")],n.prototype,"gridApi",void 0),js([de("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),js([de("focusService")],n.prototype,"focusService",void 0),js([de("headerNavigationService")],n.prototype,"headerNavigationService",void 0),js([de("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),js([de("ctrlsService")],n.prototype,"ctrlsService",void 0),js([se],n.prototype,"postConstruct",null),n}(oo),As=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ds=function(){return(Ds=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zs=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.allAdvancedFilters=new Map,t.activeAdvancedFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var o;return As(n,e),o=n,n.prototype.init=function(){this.addManagedListener(this.eventService,Ye.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(e){var t=this,n=[];if(e){var r=Vr(Object.keys(e));this.allAdvancedFilters.forEach((function(o,i){var a=e[i];n.push(t.setModelOnFilterWrapper(o.filterPromise,a)),r.delete(i)})),r.forEach((function(r){var o=t.columnModel.getPrimaryColumn(r);if(o){var i=t.getOrCreateFilterWrapper(o,"NO_UI");n.push(t.setModelOnFilterWrapper(i.filterPromise,e[r]))}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+r)}))}else this.allAdvancedFilters.forEach((function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));$r.all(n).then((function(){return t.onFilterChanged()}))},n.prototype.setModelOnFilterWrapper=function(e,t){return new $r((function(n){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel"),n()),(e.setModel(t)||$r.resolve()).then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var e={};return this.allAdvancedFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"===typeof o.getModel){var i=o.getModel();r(i)&&(e[n]=i)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},n.prototype.isAdvancedFilterPresent=function(){return this.activeAdvancedFilters.length>0},n.prototype.updateActiveFilters=function(){var e=this;this.activeAdvancedFilters.length=0,this.allAdvancedFilters.forEach((function(t){if(t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))){var n=t.filterPromise.resolveNow(null,(function(e){return e}));e.activeAdvancedFilters.push(n)}}))},n.prototype.updateFilterFlagInColumns=function(e,t){this.allAdvancedFilters.forEach((function(n){var r=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(r,e,t)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isAdvancedFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},n.prototype.doAdvancedFiltersPass=function(e,t){for(var n=e.data,r=0;r=0}))},n.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},n.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return M(this.quickFilterParts,(function(r){return n?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r)}))},n.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(e.rowNode))&&!(this.isAdvancedFilterPresent()&&!this.doAdvancedFiltersPass(e.rowNode,e.filterInstanceToSkip)))},n.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var i={value:n,node:t,data:t.data,column:e,colDef:o,context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(i)}return r(n)?n.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(e){var t=this,n=[];x(this.columnModel.getAllColumnsForQuickFilter(),(function(o){var i=t.getQuickFilterTextForColumn(o,e);r(i)&&n.push(i)})),e.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(e){this.allAdvancedFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.updateActiveFilters()},n.prototype.createValueGetter=function(e){var t=this;return function(n){return t.valueService.getValue(e,n,!0)}},n.prototype.getFilterComponent=function(e,t,n){if(void 0===n&&(n=!0),n)return this.getOrCreateFilterWrapper(e,t).filterPromise;var r=this.cachedFilter(e);return r?r.filterPromise:null},n.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},n.prototype.getOrCreateFilterWrapper=function(e,t){var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allAdvancedFilters.set(e.getColId(),n)),n},n.prototype.cachedFilter=function(e){return this.allAdvancedFilters.get(e.getColId())},n.prototype.createFilterInstance=function(e,n){var r,o=this,i=we.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",a=e.getColDef(),l=Ds(Ds({},this.createFilterParams(e,a,n)),{filterModifiedCallback:function(){var t={type:Ye.EVENT_FILTER_MODIFIED,api:o.gridApi,columnApi:o.columnApi,column:e,filterInstance:r};o.eventService.dispatchEvent(t)},filterChangedCallback:function(e){return o.onFilterChanged(r,e)},doesRowPassOtherFilter:function(e){return o.doesRowPassOtherFilters(r,e)}}),s=this.userComponentFactory.newFilterComponent(a,l,i);return s&&s.then((function(e){return r=e})),s},n.prototype.createFilterParams=function(e,t,n){void 0===n&&(n=null);var r={api:this.gridOptionsWrapper.getApi(),column:e,colDef:A(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}};return n&&(r.$scope=n),r},n.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:$r.resolve(null)};return n.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,n.filterPromise=this.createFilterInstance(e,n.scope),n.filterPromise&&this.putIntoGui(n,t),n},n.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new $r((function(i){e.filterPromise.then((function(a){var l=a.getGui();if(r(l)||console.warn("getGui method from filter returned "+l+", it should be a DOM element or an HTML template string."),"string"===typeof l&&(l=Rn(l)),o.appendChild(l),e.scope){var s=n.$compile(o)(e.scope);e.compiledElement=s,window.setTimeout((function(){return e.scope.$apply()}),0)}i(o),n.eventService.dispatchEvent({type:Ye.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},n.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;this.allAdvancedFilters.forEach((function(n){!e.columnModel.getPrimaryColumn(n.column)&&(t=!0,e.disposeFilterWrapper(n,"filterDestroyed"))})),t&&this.onFilterChanged()},n.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allAdvancedFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged())},n.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(r){(r.setModel(null)||$r.resolve()).then((function(){n.getContext().destroyBean(r),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),n.allAdvancedFilters.delete(e.column.getColId())}))}))},n.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allAdvancedFilters.forEach((function(e){return t.disposeFilterWrapper(e,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",Ns([de("$compile")],n.prototype,"$compile",void 0),Ns([de("$scope")],n.prototype,"$scope",void 0),Ns([de("valueService")],n.prototype,"valueService",void 0),Ns([de("columnModel")],n.prototype,"columnModel",void 0),Ns([de("rowModel")],n.prototype,"rowModel",void 0),Ns([de("columnApi")],n.prototype,"columnApi",void 0),Ns([de("gridApi")],n.prototype,"gridApi",void 0),Ns([de("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Ns([se],n.prototype,"init",null),Ns([ue],n.prototype,"destroy",null),n=o=Ns([ce("filterManager")],n)}(He),ks=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ls=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return ks(t,e),t.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},t.prototype.getValue=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),this.initialised||this.init(),t){var o,i=e.getColDef(),a=i.field,l=e.getId(),s=t.data,u=t.groupData&&void 0!==t.groupData[l],c=!r&&t.aggData&&void 0!==t.aggData[l];if(n&&i.filterValueGetter?o=this.executeFilterValueGetter(i.filterValueGetter,s,e,t):this.gridOptionsWrapper.isTreeData()&&c?o=t.aggData[l]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?o=this.executeValueGetter(i.valueGetter,s,e,t):this.gridOptionsWrapper.isTreeData()&&a&&s?o=B(s,a,e.isFieldContainsDots()):u?o=t.groupData[l]:c?o=t.aggData[l]:i.valueGetter?o=this.executeValueGetter(i.valueGetter,s,e,t):a&&s&&(o=B(s,a,e.isFieldContainsDots())),this.cellExpressions&&"string"===typeof o&&0===o.indexOf("=")){var d=o.substring(1);o=this.executeValueGetter(d,s,e,t)}if(null==o){var p=this.getOpenedGroup(t,e);if(null!=p)return p}return o}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsWrapper.isShowOpenedGroup()&&t.getColDef().showRowGroup)for(var n=t.getColDef().showRowGroup,r=e.parent;null!=r;){if(r.rowGroupColumn&&(!0===n||n===r.rowGroupColumn.getId()))return r.key;r=r.parent}},t.prototype.setValue=function(e,t,n,i){var a=this.columnModel.getPrimaryColumn(t);if(e&&a){o(e.data)&&(e.data={});var l=a.getColDef(),s=l.field,u=l.newValueHandler,c=l.valueSetter;if(o(s)&&o(u)&&o(c))console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work");else{var d,p={node:e,data:e.data,oldValue:this.getValue(a,e),newValue:n,colDef:a.getColDef(),column:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(p.newValue=n,void 0===(d=u&&r(u)?u(p):r(c)?this.expressionService.evaluate(c,p):this.setValueUsingField(e.data,s,n,a.isFieldContainsDots()))&&(d=!0),d){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),p.newValue=this.getValue(a,e);var f=a.getColDef().onCellValueChanged;"function"===typeof f&&setTimeout((function(){return f(p)}),0);var h={type:Ye.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:p.column,api:p.api,columnApi:p.columnApi,colDef:p.colDef,context:p.context,data:e.data,node:e,oldValue:p.oldValue,newValue:p.newValue,value:p.newValue,source:i};this.eventService.dispatchEvent(h)}}}},t.prototype.setValueUsingField=function(e,t,n,r){if(!t)return!1;if(r)for(var o=t.split("."),i=e;o.length>0&&i;){var a=o.shift();0===o.length?i[a]=n:i=i[a]}else e[t]=n;return!0},t.prototype.executeFilterValueGetter=function(e,t,n,r){var o={data:t,node:r,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,r)};return this.expressionService.evaluate(e,o)},t.prototype.executeValueGetter=function(e,t,n,r){var o=n.getId(),i=this.valueCache.getValue(r,o);if(void 0!==i)return i;var a={data:t,node:r,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,r)},l=this.expressionService.evaluate(e,a);return this.valueCache.setValue(r,o,l),l},t.prototype.getValueCallback=function(e,t){var n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),r=e.getColDef().keyCreator,o=r?r({value:n}):n;return"string"===typeof o||null==o||"[object Object]"===(o=String(o))&&Y((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]"),o},Fs([de("expressionService")],t.prototype,"expressionService",void 0),Fs([de("columnModel")],t.prototype,"columnModel",void 0),Fs([de("valueCache")],t.prototype,"valueCache",void 0),Fs([se],t.prototype,"init",null),t=Fs([ce("valueService")],t)}(He),Is=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(Es=t.LayoutCssClasses||(t.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",Es.NORMAL="ag-layout-normal",Es.PRINT="ag-layout-print";var Bs,Vs=function(e){function n(t){var n=e.call(this)||this;return n.view=t,n}return Is(n,e),n.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,Na.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},n.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),n={autoHeight:e===Oe.DOM_LAYOUT_AUTO_HEIGHT,normal:e===Oe.DOM_LAYOUT_NORMAL,print:e===Oe.DOM_LAYOUT_PRINT},r=n.autoHeight?t.LayoutCssClasses.AUTO_HEIGHT:n.print?t.LayoutCssClasses.PRINT:t.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(r,n)},Gs([de("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Gs([se],n.prototype,"postConstruct",null),n}(He),Hs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ws=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Us=function(e){function t(t){var n=e.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=t,n.resetLastHorizontalScrollElementDebounced=ne(n.resetLastHorizontalScrollElement.bind(n),500),n}return Hs(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCon.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?ne(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.centerRowContainerCon.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),r=this.ctrlsService.getBottomCenterRowContainerCtrl(),o=this.ctrlsService.getHeaderRootComp(),i=this.ctrlsService.getFakeHScrollCtrl();o.setHorizontalScroll(t),r.setContainerTranslateX(t),n.setContainerTranslateX(t),Mn(this.lastHorizontalScrollElement===this.centerRowContainerCon.getViewportElement()?i.getViewport():this.centerRowContainerCon.getViewportElement(),Math.abs(e),this.enableRtl)},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCon.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCon.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(En(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){if(this.scrollLeft!==e){this.scrollLeft=e;var t={type:Ye.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.shouldBlockScrollUpdate=function(e,t,n){if(void 0===n&&(n=!1),n&&!Zt())return!1;if("vertical"===e){var r=bn(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;if(t<0||t+r>o)return!0}if("horizontal"===e){var i=this.centerRowContainerCon.getCenterWidth(),a=this.centerRowContainerCon.getViewportElement().scrollWidth;if(this.enableRtl&&Cn()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>a)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){var e={type:Ye.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(){this.centerRowContainerCon.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCon.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCon.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCon.getViewportElement().scrollWidth-this.centerRowContainerCon.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Cn()?e>0?0:t:Math.min(Math.max(e,0),t)),Mn(this.centerRowContainerCon.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCon.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCon.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCon.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCon.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var n=this.rowModel.getRowCount(),r="function"===typeof e,o=-1,i=0;i=0&&this.ensureIndexVisible(o,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==Oe.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var r,o=this.paginationProxy.getRow(e);do{var i=o.rowTop,a=o.rowHeight,l=this.paginationProxy.getPixelOffset(),s=o.rowTop-l,u=s+o.rowHeight,c=this.getVScrollPosition(),d=this.heightScaler.getDivStretchOffset(),p=c.top+d,f=c.bottom+d,h=f-p,v=this.heightScaler.getScrollPositionForPixel(s),g=this.heightScaler.getScrollPositionForPixel(u-h),m=Math.min((v+g)/2,s),y=null;"top"===t?y=v:"bottom"===t?y=g:"middle"===t?y=m:p>s?y=v:fo,c=r=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$s=function(){for(var e=0,t=0,n=arguments.length;tt.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},n.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},n.prototype.ensureIntervalCleared=function(){r(this.movingIntervalId)&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},n.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.ctrlsService.getGridBodyCtrl();this.needToMoveDown?t=n.scrollVertically(e):this.needToMoveUp&&(t=n.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},n.prototype.addRowDropZone=function(e){var n=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var r={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,r=e):(e.onDragEnter&&(r.onDragEnter=function(t){e.onDragEnter(n.draggingToRowDragEvent(Ye.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(r.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(Ye.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(r.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(Ye.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(r.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(Ye.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(Ks({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return ei.ICON_MOVE},external:!0},r))}else Y((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},n.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),r=this.onDragEnter.bind(this),o=this.onDragLeave.bind(this),i=this.onDragging.bind(this),a=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){r(n),e.onDragEnter(t.draggingToRowDragEvent(Ye.EVENT_ROW_DRAG_ENTER,n))}:r,onDragLeave:e.onDragLeave?function(n){o(n),e.onDragLeave(t.draggingToRowDragEvent(Ye.EVENT_ROW_DRAG_LEAVE,n))}:o,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(Ye.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){a(n),e.onDragStop(t.draggingToRowDragEvent(Ye.EVENT_ROW_DRAG_END,n))}:a,fromGrid:!0}:{getContainer:n,onDragEnter:r,onDragLeave:o,onDragging:i,onDragStop:a,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(e,n){var r,o,i=this.mouseEventService.getNormalisedPosition(n).y,a=-1;switch(i>this.paginationProxy.getCurrentPageHeight()||(a=this.rowModel.getRowIndexAtPixel(i),r=this.rowModel.getRow(a)),n.vDirection){case t.VerticalDirection.Down:o="down";break;case t.VerticalDirection.Up:o="up";break;default:o=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:a,overNode:r,y:i,vDirection:o}},n.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},n.prototype.onDragLeave=function(e){this.dispatchGridEvent(Ye.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},n.prototype.onDragStop=function(e){this.dispatchGridEvent(Ye.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},n.prototype.stopDragging=function(e){this.ensureIntervalCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Ys([de("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Ys([de("rowModel")],n.prototype,"rowModel",void 0),Ys([de("paginationProxy")],n.prototype,"paginationProxy",void 0),Ys([de("columnModel")],n.prototype,"columnModel",void 0),Ys([de("focusService")],n.prototype,"focusService",void 0),Ys([de("sortController")],n.prototype,"sortController",void 0),Ys([de("filterManager")],n.prototype,"filterManager",void 0),Ys([de("selectionService")],n.prototype,"selectionService",void 0),Ys([pe("rangeService")],n.prototype,"rangeService",void 0),Ys([de("mouseEventService")],n.prototype,"mouseEventService",void 0),Ys([de("ctrlsService")],n.prototype,"ctrlsService",void 0),Ys([se],n.prototype,"postConstruct",null),n}(He),Xs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(Bs=t.RowAnimationCssClasses||(t.RowAnimationCssClasses={})).ANIMATION_ON="ag-row-animation",Bs.ANIMATION_OFF="ag-row-no-animation";var Js,eu="ag-selectable",tu="ag-force-vertical-scroll",nu="ag-column-moving",ru=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.angularApplyTriggered=!1,t}return Xs(n,e),n.prototype.getScrollFeature=function(){return this.bodyScrollFeature},n.prototype.getBodyViewportElement=function(){return this.eBodyViewport},n.prototype.setComp=function(e,t,n,r,o){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=r,this.eBottom=o,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new Vs(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Us(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.ctrlsService.registerGridBodyCtrl(this),this.addEventListeners(),this.addFocusListeners([r,n,o]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.$scope&&this.addAngularApplyCheck()},n.prototype.getComp=function(){return this.comp},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ye.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_PINNED_ROW_DATA_CHANGED,this.setFloatingHeights.bind(this))},n.prototype.addFocusListeners=function(e){var t=this;e.forEach((function(e){t.addManagedListener(e,"focusin",(function(){un(e,"ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||cn(e,"ag-has-focus")}))}))},n.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?nu:null,e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?eu:null;this.comp.setCellSelectableCss(t,e)},n.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e)},n.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},n.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var t=function(t){var r=t.relatedTarget;if(null!==Jt(r)){var o=n.some((function(e){return e.contains(r)}))&&e.mouseEventService.isElementInThisGrid(r);if(!o){var i=e.popupService;o=i.getActivePopups().some((function(e){return e.contains(r)}))||i.isElementWithinCustomPopup(r)}o||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop];n.forEach((function(n){return e.addManagedListener(n,"focusout",t)}))}},n.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.paginationProxy.getType(),n=-1;t===Oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(n=0,this.paginationProxy.forEachNode((function(e){e.group||n++})));var r=-1===n?-1:e+n;this.comp.setRowCount(r)},n.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),t=e?tu:null;return this.comp.setAlwaysVerticalScrollClass(t,e),e||Fn(this.eBodyViewport)},n.prototype.setupRowAnimationCssClass=function(){var e=this,n=function(){var n=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),r=n?t.RowAnimationCssClasses.ANIMATION_ON:t.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(r,n)};n(),this.addManagedListener(this.eventService,Ye.EVENT_HEIGHT_SCALE_CHANGED,n)},n.prototype.getGridBodyElement=function(){return this.eGridBody},n.prototype.addBodyViewportListener=function(){var e=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(t){var n=ke(t);n!==e.eBodyViewport&&n!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody)}))},n.prototype.getGui=function(){return this.eGridBody},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},n.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Qs(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none")},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.isVerticalScrollShowing()&&!Kt()?this.gridOptionsWrapper.getScrollbarWidth():0,r=On(this.eBodyViewport)-n;r>0?this.columnModel.sizeColumnsToFit(r,"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?")},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},n.prototype.requestAngularApply=function(){var e=this;this.angularApplyTriggered||(this.angularApplyTriggered=!0,window.setTimeout((function(){e.angularApplyTriggered=!1,e.$scope.$apply()}),0))},n.prototype.addAngularApplyCheck=function(){var e=this;this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.requestAngularApply()})),this.addManagedListener(this.eventService,Ye.EVENT_VIRTUAL_COLUMNS_CHANGED,(function(){return e.requestAngularApply()}))},Zs([de("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),Zs([de("ctrlsService")],n.prototype,"ctrlsService",void 0),Zs([de("columnModel")],n.prototype,"columnModel",void 0),Zs([de("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Zs([pe("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Zs([de("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Zs([de("paginationProxy")],n.prototype,"paginationProxy",void 0),Zs([de("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Zs([de("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Zs([de("rowRenderer")],n.prototype,"rowRenderer",void 0),Zs([de("popupService")],n.prototype,"popupService",void 0),Zs([de("mouseEventService")],n.prototype,"mouseEventService",void 0),Zs([de("$scope")],n.prototype,"$scope",void 0),n}(He),ou=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},au=function(e){function n(t){var n=e.call(this)||this;return n.element=t,n}return ou(n,e),n.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Ne("touchstart")?"touchstart":"mousedown"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!De(t)){var n=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,r):(r&&r.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;if(Zt()){var t=new No(this.element);this.addManagedListener(t,No.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),r=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,r)})),this.addDestroyFunc((function(){return t.destroy()}))}},n.prototype.getRowForEvent=function(e){for(var t=ke(e);t;){var n=this.gridOptionsWrapper.getDomData(t,Ol.DOM_DATA_KEY_RENDERED_ROW);if(n)return n;t=t.parentElement}return null},n.prototype.handleContextMenuMouseEvent=function(e,t,n,r){var o=n?n.getRowNode():null,i=r?r.getColumn():null,a=null;if(i){var l=e||t;r.dispatchCellContextMenuEvent(l),a=this.valueService.getValue(i,o)}var s=this.ctrlsService.getGridBodyCtrl(),u=r?r.getGui():s.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,o,i,a,u)},n.prototype.processKeyboardEvent=function(e,t){var n=ze(this.gridOptionsWrapper,t,dl.DOM_DATA_KEY_CELL_CTRL),r=ze(this.gridOptionsWrapper,t,Ol.DOM_DATA_KEY_RENDERED_ROW);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))},n.prototype.processCellKeyboardEvent=function(e,t,n){var r=e.getRowNode(),o=e.getColumn(),i=e.isEditing();if(!kr(this.gridOptionsWrapper,n,r,o,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===t){var a=e.createEvent(n,Ye.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createEvent(n,Ye.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(l)}},n.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var r=e.getRowNode(),o=this.focusService.getFocusedCell(),i=o&&o.column;if(!kr(this.gridOptionsWrapper,n,r,i,!1)){var a=n.keyCode;if("keydown"===t)switch(a){case co.UP:case co.DOWN:e.onKeyboardNavigate(n);break;case co.TAB:e.onTabKeyDown(n)}}if("keydown"===t){var l=e.createRowEvent(Ye.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(l)}if("keypress"===t){var s=e.createRowEvent(Ye.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(s)}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case co.A:return this.onCtrlAndA(e);case co.C:return this.onCtrlAndC(e);case co.V:return this.onCtrlAndV();case co.D:return this.onCtrlAndD(e);case co.Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case co.Y:return this.undoRedoService.redo()}},n.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,r=t.paginationProxy,o=t.rangeService,a=Oe.PINNED_BOTTOM,l=Oe.PINNED_TOP;if(o&&r.isRowsToRender()){var s=[n.isEmpty(l),n.isEmpty(a)],u=s[0]?null:l,c=void 0,d=void 0;s[1]?(c=null,d=this.paginationProxy.getRowCount()-1):(c=a,d=n.getPinnedBottomRowData().length-1);var p=this.columnModel.getAllDisplayedColumns();if(i(p))return;o.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:d,rowEndPinned:c,columnStart:p[0],columnEnd:v(p)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){we.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){we.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},iu([de("mouseEventService")],n.prototype,"mouseEventService",void 0),iu([de("valueService")],n.prototype,"valueService",void 0),iu([pe("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),iu([de("ctrlsService")],n.prototype,"ctrlsService",void 0),iu([de("navigationService")],n.prototype,"navigationService",void 0),iu([de("focusService")],n.prototype,"focusService",void 0),iu([de("undoRedoService")],n.prototype,"undoRedoService",void 0),iu([de("columnModel")],n.prototype,"columnModel",void 0),iu([de("paginationProxy")],n.prototype,"paginationProxy",void 0),iu([de("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),iu([pe("rangeService")],n.prototype,"rangeService",void 0),iu([pe("clipboardService")],n.prototype,"clipboardService",void 0),iu([se],n.prototype,"postConstruct",null),n}(He),lu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),su=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uu=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCon=t,n}return lu(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,Ye.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this.onCenterViewportResized.bind(this);this.centerContainerCon.registerViewportResizeListener(e),this.gridBodyCon.registerBodyViewportResizeListener(e)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCon.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCon.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCon.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=bn(this.gridBodyCon.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Ye.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCon.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCon.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCon.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCon.getCenterWidth(),t=this.centerContainerCon.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},su([de("ctrlsService")],t.prototype,"ctrlsService",void 0),su([de("columnModel")],t.prototype,"columnModel",void 0),su([de("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),su([de("columnApi")],t.prototype,"columnApi",void 0),su([de("gridApi")],t.prototype,"gridApi",void 0),su([se],t.prototype,"postConstruct",null),t}(He),cu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),du=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pu=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return cu(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ye.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;hn(this.element,t),t&&In(this.element,e)},du([de("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),du([se],t.prototype,"postConstruct",null),t}(He),fu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vu=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return fu(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ye.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;hn(this.element,t),t&&In(this.element,e)},hu([de("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),hu([se],t.prototype,"postConstruct",null),t}(He),gu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yu=function(e){function t(t,n){var r=e.call(this)||this;return r.eContainer=t,r.eWrapper=n,r}return gu(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ye.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},mu([de("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),mu([se],t.prototype,"postConstruct",null),t}(He),bu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ou=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wu=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return bu(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!o(this.rangeService)){var t={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},Ou([pe("rangeService")],t.prototype,"rangeService",void 0),Ou([de("dragService")],t.prototype,"dragService",void 0),Ou([se],t.prototype,"postConstruct",null),t}(He),_u=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Eu=function(){for(var e=0,t=0,n=arguments.length;t=0&&t()},n.prototype.getContainerElement=function(){return this.eContainer},n.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},n.prototype.setComp=function(e,n,r,o){var i=this;this.comp=e,this.eContainer=n,this.eViewport=r,this.eWrapper=o,this.createManagedBean(new au(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var a=[t.RowContainerName.TOP_CENTER,t.RowContainerName.TOP_LEFT,t.RowContainerName.TOP_RIGHT],l=[t.RowContainerName.BOTTOM_CENTER,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.BOTTOM_RIGHT],s=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT],u=Eu(a,l,s),c=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT,t.RowContainerName.FULL_WIDTH],d=[t.RowContainerName.CENTER,t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],p=[t.RowContainerName.LEFT,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.TOP_LEFT],f=[t.RowContainerName.RIGHT,t.RowContainerName.BOTTOM_RIGHT,t.RowContainerName.TOP_RIGHT];this.forContainers(p,(function(){return i.createManagedBean(new pu(i.eContainer))})),this.forContainers(f,(function(){return i.createManagedBean(new vu(i.eContainer))})),this.forContainers(c,(function(){return i.createManagedBean(new yu(i.eContainer,i.eWrapper))})),this.forContainers(u,(function(){return i.createManagedBean(new wu(i.eContainer))})),this.forContainers(d,(function(){return i.createManagedBean(new Ss((function(e){return i.comp.setContainerWidth(e+"px")})))}))},n.prototype.listenOnDomOrder=function(){var e=this,t=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,Na.PROP_DOM_LAYOUT,t),t()},n.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},n.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onScrollVisibilityChanged=function(){if(this.name===t.RowContainerName.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=0==e?"100%":"calc(100% + "+e+"px)";this.comp.setViewportHeight(n)}},n.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},n.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},n.prototype.getCenterWidth=function(){return On(this.eViewport)},n.prototype.getCenterViewportScrollLeft=function(){return En(this.eViewport,this.enableRtl)},n.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return t()}))},n.prototype.isViewportVisible=function(){return Sn(this.eViewport)},n.prototype.isViewportHScrollShowing=function(){return kn(this.eViewport)},n.prototype.getViewportScrollLeft=function(){return En(this.eViewport,this.enableRtl)},n.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||kn(this.eViewport)},n.prototype.getViewportElement=function(){return this.eViewport},n.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},n.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},n.prototype.setCenterViewportScrollLeft=function(e){Mn(this.eViewport,e,this.enableRtl)},n.prototype.onDisplayedRowsChanged=function(){var e=this,n=this.name===t.RowContainerName.TOP_FULL_WITH||this.name===t.RowContainerName.BOTTOM_FULL_WITH||this.name===t.RowContainerName.FULL_WIDTH,r=this.getRowCtrls().filter((function(t){var r=t.isFullWidth(),o=e.gridOptionsWrapper.getDomLayout()===Oe.DOM_LAYOUT_PRINT,i=e.embedFullWidthRows||o;return n?!i&&r:i||!r}));this.comp.setRowCtrls(r)},n.prototype.getRowCtrls=function(){switch(this.name){case t.RowContainerName.TOP_CENTER:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.TOP_FULL_WITH:return this.rowRenderer.getTopRowCtrls();case t.RowContainerName.BOTTOM_CENTER:case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.BOTTOM_FULL_WITH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Cu([de("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Cu([de("dragService")],n.prototype,"dragService",void 0),Cu([de("ctrlsService")],n.prototype,"ctrlsService",void 0),Cu([de("columnModel")],n.prototype,"columnModel",void 0),Cu([de("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Cu([de("rowRenderer")],n.prototype,"rowRenderer",void 0),Cu([se],n.prototype,"postConstruct",null),n}(He),Tu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Au=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Du='
\n \n \n \n \n \n \n
',Nu=function(e){function n(){return e.call(this,Du)||this}return Tu(n,e),n.prototype.init=function(){var e=this,n=function(e,t){var n=e+"px";t.style.minHeight=n,t.style.height=n},r={setRowAnimationCssOnBodyViewport:function(t,n){return e.setRowAnimationCssOnBodyViewport(t,n)},setColumnCount:function(t){return fr(e.getGui(),t)},setRowCount:function(t){return dr(e.getGui(),t)},setTopHeight:function(t){return n(t,e.eTop)},setBottomHeight:function(t){return n(t,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setColumnMovingCss:function(t,n){return e.addOrRemoveCssClass(nu,n)},updateLayoutClasses:function(n,r){dn(e.eBodyViewport,t.LayoutCssClasses.AUTO_HEIGHT,r.autoHeight),dn(e.eBodyViewport,t.LayoutCssClasses.NORMAL,r.normal),dn(e.eBodyViewport,t.LayoutCssClasses.PRINT,r.print),e.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,r.autoHeight),e.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,r.normal),e.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,r.print)},setAlwaysVerticalScrollClass:function(t,n){return dn(e.eBodyViewport,tu,n)},registerBodyViewportResizeListener:function(t){var n=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,n){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return dn(e,eu,n)}))}};this.ctrl=this.createManagedBean(new ru),this.ctrl.setComp(r,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&cr(this.getGui(),!0)},n.prototype.setRowAnimationCssOnBodyViewport=function(e,n){dn(this.eBodyViewport,t.RowAnimationCssClasses.ANIMATION_ON,n),dn(this.eBodyViewport,t.RowAnimationCssClasses.ANIMATION_OFF,!n)},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Au([de("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Au([pe("rangeService")],n.prototype,"rangeService",void 0),Au([lo("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Au([lo("eTop")],n.prototype,"eTop",void 0),Au([lo("eBottom")],n.prototype,"eBottom",void 0),Au([lo("headerRoot")],n.prototype,"headerRootComp",void 0),Au([se],n.prototype,"init",null),n}(oo);(Mu=t.ExcelFactoryMode||(t.ExcelFactoryMode={}))[Mu.SINGLE_SHEET=0]="SINGLE_SHEET",Mu[Mu.MULTI_SHEET=1]="MULTI_SHEET",(Pu=t.ClientSideRowModelSteps||(t.ClientSideRowModelSteps={})).EVERYTHING="group",Pu.FILTER="filter",Pu.SORT="sort",Pu.MAP="map",Pu.AGGREGATE="aggregate",Pu.PIVOT="pivot",Pu.NOTHING="nothing";var zu,ku=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fu=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case Oe.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case Oe.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case Oe.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},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;T(this.detailGridInfoMap,(function(n,o){r(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(we.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){we.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){if(we.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel")){var n=e&&e.exportMode||"xlsx";return this.excelCreator.getFactoryMode(n)===t.ExcelFactoryMode.MULTI_SHEET?void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`"):this.excelCreator.getDataAsExcel(e)}},e.prototype.exportDataAsExcel=function(e){if(we.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")){var n=e&&e.exportMode||"xlsx";if(this.excelCreator.getFactoryMode(n)===t.ExcelFactoryMode.MULTI_SHEET)return void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");this.excelCreator.exportDataAsExcel(e)}},e.prototype.getSheetDataForExcel=function(e){if(we.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var n=e&&e.exportMode||"xlsx";return this.excelCreator.setFactoryMode(t.ExcelFactoryMode.MULTI_SHEET,n),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(we.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(we.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(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.setGridAriaProperty=function(e,t){if(e){var n=this.ctrlsService.getGridBodyCtrl().getGui(),r="aria-"+e;null===t?n.removeAttribute(r):n.setAttribute(r,t)}},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+Oe.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 '"+Oe.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 '"+Oe.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var t=this.immutableService.createTransactionForRowData(e);if(!t)return;var n=t[0],r=t[1],o=this.clientSideRowModel.updateRowData(n,r);o&&this.rowRenderer.refreshFullWidthRows(o.update)}else this.selectionService.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.columnModel.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCon.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCon.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},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={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},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()},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){o(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),r(e)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.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){o(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var n=t.ClientSideRowModelSteps.EVERYTHING,i={group:t.ClientSideRowModelSteps.EVERYTHING,filter:t.ClientSideRowModelSteps.FILTER,map:t.ClientSideRowModelSteps.MAP,aggregate:t.ClientSideRowModelSteps.AGGREGATE,sort:t.ClientSideRowModelSteps.SORT,pivot:t.ClientSideRowModelSteps.PIVOT};if(r(e)&&(n=i[e]),o(n))console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(i).join(", "));else{var a={step:n,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(a)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(e);console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.addVirtualRowListener=function(e,t,n){"string"!==typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"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,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.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.selectionService.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&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.selectionService.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){o(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:t.ClientSideRowModelSteps.AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridBodyCon.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.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.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionService.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.gridBodyCon.getScrollFeature().ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCon.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCon.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){o(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){o(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){o(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 getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e,t){var n=this.columnModel.getPrimaryColumn(e);if(n){var r=this.filterManager.getFilterComponent(n,"NO_UI"),o=r&&r.resolveNow(null,(function(e){return e}));return t&&(o?setTimeout(t,0,o):r&&r.then(t)),o}},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.columnModel.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.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){console.warn("AG Grid: as of version 24.0.0, setSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.applyColumnState() instead.");var n=[];e&&e.forEach((function(e,t){n.push({colId:e.colId,sort:e.sort,sortIndex:t})})),this.columnModel.applyColumnState({state:n,defaultState:{sort:null}})},e.prototype.getSortModel=function(){console.warn("AG Grid: as of version 24.0.0, getSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.getColumnState() instead.");var e=this.columnModel.getColumnState().filter((function(e){return null!=e.sort})),t={};e.forEach((function(e){var n=e.colId,r=e.sortIndex;t[n]=r}));var n=e.map((function(e){return{colId:e.colId,sort:e.sort}}));return n.sort((function(e,n){return t[e.colId]-t[n.colId]})),n},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusService.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridBodyCon.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCon.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_HEADER_HEIGHT,e)},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCon.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_FILL_HANDLE_DIRECTION,e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GROUP_HEADER_HEIGHT,e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_FLOATING_FILTERS_HEIGHT,e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_DOES_EXTERNAL_FILTER_PASS,e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_NAVIGATE_TO_NEXT_CELL,e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_TAB_TO_NEXT_CELL,e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_TAB_TO_NEXT_HEADER,e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_NAVIGATE_TO_NEXT_HEADER,e)},e.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GROUP_ROW_AGG_NODES,e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},e.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_CHILD_COUNT,e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PROCESS_ROW_POST_CREATE,e)},e.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_ROW_NODE_ID,e)},e.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_ROW_CLASS,e)},e.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_IS_FULL_WIDTH_CELL,e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_IS_ROW_SELECTABLE,e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_IS_ROW_MASTER,e)},e.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_POST_SORT,e)},e.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_DOCUMENT,e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_CONTEXT_MENU_ITEMS,e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_MAIN_MENU_ITEMS,e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_SEND_TO_CLIPBOARD,e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},e.prototype.setProcessSecondaryColDef=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PROCESS_TO_SECONDARY_COLDEF,e)},e.prototype.setProcessSecondaryColGroupDef=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_POST_PROCESS_POPUP,e)},e.prototype.setDefaultGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,e)},e.prototype.setProcessChartOptions=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PROCESS_CHART_OPTIONS,e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_CHART_TOOLBAR_ITEMS,e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PAGINATION_NUMBER_FORMATTER,e)},e.prototype.setGetServerSideStoreParams=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_SERVER_SIDE_STORE_PARAMS,e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_IS_SERVER_SIDE_GROUP,e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_ROW_STYLE,e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GET_ROW_HEIGHT,e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_PIVOT_HEADER_HEIGHT,e)},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},e.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},e.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",Pa.parse(e))},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.doLayout=function(){Y((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},e.prototype.resetRowHeights=function(){r(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnModel.getPrimaryColumn(e);return o(n)&&(n=this.columnModel.getGridColumn(e)),o(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},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(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(V.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||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.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return ot(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.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(we.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&we.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(we.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartRef")&&we.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(we.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartImageDataURL")&&we.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.createRangeChart=function(e){if(we.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&we.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(we.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createCrossFilterChart")&&we.assertRegistered(t.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,n){if(we.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.restoreChart")&&we.assertRegistered(t.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,n)},e.prototype.createPivotChart=function(e){if(we.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&we.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},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 n=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnModel.getGridColumn(e);n||(n=this.columnModel.getPrimaryColumn(e)),n?this.menuFactory.showMenuAfterMouseEvent(n,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(Na.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.navigationService.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.navigationService.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.columnModel.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex);var r=this.navigationService.getCellByPosition(n);r&&r.startRowOrCellEdit(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.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},e.prototype.updateRowData=function(e){return Y((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){Y((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,n){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){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){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.infiniteRowModel?this.infiniteRowModel.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.infiniteRowModel?this.infiniteRowModel.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){void 0===e&&(e=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead."),this.refreshServerSideStore({route:e,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSideStore=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},e.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},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.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();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.setRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},e.prototype.setRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},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.rowNodeBlockLoader.getBlockState()},e.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},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)},ku([pe("immutableService")],e.prototype,"immutableService",void 0),ku([pe("csvCreator")],e.prototype,"csvCreator",void 0),ku([pe("excelCreator")],e.prototype,"excelCreator",void 0),ku([de("rowRenderer")],e.prototype,"rowRenderer",void 0),ku([de("navigationService")],e.prototype,"navigationService",void 0),ku([de("filterManager")],e.prototype,"filterManager",void 0),ku([de("columnModel")],e.prototype,"columnModel",void 0),ku([de("selectionService")],e.prototype,"selectionService",void 0),ku([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ku([de("valueService")],e.prototype,"valueService",void 0),ku([de("alignedGridsService")],e.prototype,"alignedGridsService",void 0),ku([de("eventService")],e.prototype,"eventService",void 0),ku([de("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ku([de("context")],e.prototype,"context",void 0),ku([de("rowModel")],e.prototype,"rowModel",void 0),ku([de("sortController")],e.prototype,"sortController",void 0),ku([de("paginationProxy")],e.prototype,"paginationProxy",void 0),ku([de("focusService")],e.prototype,"focusService",void 0),ku([de("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ku([pe("rangeService")],e.prototype,"rangeService",void 0),ku([pe("clipboardService")],e.prototype,"clipboardService",void 0),ku([pe("aggFuncService")],e.prototype,"aggFuncService",void 0),ku([de("menuFactory")],e.prototype,"menuFactory",void 0),ku([pe("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),ku([de("valueCache")],e.prototype,"valueCache",void 0),ku([de("animationFrameService")],e.prototype,"animationFrameService",void 0),ku([pe("statusBarService")],e.prototype,"statusBarService",void 0),ku([pe("chartService")],e.prototype,"chartService",void 0),ku([pe("undoRedoService")],e.prototype,"undoRedoService",void 0),ku([pe("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),ku([pe("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),ku([de("ctrlsService")],e.prototype,"ctrlsService",void 0),ku([se],e.prototype,"init",null),ku([ue],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=ku([ce("gridApi")],e)}(),Lu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Iu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gu=function(e,t){return function(n,r){t(n,r,e)}},Bu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return Lu(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("function"===typeof e)return e(t);if("string"===typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("AG Grid: value should be either a string or a function",e)},t.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(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Iu([Gu(0,he("loggerFactory"))],t.prototype,"setBeans",null),t=Iu([ce("expressionService")],t)}(He),Vu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return Vu(t,e),t.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var r=this.waitingCallbacks[e],o=this;if(!r){r=[],this.waitingCallbacks[e]=r;var i=new XMLHttpRequest;i.onload=function(){o.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&r.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],r=0;r=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ku=function(){for(var e=0,t=0,n=arguments.length;t0?-1===n.indexOf(t)&&n.push(t):(r.instancesMonitored.set(e,[t]),e.addEventListener("keydown",r.toggleKeyboardMode),e.addEventListener("mousedown",r.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var n=r.instancesMonitored.get(e),o=[];n&&n.length&&(o=Ku(n).filter((function(e){return e!==t})),r.instancesMonitored.set(e,o)),0===o.length&&(e.removeEventListener("keydown",r.toggleKeyboardMode),e.removeEventListener("mousedown",r.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=r.keyboardModeActive,n="keydown"===e.type;if((!n||!(e.ctrlKey||e.metaKey||e.altKey))&&!(t&&n||!t&&!n)){r.keyboardModeActive=n;var o=e.target.ownerDocument;if(o){var i=r.instancesMonitored.get(o);i&&i.forEach((function(e){e.dispatchEvent({type:n?Ye.EVENT_KEYBOARD_FOCUS:Ye.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,Ye.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var n=e.gridOptionsWrapper.getDocument();r.addKeyboardModeEvents(n,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();r.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return r.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition?null:this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},t.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var n=this.gridOptionsWrapper.getDomData(t,dl.DOM_DATA_KEY_CELL_CTRL);if(n)return n.getCellPosition();t=t.parentNode}return null},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e,t,r,o){void 0===o&&(o=!1);var i=this.columnModel.getGridColumn(t);i?(this.focusedCellPosition=i?{rowIndex:e,rowPinned:n(r),column:i}:null,this.onCellFocused(o)):this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumn(),n=e.getParentComponent().getRowIndex(),r=e.getPinned(),o=this.focusedHeaderPosition,i=o.column,a=o.headerRowIndex;return t===i&&n===a&&r==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e,t,n,r,o){if(void 0===t&&(t=null),void 0===n&&(n=!1),void 0===r&&(r=!1),r){var i,a=this.gridOptionsWrapper,l=this.getFocusedHeader(),s=this.headerNavigationService.getHeaderRowCount();if(n){if(i=a.getTabToNextHeaderFunc())e=i({backwards:"Before"===t,previousHeaderPosition:l,nextHeaderPosition:e,headerRowCount:s})}else if((i=a.getNavigateToNextHeaderFunc())&&o)e=i({key:o.key,previousHeaderPosition:l,nextHeaderPosition:e,headerRowCount:s,event:o})}if(!e)return!1;if(-1===e.headerRowIndex)return this.focusGridView(e.column);this.headerNavigationService.scrollToColumn(e.column,t);var u=this.headerNavigationService.getHeaderContainer(e.column.getPinned()).getRowComps()[e.headerRowIndex].getHeaderComps()[e.column.getUniqueId()];return!!u&&(u.getFocusableElement().focus(),!0)},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===n(t))},t.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var r=Oe.FOCUSABLE_SELECTOR,o=Oe.FOCUSABLE_EXCLUDE;t&&(o+=", "+t),n&&(o+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(r)),a=Array.prototype.slice.apply(e.querySelectorAll(o));if(!a.length)return i;var l;return l=a,i.filter((function(e){return-1===l.indexOf(e)}))},t.prototype.focusInto=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=this.findFocusableElements(e,null,n),o=t?v(r):r[0];return!!o&&(o.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,n){var r=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),o=(t?E(r,(function(e){return e.contains(document.activeElement)})):r.indexOf(document.activeElement))+(n?-1:1);return o<0||o>=r.length?null:r[o]},t.prototype.isFocusUnderManagedComponent=function(e){var t=e.querySelectorAll("."+wo.FOCUS_MANAGED_CLASS);if(!t.length)return!1;for(var n=0;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal"}(zu||(zu={}));var Xu,Zu=0,Ju=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}return $u(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,Ye.EVENT_KEYBOARD_FOCUS,(function(){x(e.popupList,(function(e){return un(e.element,Yu.AG_KEYBOARD_FOCUS)}))})),e.addManagedListener(e.gridCtrl,Ye.EVENT_MOUSE_FOCUS,(function(){x(e.popupList,(function(e){return cn(e.element,Yu.AG_KEYBOARD_FOCUS)}))}))}))},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),r=this.keepXYWithinBounds(e.ePopup,t.top-n.top,zu.vertical),o=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=o+"px";var i,a=n.right-n.left-o;function l(){return t.right-n.left-2}function s(){return t.left-n.left-o}this.gridOptionsWrapper.isEnableRtl()?((i=s())<0&&(i=l()),i>a&&(i=0)):((i=l())>a&&(i=s()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=r+"px"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=e.ePopup,n=e.nudgeX,r=e.nudgeY,o=this.calculatePointerAlign(e.mouseEvent),i=o.x,a=o.y;this.positionPopup({ePopup:t,x:i,y:a,nudgeX:n,nudgeY:r,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",r=this.getParentRect(),o=t.left-r.left;"right"===n&&(o-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o,y:t.top-r.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,t,n,r,o,i){var a=this.gridOptionsWrapper.getPostProcessPopupFunc();a&&a({column:o,rowNode:i,ePopup:t,type:e,eventSource:n,mouseEvent:r})},t.prototype.positionPopup=function(e){var t=e.ePopup,n=e.keepWithinBounds,r=e.nudgeX,o=e.nudgeY,i=e.x,a=e.y;r&&(i+=r),o&&(a+=o),n&&(i=this.keepXYWithinBounds(t,i,zu.horizontal),a=this.keepXYWithinBounds(t,a,zu.vertical)),t.style.left=i+"px",t.style.top=a+"px"},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.getPopupParent();t===e.body&&(t=e.documentElement);var n=getComputedStyle(t),r=t.getBoundingClientRect();return{top:r.top+parseFloat(n.borderTopWidth)||0,left:r.left+parseFloat(n.borderLeftWidth)||0,right:r.right+parseFloat(n.borderRightWidth)||0,bottom:r.bottom+parseFloat(n.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,t,n){var r=n===zu.vertical,o=r?"clientHeight":"clientWidth",i=r?"top":"left",a=r?"offsetHeight":"offsetWidth",l=r?"scrollTop":"scrollLeft",s=this.gridOptionsWrapper.getDocument(),u=s.documentElement,c=this.getPopupParent(),d=c.getBoundingClientRect(),p=s.documentElement.getBoundingClientRect(),f=c===s.body,h=e[a],v=f?(r?wn:_n)(u)+u[l]:c[o];f&&(v-=Math.abs(p[i]-d[i]));var g=v-h;return Math.min(Math.max(t,0),Math.abs(g))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,n=this.getPopupParent(),r=n.getBoundingClientRect(),o=e.element.getBoundingClientRect(),i=r.top-o.top,a=r.left-o.left,l=i,s=a,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),d=e.ePopup.style.left,p=parseInt(d.substring(0,d.length-1),10);return new $r((function(r){t.getFrameworkOverrides().setInterval((function(){var t=n.getBoundingClientRect(),r=e.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)e.hidePopup();else{var o=t.top-r.top;if(o!=l){var u=c+i-o;e.ePopup.style.top=u+"px"}l=o;var d=t.left-r.left;if(d!=s){var f=p+a-d;e.ePopup.style.left=f+"px"}s=d}}),200).then((function(e){r((function(){null!=e&&window.clearInterval(e)}))}))}))},t.prototype.addPopup=function(e){var t=this,n=e.modal,r=e.eChild,o=e.closeOnEsc,i=e.closedCallback,a=e.click,l=e.alwaysOnTop,s=e.afterGuiAttached,u=e.positionCallback,c=e.anchorToElement,d=this.gridOptionsWrapper.getDocument(),p=new $r((function(e){return e((function(){}))}));if(!d)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:p};var f=E(this.popupList,(function(e){return e.element===r}));if(-1!==f){var h=this.popupList[f];return{hideFunc:h.hideFunc,stopAnchoringPromise:h.stopAnchoringPromise}}var v=this.getPopupParent();null==r.style.top&&(r.style.top="0px"),null==r.style.left&&(r.style.left="0px");var g=document.createElement("div"),m=this.environment.getTheme().theme;m&&un(g,m),un(g,"ag-popup"),un(r,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),un(r,"ag-popup-child"),this.focusService.isKeyboardMode()&&un(r,Yu.AG_KEYBOARD_FOCUS),g.appendChild(r),v.appendChild(g),l?this.setAlwaysOnTop(g,!0):this.bringPopupToFront(g);var y=!1,b=function(e){g.contains(document.activeElement)&&((e.which||e.keyCode)===co.ESCAPE&&_({keyboardEvent:e}))},O=function(e){return _({mouseEvent:e})},w=function(e){return _({touchEvent:e})},_=function(e){void 0===e&&(e={});var n=e.mouseEvent,o=e.touchEvent,l=e.keyboardEvent;t.isEventFromCurrentPopup({mouseEvent:n,touchEvent:o},r)||t.isEventSameChainAsOriginalEvent({originalMouseEvent:a,mouseEvent:n,touchEvent:o})||y||(y=!0,v.removeChild(g),d.removeEventListener("keydown",b),d.removeEventListener("mousedown",O),d.removeEventListener("touchstart",w),d.removeEventListener("contextmenu",O),t.eventService.removeEventListener(Ye.EVENT_DRAG_STARTED,O),i&&i(n||o||l),t.popupList=t.popupList.filter((function(e){return e.element!==r})),p&&p.then((function(e){return e&&e()})))};return s&&s({hidePopup:_}),window.setTimeout((function(){o&&d.addEventListener("keydown",b),n&&(d.addEventListener("mousedown",O),t.eventService.addEventListener(Ye.EVENT_DRAG_STARTED,O),d.addEventListener("touchstart",w),d.addEventListener("contextmenu",O))}),0),u&&u(),c&&(p=this.keepPopupPositionedRelativeTo({element:c,ePopup:r,hidePopup:_})),this.popupList.push({element:r,wrapper:g,hideFunc:_,stopAnchoringPromise:p,instanceId:Zu++}),{hideFunc:_,stopAnchoringPromise:p}},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,r=e.touchEvent,o=n||r;if(!o)return!1;var i=E(this.popupList,(function(e){return e.element===t}));if(-1===i)return!1;for(var a=i;a=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nc=function(e,t){return function(n,r){t(n,r,e)}},rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ec(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new oc(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},tc([nc(0,he("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=tc([ce("loggerFactory")],t)}(He),oc=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}(),ic=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ac=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ic(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl}))},t.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var r=document.createElement("span");r.style.position="fixed";var o=this.centerRowContainerCon.getContainerElement();o.appendChild(r),this.putRowCellsIntoDummyContainer(e,r),t||this.cloneItemIntoDummy(n,r);var i=r.offsetWidth;return o.removeChild(r),i+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(n){if(n instanceof Xl){var r=n;r.getColumn()===e&&(t=r)}})),t?t.getGui():null},t.prototype.putRowCellsIntoDummyContainer=function(e,t){var n=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return n.cloneItemIntoDummy(e,t)}))},t.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var r=document.createElement("div");pn(n,"ag-header-cell")?(un(r,"ag-header"),un(r,"ag-header-row"),r.style.position="static"):un(r,"ag-row");for(var o=e.parentElement;o;){if(o.classList.contains("ag-header-row")||o.classList.contains("ag-row")){o.classList.forEach((function(e){"ag-row-position-absolute"!=e&&un(r,e)}));break}o=o.parentElement}r.style.display="table-row",r.appendChild(n),t.appendChild(r)},ac([de("rowRenderer")],t.prototype,"rowRenderer",void 0),ac([de("ctrlsService")],t.prototype,"ctrlsService",void 0),ac([de("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),ac([se],t.prototype,"postConstruct",null),t=ac([ce("autoWidthCalculator")],t)}(He),sc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sc(t,e),t.prototype.addResizeBar=function(e){var t=this,n={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(n,!0);return function(){return t.dragService.removeDragSource(n)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},uc([de("dragService")],t.prototype,"dragService",void 0),uc([de("ctrlsService")],t.prototype,"ctrlsService",void 0),t=uc([ce("horizontalResizeService")],t)}(He),dc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return dc(n,e),n.prototype.postConstruct=function(){this.logger=this.loggerFactory.create("GridCompController"),this.ctrlsService.registerGridCtrl(this)},n.prototype.setComp=function(e,t,n){var r=this;this.view=e,this.eGridHostDiv=t,this.eGui=n,this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new Vs(this.view)),this.addRtlSupport(),this.addManagedListener(this,Ye.EVENT_KEYBOARD_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,Ye.EVENT_MOUSE_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!1)}));var o=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return o()}))},n.prototype.showDropZones=function(){return we.isRegistered(t.ModuleNames.RowGroupingModule)},n.prototype.showSideBar=function(){return we.isRegistered(t.ModuleNames.SideBarModule)},n.prototype.showStatusBar=function(){return we.isRegistered(t.ModuleNames.StatusBarModule)},n.prototype.showWatermark=function(){return we.isRegistered(t.ModuleNames.EnterpriseCoreModule)},n.prototype.onGridSizeChanged=function(){var e={type:Ye.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},n.prototype.destroyGridUi=function(){this.view.destroyGridUi()},n.prototype.getGui=function(){return this.eGui},n.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},n.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},n.prototype.focusNextInnerContainer=function(e){var t=this.view.getFocusableContainers(),n=E(t,(function(e){return e.contains(document.activeElement)}))+(e?-1:1);return!(n<0||n>=t.length)&&(0===n?this.focusGridHeader():this.focusService.focusInto(t[n]))},n.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers();if(e){if(t.length>1)return this.focusService.focusInto(v(t));var n=v(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusGridHeader()},n.prototype.focusGridHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusService.focusHeaderPosition({headerRowIndex:0,column:e}),!0)},n.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},pc([de("columnApi")],n.prototype,"columnApi",void 0),pc([de("gridApi")],n.prototype,"gridApi",void 0),pc([de("focusService")],n.prototype,"focusService",void 0),pc([pe("clipboardService")],n.prototype,"clipboardService",void 0),pc([de("loggerFactory")],n.prototype,"loggerFactory",void 0),pc([de("resizeObserverService")],n.prototype,"resizeObserverService",void 0),pc([de("columnModel")],n.prototype,"columnModel",void 0),pc([de("ctrlsService")],n.prototype,"ctrlsService",void 0),pc([de("mouseEventService")],n.prototype,"mouseEventService",void 0),pc([se],n.prototype,"postConstruct",null),n}(He),hc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gc=function(e){function t(t){var n=e.call(this)||this;n.skipTabGuardFocus=!1;var r=t.comp,o=t.eTopGuard,i=t.eBottomGuard,a=t.focusInnerElement,l=t.onFocusIn,s=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,d=t.handleKeyDown,p=t.eFocusableElement;return n.comp=r,n.eTopGuard=o,n.eBottomGuard=i,n.providedFocusInnerElement=a,n.eFocusableElement=p,n.providedFocusIn=l,n.providedFocusOut=s,n.providedShouldStopEventPropagation=u,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=d,n}return hc(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new wo(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))}))},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var r=this.getNextFocusableElement(e.shiftKey);n&&setTimeout((function(){return t.activateTabGuards()}),0),r&&(r.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus()},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},vc([de("focusService")],t.prototype,"focusService",void 0),vc([se],t.prototype,"postConstruct",null),t}(He),mc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mc(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(e){t.forEach((function(t){return null!=e?t.setAttribute("tabIndex",e):t.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new gc({comp:n,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement("div");return t.classList.add("ag-tab-guard"),t.classList.add("ag-tab-guard-"+e),t.setAttribute("role","presentation"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];Pn(this.getFocusableElement()),this.addTabGuards.apply(this,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,n){Wn(t)||(t=t.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)},t}(oo),bc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wc=function(e){function n(t){var n=e.call(this,void 0)||this;return n.eGridDiv=t,n}return bc(n,e),n.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return un(e.getGui(),t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(Yu.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:"",e.getGui().style.webkitUserSelect=null!=t?t:""},setCursor:function(t){e.getGui().style.cursor=null!=t?t:""}};this.ctrl=this.createManagedBean(new fc);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},n.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc((function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")}))},n.prototype.updateLayoutClasses=function(e,n){dn(this.eRootWrapperBody,t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),dn(this.eRootWrapperBody,t.LayoutCssClasses.NORMAL,n.normal),dn(this.eRootWrapperBody,t.LayoutCssClasses.PRINT,n.print),this.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),this.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,n.normal),this.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,n.print)},n.prototype.createTemplate=function(){return'
\n '+(this.ctrl.showDropZones()?"":"")+'\n
\n \n '+(this.ctrl.showSideBar()?'':"")+"\n
\n "+(this.ctrl.showStatusBar()?'':"")+"\n \n "+(this.ctrl.showWatermark()?"":"")+"\n
"},n.prototype.getFocusableElement=function(){return this.eRootWrapperBody},n.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return Sn(e)}))},Oc([de("loggerFactory")],n.prototype,"loggerFactory",void 0),Oc([lo("gridBody")],n.prototype,"gridBodyComp",void 0),Oc([lo("sideBar")],n.prototype,"sideBarComp",void 0),Oc([lo("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Oc([se],n.prototype,"postConstruct",null),n}(yc),_c=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ec=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _c(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(r){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:r})}),t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n){var r=this;this.showPopup(e,(function(o){r.popupService.positionPopupUnderComponent({type:n,eventSource:t,ePopup:o,keepWithinBounds:!0,column:e})}),t)},t.prototype.showPopup=function(e,t,n){var r,o=this,i=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),a=document.createElement("div");a.setAttribute("role","presentation"),un(a,"ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",(function(e){return o.trapFocusWithin(e,a)})),i.guiPromise.then((function(e){return a.appendChild(e)}));var l=n||this.ctrlsService.getGridBodyCtrl().getGui(),s=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var r=t instanceof KeyboardEvent;if(o.tabListener&&(o.tabListener=o.tabListener()),r&&n&&Sn(n)){var i=o.focusService.findTabbableParent(n);i&&i.focus()}},positionCallback:function(){return t(a)},anchorToElement:l});s&&(this.hidePopup=r=s.hideFunc),i.filterPromise.then((function(e){t(a),e.afterGuiAttached&&e.afterGuiAttached({container:"columnMenu",hidePopup:r})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.keyCode!==co.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Cc([de("filterManager")],t.prototype,"filterManager",void 0),Cc([de("popupService")],t.prototype,"popupService",void 0),Cc([de("focusService")],t.prototype,"focusService",void 0),Cc([de("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Cc([ce("menuFactory")],t)}(He),Mc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return Mc(t,e),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=c(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),y(this.dragSources,t))},t.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");r(t)&&dn(t,"ag-unselectable",e)},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",n);var r=null,o=this.gridOptionsWrapper.isSuppressTouch();t&&!o&&(r=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",r,{passive:!0})),this.dragSources.push({dragSource:e,mouseDownListener:n,touchStartListener:r,touchEnabled:t})},t.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var r=t.touches[0];this.touchLastTime=r,this.touchStart=r;var o=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,a=[{target:document,type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:o,options:{passive:!0}},{target:i,type:"touchcancel",listener:o,options:{passive:!0}}];this.addTemporaryEvents(a),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var n=this,r=t;if((!e.skipMouseEvent||!e.skipMouseEvent(t))&&!r._alreadyProcessedByDragService&&(r._alreadyProcessedByDragService=!0,0===t.button)){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var o=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0);var i=[{target:o,type:"mousemove",listener:function(t){return n.onMouseMove(t,e.eElement)}},{target:o,type:"mouseup",listener:function(t){return n.onMouseUp(t,e.eElement)}},{target:o,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,n=e.type,r=e.listener,o=e.options;t.addEventListener(n,r,o)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,n=e.type,r=e.listener,o=e.options;t.removeEventListener(n,r,o)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels;return Ir(e,t,r(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Sc(t,e),n=t,t.prototype.progressSort=function(e,t,n){void 0===n&&(n="api");var r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)},t.prototype.setSortForColumn=function(e,t,n,r){void 0===r&&(r="api"),t!==Oe.SORT_ASC&&t!==Oe.SORT_DESC&&(t=null),e.setSort(t,r),n&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,r),this.updateSortIndex(e),this.dispatchSortChangedEvents()},t.prototype.updateSortIndex=function(e){var t=this.getColumnsWithSortingOrdered(),n=0;t.forEach((function(t){t!==e&&(t.setSortIndex(n),n++)})),e.getSort()&&e.setSortIndex(n),this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return null==e.getSort()})).forEach((function(e){return e.setSortIndex()}))},t.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(){var e={type:Ye.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.clearSortBarThisColumn=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var r,o=t.indexOf(e.getSort()),i=o<0,a=o==t.length-1;return r=i||a?t[0]:t[o+1],n.DEFAULT_SORTING_ORDER.indexOf(r)<0?(console.warn("ag-grid: invalid sort type "+r),null):r},t.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),t=e.filter((function(e){return!!e.getSort()})),n={};return e.forEach((function(e,t){return n[e.getId()]=t})),t.sort((function(e,t){var r=e.getSortIndex(),o=t.getSortIndex();return null!=r&&null!=o?r-o:null==r&&null==o?n[e.getId()]>n[t.getId()]?1:-1:null==o?-1:1})),t},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),colId:e.getId()}}))},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),column:e}}))},t.DEFAULT_SORTING_ORDER=[Oe.SORT_ASC,Oe.SORT_DESC,null],Rc([de("columnModel")],t.prototype,"columnModel",void 0),Rc([de("columnApi")],t.prototype,"columnApi",void 0),Rc([de("gridApi")],t.prototype,"gridApi",void 0),t=n=Rc([ce("sortController")],t)}(He),Tc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ac=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return Tc(t,e),n=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return ze(this.gridOptionsWrapper,e,dl.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var o=t[n.GRID_DOM_KEY];if(r(o))return o===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,n,r=this.gridOptionsWrapper.getDomLayout()===Oe.DOM_LAYOUT_NORMAL,o=e;if(null!=o.clientX||null!=o.clientY?(t=o.clientX,n=o.clientY):(t=o.x,n=o.y),r){var i=this.ctrlsService.getGridBodyCtrl(),a=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,n+=a.top}return{x:t,y:n}},t.gridInstanceSequence=new Kr,t.GRID_DOM_KEY="__ag_grid_instance",Ac([de("ctrlsService")],t.prototype,"ctrlsService",void 0),t=n=Ac([ce("mouseEventService")],t)}(He),Nc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nc(t,e),t.prototype.getNextCellToFocus=function(e,t){for(var n=t,r=!1;!r;){switch(e){case co.UP:n=this.getCellAbove(n);break;case co.DOWN:n=this.getCellBelow(n);break;case co.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case co.LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+e)}r=!n||this.isCellGoodToFocusOn(n)}return n},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case Oe.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case Oe.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!n.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case Oe.PINNED_BOTTOM:return null;case Oe.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(Oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Oe.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(Oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Oe.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},t.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},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===Oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===Oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return(n?0===t:t===this.paginationProxy.getPageFirstRow())?n===Oe.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(Oe.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},t.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},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:Oe.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,r=e.rowPinned,i=this.columnModel.getDisplayedColAfter(e.column);if(!i){i=t[0];var a=this.getRowBelow(e);if(o(a))return null;if(!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;n=a?a.rowIndex:null,r=a?a.rowPinned:null}return{rowIndex:n,column:i,rowPinned:r}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,r=e.rowPinned,i=this.columnModel.getDisplayedColBefore(e.column);if(!i){i=v(t);var a=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(o(a))return null;if(!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;n=a?a.rowIndex:null,r=a?a.rowPinned:null}return{rowIndex:n,column:i,rowPinned:r}},zc([de("columnModel")],t.prototype,"columnModel",void 0),zc([de("rowModel")],t.prototype,"rowModel",void 0),zc([de("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),zc([de("paginationProxy")],t.prototype,"paginationProxy",void 0),t=zc([ce("cellNavigationService")],t)}(He),Fc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ic=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fc(t,e),t.prototype.formatValue=function(e,t,n,r,o,i){void 0===i&&(i=!0);var a,l=null,s=e.getColDef();if(o?a=o:i&&(a=t&&t.rowPinned&&s.pinnedRowValueFormatter?s.pinnedRowValueFormatter:s.valueFormatter),a){var u={value:r,node:t,data:t?t.data:null,colDef:s,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};u.$scope=n,l=this.expressionService.evaluate(a,u)}else if(s.refData)return s.refData[r]||"";return null==l&&Array.isArray(r)&&(l=r.join(", ")),l},Lc([de("expressionService")],t.prototype,"expressionService",void 0),t=Lc([ce("valueFormatterService")],t)}(He),Gc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bc=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return Gc(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Ye.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(Vl),Vc=["mouseover","mouseout","mouseenter","mouseleave"],Hc=function(){function e(){this.isOutsideAngular=function(e){return _(Vc,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new $r((function(n){n(window.setTimeout(e,t))}))},e.prototype.addEventListener=function(e,t,n,r){e.addEventListener(t,n,r)},e.prototype.dispatchEvent=function(e,t,n){t()},e.prototype.frameworkComponent=function(e){return null},e}(),Wc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wc(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:Ye.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Uc([de("columnApi")],t.prototype,"columnApi",void 0),Uc([de("gridApi")],t.prototype,"gridApi",void 0),Uc([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Uc([se],t.prototype,"postConstruct",null),t=Uc([ce("scrollVisibleService")],t)}(He),Kc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kc(t,e),t.prototype.processAllCellClasses=function(e,t,n,r){this.processClassRules(e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,r){if(H(e))for(var o=Object.keys(e),i=0;i=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qc(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Ye.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Ye.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},Xc([de("columnApi")],t.prototype,"columnApi",void 0),Xc([de("gridApi")],t.prototype,"gridApi",void 0),t=Xc([ce("columnHoverService")],t)}(He),Jc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ed=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},td=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return Jc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){return e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)}))},t.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))},ed([de("ctrlsService")],t.prototype,"ctrlsService",void 0),ed([se],t.prototype,"postConstruct",null),t=ed([ce("columnAnimationService")],t)}(He),nd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},od=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return nd(t,e),n=t,t.prototype.createAutoGroupColumns=function(e){var t=this,n=[],r=this.gridOptionsWrapper.isTreeData(),o=this.gridOptionsWrapper.isGroupMultiAutoColumn();return r&&o&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),o=!1),o?e.forEach((function(e,r){n.push(t.createOneAutoGroupColumn(e,r))})):n.push(this.createOneAutoGroupColumn()),n},t.prototype.createOneAutoGroupColumn=function(e,t){var r,i=this.generateDefaultColDef(e);(r=e?Oe.GROUP_AUTO_COLUMN_ID+"-"+e.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,I(i,this.gridOptionsWrapper.getAutoGroupColumnDef()),(i=this.columnFactory.mergeColDefs(i)).colId=r,this.gridOptionsWrapper.isTreeData())||o(i.field)&&o(i.valueGetter)&&o(i.filterValueGetter)&&(i.filter=!1);t&&t>0&&(i.headerCheckboxSelection=!1);var a=new Ee(i,null,r,!0);return this.context.createBean(a),a},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),e){var r=e.getColDef();G(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:r.headerValueGetter}),r.cellRenderer&&G(n,{cellRendererParams:{innerRenderer:r.cellRenderer,innerRendererParams:r.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},t.GROUP_AUTO_COLUMN_BUNDLE_ID=Oe.GROUP_AUTO_COLUMN_ID,rd([de("columnModel")],t.prototype,"columnModel",void 0),rd([de("columnFactory")],t.prototype,"columnFactory",void 0),t=n=rd([ce("autoGroupColService")],t)}(He),id=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ad=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ld=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 id(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,Ye.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,r){var o=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return o&&this.calculatePages(),o},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:Ye.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.onPaginationPageSizeChanged=function(){this.calculatePages();var e={type:Ye.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:Ye.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 o(this.topRowBounds)||o(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight: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.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},t.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},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(),(null==this.pageSize||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.setPixelOffset(r(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:Ye.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!gt(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var r=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=r-1}}},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),(!gt(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},ad([de("rowModel")],t.prototype,"rowModel",void 0),ad([de("columnApi")],t.prototype,"columnApi",void 0),ad([de("gridApi")],t.prototype,"gridApi",void 0),ad([se],t.prototype,"postConstruct",null),t=ad([ce("paginationProxy")],t)}(He),sd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ud=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sd(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,Ye.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,Ye.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.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.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},ud([de("ctrlsService")],t.prototype,"ctrlsService",void 0),ud([se],t.prototype,"postConstruct",null),t=ud([ce("paginationAutoPageSizeService")],t)}(He),dd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return dd(t,e),t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},pd([se],t.prototype,"init",null),t=pd([ce("valueCache")],t)}(He),hd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hd(t,e),t.prototype.init=function(){this.rowModel.getType()===Oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Ye.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==Oe.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),r=new za(n,this.clientSideRowModel.getRootNode());r.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(r)}this.rowRenderer.refreshCells()}},vd([de("rowModel")],t.prototype,"rowModel",void 0),vd([de("rowRenderer")],t.prototype,"rowRenderer",void 0),vd([se],t.prototype,"init",null),t=vd([ce("changeDetectionService")],t)}(He),md=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bd=function(e,t){return function(n,r){t(n,r,e)}},Od=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return md(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.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},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case Ye.EVENT_COLUMN_MOVED:case Ye.EVENT_COLUMN_VISIBLE:case Ye.EVENT_COLUMN_PINNED:case Ye.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case Ye.EVENT_COLUMN_GROUP_OPENED:var r=e;t.processGroupOpenedEvent(r);break;case Ye.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.")}}))},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,n=null;if(t){var r=t.getGroupId();n=this.columnModel.getOriginalColumnGroup(r)}t&&!n||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t=this,n=e.column,r=null;if(n&&(r=this.columnModel.getPrimaryColumn(n.getColId())),!n||r){var o=this.getMasterColumns(e);switch(e.type){case Ye.EVENT_COLUMN_MOVED:var i=e,a=e.columnApi.getColumnState().map((function(e){return{colId:e.colId}}));this.columnModel.applyColumnState({state:a,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+i.toIndex);break;case Ye.EVENT_COLUMN_VISIBLE:var l=e;a=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+l.visible);break;case Ye.EVENT_COLUMN_PINNED:var s=e;a=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+s.pinned);break;case Ye.EVENT_COLUMN_RESIZED:var u=e;o.forEach((function(n){t.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+n.getActualWidth());var r=[{key:n.getColId(),newWidth:n.getActualWidth()}];t.columnModel.setColumnWidths(r,!1,u.finished,"alignedGridChanged")}))}var c=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),d=this.gridOptionsWrapper.getAlignedGrids();d&&d.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(c)}))}},yd([de("columnModel")],t.prototype,"columnModel",void 0),yd([de("ctrlsService")],t.prototype,"ctrlsService",void 0),yd([bd(0,he("loggerFactory"))],t.prototype,"setBeans",null),yd([se],t.prototype,"init",null),t=yd([ce("alignedGridsService")],t)}(He),wd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wd(t,e),t.prototype.adaptFunction=function(e,t){var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null},t.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),n=typeof t;return"string"===n||"number"===n||"boolean"===n?Rn(""+t+""):null==t?Rn(""):t},t.prototype.init=function(e){this.params=e},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},_d([de("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=_d([ce("agComponentUtils")],t)}(He),Ed=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Md=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ed(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},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","getPopupPosition","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)},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:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},Md([de("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Md([se],t.prototype,"postConstruct",null),t=Md([ce("componentMetadataProvider")],t)}(He),xd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rd={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},jd={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Td={},Ad=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xd(t,e),t.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),r=Rd[n][t],o=0;Td[e]||(Td[e]={});var i=Td[e][t];if(null!=i)return i;if(jd[t]){var a=jd[t],l=document.createElement("div");un(l,e),l.style.position="absolute";var s=a.reduce((function(e,t){var n=document.createElement("div");return n.style.position="static",un(n,t),e.appendChild(n),n}),l);if(document.body){document.body.appendChild(l);var u=-1!==t.toLowerCase().indexOf("height")?"height":"width";o=parseInt(window.getComputedStyle(s)[u],10),document.body.removeChild(l)}}return Td[e][t]=o||r,Td[e][t]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/,t=this.eGridDiv,n=null;t&&!(n=e.exec(t.className));)t=t.parentElement||void 0;if(!n)return{};var r=n[0];if(void 0===n[2]){var o=r.replace("ag-","ag-theme-");Y((function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+r+" with "+o+".")}),"using-old-theme")}return{theme:r,el:t,themeFamily:r.replace(/-dark$/,"")}},Sd([de("eGridDiv")],t.prototype,"eGridDiv",void 0),t=Sd([ce("environment")],t)}(He),Dd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return Dd(t,e),t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],r),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,r=this.createTasksP2,o=r.list,i=this.destroyTasks,a=(new Date).getTime(),l=(new Date).getTime()-a,s=e<=0,u=this.ctrlsService.getGridBodyCtrl();s||l=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Id=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeLastPageEventProcessed=0,t}return kd(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,n=e.altKey,r=e.ctrlKey||e.metaKey,o=this.mouseEventService.getCellPositionForEvent(e);if(!o)return!1;var i=!1;switch(t){case co.PAGE_HOME:case co.PAGE_END:r||n||(this.onHomeOrEndKey(t),i=!0);break;case co.LEFT:case co.RIGHT:r&&!n&&(this.onCtrlLeftOrRight(t,o),i=!0);break;case co.UP:case co.DOWN:r&&!n&&(this.onCtrlUpOrDown(t,o),i=!0);break;case co.PAGE_DOWN:r||n||(this.onPageDown(o),i=!0);break;case co.PAGE_UP:r||n||(this.onPageUp(o),i=!0)}return i&&e.preventDefault(),i},t.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},t.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},t.prototype.navigateTo=function(e){var t=e.scrollIndex,n=e.scrollType,o=e.scrollColumn,i=e.focusIndex,a=e.focusColumn;if(r(o)&&!o.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),r(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell(i,a,null,!0),this.rangeService){var l={rowIndex:i,rowPinned:null,column:a};this.rangeService.setRangeToCell(l)}},t.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),r=t.bottom-t.top;this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=n);var o=this.paginationProxy.getPixelOffset(),i=t.top+r,a=this.paginationProxy.getRowIndexAtPixel(i+o),l=this.paginationProxy.getRow(e.rowIndex).rowTop+r-o,s=this.paginationProxy.getRowIndexAtPixel(l+o),u=this.paginationProxy.getPageLastRow();s>u&&(s=u),a>u&&(a=u),this.navigateTo({scrollIndex:a,scrollType:"top",scrollColumn:null,focusIndex:s,focusColumn:e.column}),this.setTimeLastPageEventProcessed()}},t.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.gridOptionsWrapper.getScrollbarWidth(),r=t.bottom-t.top;this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=n);var o=this.paginationProxy.getPixelOffset(),i=t.top,a=this.paginationProxy.getRowIndexAtPixel(i+o),l=this.paginationProxy.getRow(e.rowIndex),s=l.rowTop+l.rowHeight-r-o,u=this.paginationProxy.getRowIndexAtPixel(s+o),c=this.paginationProxy.getPageFirstRow();u=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vd=function(e,t){return function(n,r){t(n,r,e)}},Hd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return Gd(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ye.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=en(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:Ye.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"===typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:Ye.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().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},Bd([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Bd([Vd(0,he("loggerFactory"))],t.prototype,"agWire",null),Bd([se],t.prototype,"postConstruct",null),t=Bd([ce("rowContainerHeightService")],t)}(He),Wd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ud=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wd(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},t.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))}},t.prototype.recurseDown=function(e,t){var n=this;e&&e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren)o=r(c(t(e),"selectable",!0));else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},Ud([se],t.prototype,"init",null),t=Ud([ce("selectableService")],t)}(He),Kd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$d=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return Kd(t,e),t.prototype.postConstruct=function(){var e=this,t=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Ar(t?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Ar(t?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Ar(t?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Ar(t?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,Ye.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(t){var n=t.el,r=t.fn;e.addManagedListener(n,"click",r),e.addManagedListener(n,"keydown",(function(e){e.keyCode!==co.ENTER&&e.keyCode!==co.SPACE||(e.preventDefault(),r())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):yt(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),r=e("of","of"),o=e("firstPage","First Page"),i=e("previousPage","Previous Page"),a=e("nextPage","Next Page"),l=e("lastPage","Last Page"),s=this.getCompId();return'
\n \n \n
\n
\n \n
\n
\n
\n
'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,dn(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled),ar(this.btFirst,this.previousAndFirstButtonsDisabled),dn(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),ar(this.btPrevious,this.previousAndFirstButtonsDisabled);var r=this.isZeroPagesToDisplay(),o=t&&e===n-1;this.nextButtonDisabled=o||r,dn(this.btNext,"ag-disabled",this.nextButtonDisabled),ar(this.btNext,this.nextButtonDisabled),this.lastButtonDisabled=!t||r||e===n-1,dn(this.btLast,"ag-disabled",this.lastButtonDisabled),ar(this.btLast,this.lastButtonDisabled)},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?e=t=0:(t=(e=r*n+1)+r-1,o&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.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(),n=e?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},Yd([de("paginationProxy")],t.prototype,"paginationProxy",void 0),Yd([de("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Yd([lo("btFirst")],t.prototype,"btFirst",void 0),Yd([lo("btPrevious")],t.prototype,"btPrevious",void 0),Yd([lo("btNext")],t.prototype,"btNext",void 0),Yd([lo("btLast")],t.prototype,"btLast",void 0),Yd([lo("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Yd([lo("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Yd([lo("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Yd([lo("lbCurrent")],t.prototype,"lbCurrent",void 0),Yd([lo("lbTotal")],t.prototype,"lbTotal",void 0),Yd([se],t.prototype,"postConstruct",null),t}(oo),Qd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Qd(t,e),t.prototype.observeResize=function(e,t){var n=this,r=ne(t,50),o=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!o?function(){var t=new window.ResizeObserver(r);return t.observe(e),function(){return t.disconnect()}}():function(){var r=Tn(e),o=jn(e),i=!0;return function a(){if(i){var l=Tn(e),s=jn(e);(l!==r||s!==o)&&(r=l,o=s,t()),n.doNextPolyfillTurn(a)}}(),function(){return i=!1}}()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach((function(e){return e()}))}),50)}},t=Xd([ce("resizeObserverService")],t)}(He),Jd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ep=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Xu||(Xu={}));var tp=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.inProgress=!1,t.destroyRequested=!1,t}return Jd(n,e),n.prototype.updateLayoutClasses=function(e,n){dn(this.eOverlayWrapper,t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),dn(this.eOverlayWrapper,t.LayoutCssClasses.NORMAL,n.normal),dn(this.eOverlayWrapper,t.LayoutCssClasses.PRINT,n.print)},n.prototype.postConstruct=function(){this.createManagedBean(new Vs(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,Ye.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},n.prototype.setWrapperTypeClass=function(e){dn(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===Xu.Loading),dn(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===Xu.NoRows)},n.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Xu.Loading)}},n.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Xu.NoRows)}},n.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.setDisplayed(!0))},n.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),Pn(this.eOverlayWrapper))},n.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},n.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!t?this.showNoRowsOverlay():this.hideOverlay()},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},n.TEMPLATE='\n ',ep([de("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ep([de("paginationProxy")],n.prototype,"paginationProxy",void 0),ep([de("gridApi")],n.prototype,"gridApi",void 0),ep([de("columnModel")],n.prototype,"columnModel",void 0),ep([lo("eOverlayWrapper")],n.prototype,"eOverlayWrapper",void 0),ep([se],n.prototype,"postConstruct",null),n}(oo),np=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},op=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,t.getTemplate(n))||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1;var o=n.title,i=n.enabled,a=n.items,l=n.suppressEnabledCheckbox,s=n.suppressOpenCloseIcons;return r.title=o,r.cssIdentifier=n.cssIdentifier||"default",r.enabled=null==i||i,r.items=a||[],r.alignItems=n.alignItems||"center",null!=l&&(r.suppressEnabledCheckbox=l),null!=s&&(r.suppressOpenCloseIcons=s),r}return np(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'
\n
\n \n \n \n
\n
\n \n
\n
\n
'},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.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Tr("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Tr("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.keyCode){case co.ENTER:e.toggleGroupExpand();break;case co.RIGHT:e.toggleGroupExpand(!0);break;case co.LEFT:e.toggleGroupExpand(!1)}}))},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;hn(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),hn(this.eGroupOpenedIcon,e&&this.expanded),hn(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){var t=this.getGui();return this.alignItems!==e&&cn(t,"ag-group-item-alignment-"+this.alignItems),this.alignItems=e,un(t,"ag-group-item-alignment-"+this.alignItems),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),hn(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshChildDisplay(),hn(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),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.eContainer,n=e instanceof oo?e.getGui():e;un(n,"ag-group-item"),un(n,"ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){dn(this.items[t],"ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){un(this.eTitleBar,e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),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(n){t.setEnabled(n,!0),e(n)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){dn(this.getGui(),"ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(un(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(cn(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),dn(this.eContainer,"ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",rp([lo("eTitleBar")],t.prototype,"eTitleBar",void 0),rp([lo("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),rp([lo("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),rp([lo("eToolbar")],t.prototype,"eToolbar",void 0),rp([lo("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),rp([lo("eTitle")],t.prototype,"eTitle",void 0),rp([lo("eContainer")],t.prototype,"eContainer",void 0),rp([se],t.prototype,"postConstruct",null),t}(oo),ip=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ap=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lp=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r.dragStartPosition={x:0,y:0},r.position={x:0,y:0},r.lastSize={width:-1,height:-1},r.positioned=!1,r.resizersAdded=!1,r.resizeListeners=[],r.boundaryEl=null,r.isResizing=!1,r.isMoving=!1,r.resizable={},r.movable=!1,r.currentResizer=null,r.config=G({},{popup:!1},n),r}return ip(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,n=e.clientWidth/2-this.getWidth()/2,r=t/2-this.getHeight()/2;this.offsetElement(n,r)},t.prototype.initialisePosition=function(){var e=this.config,t=e.centered,n=e.forcePopupParentAsOffsetParent,r=e.minWidth,o=e.width,i=e.minHeight,a=e.height,l=e.x,s=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,d=!!this.element.offsetParent;if(d){var p=this.findBoundaryElement(),f=window.getComputedStyle(p);if(null!=f.minWidth){var h=p.offsetWidth-this.element.offsetWidth;c=parseInt(f.minWidth,10)-h}if(null!=f.minHeight){var v=p.offsetHeight-this.element.offsetHeight;u=parseInt(f.minHeight,10)-v}}if(this.minHeight=i||u,this.minWidth=r||c,o&&this.setWidth(o),a&&this.setHeight(a),o&&a||this.refreshSize(),t)this.center();else if(l||s)this.offsetElement(l,s);else if(d&&n&&this.boundaryEl){var g=parseFloat(this.boundaryEl.style.top),m=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(m)?0:m,isNaN(g)?0:g)}this.positioned=!!this.offsetParent},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"===typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((function(n){var r=!!e[n],o=t.getResizerElement(n),i={dragStartPixels:0,eElement:o,onDragStart:function(e){return t.onResizeStart(e,n)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,n)}};!!t.resizable[n]===r&&(t.isAlive()||r)||(r?(t.dragService.addDragSource(i),t.resizeListeners.push(i),o.style.pointerEvents="all"):o.style.pointerEvents="none")}))},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,t=e.height,n=e.width;-1!==n&&(this.element.style.width=n+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,n=this.element,r=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Gn(n,e),e=wn(n),r=!0;else if(this.positioned){var o=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var a=this.offsetParent.clientHeight,l=t?this.position.y:o.top,s=t?0:i.top;a&&e+l>a+s&&(e=a-l)}this.getHeight()!==e&&(r?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?Gn(n,e):(n.style.height=e+"px",n.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:parseFloat(e)))},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,n=this.config.popup,r=!1;if("string"===typeof e&&-1!==e.indexOf("%"))In(t,e),e=_n(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var o=this.offsetParent.clientWidth,i=n?this.position.x:this.element.getBoundingClientRect().left;o&&e+i>o&&(e=o-i)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?In(t,e):(t.style.width=e+"px",t.style.flex=" unset",this.lastSize.width="number"===typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,x:e,y:t,keepWithinBounds:!0}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,n=e.isLeft,r=e.isTop,o=e.anywhereWithin,i=e.topBuffer,a=t.clientX-this.dragStartPosition.x,l=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!o,a)?0:a,movementY:this.shouldSkipY(t,!!r,i,l)?0:l}},t.prototype.shouldSkipX=function(e,t,n,r){var o=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.x:o.left,s=l<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=a.right;return!!s||(s=t?r<0&&e.clientX>l+i.left||r>0&&e.clientXa.right||r>0&&e.clientXa.right||r>0&&e.clientX=e.clientY||i.bottom<=e.clientY&&i.bottom<=a.bottom;return!!s||(s=t?r<0&&e.clientY>l+i.top+n||r>0&&e.clientYa.bottom||r>0&&e.clientY\n
\n
\n
\n
\n
\n
\n
\n
\n ',"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".ag-resizer-wrapper");e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},un(this.element,"ag-resizing"),un(this.resizerMap[t].element,"ag-active");var n=this.config,r=n.popup,o=n.forcePopupParentAsOffsetParent;r||o||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((function(e){return!pn(e,"ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,n=0,r=0;rthis.element.parentElement.offsetHeight&&(E=!0),E||this.setHeight(C)}this.updateDragStartPosition(e.clientX,e.clientY),((n||r)&&g||m)&&this.offsetElement(h+g,v+m)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};cn(this.element,"ag-resizing"),cn(this.resizerMap[t].element,"ag-active"),this.dispatchEvent(n)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,un(this.element,"ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t,n=this.position,r=n.x,o=n.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),a=i.movementX,l=i.movementY;this.offsetElement(r+a,o+l),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,cn(this.element,"ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},ap([de("popupService")],t.prototype,"popupService",void 0),ap([de("dragService")],t.prototype,"dragService",void 0),t}(He),sp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),up=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cp=function(e){function t(n){var r=e.call(this,t.getTemplate(n))||this;return r.closable=!0,r.config=n,r}return sp(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'
\n
\n \n
\n
\n
\n
'},t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,r=t.closable,o=t.hideTitleBar,i=t.title,a=t.minWidth,l=void 0===a?250:a,s=t.width,u=t.minHeight,c=void 0===u?250:u,d=t.height,p=t.centered,f=t.popup,h=t.x,v=t.y;this.positionableFeature=new lp(this.getGui(),{minWidth:l,width:s,minHeight:c,height:d,centered:p,x:h,y:v,popup:f,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var g=this.getGui();n&&this.setBodyComponent(n),o?un(this.eTitleBar,"ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=r?r:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){if(g.contains(t.relatedTarget)||g.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var n=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");n&&n.focus()}})),f&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),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.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new oo(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n),(r=n.getGui()).appendChild(un(Ar("close",this.gridOptionsWrapper),"ag-panel-title-bar-button-icon")),this.addTitleBarButton(n),n.addManagedListener(r,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var r;(r=this.closeButtonComp.getGui()).parentElement.removeChild(r),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,r=n.children,o=r.length;null==t&&(t=o),t=Math.max(0,Math.min(t,o));var i=e.getGui();un(i,"ag-panel-title-bar-button"),0===t?n.insertAdjacentElement("afterbegin",i):t===o?n.insertAdjacentElement("beforeend",i):r[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return bn(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return On(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='
',up([lo("eContentWrapper")],t.prototype,"eContentWrapper",void 0),up([lo("eTitleBar")],t.prototype,"eTitleBar",void 0),up([lo("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),up([lo("eTitle")],t.prototype,"eTitle",void 0),up([se],t.prototype,"postConstruct",null),t}(oo),dp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pp=function(){return(pp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hp=function(e){function t(t){var n=e.call(this,pp(pp({},t),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return dp(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),r=this.config,o=r.movable,i=r.resizable,a=r.maximizable;un(n,"ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),o&&this.setMovable(o),a&&this.setMaximizable(a),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,r=t.modal,o=this.popupService.addPopup({modal:r,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n});o&&(this.close=o.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,n=t.x,r=t.y,o=t.width,i=t.height;this.setWidth(o),this.setHeight(i),this.positionableFeature.offsetElement(n,r)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){hn(this.maximizeIcon,!this.isMaximized),hn(this.minimizeIcon,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(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var r=this.maximizeButtonComp=this.createBean(new oo('
')),o=r.getGui();o.appendChild(this.maximizeIcon=Ar("maximize",this.gridOptionsWrapper)),un(this.maximizeIcon,"ag-panel-title-bar-button-icon"),o.appendChild(this.minimizeIcon=Ar("minimize",this.gridOptionsWrapper)),un(this.minimizeIcon,"ag-panel-title-bar-button-icon"),un(this.minimizeIcon,"ag-hidden"),r.addManagedListener(o,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(r,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},fp([de("popupService")],t.prototype,"popupService",void 0),t}(cp),vp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gp=function(e){function t(t,n,r){return void 0===n&&(n="ag-text-field"),void 0===r&&(r="text"),e.call(this,t,n,r)||this}return vp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=r(t)?t:""),o},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(t){t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){P(t.clipboardData.getData("text"),(function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(Gl),mp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yp=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return mp(t,e),t.prototype.setValue=function(t,n){var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Gl),bp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Op=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wp=function(e){function t(n){var r=e.call(this,n,t.TEMPLATE)||this;return r.labelAlignment="top",r}return bp(t,e),t.prototype.init=function(){un(this.eSlider.getGui(),"ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Fl.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Fl.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='
\n \n
\n \n \n
\n
',Op([lo("eLabel")],t.prototype,"eLabel",void 0),Op([lo("eSlider")],t.prototype,"eSlider",void 0),Op([lo("eText")],t.prototype,"eText",void 0),Op([se],t.prototype,"init",null),t}(zl),_p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ep=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.H=1,r.S=1,r.B=1,r.A=1,r.isSpectrumDragging=!1,r.isSpectrumHueDragging=!1,r.isSpectrumAlphaDragging=!1,r.colorChanged=!1,r.picker=n.picker,r}return _p(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(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 n=e.clientX-t.left,r=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),r=Math.max(r,0),r=Math.min(r,t.height),this.setSpectrumValue(n/t.width,1-r/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,r=n.getBoundingClientRect(),o=e.clientX-t.left;o=Math.max(o,0),o=Math.min(o,t.width),this.H=1-o/t.width,n.style.left=o+r.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,r=n.getBoundingClientRect(),o=e.clientX-t.left;o=Math.max(o,0),o=Math.min(o,t.width),this.A=o/t.width,n.style.left=o+r.width/2+"px",this.update()}},t.prototype.update=function(){var e=kt.fromHSB(360*this.H,this.S,this.B,this.A),t=kt.fromHSB(360*this.H,1,1),n=e.toRgbaString(),r=this.picker;kt.fromString(r.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),r.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var r=this.spectrumDragger,o=r.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,r.style.left=e*n.width-o.width/2+"px",r.style.top=(1-t)*n.height-o.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'
'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=kt.fromString(e),n=t.toHSB(),r=n[0],o=n[1],i=n[2];this.H=(isNaN(r)?0:r)/360,this.A=t.a;var a=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-a.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(o,i)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(r(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=kt.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=t.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter((function(t){return t!=e})),(n=[e].concat(n)).length>t.maxRecentColors&&(n=n.slice(0,t.maxRecentColors)),t.recentColors=n)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
',Cp([lo("spectrumColor")],t.prototype,"spectrumColor",void 0),Cp([lo("spectrumVal")],t.prototype,"spectrumVal",void 0),Cp([lo("spectrumDragger")],t.prototype,"spectrumDragger",void 0),Cp([lo("spectrumHue")],t.prototype,"spectrumHue",void 0),Cp([lo("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),Cp([lo("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),Cp([lo("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),Cp([lo("recentColors")],t.prototype,"recentColors",void 0),Cp([se],t.prototype,"postConstruct",null),t}(oo),Mp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xp=function(e){function t(t,n,r,o){var i=e.call(this,t,'',n)||this;return i.pickerIcon=r,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return Mp(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),ir(this.eWrapper,n);var r=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},o=this.getGui();if(this.addManagedListener(o,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&Sn(t.pickerComponent.getGui())&&o.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(o,"keydown",(function(e){switch(e.keyCode){case co.UP:case co.DOWN:case co.ENTER:case co.SPACE:r();case co.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",r),this.addManagedListener(this.eLabel,"click",r),this.pickerIcon){var i=Ar(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){r(this.getLabel())?or(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return rr(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Ln(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Pp([lo("eLabel")],t.prototype,"eLabel",void 0),Pp([lo("eWrapper")],t.prototype,"eWrapper",void 0),Pp([lo("eDisplayField")],t.prototype,"eDisplayField",void 0),Pp([lo("eIcon")],t.prototype,"eIcon",void 0),t}(Fl),Sp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rp=function(e){function t(t){var n=e.call(this,t,"ag-color-picker","colorPicker")||this;return t&&t.color&&(n.value=t.color),n}return Sp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),n=this.createBean(new hp({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250}));this.isPickerDisplayed=!0,un(n.getGui(),"ag-color-dialog");var r=this.createBean(new Ep({picker:this}));return r.addDestroyFunc((function(){n.isAlive()&&e.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(r),r.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,r.isAlive()&&e.destroyBean(r)),e.isAlive()&&e.getFocusableElement().focus(),e.isPickerDisplayed=!1})),n},t.prototype.setValue=function(t){return this.value===t?this:(this.eDisplayField.style.backgroundColor=t,e.prototype.setValue.call(this,t))},t.prototype.getValue=function(){return this.value},t}(xp),jp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tp=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return jp(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)}))},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&tthis.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Kn(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Kn(this.eInput,"max",e)),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,Kn(this.eInput,"step",e)),this},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(gp),Ap=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dp=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return Ap(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,r=t.max,o=t.step;null!=n&&this.setMinValue(n),null!=r&&this.setMaxValue(r),this.setStep(o||1)},t.prototype.addInputListeners=function(){var e=this,t=Kt()?"change":"input";this.addManagedListener(this.eInput,t,(function(t){var n=t.target.value;e.setValue(n)}))},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.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t}(Gl),Np=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kp=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,'
')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return Np(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.keyCode;switch(t){case co.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case co.DOWN:case co.UP:var r=t===co.DOWN,o=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(r?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),o=this.itemEls[i]}else o=this.itemEls[r?0:this.itemEls.length-1];this.highlightItem(o)}},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=e.value,n=rt(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this},t.prototype.renderOption=function(e,t){var n=this,r=document.createElement("div");r.setAttribute("role","option"),un(r,"ag-list-item"),un(r,"ag-"+this.cssIdentifier+"-list-item"),r.innerHTML=""+t+"",r.tabIndex=-1,this.itemEls.push(r),this.addManagedListener(r,"mouseover",(function(){return n.highlightItem(r)})),this.addManagedListener(r,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(r,"click",(function(){return n.setValue(e)})),this.getGui().appendChild(r)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=E(this.options,(function(t){return t.value===e}));if(-1!==n){var r=this.options[n];this.value=r.value,this.displayValue=null!=r.text?r.text:r.value,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=E(this.options,(function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,un(this.highlightedEl,t.ACTIVE_CLASS),yr(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(cn(this.highlightedEl,t.ACTIVE_CLASS),yr(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Fl.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",zp([se],t.prototype,"init",null),t}(oo),Fp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ip=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return Fp(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new kp("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,kp.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,Fl.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.addManagedListener(document.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),r=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()})),o=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,r(),n(),e.isAlive()&&e.getFocusableElement().focus()}});return o&&(this.hideList=o.hideFunc),this.isPickerDisplayed=!0,Ln(t,_n(this.eWrapper)),t.style.maxHeight=bn(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,n,r){return this.value===t?this:(r||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},Lp([de("popupService")],t.prototype,"popupService",void 0),Lp([se],t.prototype,"init",null),t}(xp),Gp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vp=function(e){function t(n){var r=e.call(this,n,t.TEMPLATE)||this;return r.radius=0,r.offsetX=0,r.offsetY=0,r}return Gp(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),r(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,Fl.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},n=this.eChildCircle,r=t.width/2,o=t.height/2;n.style.left=r+8*Math.cos(e)+"px",n.style.top=o+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},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,n=t.width/2,r=t.height/2,o=e.clientX-t.left-n,i=e.clientY-t.top-r,a=Math.atan2(i,o);this.setValue(a,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,Fl.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 n;return n=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(n),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Fl.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return In(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
',Bp([lo("eLabel")],t.prototype,"eLabel",void 0),Bp([lo("eParentCircle")],t.prototype,"eParentCircle",void 0),Bp([lo("eChildCircle")],t.prototype,"eChildCircle",void 0),Bp([lo("eAngleValue")],t.prototype,"eAngleValue",void 0),Bp([de("dragService")],t.prototype,"dragService",void 0),t}(zl),Hp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wp=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Hp(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),dn(this.getGui(),"ag-selected",this.getValue()),this},t}(Vl),Up=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Up(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=Oe.PINNED_TOP:this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=Oe.PINNED_BOTTOM),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return n?(t=Oe.PINNED_BOTTOM,e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):r&&(t=Oe.PINNED_TOP,e=r-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case Oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},t.prototype.before=function(e,t){switch(e.rowPinned){case Oe.PINNED_TOP:if(t.rowPinned!==Oe.PINNED_TOP)return!0;break;case Oe.PINNED_BOTTOM:if(t.rowPinned!==Oe.PINNED_BOTTOM)return!1;break;default:if(r(t.rowPinned))return t.rowPinned!==Oe.PINNED_TOP}return e.rowIndex=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yp(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,r=e.column;return this.createIdFromValues(t,r,n)},t.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,r=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return n&&r&&o},t=$p([ce("cellPositionUtils")],t)}(He),Xp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xp(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){return i(e===Oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=t===Oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(i(n))return 0;for(var r=0;r=e)return r}return n.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Ye.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Ye.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,r=[];if(e){var o=0;e.forEach((function(e,i){var a=new Uo;n.context.createBean(a),a.data=e;var l=t?Uo.ID_PREFIX_TOP_PINNED:Uo.ID_PREFIX_BOTTOM_PINNED;a.id=l+i,a.rowPinned=t?Oe.PINNED_TOP:Oe.PINNED_BOTTOM,a.setRowTop(o),a.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(i),o+=a.rowHeight,r.push(a)}))}return r},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){i(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){i(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=v(e);return t.rowTop+t.rowHeight},Zp([de("columnApi")],t.prototype,"columnApi",void 0),Zp([de("gridApi")],t.prototype,"gridApi",void 0),Zp([se],t.prototype,"init",null),t=Zp([ce("pinnedRowModel")],t)}(He),ef=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tf=function(e){this.cellValueChanges=e},nf=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.initialRange=n,o.finalRange=r,o}return ef(t,e),t}(tf),rf=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),of=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),af=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lf=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isFilling=!1,t.onCellValueChanged=function(e){var n={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},r=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,n),o=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,n);if(r||o||t.isPasting||t.isFilling){var i=e.rowPinned,a=e.rowIndex,l=e.column,s=e.oldValue,u=e.value,c={rowPinned:i,rowIndex:a,columnId:l.getColId(),newValue:u,oldValue:s};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return of(n,e),n.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new rf(e),this.redoStack=new rf(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,Ye.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Ye.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ye.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Ye.EVENT_ROW_DRAG_END,this.clearStacks))}},n.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},n.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},n.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof nf?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},n.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof nf?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},n.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach((function(e){var r=e.rowIndex,o=e.rowPinned,i=e.columnId,a={rowIndex:r,rowPinned:o},l=n.getRowNode(a);l.displayed&&l.setDataValue(i,t(e))}))},n.prototype.processRangeAndCellFocus=function(e,t){var n;if(t){var r=t.startRow,o=t.endRow;n={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:t.startColumn.getColId()},this.setLastFocusedCell(n);var i={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:o.rowIndex,rowEndPinned:o.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var a=e[0],l={rowIndex:a.rowIndex,rowPinned:a.rowPinned},s=this.getRowNode(l);n={rowPinned:a.rowPinned,rowIndex:s.rowIndex,columnId:a.columnId},this.setLastFocusedCell(n)}},n.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,r=e.columnId,o=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(r),we.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusService.setFocusedCell(n,r,o,!0)},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ye.EVENT_ROW_EDITING_STARTED,(function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,Ye.EVENT_ROW_EDITING_STOPPED,(function(){var t=new tf(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null}))},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ye.EVENT_CELL_EDITING_STARTED,(function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,Ye.EVENT_CELL_EDITING_STOPPED,(function(){if(e.activeCellEdit=null,!e.activeRowEdit&&!e.isPasting&&!e.isFilling){var t=new tf(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,Ye.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,Ye.EVENT_PASTE_END,(function(){var t=new tf(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,Ye.EVENT_FILL_START,(function(){e.isFilling=!0})),this.addManagedListener(this.eventService,Ye.EVENT_FILL_END,(function(t){var n=new nf(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))},n.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},n.prototype.getRowNode=function(e){switch(e.rowPinned){case Oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},af([de("focusService")],n.prototype,"focusService",void 0),af([de("gridApi")],n.prototype,"gridApi",void 0),af([de("rowModel")],n.prototype,"rowModel",void 0),af([de("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),af([de("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),af([de("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),af([se],n.prototype,"init",null),n=af([ce("undoRedoService")],n)}(He),sf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sf(t,e),t.prototype.findHeader=function(e,t){var n,r,o;if(e.column instanceof Pe?(r="getDisplayedGroup"+t,n=this.columnModel[r](e.column)):(o="getDisplayedCol"+t,n=this.columnModel[o](e.column)),n)return{column:n,headerRowIndex:e.headerRowIndex}},t.prototype.findColAtEdgeForHeaderRow=function(e,t){var n=this.columnModel.getAllDisplayedColumns(),r=n["start"===t?0:n.length-1];if(r){var o=this.headerNavigationService.getHeaderContainer(r.getPinned()).getRowComps()[e];return(o&&o.getType())==gl.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:o?e:-1,column:r}}},uf([de("columnModel")],t.prototype,"columnModel",void 0),uf([de("headerNavigationService")],t.prototype,"headerNavigationService",void 0),t=uf([ce("headerPositionUtils")],t)}(He),df=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pf=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var r=this,o=[],i={};return e.forEach((function(e){for(var a=!0,l=r.createDefFromColumn(e,t,n),s=e.getOriginalParent();s;){var u=null;if(s.isPadding())s=s.getOriginalParent();else{var c=i[s.getGroupId()];if(c){c.children.push(l),a=!1;break}(u=r.createDefFromGroup(s))&&(u.children=[l],i[u.groupId]=u,l=u,s=s.getOriginalParent())}}a&&o.push(l)})),o},e.prototype.createDefFromGroup=function(e){var t=D(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var r=D(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?n.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=!e.isVisible()||void 0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,r},e=df([ce("columnDefFactory")],e)}(),ff=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hf=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return r(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),C(t,this.processClassesFromGridOptions(e.rowNode,e.scope)),C(t,this.preProcessRowClassRules(e.rowNode,e.scope)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned===Oe.PINNED_LEFT&&t.push("ag-cell-last-left-pinned"),e.pinned===Oe.PINNED_RIGHT&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e,t){var n=[],r=function(e){"string"===typeof e?n.push(e):Array.isArray(e)&&e.forEach((function(e){return n.push(e)}))},o=this.gridOptionsWrapper.getRowClass();if(o){if("function"===typeof o)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];r(o)}var i=this.gridOptionsWrapper.getRowClassFunc();i&&r(i({data:e.data,node:e,rowIndex:e.rowIndex,$scope:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}));return n},e.prototype.preProcessRowClassRules=function(e,t){var n=[];return this.processRowClassRules(e,t,(function(e){n.push(e)}),(function(e){})),n},e.prototype.processRowClassRules=function(e,t,n,r){var o={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),$scope:t,context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),o,n,r)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},ff([de("stylingService")],e.prototype,"stylingService",void 0),ff([de("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=ff([ce("rowCssClassCalculator")],e)}(),vf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gf=function(e){function t(n){var r=e.call(this)||this;return r.state=t.STATE_WAITING_TO_LOAD,r.version=0,r.id=n,r}return vf(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,n=this.isAlive();return t&&n},t.prototype.successCommon=function(e,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(n))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var n={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(He),mf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bf=function(e,t){return function(n,r){t(n,r,e)}},Of=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var n;return mf(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();e&&e>0&&(this.checkBlockToLoadDebounce=qr.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(gf.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){qr.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===gf.STATE_WAITING_TO_LOAD&&(e=t)})),e&&(e.load(),this.activeBlockLoadsCount++,this.printCacheStatus())}},t.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getBlockStateJson(),r=n.id,o=n.state;e[r]=o})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",yf([se],t.prototype,"postConstruct",null),yf([bf(0,he("loggerFactory"))],t.prototype,"setBeans",null),t=n=yf([ce("rowNodeBlockLoader")],t)}(He),wf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_f=function(){function e(){}return e.prototype.doFullSort=function(e,t){var n=e.map((function(e,t){return{currentPos:t,rowNode:e}}));return n.sort(this.compareRowNodes.bind(this,t)),n.map((function(e){return e.rowNode}))},e.prototype.compareRowNodes=function(e,t,n){for(var r=t.rowNode,o=n.rowNode,i=0,a=e.length;i=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}return Cf(t,e),t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.headerRootComp,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach((function(t){return t(e)})),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,headerRootComp:this.headerRootComp}},t.prototype.registerFakeHScrollCtrl=function(e){this.fakeHScrollCtrl=e,this.checkReady()},t.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},t.prototype.getHeaderRootComp=function(){return this.headerRootComp},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t=Ef([ce("ctrlsService")],t)}(He),Pf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return Pf(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},t=xf([ce("ctrlsFactory")],t)}(He),Rf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Tf=function(e){function t(){return e.call(this)||this}return Rf(t,e),t.prototype.setComp=function(e,t,n){this.view=e,this.eViewport=t,this.eContainer=n,this.addManagedListener(this.eventService,Ye.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_DOM_LAYOUT,r),this.setFakeHScrollSpacerWidths(),this.ctrlsService.registerFakeHScrollCtrl(this)},t.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl()},t.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&e,r=this.gridOptionsWrapper.getScrollbarWidth();n&&(t+=r),this.view.setRightSpacerFixedWidth(t),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",t<=r);var o=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(o+=r),this.view.setLeftSpacerFixedWidth(o),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",o<=r)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=rn(),n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),r=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,o=n?0:0===r&&t?15:r,i=Kt()&&e;this.view.setInvisibleStyles(t),this.view.setHeight(o),this.view.setViewportHeight(o+(i?1:0)),this.view.setContainerHeight(o)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},jf([de("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),jf([de("columnModel")],t.prototype,"columnModel",void 0),jf([de("ctrlsService")],t.prototype,"ctrlsService",void 0),jf([se],t.prototype,"postConstruct",null),t}(He),Af=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Df=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nf=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Af(t,e),t.prototype.postConstruct=function(){var e=this,t={setHeight:function(t){return Gn(e.getGui(),t)},setContainerHeight:function(t){return Gn(e.eContainer,t)},setViewportHeight:function(t){return Gn(e.eViewport,t)},setRightSpacerFixedWidth:function(t){return In(e.eRightSpacer,t)},setLeftSpacerFixedWidth:function(t){return In(e.eLeftSpacer,t)},setInvisibleStyles:function(t){return dn(e.getGui(),"ag-invisible-scrollbar",t)},includeLeftSpacerScrollerCss:function(t,n){return dn(e.eLeftSpacer,t,n)},includeRightSpacerScrollerCss:function(t,n){return dn(e.eRightSpacer,t,n)}};this.controller=this.createManagedBean(new Tf),this.controller.setComp(t,this.eViewport,this.eContainer),this.createManagedBean(new Ss((function(t){return e.eContainer.style.width=t+"px"})))},t.TEMPLATE='',Df([lo("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),Df([lo("eRightSpacer")],t.prototype,"eRightSpacer",void 0),Df([lo("eViewport")],t.prototype,"eViewport",void 0),Df([lo("eContainer")],t.prototype,"eContainer",void 0),Df([se],t.prototype,"postConstruct",null),t}(oo),zf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ff=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zf(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ye.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===Oe.DOM_LAYOUT_PRINT,t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:Ye.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:Ye.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},kf([de("columnModel")],t.prototype,"columnModel",void 0),kf([se],t.prototype,"postConstruct",null),t=kf([ce("pinnedWidthService")],t)}(He),Lf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),If=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gf=function(e){function t(t){var n=e.call(this,'
')||this;return n.params=t,n}return Lf(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),n=this.params;this.addManagedListener(t,"keydown",(function(t){kr(e.gridOptionsWrapper,t,n.node,n.column,!0)||n.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",If([se],t.prototype,"postConstruct",null),t}(ao),Bf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vf=function(){return(Vf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n');var u=s.getGui(),c=u.style;s.eCellValue=u;var d=function(e,t,n){var r=n||u;null!=t&&""!=t?r.setAttribute(e,t):r.removeAttribute(e)},p={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return zn(u,e)},setAriaSelected:function(e){return yr(u,e)},setAriaExpanded:function(e){return lr(u,e)},getFocusableElement:function(){return s.getFocusableElement()},setLeft:function(e){return c.left=e},setWidth:function(e){return c.width=e},setAriaColIndex:function(e){return hr(s.getGui(),e)},setHeight:function(e){return c.height=e},setZIndex:function(e){return c.zIndex=e},setTabIndex:function(e){return d("tabindex",e.toString())},setRole:function(e){return d("role",e)},setColId:function(e){return d("col-id",e)},setTitle:function(e){return d("title",e)},setUnselectable:function(e){return d("unselectable",e,s.eCellValue)},setTransition:function(e){return c.transition=e||""},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=e},setForceWrapper:function(e){return s.forceWrapper=e},setRenderDetails:function(e,t,n){return s.setRenderDetails(e,t,n)},setEditDetails:function(e,t,n){return s.setEditDetails(e,t,n)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.eCellValue}};return s.cellCtrl=r,r.setComp(p,s.scope,s.getGui(),i,l),s}return Bf(t,e),t.prototype.setRenderDetails=function(e,t,n){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var r=this.isUsingAngular1Template(),o=this.setupControlsWrapper();if(e)!(n||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),r?this.insertValueUsingAngular1Template():this.insertValueWithoutCellRenderer(t);this.cellCtrl.setupAutoHeight(this.eCellValue)}},t.prototype.setEditDetails=function(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()},t.prototype.removeControlsWrapper=function(){this.eCellValue=this.getGui(),this.eCellWrapper=null,this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.setupControlsWrapper=function(){var e=this.includeRowDrag||this.includeDndSource||this.includeSelection||this.forceWrapper;return this.addOrRemoveCssClass("ag-cell-value",!e),e&&!this.eCellWrapper?(this.addControlsWrapper(),true):!(e||!this.eCellWrapper)&&(this.removeControlsWrapper(),true)},t.prototype.addControlsWrapper=function(){this.getGui().innerHTML='',this.eCellValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.forceWrapper||this.eCellValue.setAttribute("unselectable","on");var e=this.eCellValue.id="cell-"+this.getCompId(),t=[];this.includeRowDrag&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue),t.push(this.checkboxSelectionComp.getCheckboxId())),t.push(e),ir(this.getGui(),t.join(" "))},t.prototype.createCellEditorInstance=function(e,t,n){var r=this,i=this.editorVersion,a=this.beans.userComponentFactory.createCellEditor(e);if(a){var l=e.params;a.then((function(e){return r.afterCellEditorCreated(i,e,l,t,n)})),o(this.cellEditor)&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=null!=e?rt(e):null;null!=t?this.eCellValue.innerHTML=t:Pn(this.eCellValue)},t.prototype.insertValueUsingAngular1Template=function(){var e=this,t=this.column.getColDef(),n=t.template,r=t.templateUrl,o=void 0;null!=n?o=n:null!=r&&(o=this.beans.templateService.getTemplate(r,(function(){return e.cellCtrl.refreshCell({forceRefresh:!0})}))),null!=o&&(this.eCellValue.innerHTML=o,this.updateAngular1ScopeAndCompile())},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),xn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),xn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),o=!n&&!r&&!this.autoHeightCell,i=this.rendererVersion,a=e.componentClass,l=function(){if(!(t.rendererVersion!==i||!t.isAlive())){var n=t.beans.userComponentFactory.createCellRenderer(e),r=t.afterCellRendererCreated.bind(t,i,a);n&&n.then(r)}};o&&this.firstRender?this.beans.taskQueue.createTask(l,this.rowNode.rowIndex,"createTasksP2"):l()},t.prototype.isUsingAngular1Template=function(){var e=this.column.getColDef();return null!=e.template||null!=e.templateUrl},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,t,n){this.isAlive()&&e===this.rendererVersion?(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui&&(Pn(this.eCellValue),this.eCellValue.appendChild(this.cellRendererGui),this.updateAngular1ScopeAndCompile())):this.beans.context.destroyBean(n)},t.prototype.afterCellEditorCreated=function(e,t,n,r,o){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing();if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui(),r||void 0!==t.isPopup&&t.isPopup()?(r||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,o)):this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui();e.contains(document.activeElement)&&e.focus(),this.destroyRenderer(),this.removeControlsWrapper(),this.clearCellElement(),this.cellEditorGui&&e.appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var n=this;this.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 r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Gf(e));var o=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&o.appendChild(this.cellEditorGui);var i=this.beans.popupService,a=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),l=(null!=t||r.getPopupPosition&&r.getPopupPosition(),{column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:o,keepWithinBounds:!0}),s="under"===t?i.positionPopupUnderComponent.bind(i,l):i.positionPopupOverComponent.bind(i,l),u=i.addPopup({modal:a,eChild:o,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:s});u&&(this.hideEditorPopup=u.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControlsWrapper(),this.angularCompiledElement&&(this.angularCompiledElement.remove(),this.angularCompiledElement=void 0),e.prototype.destroy.call(this)},t.prototype.clearCellElement=function(){var e=this.getGui();e.contains(document.activeElement)&&!Kt()&&e.focus({preventScroll:!0}),Pn(e)},t.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=Vf({},this.rowNode.data),this.angularCompiledElement&&this.angularCompiledElement.remove(),this.angularCompiledElement=this.beans.$compile(this.eCellValue.children)(this.scope),this.beans.ctrlsService.getGridBodyCtrl().requestAngularApply())},t}(oo),Wf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uf=function(e){function t(t,n,r){var o=e.call(this)||this;o.cellComps={},o.beans=n,o.rowCtrl=t,o.setTemplate('
');var i=o.getGui(),a=i.style,l={setDisplay:function(e){return a.display=null==e?null:"none"},setDomOrder:function(e){return o.domOrder=e},setCellCtrls:function(e){return o.setCellCtrls(e)},showFullWidth:function(e){return o.showFullWidth(e)},getFullWidthCellRenderer:function(){return o.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return o.addOrRemoveCssClass(e,t)},setAriaExpanded:function(e){return lr(i,e)},setUserStyles:function(e){return zn(i,e)},setAriaSelected:function(e){return yr(i,e)},setAriaLabel:function(e){null==e?i.removeAttribute("aria-label"):i.setAttribute("aria-label",e)},setHeight:function(e){return a.height=e},setTop:function(e){return a.top=e},setTransform:function(e){return a.transform=e},setRowIndex:function(e){return i.setAttribute("row-index",e)},setRole:function(e){return i.setAttribute("role",e)},setAriaRowIndex:function(e){return pr(o.getGui(),e)},setRowId:function(e){return i.setAttribute("row-id",e)},setRowBusinessKey:function(e){return i.setAttribute("row-business-key",e)},setTabIndex:function(e){return i.setAttribute("tabindex",e.toString())}};return t.setComp(l,o.getGui(),r),o}return Wf(t,e),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),t=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+t},t.prototype.showFullWidth=function(e){var t=this,n=this.beans.userComponentFactory.createFullWidthCellRenderer(e,this.rowCtrl.getFullWidthCellRendererType());n&&n.then((function(e){if(t.isAlive()){var n=e.getGui();t.getGui().appendChild(n),t.rowCtrl.getRowType()===Va.FullWidthDetail&&t.rowCtrl.setupDetailRowAutoHeight(n),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)}))},t.prototype.setCellCtrls=function(e){var t=this,n=G({},this.cellComps);e.forEach((function(e){var r=e.getInstanceId();null==t.cellComps[r]?t.newCellComp(e):n[r]=null}));var r=L(n).filter((function(e){return null!=e}));this.destroyCells(r),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var n=[];e.forEach((function(e){var r=t.cellComps[e.getInstanceId()];r&&n.push(r.getGui())})),Dn(this.getGui(),n)}},t.prototype.newCellComp=function(e){var t=new Hf(this.rowCtrl.getScope(),this.beans,e,!1,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=L(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)}))},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach((function(e){if(e){var n=e.getCtrl().getInstanceId();t.cellComps[n]===e&&(e.detach(),e.destroy(),t.cellComps[n]=null)}}))},t}(oo),qf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kf=function(){return(Kf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};var $f=function(e){function n(){var n=e.call(this,function(){var e=oo.elementGettingCreated.getAttribute("name"),n=ju.getRowContainerCssClasses(e),r=e===t.RowContainerName.CENTER,o=e===t.RowContainerName.TOP_CENTER||e===t.RowContainerName.BOTTOM_CENTER;return r?'':o?'':''}())||this;return n.rowComps={},n.name=oo.elementGettingCreated.getAttribute("name"),n}return qf(n,e),n.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}};this.createManagedBean(new ju(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},n.prototype.preDestroy=function(){this.setRowCtrls([])},n.prototype.setRowCtrls=function(e){var t=this,n=Kf({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((function(e){var r=e.getInstanceId(),o=n[r];if(o)t.rowComps[r]=o,delete n[r],t.ensureDomOrder(o.getGui());else{var i=t.newRowComp(e);t.rowComps[r]=i,t.appendRow(i.getGui())}})),L(n).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()}))},n.prototype.appendRow=function(e){this.domOrder?Nn(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},n.prototype.ensureDomOrder=function(e){this.domOrder&&(An(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},n.prototype.newRowComp=function(e){var t=ju.getPinned(this.name);return new Uf(e,this.beans,t)},Yf([de("beans")],n.prototype,"beans",void 0),Yf([lo("eViewport")],n.prototype,"eViewport",void 0),Yf([lo("eContainer")],n.prototype,"eContainer",void 0),Yf([lo("eWrapper")],n.prototype,"eWrapper",void 0),Yf([se],n.prototype,"postConstruct",null),Yf([ue],n.prototype,"preDestroy",null),n}(oo),Qf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return Qf(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()==Oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;this.events.push(e),null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach((function(e){return t.eventService.dispatchEvent(e)})),t.events=[]}))),this.dispatchExpandedDebounced()},Xf([de("animationFrameService")],t.prototype,"animationFrameService",void 0),Xf([de("rowModel")],t.prototype,"rowModel",void 0),Xf([se],t.prototype,"postConstruct",null),t=Xf([ce("rowNodeEventThrottle")],t)}(He),Jf=function(){function e(e,t,n){t?(this.gridOptions=t,(new eh).create(e,t,(function(t){var n=new wc(e);t.createBean(n)}),n)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),eh=function(){function e(){}return e.prototype.create=function(e,n,r,o){var i=this,a=!!n.debug,l=this.getRegisteredModules(o),s=this.createBeansList(n.rowModelType,l),u=this.createProvidedBeans(e,n,o);if(s){var c={providedBeanInstances:u,beanClasses:s,debug:a},d=new oc("AG Grid",(function(){return n.debug})),p=new oc("Context",(function(){return c.debug})),f=new ae(c,p),h=f.getBean("beans");this.registerModuleUserComponents(h,l),this.registerStackComponents(h,l),this.registerControllers(h,l),r(f),h.ctrlsService.whenReady((function(){i.setColumnsAndData(h),i.dispatchGridReadyEvent(h,n);var e=we.isRegistered(t.ModuleNames.EnterpriseCoreModule);d.log("initialised successfully, enterprise = "+e)}))}},e.prototype.registerControllers=function(e,t){t.forEach((function(t){t.controllers&&t.controllers.forEach((function(t){return e.ctrlsFactory.register(t)}))}))},e.prototype.registerStackComponents=function(e,t){var n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=we.getRegisteredModules(),r=[],o={};function i(e,t){var n;o[(n=t).moduleName]||(o[n.moduleName]=!0,r.push(n),we.register(n,e)),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!we.isPackageBased())),r},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))},e.prototype.createProvidedBeans=function(e,t,n){var r=n?n.frameworkOverrides:null;o(r)&&(r=new Hc);var i={gridOptions:t,eGridDiv:e,$scope:n?n.$scope:null,$compile:n?n.$compile:null,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:r};return n&&n.providedBeanInstances&&G(i,n.providedBeanInstances),i},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Vl},{componentName:"AgRadioButton",componentClass:Bc},{componentName:"AgToggleButton",componentClass:Wp},{componentName:"AgInputTextField",componentClass:gp},{componentName:"AgInputTextArea",componentClass:yp},{componentName:"AgInputNumberField",componentClass:Tp},{componentName:"AgInputRange",componentClass:Dp},{componentName:"AgSelect",componentClass:Ip},{componentName:"AgSlider",componentClass:wp},{componentName:"AgAngleSelect",componentClass:Vp},{componentName:"AgColorPicker",componentClass:Rp},{componentName:"AgGridBody",componentClass:Nu},{componentName:"AgHeaderRoot",componentClass:Ts},{componentName:"AgPagination",componentClass:$d},{componentName:"AgOverlayWrapper",componentClass:tp},{componentName:"AgGroupComponent",componentClass:op},{componentName:"AgPanel",componentClass:cp},{componentName:"AgDialog",componentClass:hp},{componentName:"AgRowContainer",componentClass:$f},{componentName:"AgFakeHorizontalScroll",componentClass:Nf}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e,t){var n=this.getRowModelClass(e,t);if(n){var r=[n,Ja,Kp,Qp,cf,cd,Fu,sa,Cd,Pd,Zd,Ma,Hd,cc,Jp,xc,Mt,be,Na,Ju,Ia,zs,ft,Ms,ld,El,Bu,Ke,Wu,Od,Id,fd,Ls,rc,_t,lc,Ec,ei,Ba,Yu,Dc,Ad,kc,Ic,$c,qc,jc,Zc,td,qd,od,gd,zd,lf,Dt,pf,hf,Of,_f,Mf,Ff,Zf,Sf],o=this.extractModuleEntity(t,(function(e){return e.beans?e.beans:[]}));r.push.apply(r,o);var i=[];return r.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsWrapper.getColumnDefs();e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e,t){var n={type:Ye.EVENT_GRID_READY,api:t.api,columnApi:t.columnApi};e.eventService.dispatchEvent(n)},e.prototype.getRowModelClass=function(e,n){e||(e=Oe.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};n.forEach((function(e){T(e.rowModels,(function(e,t){o[e]=t}))}));var i=o[e];if(r(i))return i;e===Oe.ROW_MODEL_TYPE_INFINITE&&console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" is registered.';"),console.error("AG Grid: could not find matching row model for rowModelType "+e),e===Oe.ROW_MODEL_TYPE_VIEWPORT&&console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" is registered.';"),e===Oe.ROW_MODEL_TYPE_SERVER_SIDE&&console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" is registered.';"),e===Oe.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" is registered.';")},e}();function th(e,t,n,r){var o,i=r.agGrid;if(o=t.$eval(i)){var a=e[0],l=new Jf(a,o,{$scope:t,$compile:n}),s=i+".quickFilterText",u=t.$watch(s,(function(e){o.api.setQuickFilter(e)}));t.$on("$destroy",(function(){u(),l&&l.destroy(),l=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")}var nh=!1;var rh,oh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ih=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ah=function(e){function t(n){var r=e.call(this,t.getTemplate(n.cssClass))||this;return r.items=[],r.params=n,n.items&&n.items.forEach((function(e){return r.addItem(e)})),r}return oh(t,e),t.prototype.postConstruct=function(){this.createManagedBean(new wo(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.getTemplate=function(e){return'
\n \n \n
'},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case co.RIGHT:case co.LEFT:if(!this.eHeader.contains(document.activeElement))return;var t=this.items.indexOf(this.activeItem),n=e.keyCode===co.RIGHT?Math.min(t+1,this.items.length-1):Math.max(t-1,0);if(t===n)return;e.preventDefault();var r=this.items[n];this.showItemWrapper(r),r.eHeaderButton.focus();break;case co.UP:case co.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,n=t.focusService,r=t.eHeader,o=t.eBody,i=t.activeItem,a=document.activeElement;if(e.preventDefault(),r.contains(a))n.focusInto(o,e.shiftKey);else if(n.isFocusUnderManagedComponent(o))i.eHeaderButton.focus();else{var l=n.findNextFocusableElement(o,!1,e.shiftKey);l?l.focus():i.eHeaderButton.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");t.setAttribute("tabIndex","-1"),t.setAttribute("role","menuitem"),t.appendChild(e.title),un(t,"ag-tab"),this.eHeader.appendChild(t),rr(t,e.titleLabel);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=c(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(Pn(this.eBody),e.tabbedItem.bodyPromise.then((function(n){t.eBody.appendChild(n);var r=!t.focusService.isKeyboardMode();t.focusService.focusInto(t.eBody,!1,r),e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(t.afterAttachedParams)})),this.activeItem&&cn(this.activeItem.eHeaderButton,"ag-tab-selected"),un(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e):oe(this.params.onActiveItemClicked)},ih([de("focusService")],t.prototype,"focusService",void 0),ih([lo("eHeader")],t.prototype,"eHeader",void 0),ih([lo("eBody")],t.prototype,"eBody",void 0),ih([se],t.prototype,"postConstruct",null),t}(oo);(rh=t.ServerSideTransactionResultStatus||(t.ServerSideTransactionResultStatus={})).StoreNotFound="StoreNotFound",rh.StoreLoading="StoreLoading",rh.StoreWaitingToLoad="StoreWaitingToLoad",rh.StoreLoadingFailed="StoreLoadingFailed",rh.StoreWrongType="StoreWrongType",rh.Applied="Applied",rh.Cancelled="Cancelled";var lh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uh=function(e){function t(n,r){void 0===n&&(n="default"),void 0===r&&(r="listbox");var o=e.call(this,t.getTemplate(n))||this;return o.cssIdentifier=n,o.ariaRole=r,o.renderedRows=new Map,o.rowHeight=20,o.isDestroyed=!1,o}return lh(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),t=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return pn(t,"ag-virtual-list-item")&&(this.lastFocusedRowIndex=tr(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case co.UP:case co.DOWN:this.navigate(e.keyCode===co.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusService.focusInto(this.getGui(),!e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){var n=t.renderedRows.get(e);n&&n.eDiv.focus()}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.getTemplate=function(e){return'\n
\n
\n
'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},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 n=e*this.rowHeight,r=n+this.rowHeight,o=this.getGui(),i=o.scrollTop,a=o.offsetHeight,l=i+an)o.scrollTop=n;else if(l){var s=r-a;o.scrollTop=s}}},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(){var e=this;if(null!=this.model&&!this.isDestroyed){var t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",re((function(){return e.eContainer.clientHeight>=t*e.rowHeight}),(function(){e.isDestroyed||(e.clearVirtualRows(),e.drawVirtualRows())}))}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,n){return e.removeRow(n)}))},t.prototype.drawVirtualRows=function(){var e=this.getGui(),t=e.scrollTop,n=t+e.offsetHeight,r=Math.floor(t/this.rowHeight),o=Math.floor(n/this.rowHeight);this.ensureRowsRendered(r,o)},t.prototype.ensureRowsRendered=function(e,t){var n=this;this.renderedRows.forEach((function(r,o){(ot)&&o!==n.lastFocusedRowIndex&&n.removeRow(o)}));for(var r=e;r<=t;r++)this.renderedRows.has(r)||r0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),t){var n={type:Ye.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.executeAdd=function(t,n){var r=this,o=t.add,i=t.addIndex;if(!qr.missingOrEmpty(o)){var a=o.map((function(t){return r.createNode(t,r.rootNode,e.TOP_LEVEL)}));if("number"===typeof i&&i>=0){var l=this.rootNode.allLeafChildren,s=l.slice(0,i),u=l.slice(i,l.length);this.rootNode.allLeafChildren=vh(s,a,u)}else this.rootNode.allLeafChildren=vh(this.rootNode.allLeafChildren,a);n.add=a}},e.prototype.executeRemove=function(e,t,n){var r=this,o=e.remove;if(!qr.missingOrEmpty(o)){var i={};o.forEach((function(e){var o=r.lookupRowNode(e);o&&(o.isSelected()&&n.push(o),o.clearRowTopAndRowIndex(),i[o.id]=!0,delete r.allNodesMap[o.id],t.remove.push(o))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!i[e.id]}))}},e.prototype.executeUpdate=function(t,n,r){var o=this,i=t.update;qr.missingOrEmpty(i)||i.forEach((function(t){var i=o.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&r.push(i),o.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowNodeIdFunc();if(qr.exists(n)){var r=n(e);if(!(t=this.allNodesMap[r]))return console.error("AG Grid: could not find row id="+r+", data item was not found for this id"),null}else if(!(t=qr.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),console.error("Consider using getRowNodeId to help the Grid find matching row data"),null;return t},e.prototype.recursiveFunction=function(e,t,n){var r=this;if("string"!==typeof e){var o=[];return e.forEach((function(e){var i=r.createNode(e,t,n);o.push(i)})),o}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,n){var r=new Uo;return this.context.createBean(r),r.group=!1,this.setMasterForRow(r,e,n,!0),t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=n,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.setMasterForRow=function(e,t,n,r){if(this.doingTreeData)e.setMaster(!1),r&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),r){var o=this.columnModel.getRowGroupColumns(),i=n+(o?o.length:0);e.expanded=!!e.master&&this.isExpanded(i)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(hh||(hh={}));var bh=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return mh(n,e),n.prototype.init=function(){var e=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING}),n=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.eventService,Ye.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,Ye.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.gridOptionsWrapper,Na.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,Na.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new Uo,this.nodeManager=new gh(this.rootNode,this.gridOptionsWrapper,this.getContext(),this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService),this.createBean(this.rootNode)},n.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},n.prototype.ensureRowHeightsValid=function(e,t,n,r){var o,i=!1;do{o=!1;for(var a=this.getRowIndexAtPixel(e),l=this.getRowIndexAtPixel(t),s=Math.max(a,n),u=Math.min(l,r),c=s;c<=u;c++){var d=this.getRow(c);if(d.rowHeightEstimated){var p=this.gridOptionsWrapper.getRowHeightForNode(d);d.setRowHeight(p.height),o=!0,i=!0}}o&&this.setRowTopAndRowIndex()}while(o);return i},n.prototype.setRowTopAndRowIndex=function(){for(var e=0,t=0;t0;)t=t.childrenAfterSort[0];return t.rowIndex},n.prototype.getRowBounds=function(e){if(qr.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},n.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},n.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var n=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.FILTER,keepRenderedRows:!0,animate:n})}},n.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},n.prototype.getType=function(){return Oe.ROW_MODEL_TYPE_CLIENT_SIDE},n.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:t.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},n.prototype.createChangePath=function(e){var t=qr.missingOrEmpty(e),n=new za(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},n.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())return!1;if(null==e.rowNodeTransactions)return!1;var t=qr.filter(e.rowNodeTransactions,(function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0}));return null==t||0==t.length},n.prototype.refreshModel=function(e){var n=this;if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var r=this.createChangePath(e.rowNodeTransactions);switch(e.step){case t.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,r,!!e.afterColumnsChanged);case t.ClientSideRowModelSteps.FILTER:this.doFilter(r);case t.ClientSideRowModelSteps.PIVOT:this.doPivot(r);case t.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(r);case t.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,r);case t.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}this.setRowTopAndRowIndex(),this.clearRowTopAndRowIndex(r);var o={type:Ye.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(o),this.$scope&&window.setTimeout((function(){n.$scope.$apply()}),0)}},n.prototype.isEmpty=function(){var e=qr.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return qr.missing(this.rootNode)||e||!this.columnModel.isReady()},n.prototype.isRowsToRender=function(){return qr.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},n.prototype.getNodesInRangeForSelection=function(e,t){var n,r=!t,o=!1,i=[],a=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(l){var s=r&&!o;if(r||l!==t&&l!==e||(r=!0),!(l.group&&a)){var u=r&&!o,c=l.isParentOfNode(n);(u||c)&&i.push(l)}s&&(l!==t&&l!==e||(o=!0,n=l===t?t:e))})),i},n.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},n.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},n.prototype.getRootNode=function(){return this.rootNode},n.prototype.getRow=function(e){return this.rowsToDisplay[e]},n.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},n.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(qr.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var r=Math.floor((t+n)/2),o=this.rowsToDisplay[r];if(this.isRowInPixel(o,e))return r;o.rowTope&&(n=r-1)}},n.prototype.isRowInPixel=function(e,t){var n=e.rowTop,r=e.rowTop+e.rowHeight;return n<=t&&r>t},n.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},n.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,hh.Normal,0)},n.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,hh.AfterFilter,0)},n.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,hh.AfterFilterAndSort,0)},n.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,hh.PivotNodes,0)},n.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,r){if(!e)return r;for(var o=0;o0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),n.length>0){var o={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:Ye.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(o)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},n.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t),r="number"===typeof e.addIndex;return this.commonUpdateRowData([n],t,r),n},n.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oh(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=e.changedPath;this.filterService.filter(n),this.selectableService.updateSelectableAfterFiltering(t)},wh([de("selectableService")],t.prototype,"selectableService",void 0),wh([de("filterService")],t.prototype,"filterService",void 0),t=wh([ce("filterStage")],t)}(He),Ch=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ch(t,e),t.prototype.execute=function(e){var t=this.sortController.getSortOptions(),n=qr.exists(t)&&t.length>0,r=n&&qr.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),o=r?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=qr.missingOrEmpty(this.columnModel.getValueColumns()),a=qr.some(t,(function(e){return!!e.column.getColDef().showRowGroup}));this.sortService.sort(t,n,r,o,e.changedPath,i,a)},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},Eh([de("sortService")],t.prototype,"sortService",void 0),Eh([de("sortController")],t.prototype,"sortController",void 0),Eh([de("columnModel")],t.prototype,"columnModel",void 0),t=Eh([ce("sortStage")],t)}(He),Ph=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ph(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],r={value:0},o=this.columnModel.isPivotMode(),i=o&&t.leafGroup,a=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(a,n,r,o,0),!i&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,r,0)),n},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,r,o){if(!qr.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),s=0;s=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Th=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rh(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,n,r,o,i,a){var l=this,s=this.gridOptionsWrapper.isGroupMaintainOrder();o&&o.forEachChangedNodeDepthFirst((function(u){if(l.pullDownGroupDataForHideOpenParents(u.childrenAfterFilter,!0),t){var c=s&&!u.leafGroup&&!a;u.childrenAfterSort=c?u.childrenAfterSort.slice(0):n?l.doDeltaSort(u,e,r,o,i):l.rowNodeSorter.doFullSort(u.childrenAfterFilter,e)}else u.childrenAfterSort=s&&u.childrenAfterSort?u.childrenAfterSort.slice(0):u.childrenAfterFilter.slice(0);l.updateChildIndexes(u),l.postSortFunc&&l.postSortFunc(u.childrenAfterSort)})),this.updateGroupDataForHideOpenParents(o)},t.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},t.prototype.doDeltaSort=function(e,t,n,r,o){var i=e.childrenAfterSort.filter((function(e){var t=!n[e.id],i=o||r&&r.canSkip(e);return t&&i})).map(this.mapNodeToSortedNode.bind(this)),a={};i.forEach((function(e){return a[e.rowNode.id]=e.rowNode}));var l=e.childrenAfterFilter.filter((function(e){return!a[e.id]})).map(this.mapNodeToSortedNode.bind(this));return l.sort(this.rowNodeSorter.compareRowNodes.bind(this,t)),(0===l.length?i:0===i.length?l:this.mergeSortedArrays(t,i,l)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,n){for(var r=[],o=0,i=0;o=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ah(t,e),t.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},t.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,r=function(t,r){t.hasChildren()?(t.childrenAfterFilter=e&&!r?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,r=e.data&&n.filterManager.doesRowPassFilter({rowNode:e});return t||r})):t.childrenAfterGroup,n.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var o=function e(t,o){if(t.childrenAfterGroup)for(var i=0;i=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zh(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===Oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.createTransactionForRowData=function(e){if(qr.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!qr.missing(t)){var n={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),o=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return qr.exists(e)&&e.forEach((function(e,i){var a=t(e),l=r[a];(o&&(o[a]=i),l)?(l.data!==e&&n.update.push(e),r[a]=void 0):n.add.push(e)})),qr.iterateObject(r,(function(e,t){t&&n.remove.push(t.data)})),[n,o]}console.error("AG Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},kh([de("rowModel")],t.prototype,"rowModel",void 0),kh([se],t.prototype,"postConstruct",null),t=kh([ce("immutableService")],t)}(He),Lh={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[_h,Mh,Sh,Th,Nh,Fh],rowModels:{clientSide:bh}},Ih=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bh=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.parentCache=n,o.params=r,o.startRow=t*r.blockSize,o.endRow=o.startRow+r.blockSize,o}return Ih(t,e),t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,t,n){qr.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();qr.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){e.params.datasource.getRows(t)}),0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()}},t.prototype.forEachNode=function(e,t,n){var r=this;this.rowNodes.forEach((function(o,i){r.startRow+i=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},Gh([se],t.prototype,"postConstruct",null),Gh([ue],t.prototype,"destroyRowNodes",null),t}(gf),Vh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wh=function(e,t){return function(n,r){t(n,r,e)}},Uh=function(e){function t(t){var n=e.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=t.initialRowCount,n.params=t,n}return Vh(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.params.blockSize),r=this.blocks[n];if(!r){if(t)return;r=this.createBlock(n)}return r.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new Bh(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(e){return e.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.destroyBlock(t)}))},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,r=this.getBlocksInOrder().filter((function(t){return t!=e}));r.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var o=this.params.maxBlocksInCache>0,i=o?this.params.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach((function(e,t){if(e.getState()===Bh.STATE_WAITING_TO_LOAD&&t>=a||!!o&&t>=i){if(n.isBlockCurrentlyDisplayed(e))return;if(n.isBlockFocused(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var n=e.getStartRow(),r=e.getEndRow();return t.rowIndex>=n&&t.rowIndex=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount=e.rowCount&&t.push(n)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.removeBlockFromCache(t)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,r=[],o=-1,i=!1,a=new Kr;qr.missing(e)&&(i=!0);var l=!1;return this.getBlocksInOrder().forEach((function(s){l||(i&&o+1!==s.getId()?l=!0:(o=s.getId(),s.forEachNode((function(n){var o=n===e||n===t;(i||o)&&r.push(n),o&&(i=!i)}),a,n.rowCount)))})),l||i?[]:r},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Hh([de("rowRenderer")],t.prototype,"rowRenderer",void 0),Hh([de("focusService")],t.prototype,"focusService",void 0),Hh([Wh(0,he("loggerFactory"))],t.prototype,"setBeans",null),Hh([ue],t.prototype,"destroyAllBlocks",null),t}(He),qh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qh(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,r){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})),this.verifyProps())},t.prototype.verifyProps=function(){if(null!=this.gridOptionsWrapper.getDefaultGroupOrderComparator()){qr.doOnce((function(){return console.warn("AG Grid: defaultGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.DefaultGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ye.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,Ye.EVENT_STORE_UPDATED,this.onCacheUpdated.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!qr.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return Oe.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){qr.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Ye.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:this.defaultIfInvalid(e,2),initialRowCount:this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new Kr},this.infiniteCache=this.createBean(new Uh(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var t=void 0;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},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),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},Kh([de("filterManager")],t.prototype,"filterManager",void 0),Kh([de("sortController")],t.prototype,"sortController",void 0),Kh([de("selectionService")],t.prototype,"selectionService",void 0),Kh([de("gridApi")],t.prototype,"gridApi",void 0),Kh([de("columnApi")],t.prototype,"columnApi",void 0),Kh([de("rowRenderer")],t.prototype,"rowRenderer",void 0),Kh([de("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Kh([se],t.prototype,"init",null),Kh([ue],t.prototype,"destroyDatasource",null),t=Kh([ce("rowModel")],t)}(He),$h={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Yh}},Qh=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},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.getDefaultExportParams(),n={};return qr.assign(n,t),qr.assign(n,e),n},e}(),Xh=function(){function e(e){this.groupColumns=[];var t=e.columnModel,n=e.valueService,r=e.gridOptionsWrapper,o=e.processCellCallback,i=e.processHeaderCallback,a=e.processGroupHeaderCallback,l=e.processRowGroupCallback;this.columnModel=t,this.valueService=n,this.gridOptionsWrapper=r,this.processCellCallback=o,this.processHeaderCallback=i,this.processGroupHeaderCallback=a,this.processRowGroupCallback=l}return e.prototype.prepare=function(e){this.groupColumns=qr.filter(e,(function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,r,o){var i,a=this.gridOptionsWrapper.isGroupMultiAutoColumn()?o.rowGroupIndex:0;i=o&&o.group&&(t===a&&-1!==this.groupColumns.indexOf(e)||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode()))?this.createValueForGroupNode(o):this.valueService.getValue(e,o);var l=this.processCell(n,o,e,i,this.processCellCallback,r);return null!=l?l:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var t=[e.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,r,o,i){return o?o({accumulatedRowIndex:e,column:n,node:t,value:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:i}):null!=r?r:""},e}(),Zh=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n)if(n.navigator.msSaveOrOpenBlob)n.navigator.msSaveOrOpenBlob(t,e);else{var r=document.createElement("a"),o=n.URL.createObjectURL(t);r.setAttribute("href",o),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(r),n.setTimeout((function(){n.URL.revokeObjectURL(o)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),Jh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ev=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var r=t.suppressQuotes,o=t.columnSeparator;return n.suppressQuotes=r,n.columnSeparator=o,n}return Jh(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"===typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,Oe.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null===e||void 0===e?'""':("string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(console.warn("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(Xh),tv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nv=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tv(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getDefaultExportParams=function(){return this.gridOptionsWrapper.getDefaultExportParams("csv")},t.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),n=t.mergedParams,r=t.data,o=new Blob(["\ufeff",r],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"});return Zh.download(this.getFileName(n.fileName),o),r},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getMergedParamsAndData(e).data},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,n=t.columnModel,r=t.valueService,o=t.gridOptionsWrapper,i=e,a=i.processCellCallback,l=i.processHeaderCallback,s=i.processGroupHeaderCallback,u=i.processRowGroupCallback,c=i.suppressQuotes,d=i.columnSeparator;return new ev({columnModel:n,valueService:r,gridOptionsWrapper:o,processCellCallback:a||void 0,processHeaderCallback:l||void 0,processGroupHeaderCallback:s||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:d||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},nv([de("columnModel")],t.prototype,"columnModel",void 0),nv([de("valueService")],t.prototype,"valueService",void 0),nv([de("gridSerializer")],t.prototype,"gridSerializer",void 0),nv([de("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),nv([se],t.prototype,"postConstruct",null),t=nv([ce("csvCreator")],t)}(Qh),ov=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iv=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}));var av=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ov(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return qr.compose(this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,n,r){var o=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsWrapper,a=i.getContext(),l=i.getApi(),s=i.getColumnApi(),u=i.isGroupRemoveSingleChildren(),c=i.isGroupHideOpenParents(),d=i.isGroupRemoveLowestSingleChildren(),p=this.columnModel.isPivotMode()?r.leafGroup:!r.group,f=t.skipGroups||t.skipRowGroups,h=d&&r.leafGroup,v=1===r.allChildrenCount&&(u||h);if((f&&t.skipGroups&&qr.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!p&&(t.skipRowGroups||v||c)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&"top"===r.rowPinned||t.skipPinnedBottom&&"bottom"===r.rowPinned))&&((!(-1===r.level)||r.leafGroup)&&!o({node:r,api:l,context:a}))){var g=e.onNewBodyRow();if(n.forEach((function(e,t){g.onColumn(e,t,r)})),t.getCustomContentBelowRow){var m=t.getCustomContentBelowRow({node:r,api:l,columnApi:s,context:a});m&&e.addCustomContent(m)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&qr.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(n)),t}},t.prototype.prependContent=function(e){return function(t){var n=e.customHeader||e.prependContent;return n&&(e.customHeader&&qr.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(n)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var n=this;return function(r){if(e.skipColumnGroupHeaders)e.columnGroups&&qr.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var o=new $e,i=n.displayedGroupCreator.createDisplayedGroups(t,n.columnModel.getGridBalancedTree(),o,null);n.recursivelyAddHeaderGroups(i,r,e.processGroupHeaderCallback)}return r}},t.prototype.exportHeaders=function(e,t){return function(n){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&qr.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var r=n.onNewHeaderRow();t.forEach((function(e,t){r.onColumn(e,t,void 0)}))}return n}},t.prototype.processPinnedTopRows=function(e,t){var n=this;return function(r){var o=n.processRow.bind(n,r,e,t);return n.pinnedRowModel.forEachPinnedTopRow(o),r}},t.prototype.processRows=function(e,t){var n=this;return function(r){var o=n.rowModel,i=o.getType(),a=i===Oe.ROW_MODEL_TYPE_CLIENT_SIDE,l=i===Oe.ROW_MODEL_TYPE_SERVER_SIDE,s=!a&&e.onlySelected,u=n.processRow.bind(n,r,e,t);n.columnModel.isPivotMode()?a?o.forEachPivotNode(u):o.forEachNode(u):e.onlySelectedAllPages||s?n.selectionService.getSelectedNodes().forEach(u):a||l?o.forEachNodeAfterFilterAndSort(u):o.forEachNode(u);return r}},t.prototype.processPinnedBottomRows=function(e,t){var n=this;return function(r){var o=n.processRow.bind(n,r,e,t);return n.pinnedRowModel.forEachPinnedBottomRow(o),r}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var n=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!n?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([Oe.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var r=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return r.push(e)}))})),e.length>0&&e[0]instanceof Pe&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)},t.prototype.doAddHeaderHeader=function(e,t,n){var r=this,o=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,a=e;t=n?n({columnGroup:a,api:r.gridOptionsWrapper.getApi(),columnApi:r.gridOptionsWrapper.getColumnApi(),context:r.gridOptionsWrapper.getContext()}):r.columnModel.getDisplayNameForColumnGroup(a,"header"),o.onColumn(t||"",i++,a.getLeafColumns().length-1)}))},iv([de("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),iv([de("columnModel")],t.prototype,"columnModel",void 0),iv([de("rowModel")],t.prototype,"rowModel",void 0),iv([de("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),iv([de("selectionService")],t.prototype,"selectionService",void 0),t=iv([ce("gridSerializer")],t)}(He),lv={moduleName:t.ModuleNames.CsvExportModule,beans:[rv,av]},sv="\r\n",uv=function(){function e(){}return e.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"),""},e.createXml=function(e,t){var n=this,r="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(o){r+=n.returnAttributeIfPopulated(e.prefix+o,e.map[o],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(o){r+=n.returnAttributeIfPopulated(o,e.properties.rawMap[o],t)})));var o="<"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?o+">"+e.textNode+""+sv:(o+=">\r\n",e.children&&e.children.forEach((function(e){o+=n.createXml(e,t)})),o+""+sv):o+"/>"+sv},e.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var r=t;return"boolean"===typeof t&&n&&(r=n(t))," "+e+'="'+r+'"'},e}(),cv=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),dv=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,n){void 0===n&&(n=!1),this.files.push({path:e,created:new Date,content:t,isBase64:n})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),n=t.length,r="",o=0,i=0,a=0,l=t;a>>8^cv[255&(o^i)];return-1^o},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();we.register(Lh,!1),we.register($h,!1),we.register(lv,!1),t.AgAbstractField=Fl,t.AgAngleSelect=Vp,t.AgCheckbox=Vl,t.AgColorPicker=Rp,t.AgDialog=hp,t.AgGroupComponent=op,t.AgInputNumberField=Tp,t.AgInputRange=Dp,t.AgInputTextArea=yp,t.AgInputTextField=gp,t.AgPanel=cp,t.AgPromise=$r,t.AgRadioButton=Bc,t.AgSelect=Ip,t.AgSlider=wp,t.AgStackComponentsRegistry=Dt,t.AgToggleButton=Wp,t.AlignedGridsService=Od,t.AnimateShowChangeCellRenderer=gi,t.AnimateSlideCellRenderer=bi,t.AnimationFrameService=zd,t.AutoWidthCalculator=lc,t.Autowired=de,t.BaseComponentWrapper=ph,t.BaseCreator=Qh,t.BaseGridSerializingSession=Xh,t.Bean=ce,t.BeanStub=He,t.Beans=Ja,t.BodyDropPivotTarget=vs,t.BodyDropTarget=ys,t.CellComp=Hf,t.CellCtrl=dl,t.CellNavigationService=kc,t.CellPositionUtils=Qp,t.ChangedPath=za,t.CheckboxSelectionComponent=Yo,t.ColDefUtil=zt,t.Color=kt,t.Column=Ee,t.ColumnApi=Ba,t.ColumnFactory=Ke,t.ColumnGroup=Pe,t.ColumnKeyCreator=f,t.ColumnModel=ft,t.ColumnUtils=_t,t.Component=oo,t.ComponentUtil=jt,t.Constants=Oe,t.Context=ae,t.CssClassApplier=Pl,t.CsvCreator=rv,t.CsvExportModule=lv,t.CtrlsService=Mf,t.DateFilter=Do,t.DisplayedGroupCreator=Mt,t.Downloader=Zh,t.DragAndDropService=ei,t.DragService=xc,t.Environment=Ad,t.EventService=be,t.Events=Ye,t.ExpressionService=Bu,t.FilterManager=zs,t.FloatingFilterMapper=os,t.FloatingFilterWrapper=ls,t.FocusService=Yu,t.Grid=Jf,t.GridApi=Fu,t.GridBodyComp=Nu,t.GridBodyCtrl=ru,t.GridComp=wc,t.GridCoreCreator=eh,t.GridCtrl=fc,t.GridOptionsWrapper=Na,t.GridSerializer=av,t.GroupCellRenderer=fi,t.GroupCellRendererCtrl=ci,t.GroupInstanceIdCreator=$e,t.HeaderContainer=ws,t.HeaderNavigationService=Ms,t.HeaderPositionUtils=cf,t.HeaderRootComp=Ts,t.HeaderRowComp=ds,t.HorizontalResizeService=cc,t.KeyCode=co,t.LargeTextCellEditor=Ai,t.Logger=oc,t.LoggerFactory=rc,t.ManagedFocusFeature=wo,t.ModuleRegistry=we,t.MouseEventService=Dc,t.MoveColumnFeature=fs,t.NavigationService=Id,t.NumberFilter=zi,t.NumberSequence=Kr,t.Optional=pe,t.OriginalColumnGroup=xe,t.PaginationProxy=ld,t.PinnedRowModel=Jp,t.PopupComponent=ao,t.PopupEditorWrapper=Gf,t.PopupSelectCellEditor=Ri,t.PopupService=Ju,t.PopupTextCellEditor=xi,t.PositionableFeature=lp,t.PostConstruct=se,t.PreConstruct=le,t.PreDestroy=ue,t.PropertyKeys=xt,t.ProvidedFilter=Eo,t.Qualifier=he,t.QuerySelector=function(e){return so.bind(this,e,void 0)},t.RefSelector=lo,t.ResizeObserverService=Zd,t.RowContainerComp=$f,t.RowContainerCtrl=ju,t.RowCtrl=Ol,t.RowNode=Uo,t.RowNodeBlock=gf,t.RowNodeBlockLoader=Of,t.RowNodeSorter=_f,t.RowPositionUtils=Kp,t.RowRenderer=El,t.ScalarFilter=jo,t.ScrollVisibleService=qc,t.SelectCellEditor=Mi,t.SelectableService=qd,t.SelectionService=Ia,t.SetLeftFeature=Al,t.SimpleFilter=So,t.SortController=jc,t.StandardMenuFactory=Ec,t.StylingService=$c,t.TabGuardComp=yc,t.TabGuardCtrl=gc,t.TabbedLayout=ah,t.TemplateService=Wu,t.TextCellEditor=ho,t.TextFilter=Zi,t.TextFloatingFilter=ia,t.Timer=Qr,t.TooltipFeature=eo,t.TouchListener=No,t.UserComponentFactory=Ma,t.UserComponentRegistry=sa,t.ValueCache=fd,t.ValueFormatterService=Ic,t.ValueService=Ls,t.VanillaFrameworkOverrides=Hc,t.VirtualList=uh,t.XmlFactory=uv,t.ZipContainer=dv,t._=qr,t.defaultGroupComparator=function(e,t,n,o,i){void 0===i&&(i=!1),console.warn("AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var a=r(n)&&n.group,l=r(o)&&o.group,s=!a&&!l;return a&&l?u(n.key,o.key,i):s?u(e,t,i):a?1:-1},t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",th],scope:!0}}))},t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!nh){nh=!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);jt.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var n={};n[e]={currentValue:t},this.onChange(n)},t.onChange=function(e){this._initialised&&jt.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=jt.copyAttributesToGridOptions(e,this);var n={globalEventListener:t};this._agGrid=new Jf(this,this._gridOptions,n),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e=0&&(this[n]=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 n=e.toLowerCase(),r=new Event(n);r.agGridDetails=t,this.dispatchEvent(r);var o="on"+n;"function"===typeof this[o]&&this[o](r)},document.registerElement("ag-grid",{prototype:e})}},t.simpleHttpRequest=function(e){return new $r((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}}))},t.stringToArray=Ft}).call(this,n(104))},function(e,t,n){"use strict";var r=n(30).a.Symbol;t.a=r},function(e,t,n){"use strict";var r=n(186),o=n(75),i=n(98),a=Object(o.a)((function(e,t){return Object(i.a)(e)?Object(r.a)(e,t):[]}));t.a=a},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(359)},function(e,t,n){"use strict";var r=n(131),o=n(121);var i=function(e,t,n,i){var a=n.length,l=a,s=!i;if(null==e)return!l;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a=0;p--){var f=a[p];"."===f?i(a,p):".."===f?(i(a,p),d++):d&&(i(a,p),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var s=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=l(t),o=l(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},u=n(52);function c(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function v(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=v(e,t,p(),O.location);c.confirmTransitionTo(o,r,n,(function(e){e&&(O.entries[O.index]=o,d({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=O.index+e;return t>=0&&t=0?";expires="+p.toUTCString():"")+(l?";domain="+l:"")+(s?";path="+s:"")+(u?";secure":"")+(c?";httponly":"")+(d?";samesite="+d:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+1))}return null},t.erase=function(e,n){t.set(e,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");r=r<0?n.length:r,e[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return e}},function(e,t,n){"use strict";var r="Invariant failed";t.a=function(e,t){if(!e)throw new Error(r)}},,function(e,t,n){"use strict";var r=n(76);t.a=function(e){if("string"==typeof e||Object(r.a)(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},function(e,t,n){"use strict";var r=n(189),o=n(31);var i=function(e,t){return function(n,r){if(null==n)return n;if(!Object(o.a)(n))return e(n,r);for(var i=n.length,a=t?i:-1,l=Object(n);(t?a--:++a-1&&e%1==0&&e-1};var c=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++to?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){"use strict";t.a=function(e,t){return e.has(t)}},function(e,t,n){"use strict";t.a=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){"use strict";var r=n(142);t.a=function(e){var t=Object(r.a)(e),n=t%1;return t===t?n?t-n:t:0}},function(e,t,n){"use strict";var r=n(28),o=n(18),i=n(26);t.a=function(e){return"string"==typeof e||!Object(o.a)(e)&&Object(i.a)(e)&&"[object String]"==Object(r.a)(e)}},function(e,t,n){"use strict";var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.a=function(e){return r.test(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(143);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r=n(131),o=n(124),i=n(174),a=n(115);var l=function(e,t,n,r,l,s){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var h=-1,v=!0,g=2&n?new o.a:void 0;for(s.set(e,t),s.set(t,e);++h=0;o--)t.call(n,e[o],o);else for(o=0;on;)e=e[t.substr(n,r-n)],r=G(t,n=r+1);return e}function V(e){return e.charAt(0).toUpperCase()+e.slice(1)}var H=function(e){return"undefined"!==typeof e},W=function(e){return"function"===typeof e},U=Math.PI,q=2*U,K=q+U,Y=Number.POSITIVE_INFINITY,$=U/180,Q=U/2,X=U/4,Z=2*U/3,J=Math.log10,ee=Math.sign;function te(e){var t=Math.round(e);e=re(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(J(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ne(e){return!isNaN(parseFloat(e))&&isFinite(e)}function re(e,t,n){return Math.abs(e-t)s&&u=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return fe(e)?e:he(e,.075,.3)},easeOutElastic:function(e){return fe(e)?e:ve(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return fe(e)?e:e<.5?.5*he(2*e,t,.45):.5+.5*ve(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-ge.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*ge.easeInBounce(2*e):.5*ge.easeOutBounce(2*e-1)+.5}},me={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ye="0123456789ABCDEF",be=function(e){return ye[15&e]},Oe=function(e){return ye[(240&e)>>4]+ye[15&e]},we=function(e){return(240&e)>>4===(15&e)};function _e(e){var t=function(e){return we(e.r)&&we(e.g)&&we(e.b)&&we(e.a)}(e)?be:Oe;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function Ce(e){return e+.5|0}var Ee=function(e,t,n){return Math.max(Math.min(e,n),t)};function Me(e){return Ee(Ce(2.55*e),0,255)}function Pe(e){return Ee(Ce(255*e),0,255)}function xe(e){return Ee(Ce(e/2.55)/100,0,1)}function Se(e){return Ee(Ce(100*e),0,100)}var Re=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var je=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Te(e,t,n){var r=t*Math.min(n,1-n),o=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(o-3,9-o,1),-1)};return[o(0),o(8),o(4)]}function Ae(e,t,n){var r=function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(o,4-o,1),0)};return[r(5),r(3),r(1)]}function De(e,t,n){var r,o=Te(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function Ne(e){var t,n,r,o=e.r/255,i=e.g/255,a=e.b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),u=(l+s)/2;return l!==s&&(r=l-s,n=u>.5?r/(2-l-s):r/(l+s),t=60*(t=l===o?(i-a)/r+(i>16&255,n>>8&255,255&n]}return i}()).transparent=[0,0,0,0]);var t=Ie[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function He(e,t,n){if(e){var r=Ne(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=ke(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function We(e,t){return e?Object.assign(t||{},e):e}function Ue(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Pe(e[3]))):(t=We(e,{r:0,g:0,b:0,a:1})).a=Pe(t.a),t}function qe(e){return"r"===e.charAt(0)?function(e){var t,n,r,o=Re.exec(e),i=255;if(o){if(o[7]!==t){var a=+o[7];i=255&(o[8]?Me(a):255*a)}return t=+o[1],n=+o[3],r=+o[5],{r:t=255&(o[2]?Me(t):t),g:n=255&(o[4]?Me(n):n),b:r=255&(o[6]?Me(r):r),a:i}}}(e):Le(e)}var Ke=function(){function e(t){if(Object(g.a)(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=Ue(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*me[e[1]],g:255&17*me[e[2]],b:255&17*me[e[3]],a:5===n?17*me[e[4]]:255}:7!==n&&9!==n||(t={r:me[e[1]]<<4|me[e[2]],g:me[e[3]]<<4|me[e[4]],b:me[e[5]]<<4|me[e[6]],a:9===n?me[e[7]]<<4|me[e[8]]:255})),t}(t)||Ve(t)||qe(t)),this._rgb=n,this._valid=!!n}return Object(m.a)(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=We(this._rgb);return e&&(e.a=xe(e.a)),e},set:function(e){this._rgb=Ue(e)}},{key:"rgbString",value:function(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(xe(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):this._rgb;var e}},{key:"hexString",value:function(){return this._valid?_e(this._rgb):this._rgb}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=Ne(e),n=t[0],r=Se(t[1]),o=Se(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(xe(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)")}}(this._rgb):this._rgb}},{key:"mix",value:function(e,t){var n=this;if(e){var r,o=n.rgb,i=e.rgb,a=t===r?.5:t,l=2*a-1,s=o.a-i.a,u=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;r=1-u,o.r=255&u*o.r+r*i.r+.5,o.g=255&u*o.g+r*i.g+.5,o.b=255&u*o.b+r*i.b+.5,o.a=a*o.a+(1-a)*i.a,n.rgb=o}return n}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=Pe(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=Ce(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return He(this._rgb,2,e),this}},{key:"darken",value:function(e){return He(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return He(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return He(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=Ne(e);n[0]=Fe(n[0]+t),n=ke(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function Ye(e){return new Ke(e)}var $e=function(e){return e instanceof CanvasGradient||e instanceof CanvasPattern};function Qe(e){return $e(e)?e:Ye(e)}function Xe(e){return $e(e)?e:Ye(e).saturate(.5).darken(.1).hexString()}var Ze=Object.create(null),Je=Object.create(null);function et(e,t){if(!t)return e;for(var n=t.split("."),r=0,o=n.length;rr&&(r=i),r}function ot(e,t,n,r){var o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var a,l,s,u,c,d=0,p=n.length;for(a=0;an.length){for(a=0;a0&&e.stroke()}}function st(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y5&&void 0!==arguments[5]?arguments[5]:{},s=M(t)?t:[t],u=l.strokeWidth>0&&""!==l.strokeColor;for(e.save(),e.font=o.string,ht(e,l),i=0;i1;)n(r=i+o>>1)?i=r:o=r;return{lo:i,hi:o}}var xt=function(e,t,n){return Pt(e,n,(function(r){return e[r][t]=n}))};var Rt=["push","pop","shift","splice","unshift"];function jt(e,t){var n=e._chartjs;if(n){var r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(Rt.forEach((function(t){delete e[t]})),delete e._chartjs)}}function Tt(e){var t,n,r=new Set;for(t=0,n=e.length;t1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};H(o)||(o=Wt("_fallback",e));var l=(t={},Object(h.a)(t,Symbol.toStringTag,"Object"),Object(h.a)(t,"_cacheable",!0),Object(h.a)(t,"_scopes",e),Object(h.a)(t,"_rootScopes",r),Object(h.a)(t,"_fallback",o),Object(h.a)(t,"_getTarget",a),Object(h.a)(t,"override",(function(t){return At([t].concat(Object(i.a)(e)),n,r,o)})),t);return new Proxy(l,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return Ft(t,r,(function(){return Ht(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return Ut(e).includes(t)},ownKeys:function(e){return Ut(e)},set:function(e,t,n){return(e._storage||(e._storage=a()))[t]=n,delete e[t],delete e._keys,!0}})}function Dt(e,t,n,r){var o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Nt(e,r),setContext:function(t){return Dt(e,t,n,r)},override:function(o){return Dt(e.override(o),t,n,r)}};return new Proxy(o,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return Ft(e,t,(function(){return function(e,t,n){var r=e._proxy,o=e._context,i=e._subProxy,a=e._descriptors,l=r[t];W(l)&&a.isScriptable(t)&&(l=function(e,t,n,r){var o=n._proxy,i=n._context,a=n._subProxy,l=n._stack;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e),t=t(i,a||r),l.delete(e),P(t)&&(t=Bt(o._scopes,o,e,t));return t}(t,l,e,n));M(l)&&l.length&&(l=function(e,t,n,r){var o=n._proxy,i=n._context,a=n._subProxy,l=n._descriptors;if(H(i.index)&&r(e))t=t[i.index%t.length];else if(P(t[0])){var s=t,u=o._scopes.filter((function(e){return e!==s}));t=[];var c,d=Object(v.a)(s);try{for(d.s();!(c=d.n()).done;){var p=Bt(u,o,e,c.value);t.push(Dt(p,i,a&&a[e],l))}}catch(f){d.e(f)}finally{d.f()}}return t}(t,l,e,a.isIndexable));kt(t,l)&&(l=Dt(l,o,i&&i[t],a));return l}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,o=e._indexable,i=void 0===o?t.indexable:o,a=e._allKeys,l=void 0===a?t.allKeys:a;return{allKeys:l,scriptable:r,indexable:i,isScriptable:W(r)?r:function(){return r},isIndexable:W(i)?i:function(){return i}}}var zt=function(e,t){return e?e+V(t):t},kt=function(e,t){return P(t)&&"adapters"!==e};function Ft(e,t,n){var r=e[t];return H(r)||(r=n(),H(r)&&(e[t]=r)),r}function Lt(e,t,n){return W(e)?e(t,n):e}var It=function(e,t){return!0===e?t:"string"===typeof e?B(t,e):void 0};function Gt(e,t,n,r){var o,i=Object(v.a)(t);try{for(i.s();!(o=i.n()).done;){var a=o.value,l=It(n,a);if(l){e.add(l);var s=Lt(l._fallback,n,l);if(H(s)&&s!==n&&s!==r)return s}else if(!1===l&&H(r)&&n!==r)return null}}catch(u){i.e(u)}finally{i.f()}return!1}function Bt(e,t,n,r){var o=t._rootScopes,a=Lt(t._fallback,n,r),l=[].concat(Object(i.a)(e),Object(i.a)(o)),s=new Set;s.add(r);var u=Vt(s,l,n,a||n);return null!==u&&((!H(a)||a===n||null!==(u=Vt(s,l,a,u)))&&At(Array.from(s),[""],o,a,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var o=r[t];if(M(o)&&P(n))return n;return o}(t,n,r)})))}function Vt(e,t,n,r){for(;n;)n=Gt(e,t,n,r);return n}function Ht(e,t,n,r){var o,i,a=Object(v.a)(t);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(o=Wt(zt(l,e),n),H(o))return kt(e,o)?Bt(n,r,e,o):o}}catch(s){a.e(s)}finally{a.f()}}function Wt(e,t){var n,r=Object(v.a)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o){var i=o[e];if(H(i))return i}}}catch(a){r.e(a)}finally{r.f()}}function Ut(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=Object(v.a)(e);try{for(r.s();!(t=r.n()).done;){var o,i=t.value,a=Object(v.a)(Object.keys(i).filter((function(e){return!e.startsWith("_")})));try{for(a.s();!(o=a.n()).done;){var l=o.value;n.add(l)}}catch(s){a.e(s)}finally{a.f()}}}catch(s){r.e(s)}finally{r.f()}return Array.from(n)}(e._scopes)),t}var qt=Number.EPSILON||1e-14,Kt=function(e,t){return t2&&void 0!==arguments[2]?arguments[2]:"x",a=Yt(i),l=e.length,s=Kt(e,0),u=0;u1&&void 0!==arguments[1]?arguments[1]:"x",i=Yt(o),a=e.length,l=Array(a).fill(0),s=Array(a),u=Kt(e,0);for(t=0;t0||t>0)&&(!n||!n.shadowRoot)}(l,s,o.target))n=l,r=s;else{var c=t.getBoundingClientRect();n=a.clientX-c.left,r=a.clientY-c.top,u=!0}return{x:n,y:r,box:u}}(e,n),u=s.x,c=s.y,d=s.box,p=a.left+(d&&l.left),f=a.top+(d&&l.top),h=t.width,v=t.height;return i&&(h-=a.width+l.width,v-=a.height+l.height),{x:Math.round((u-p)/h*n.width/r),y:Math.round((c-f)/v*n.height/r)}}var sn=function(e){return Math.round(10*e)/10};function un(e,t,n,r){var o=rn(e),i=an(o,"margin"),a=nn(o.maxWidth,e,"clientWidth")||Y,l=nn(o.maxHeight,e,"clientHeight")||Y,s=function(e,t,n){var r,o;if(void 0===t||void 0===n){var i=tn(e);if(i){var a=i.getBoundingClientRect(),l=rn(i),s=an(l,"border","width"),u=an(l,"padding");t=a.width-u.width-s.width,n=a.height-u.height-s.height,r=nn(l.maxWidth,i,"clientWidth"),o=nn(l.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Y,maxHeight:o||Y}}(e,t,n),u=s.width,c=s.height;if("content-box"===o.boxSizing){var d=an(o,"border","width"),p=an(o,"padding");u-=p.width+d.width,c-=p.height+d.height}return u=Math.max(0,u-i.width),c=Math.max(0,r?Math.floor(u/r):c-i.height),u=sn(Math.min(u,a,s.maxWidth)),c=sn(Math.min(c,l,s.maxHeight)),u&&!c&&(c=sn(u/2)),{width:u,height:c}}function cn(e,t,n){var r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=o/r,e.width=i/r;var a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0)}var dn=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(n){}return e}();function pn(e,t){var n=function(e,t){return rn(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function fn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function hn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function vn(e,t,n,r){var o={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=fn(e,o,n),l=fn(o,i,n),s=fn(i,t,n),u=fn(a,l,n),c=fn(l,s,n);return fn(u,c,n)}var gn=new Map;function mn(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=gn.get(n);return r||(r=new Intl.NumberFormat(e,t),gn.set(n,r)),r}(t,n).format(e)}function yn(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function bn(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function On(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function wn(e){return"angle"===e?{between:de,compare:ue,normalize:ce}:{between:function(e,t,n){return e>=Math.min(t,n)&&e<=Math.max(n,t)},compare:function(e,t){return e-t},normalize:function(e){return e}}}function _n(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function Cn(e,t,n){if(!n)return[e];for(var r,o,i,a=n.property,l=n.start,s=n.end,u=t.length,c=wn(a),d=c.compare,p=c.between,f=c.normalize,h=function(e,t,n){var r,o,i=n.property,a=n.start,l=n.end,s=wn(i),u=s.between,c=s.normalize,d=t.length,p=e.start,f=e.end,h=e.loop;if(h){for(p+=d,f+=d,r=0,o=d;r0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=this,n=0;t._charts.forEach((function(r,o){if(r.running&&r.items.length){for(var i,a=r.items,l=a.length-1,s=!1;l>=0;--l)(i=a[l])._active?(i._total>r.duration&&(r.duration=i._total),i.tick(e),s=!0):(a[l]=a[a.length-1],a.pop());s&&(o.draw(),t._notify(o,r,e,"progress")),a.length||(r.running=!1,t._notify(o,r,e,"complete"),r.initial=!1),n+=a.length}})),t._lastDate=e,0===n&&(t._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,Object(i.a)(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}()),Rn="transparent",jn={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=Qe(e||Rn),o=r.valid&&Qe(t||Rn);return o&&o.valid?o.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},Tn=function(){function e(t,n,r,o){Object(g.a)(this,e);var i=n[r];o=Mt([t.to,o,i,t.from]);var a=Mt([t.from,i,o]);this._active=!0,this._fn=t.fn||jn[t.type||typeof a],this._easing=ge[t.easing]||ge.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}return Object(m.a)(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){var r=this;if(r._active){r._notify(!1);var o=r._target[r._prop],i=n-r._start,a=r._duration-i;r._start=n,r._duration=Math.floor(Math.max(a,e.duration)),r._total+=i,r._loop=!!e.loop,r._to=Mt([e.to,t,o,e.from]),r._from=Mt([e.from,o,t])}}},{key:"cancel",value:function(){var e=this;e._active&&(e.tick(Date.now()),e._active=!1,e._notify(!1))}},{key:"tick",value:function(e){var t,n=this,r=e-n._start,o=n._duration,i=n._prop,a=n._from,l=n._loop,s=n._to;if(n._active=a!==s&&(l||r1?2-t:t,t=n._easing(Math.min(1,Math.max(0,t))),n._target[i]=n._fn(a,s,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r=0;--n){var u=l[n];if("$"!==u.charAt(0))if("options"!==u){var c=t[u],d=a[u],p=r.get(u);if(d){if(p&&d.active()){d.update(p,c,s);continue}d.cancel()}p&&p.duration?(a[u]=d=new Tn(p,e,u,c),o.push(d)):e[u]=c}else o.push.apply(o,Object(i.a)(this._animateOptions(e,t)))}return o}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(Sn.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function Nn(e,t){var n=e&&e.options||{},r=n.reverse,o=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:o,end:r?o:i}}function zn(e,t){var n,r,o=[],i=e._getSortedDatasetMetas(t);for(n=0,r=i.length;n0||!n&&a<0)return i.index}}catch(l){o.e(l)}finally{o.f()}return null}function Gn(e,t){for(var n,r=e.chart,o=e._cachedMeta,i=r._stacks||(r._stacks={}),a=o.iScale,l=o.vScale,s=o.index,u=a.axis,c=l.axis,d=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(a,l,o),p=t.length,f=0;f0&&a._parsed[e-1];if(!1===i._parsing)a._parsed=l,a._sorted=!0,o=l;else{o=M(l[e])?i.parseArrayData(a,l,e,t):P(l[e])?i.parseObjectData(a,l,e,t):i.parsePrimitiveData(a,l,e,t);for(n=0;ni||g=0;--n)if(!m()){a.updateRangeFromParsed(f,e,o,p);break}return f}},{key:"getAllParsedValues",value:function(e){var t,n,r,o=this._cachedMeta._parsed,i=[];for(t=0,n=o.length;t=0&&e1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0,r=this,o="active"===t,i=r._cachedDataOpts,a=e+"-"+t,l=i[a],s=r.enableOptionSharing&&H(n);if(l)return Wn(l,s);var u=r.chart.config,c=u.datasetElementScopeKeys(r._type,e),d=o?["".concat(e,"Hover"),"hover",e,""]:[e,""],p=u.getOptionScopes(r.getDataset(),c),f=Object.keys(nt.elements[e]),h=function(){return r.getContext(n,o)},v=u.resolveNamedOptions(p,f,h,d);return v.$shared&&(v.$shared=s,i[a]=Object.freeze(Wn(v,s))),v}},{key:"_resolveAnimations",value:function(e,t,n){var r,o=this,i=o.chart,a=o._cachedDataOpts,l="animation-".concat(t),s=a[l];if(s)return s;if(!1!==i.options.animation){var u=o.chart.config,c=u.datasetAnimationScopeKeys(o._type,t),d=u.getOptionScopes(o.getDataset(),c);r=u.createResolver(d,o.getContext(e,n,t))}var p=new Dn(i,r&&r.animations);return r&&r._cacheable&&(a[l]=Object.freeze(p)),p}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||Hn(e)||this.chart._animationsDisabled}},{key:"updateElement",value:function(e,t,n,r){Hn(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!Hn(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var o=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(o)||o})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this,r=n._data,o=n._cachedMeta.data,i=Object(v.a)(n._syncList);try{for(i.s();!(t=i.n()).done;){var a=f(t.value,3),l=a[0],s=a[1],u=a[2];n[l](s,u)}}catch(h){i.e(h)}finally{i.f()}n._syncList=[];var c=o.length,d=r.length,p=Math.min(d,c);p&&n.parse(0,p),d>c?n._insertElements(c,d-c,e):d2&&void 0!==arguments[2])||arguments[2],o=this,i=o._cachedMeta,a=i.data,l=e+t,s=function(e){for(e.length+=t,n=e.length-1;n>=l;n--)e[n]=e[n-t]};for(s(a),n=e;nMath.abs(l)&&(s=l,u=a),t[n.axis]=u,t._custom={barStart:s,barEnd:u,start:o,end:i,min:a,max:l}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Yn(e,t,n,r){var o,i,a,l,s=e.iScale,u=e.vScale,c=s.getLabels(),d=s===u,p=[];for(o=n,i=n+r;oe.x,n="left",r="right"):(t=e.base=n?1:-1)}(n,i,c)*u,h===c&&(y-=n/2),t=y+n),y===i.getPixelForValue(c)){var b=ee(n)*i.getLineWidthForValue(c)/2;y+=b,n-=b}return{size:n,base:y,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,o=this,i=t.scale,a=o.options,l=a.skipNull,s=R(a.maxBarThickness,1/0);if(t.grouped){var u=l?o._getStackCount(e):t.stackCount,c="flex"===a.barThickness?function(e,t,n,r){var o=t.pixels,i=o[e],a=e>0?o[e-1]:null,l=e=0;--o)r=Math.max(r,t[o].size()/2,n[o]._custom);return r>0&&r}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.xScale,r=t.yScale,o=this.getParsed(e),i=n.getLabelForValue(o.x),a=r.getLabelForValue(o.y),l=o._custom;return{label:t.label,value:"("+i+", "+a+(l?", "+l:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var o=this,i="reset"===r,a=o._cachedMeta,l=a.iScale,s=a.vScale,u=o.resolveDataElementOptions(t,r),c=o.getSharedOptions(u),d=o.includeOptions(r,c),p=l.axis,f=s.axis,h=t;h0&&!isNaN(e)?q*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=mn(t._parsed[e],n.options.locale);return{label:r[e]||"",value:o}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,o,i,a=0,l=this.chart;if(!e)for(t=0,n=l.data.datasets.length;t0&&o.getParsed(t-1),b=t;b0&&w[f]-y[f]>g,_.parsed=w,p&&(_.options=d||o.resolveDataElementOptions(b,O.active?"active":r)),m||o.updateElement(O,b,_,r),y=w}o.updateSharedOptions(d,r,c)}},{key:"getMaxOverflow",value:function(){var e=this,t=e._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,o=t.data||[];if(!o.length)return r;var i=o[0].size(e.resolveDataElementOptions(0)),a=o[o.length-1].size(e.resolveDataElementOptions(o.length-1));return Math.max(r,i,a)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),u(Object(s.a)(n.prototype),"draw",this).call(this)}}]),n}(Un);nr.id="line",nr.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},nr.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var rr=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e,r){var o;return Object(g.a)(this,n),(o=t.call(this,e,r)).innerRadius=void 0,o.outerRadius=void 0,o}return Object(m.a)(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=mn(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:o}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"_updateRadius",value:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,o=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(o/2,0),a=(i-Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0))/t.getVisibleDatasetCount();e.outerRadius=i-a*e.index,e.innerRadius=e.outerRadius-a}},{key:"updateElements",value:function(e,t,n,r){var o,i=this,a="reset"===r,l=i.chart,s=i.getDataset(),u=l.options.animation,c=i._cachedMeta.rScale,d=c.xCenter,p=c.yCenter,f=c.getIndexAngle(0)-.5*U,h=f,v=360/i.countVisibleElements();for(o=0;o0){var l=a[0].datasetIndex,s=e.getDatasetMeta(l).data;a=[];for(var u=0;u1){var a=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(a<1e-4||a>1e15)&&(r="scientific"),i=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var l=J(Math.abs(i)),s=Math.max(Math.min(-1*Math.floor(l),20),0),u={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(u,this.options.ticks.format),mn(e,o,u)},logarithmic:function(e,t,n){if(0===e)return"0";var r=e/Math.pow(10,Math.floor(J(e)));return 1===r||2===r||5===r?Qr.numeric.call(this,e,t,n):""}};var Xr={formatters:Qr};function Zr(e,t){var n=e.options.ticks,r=n.maxTicksLimit||function(e){var t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),o=e._maxLength/n;return Math.floor(Math.min(r,o))}(e),o=n.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;tr)return function(e,t,n,r){var o,i=0,a=n[0];for(r=Math.ceil(r),o=0;oo)return s}return Math.max(o,1)}(o,t,r);if(i>0){var c,d,p=i>1?Math.round((l-a)/(i-1)):null;for(Jr(t,s,u,E(p)?0:a-p,a),c=0,d=i-1;cl+s)))return u}function ro(e){return e.drawTicks?e.tickLength:0}function oo(e,t){if(!e.display)return 0;var n=Et(e.font,t),r=Ct(e.padding);return(M(e.text)?e.text.length:1)*n.lineHeight+r.height}function io(e,t,n){var r=O(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=function(e){return"left"===e?"right":"right"===e?"left":e}(r)),r}var ao=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this)).id=e.id,r.type=e.type,r.options=void 0,r.ctx=e.ctx,r.chart=e.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return Object(m.a)(n,[{key:"init",value:function(e){var t=this;t.options=e.setContext(t.getContext()),t.axis=e.axis,t._userMin=t.parse(e.min),t._userMax=t.parse(e.max),t._suggestedMin=t.parse(e.suggestedMin),t._suggestedMax=t.parse(e.suggestedMax)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=S(e,Number.POSITIVE_INFINITY),t=S(t,Number.NEGATIVE_INFINITY),n=S(n,Number.POSITIVE_INFINITY),r=S(r,Number.NEGATIVE_INFINITY),{min:S(e,n),max:S(t,r),minDefined:x(e),maxDefined:x(t)}}},{key:"getMinMax",value:function(e){var t,n=this,r=n.getUserBounds(),o=r.min,i=r.max,a=r.minDefined,l=r.maxDefined;if(a&&l)return{min:o,max:i};for(var s=n.getMatchingVisibleMetas(),u=0,c=s.length;u=s||a<=1||!r.isHorizontal())r.labelRotation=l;else{var c=r._getLabelSizes(),d=c.widest.width,p=c.highest.height,f=pe(r.chart.width-d,0,r.maxWidth);d+6>(e=o.offset?r.maxWidth/a:f/(a-1))&&(e=f/(a-(o.offset?.5:1)),t=r.maxHeight-ro(o.grid)-i.padding-oo(o.title,r.chart.options.font),n=Math.sqrt(d*d+p*p),u=ae(Math.min(Math.asin(pe((c.highest.height+6)/e,-1,1)),Math.asin(pe(t/n,-1,1))-Math.asin(pe(p/n,-1,1)))),u=Math.max(l,Math.min(s,u))),r.labelRotation=u}}},{key:"afterCalculateLabelRotation",value:function(){T(this.options.afterCalculateLabelRotation,[this])}},{key:"beforeFit",value:function(){T(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e=this,t={width:0,height:0},n=e.chart,r=e.options,o=r.ticks,i=r.title,a=r.grid,l=e._isVisible(),s=e.isHorizontal();if(l){var u=oo(i,n.options.font);if(s?(t.width=e.maxWidth,t.height=ro(a)+u):(t.height=e.maxHeight,t.width=ro(a)+u),o.display&&e.ticks.length){var c=e._getLabelSizes(),d=c.first,p=c.last,f=c.widest,h=c.highest,v=2*o.padding,g=ie(e.labelRotation),m=Math.cos(g),y=Math.sin(g);if(s){var b=o.mirror?0:y*f.width+m*h.height;t.height=Math.min(e.maxHeight,t.height+b+v)}else{var O=o.mirror?0:m*f.width+y*h.height;t.width=Math.min(e.maxWidth,t.width+O+v)}e._calculatePadding(d,p,y,m)}}e._handleMargins(),s?(e.width=e._length=n.width-e._margins.left-e._margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e._margins.top-e._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var o=this,i=o.options,a=i.ticks,l=a.align,s=a.padding,u=i.position,c=0!==o.labelRotation,d="top"!==u&&"x"===o.axis;if(o.isHorizontal()){var p=o.getPixelForTick(0)-o.left,f=o.right-o.getPixelForTick(o.ticks.length-1),h=0,v=0;c?d?(h=r*e.width,v=n*t.height):(h=n*e.height,v=r*t.width):"start"===l?v=t.width:"end"===l?h=e.width:(h=e.width/2,v=t.width/2),o.paddingLeft=Math.max((h-p+s)*o.width/(o.width-p),0),o.paddingRight=Math.max((v-f+s)*o.width/(o.width-f),0)}else{var g=t.height/2,m=e.height/2;"start"===l?(g=0,m=e.height):"end"===l&&(g=t.height,m=0),o.paddingTop=g+s,o.paddingBottom=m+s}}},{key:"_handleMargins",value:function(){var e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}},{key:"afterFit",value:function(){T(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n,r=this;for(r.beforeTickToLabelConversion(),r.generateTickLabels(e),t=0,n=e.length;tt){for(n=0;nt.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){var t=this;t._reversePixels&&(e=1-e);var n=t._startPixel+e*t._length;return pe(t._alignToPixels?it(t.chart,n,0):n,-32768,32767)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t,n,r=this,o=r.ticks||[];if(e>=0&&el*o?l/r:s/o:s*o0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,o,i,a,l,s,u,c,d,p,f=this,h=f.axis,v=f.chart,g=f.options,m=g.grid,y=g.position,b=m.offset,O=f.isHorizontal(),w=f.ticks.length+(b?1:0),_=ro(m),C=[],E=m.setContext(f.getContext()),M=E.drawBorder?E.borderWidth:0,x=M/2,S=function(e){return it(v,e,M)};if("top"===y)t=S(f.bottom),a=f.bottom-_,s=t-x,c=S(e.top)+x,p=e.bottom;else if("bottom"===y)t=S(f.top),c=e.top,p=S(e.bottom)-x,a=t+x,s=f.top+_;else if("left"===y)t=S(f.right),i=f.right-_,l=t-x,u=S(e.left)+x,d=e.right;else if("right"===y)t=S(f.left),u=e.left,d=S(e.right)-x,i=t+x,l=f.left+_;else if("x"===h){if("center"===y)t=S((e.top+e.bottom)/2+.5);else if(P(y)){var j=Object.keys(y)[0],T=y[j];t=S(f.chart.scales[j].getPixelForValue(T))}c=e.top,p=e.bottom,s=(a=t+x)+_}else if("y"===h){if("center"===y)t=S((e.left+e.right)/2);else if(P(y)){var A=Object.keys(y)[0],D=y[A];t=S(f.chart.scales[A].getPixelForValue(D))}l=(i=t-x)-_,u=e.left,d=e.right}var N=R(g.ticks.maxTicksLimit,w),z=Math.max(1,Math.ceil(w/N));for(n=0;n=0?n.setContext(t.getContext(r)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this,o=r.options.grid,i=r.ctx,a=r._gridLineItems||(r._gridLineItems=r._computeGridLineItems(e)),l=function(e,t,n){n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(o.display)for(t=0,n=a.length;t3&&void 0!==arguments[3]?arguments[3]:[""],o={$shared:!0},i=_o(this._resolverCache,e,r),a=i.resolver,l=i.subPrefixes,s=a;if(Co(a,t)){o.$shared=!1,n=W(n)?n():n;var u=this.createResolver(e,n,l);s=Dt(a,n,u)}var c,d=Object(v.a)(t);try{for(d.s();!(c=d.n()).done;){var p=c.value;o[p]=s[p]}}catch(f){d.e(f)}finally{d.f()}return o}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,o=_o(this._resolverCache,e,n),i=o.resolver;return P(t)?Dt(i,t,void 0,r):i}}]),e}();function _o(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var o=n.join(),i=r.get(o);i||(i={resolver:At(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(o,i));return i}function Co(e,t){var n,r=Nt(e),o=r.isScriptable,i=r.isIndexable,a=Object(v.a)(t);try{for(a.s();!(n=a.n()).done;){var l=n.value;if(o(l)&&W(e[l])||i(l)&&M(e[l]))return!0}}catch(s){a.e(s)}finally{a.f()}return!1}var Eo=["top","bottom","left","right","chartArea"];function Mo(e,t){return"top"===e||"bottom"===e||-1===Eo.indexOf(e)&&"x"===t}function Po(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function xo(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),T(n&&n.onComplete,[e],t)}function So(e){var t=e.chart,n=t.options.animation;T(n&&n.onProgress,[e],t)}function Ro(e){return en()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var jo={},To=function(e){var t=Ro(e);return Object.values(jo).filter((function(e){return e.canvas===t})).pop()},Ao=function(){function e(t,n){var r=this;Object(g.a)(this,e);var o=this,i=this.config=new wo(n),a=Ro(t),l=To(a);if(l)throw new Error("Canvas is already in use. Chart with ID '"+l.id+"' must be destroyed before the canvas can be reused.");var s=i.createResolver(i.chartOptionScopes(),o.getContext());this.platform=new(i.platform||function(e){return!en()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?zr:Yr}(a));var u=o.platform.acquireContext(a,s.aspectRatio),c=u&&u.canvas,d=c&&c.height,p=c&&c.width;this.id=C(),this.ctx=u,this.canvas=c,this.width=p,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new uo,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){var n;return function(){return t?(clearTimeout(n),n=setTimeout(e,t)):e(),t}}((function(){return r.update("resize")}),s.resizeDelay||0),jo[o.id]=o,u&&c?(Sn.listen(o,"complete",xo),Sn.listen(o,"progress",So),o._initialize(),o.attached&&o.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Object(m.a)(e,[{key:"aspectRatio",get:function(){var e=this.options,t=e.aspectRatio,n=e.maintainAspectRatio,r=this.width,o=this.height,i=this._aspectRatio;return E(t)?n&&i?i:o?r/o:null:t}},{key:"data",get:function(){return this.config.data},set:function(e){this.config.data=e}},{key:"options",get:function(){return this._options},set:function(e){this.config.options=e}},{key:"_initialize",value:function(){var e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():cn(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}},{key:"clear",value:function(){return at(this.canvas,this.ctx),this}},{key:"stop",value:function(){return Sn.stop(this),this}},{key:"resize",value:function(e,t){Sn.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}},{key:"_resize",value:function(e,t){var n=this,r=n.options,o=n.canvas,i=r.maintainAspectRatio&&n.aspectRatio,a=n.platform.getMaximumSize(o,e,t,i),l=r.devicePixelRatio||n.platform.getDevicePixelRatio();n.width=a.width,n.height=a.height,n._aspectRatio=n.aspectRatio,cn(n,l,!0)&&(n.notifyPlugins("resize",{size:a}),T(r.onResize,[n,a],n),n.attached&&n._doResize()&&n.render())}},{key:"ensureScalesHaveIDs",value:function(){A(this.options.scales||{},(function(e,t){e.id=t}))}},{key:"buildOrUpdateScales",value:function(){var e=this,t=e.options,n=t.scales,r=e.scales,o=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}),i=[];n&&(i=i.concat(Object.keys(n).map((function(e){var t=n[e],r=ho(e,t),o="r"===r,i="x"===r;return{options:t,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),A(i,(function(n){var i=n.options,a=i.id,l=ho(a,i),s=R(i.type,n.dtype);void 0!==i.position&&Mo(i.position,l)===Mo(n.dposition)||(i.position=n.dposition),o[a]=!0;var u=null;a in r&&r[a].type===s?u=r[a]:(u=new(so.getScale(s))({id:a,type:s,ctx:e.ctx,chart:e}),r[u.id]=u);u.init(i,t)})),A(o,(function(e,t){e||delete r[t]})),A(r,(function(t){Ar(e,t,t.options),jr(e,t)}))}},{key:"_updateMetasets",value:function(){var e=this,t=e._metasets,n=e.data.datasets.length,r=t.length;if(t.sort((function(e,t){return e.index-t.index})),r>n){for(var o=n;on.length&&delete e._stacks,t.forEach((function(t,r){0===n.filter((function(e){return e===t._dataset})).length&&e._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=this,r=[],o=n.data.datasets;for(n._removeUnreferencedMetasets(),e=0,t=o.length;e=0;--n)e._drawDataset(t[n]);e.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this,n=t.ctx,r=e._clip,o=!r.disabled,i=t.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==t.notifyPlugins("beforeDatasetDraw",a)&&(o&&ut(n,{left:!1===r.left?0:i.left-r.left,right:!1===r.right?t.width:i.right+r.right,top:!1===r.top?0:i.top-r.top,bottom:!1===r.bottom?t.height:i.bottom+r.bottom}),e.controller.draw(),o&&ct(n),a.cancelable=!1,t.notifyPlugins("afterDatasetDraw",a))}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var o=mr.modes[t];return"function"===typeof o?o(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter((function(e){return e&&e._dataset===t})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context={chart:this,type:"chart"})}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=this,o=n?"show":"hide",i=r.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,o);H(t)?(i.data[t].hidden=!n,r.update()):(r.setDatasetVisibility(e,n),a.update(i,{visible:n}),r.update((function(t){return t.datasetIndex===e?o:void 0})))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this,n=t._metasets&&t._metasets[e];n&&n.controller&&(n.controller._destroy(),delete t._metasets[e])}},{key:"destroy",value:function(){var e,t,n=this,r=n.canvas,o=n.ctx;for(n.stop(),Sn.remove(n),e=0,t=n.data.datasets.length;eo?(u=o/s,e.arc(i,a,s,n+u,r-u,!0)):e.arc(i,a,o,n+Q,r-Q),e.closePath(),e.clip()}function ko(e,t,n,r){var o=Ot(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),i=(n-t)/2,a=Math.min(i,r*t/2),l=function(e){var t=(n-Math.min(i,e))*r/2;return pe(e,0,Math.min(i,t))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:pe(o.innerStart,0,a),innerEnd:pe(o.innerEnd,0,a)}}function Fo(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Lo(e,t,n,r,o){var i=t.x,a=t.y,l=t.startAngle,s=t.pixelMargin,u=t.innerRadius,c=Math.max(t.outerRadius+r+n-s,0),d=u>0?u+r+n+s:0,p=0,f=o-l;if(r){var h=((u>0?u-r:0)+(c>0?c-r:0))/2;p=(f-(0!==h?f*h/(h+r):f))/2}var v=(f-Math.max(.001,f*c-n/U)/c)/2,g=l+v+p,m=o-v-p,y=ko(t,d,c,m-g),b=y.outerStart,O=y.outerEnd,w=y.innerStart,_=y.innerEnd,C=c-b,E=c-O,M=g+b/C,P=m-O/E,x=d+w,S=d+_,R=g+w/x,j=m-_/S;if(e.beginPath(),e.arc(i,a,c,M,P),O>0){var T=Fo(E,P,i,a);e.arc(T.x,T.y,O,P,m+Q)}var A=Fo(S,m,i,a);if(e.lineTo(A.x,A.y),_>0){var D=Fo(S,j,i,a);e.arc(D.x,D.y,_,m+Q,j+Math.PI)}if(e.arc(i,a,d,m-_/d,g+w/d,!0),w>0){var N=Fo(x,R,i,a);e.arc(N.x,N.y,w,R+Math.PI,g-Q)}var z=Fo(C,g,i,a);if(e.lineTo(z.x,z.y),b>0){var k=Fo(C,M,i,a);e.arc(k.x,k.y,b,g-Q,M)}e.closePath()}function Io(e,t,n,r,o){var i=t.options,a="inner"===i.borderAlign;i.borderWidth&&(a?(e.lineWidth=2*i.borderWidth,e.lineJoin="round"):(e.lineWidth=i.borderWidth,e.lineJoin="bevel"),t.fullCircles&&function(e,t,n){var r,o=t.x,i=t.y,a=t.startAngle,l=t.pixelMargin,s=t.fullCircles,u=Math.max(t.outerRadius-l,0),c=t.innerRadius+l;for(n&&zo(e,t,a+q),e.beginPath(),e.arc(o,i,c,a+q,a,!0),r=0;r=q||de(o,l,s))&&(i>=u+p&&i<=c+p)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),n=t.x,r=t.y,o=t.startAngle,i=t.endAngle,a=t.innerRadius,l=t.outerRadius,s=this.options,u=s.offset,c=(o+i)/2,d=(a+l+s.spacing+u)/2;return{x:n+Math.cos(c)*d,y:r+Math.sin(c)*d}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this,n=t.options,r=t.circumference,o=(n.offset||0)/2,i=(n.spacing||0)/2;if(t.pixelMargin="inner"===n.borderAlign?.33:0,t.fullCircles=r>q?Math.floor(r/q):0,!(0===r||t.innerRadius<0||t.outerRadius<0)){e.save();var a=0;if(o){a=o/2;var l=(t.startAngle+t.endAngle)/2;e.translate(Math.cos(l)*a,Math.sin(l)*a),t.circumference>=U&&(a=o)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;var s=function(e,t,n,r){var o=t.fullCircles,i=t.startAngle,a=t.circumference,l=t.endAngle;if(o){Lo(e,t,n,r,i+q);for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=R(n.borderCapStyle,t.borderCapStyle),e.setLineDash(R(n.borderDash,t.borderDash)),e.lineDashOffset=R(n.borderDashOffset,t.borderDashOffset),e.lineJoin=R(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=R(n.borderWidth,t.borderWidth),e.strokeStyle=R(n.borderColor,t.borderColor)}function Vo(e,t,n){e.lineTo(n.x,n.y)}function Ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,o=n.start,i=void 0===o?0:o,a=n.end,l=void 0===a?r-1:a,s=t.start,u=t.end,c=Math.max(i,s),d=Math.min(l,u),p=iu&&l>u;return{count:r,start:c,loop:t.loop,ilen:ds&&(s=E),b=(O*b+C)/++O):(_(),e.lineTo(C,E),a=M,O=0,l=s=E),u=E}_()}function qo(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?Uo:Wo}Go.id="arc",Go.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Go.defaultRoutes={backgroundColor:"backgroundColor"};var Ko="function"===typeof Path2D;function Yo(e,t,n,r){Ko&&1===t.segments.length?function(e,t,n,r){var o=t._path;o||(o=t._path=new Path2D,t.path(o,n,r)&&o.closePath()),Bo(e,t.options),e.stroke(o)}(e,t,n,r):function(e,t,n,r){var o,i=t.segments,a=t.options,l=qo(t),s=Object(v.a)(i);try{for(s.s();!(o=s.n()).done;){var u=o.value;Bo(e,a,u.style),e.beginPath(),l(e,t,u,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(c){s.e(c)}finally{s.f()}}(e,t,n,r)}var $o=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this)).animated=!0,r.options=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,e&&Object.assign(Object(l.a)(r),e),r}return Object(m.a)(n,[{key:"updateControlPoints",value:function(e,t){var n=this,r=n.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!n._pointsUpdated){var o=r.spanGaps?n._loop:n._fullLoop;Jt(n._points,r,e,o,t),n._pointsUpdated=!0}}},{key:"points",get:function(){return this._points},set:function(e){var t=this;t._points=e,delete t._segments,delete t._path,t._pointsUpdated=!1}},{key:"segments",get:function(){return this._segments||(this._segments=function(e,t){var n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];var i=!!e._loop,a=function(e,t,n,r){var o=0,i=t-1;if(n&&!r)for(;oo&&e[i%t].skip;)i--;return{start:o,end:i%=t}}(n,o,i,r),l=a.start,s=a.end;return Mn(e,!0===r?[{start:l,end:s,loop:i}]:function(e,t,n,r){var o,i=e.length,a=[],l=t,s=e[t];for(o=t+1;o<=n;++o){var u=e[o%i];u.skip||u.stop?s.skip||(r=!1,a.push({start:t%i,end:(o-1)%i,loop:r}),t=l=u.stop?o:null):(l=o,s.skip&&(t=o)),s=u}return null!==l&&a.push({start:t%i,end:l%i,loop:r}),a}(n,l,s=a.left&&t<=a.right)&&(i||n>=a.top&&n<=a.bottom)}function ni(e,t){e.rect(t.x,t.y,t.w,t.h)}function ri(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}Xo.id="point",Xo.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Xo.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var oi=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,e&&Object.assign(Object(l.a)(r),e),r}return Object(m.a)(n,[{key:"draw",value:function(e){var t,n=this.options,r=ei(this),o=r.inner,i=r.outer,a=(t=i.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?gt:ni,l=.33;e.save(),i.w===o.w&&i.h===o.h||(e.beginPath(),a(e,ri(i,l,o)),e.clip(),a(e,ri(o,-.33,i)),e.fillStyle=n.borderColor,e.fill("evenodd")),e.beginPath(),a(e,ri(o,l,i)),e.fillStyle=n.backgroundColor,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return ti(this,e,t,n)}},{key:"inXRange",value:function(e,t){return ti(this,e,null,t)}},{key:"inYRange",value:function(e,t){return ti(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,o=t.base,i=t.horizontal;return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}($r);oi.id="bar",oi.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},oi.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var ii=Object.freeze({__proto__:null,ArcElement:Go,LineElement:$o,PointElement:Xo,BarElement:oi});function ai(e){if(e._decimated){var t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function li(e){e.data.datasets.forEach((function(e){ai(e)}))}var si={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:function(e,t,n){if(n.enabled){var r=e.width;e.data.datasets.forEach((function(t,o){var i=t._data,l=t.indexAxis,s=e.getDatasetMeta(o),u=i||t.data;if("y"!==Mt([l,e.options.indexAxis])&&"line"===s.type){var c=e.scales[s.xAxisID];if(("linear"===c.type||"time"===c.type)&&!e.options.parsing){var d=function(e,t){var n=t.length,r=0,o=e.iScale,i=o.getUserBounds(),a=i.min,l=i.max,s=i.minDefined,u=i.maxDefined;return s&&(r=pe(xt(t,o.axis,a).lo,0,n-1)),{start:r,count:u?pe(xt(t,o.axis,l).hi+1,r,n)-r:n-r}}(s,u),p=d.start,f=d.count;if(f<=(n.threshold||4*r))ai(t);else{var h;switch(E(i)&&(t._data=u,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,o){var i=o.samples||r;if(i>=n)return e.slice(t,t+n);var a,l,s,u,c,d=[],p=(n-2)/(i-2),f=0,h=t+n-1,v=t;for(d[f++]=e[v],a=0;as&&(s=u,l=e[y],c=y);d[f++]=l,v=c}return d[f++]=e[h],d}(u,p,f,r,n);break;case"min-max":h=function(e,t,n,r){var o,i,l,s,u,c,d,p,f,h,v=0,g=0,m=[],y=t+n-1,b=e[t].x,O=e[y].x-b;for(o=t;oh&&(h=s,d=o),v=(g*v+i.x)/++g;else{var _=o-1;if(!E(c)&&!E(d)){var C=Math.min(c,d),M=Math.max(c,d);C!==p&&C!==_&&m.push(Object(a.a)(Object(a.a)({},e[C]),{},{x:v})),M!==p&&M!==_&&m.push(Object(a.a)(Object(a.a)({},e[M]),{},{x:v}))}o>0&&_!==p&&m.push(e[_]),m.push(i),u=w,g=0,f=h=s,c=d=p=o}}return m}(u,p,f,r);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=h}}}}))}else li(e)},destroy:function(e){li(e)}};function ui(e,t,n){var r=function(e){var t=e.options,n=t.fill,r=R(n&&n.target,n);return void 0===r&&(r=!!t.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(e);if(P(r))return!isNaN(r.value)&&r;var o=parseFloat(r);return x(o)&&Math.floor(o)===o?("-"!==r[0]&&"+"!==r[0]||(o=t+o),!(o===t||o<0||o>=n)&&o):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}var ci=function(){function e(t){Object(g.a)(this,e),this.x=t.x,this.y=t.y,this.radius=t.radius}return Object(m.a)(e,[{key:"pathSegment",value:function(e,t,n){var r=this.x,o=this.y,i=this.radius;return t=t||{start:0,end:q},e.arc(r,o,i,t.end,t.start,!0),!n.bounds}},{key:"interpolate",value:function(e){var t=this.x,n=this.y,r=this.radius,o=e.angle;return{x:t+Math.cos(o)*r,y:n+Math.sin(o)*r,angle:o}}}]),e}();function di(e){return(e.scale||{}).getPointPositionForValue?function(e){var t,n,r,o=e.scale,i=e.fill,a=o.options,l=o.getLabels().length,s=[],u=a.reverse?o.max:o.min,c=a.reverse?o.min:o.max;if(r="start"===i?u:"end"===i?c:P(i)?i.value:o.getBaseValue(),a.grid.circular)return n=o.getPointPositionForValue(0,u),new ci({x:n.x,y:n.y,radius:o.getDistanceFromCenterForValue(r)});for(t=0;te;t--){var r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function fi(e){var t=e.chart,n=e.scale,r=e.index,o=e.line,i=[],a=o.segments,l=o.points,s=function(e,t){for(var n=[],r=e.getSortedVisibleDatasetMetas(),o=0;o=d&&o<=p){l=o===d,s=o===p;break}}return{first:l,last:s,point:r}}function mi(e,t){var n=[],r=!1;return M(e)?(r=!0,n=e):n=function(e,t){var n=e||{},r=n.x,o=void 0===r?null:r,i=n.y,a=void 0===i?null:i,l=t.points,s=[];return t.segments.forEach((function(e){var t=e.start,n=e.end;n=pi(t,n,l);var r=l[t],i=l[n];null!==a?(s.push({x:r.x,y:a}),s.push({x:i.x,y:a})):null!==o&&(s.push({x:o,y:r.y}),s.push({x:o,y:i.y}))})),s}(e,t),n.length?new $o({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function yi(e,t,n){var r,o=e[t].fill,i=[t];if(!n)return o;for(;!1!==o&&-1===i.indexOf(o);){if(!x(o))return o;if(!(r=e[o]))return!1;if(r.visible)return o;i.push(o),o=r.fill}return!1}function bi(e,t,n){e.beginPath(),t.path(e),e.lineTo(t.last().x,n),e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Oi(e,t,n,r){if(!r){var o=t[e],i=n[e];return"angle"===e&&(o=ce(o),i=ce(i)),{property:e,start:o,end:i}}}function wi(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function _i(e,t,n){var r=t.chart.chartArea,o=r.top,i=r.bottom,a=n||{},l=a.property,s=a.start,u=a.end;"x"===l&&(e.beginPath(),e.rect(s,o,u-s,i-o),e.clip())}function Ci(e,t,n,r){var o=t.interpolate(n,r);o&&e.lineTo(o.x,o.y)}function Ei(e,t){var n,r=t.line,o=t.target,i=t.property,a=t.color,l=t.scale,s=function(e,t,n){var r,o=e.segments,i=e.points,a=t.points,l=[],s=Object(v.a)(o);try{for(s.s();!(r=s.n()).done;){var u=r.value,c=u.start,d=u.end;d=pi(c,d,i);var p=Oi(n,i[c],i[d],u.loop);if(t.segments){var f,g=En(t,p),m=Object(v.a)(g);try{for(m.s();!(f=m.n()).done;){var y,b=f.value,O=Oi(n,a[b.start],a[b.end],b.loop),w=Cn(u,i,O),_=Object(v.a)(w);try{for(_.s();!(y=_.n()).done;){var C=y.value;l.push({source:C,target:b,start:Object(h.a)({},n,wi(p,O,"start",Math.max)),end:Object(h.a)({},n,wi(p,O,"end",Math.min))})}}catch(E){_.e(E)}finally{_.f()}}}catch(E){m.e(E)}finally{m.f()}}else l.push({source:u,target:p,start:i[c],end:i[d]})}}catch(E){s.e(E)}finally{s.f()}return l}(r,o,i),u=Object(v.a)(s);try{for(u.s();!(n=u.n()).done;){var c=n.value,d=c.source,p=c.target,f=c.start,g=c.end,m=d.style,y=(m=void 0===m?{}:m).backgroundColor,b=void 0===y?a:y,O=!0!==o;e.save(),e.fillStyle=b,_i(e,l,O&&Oi(i,f,g)),e.beginPath();var w=!!r.pathSegment(e,d),_=void 0;if(O){w?e.closePath():Ci(e,o,g,i);var C=!!o.pathSegment(e,p,{move:w,reverse:!0});(_=w&&C)||Ci(e,o,f,i)}e.closePath(),e.fill(_?"evenodd":"nonzero"),e.restore()}}catch(E){u.e(E)}finally{u.f()}}function Mi(e,t,n){var r=function(e){var t=e.chart,n=e.fill,r=e.line;if(x(n))return function(e,t){var n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return fi(e);if("shape"===n)return!0;var o=di(e);return o instanceof ci?o:mi(o,r)}(t),o=t.line,i=t.scale,a=t.axis,l=o.options,s=l.fill,u=l.backgroundColor,c=s||{},d=c.above,p=void 0===d?u:d,f=c.below,h=void 0===f?u:f;r&&o.points.length&&(ut(e,n),function(e,t){var n=t.line,r=t.target,o=t.above,i=t.below,a=t.area,l=t.scale,s=n._loop?"angle":t.axis;e.save(),"x"===s&&i!==o&&(bi(e,r,a.top),Ei(e,{line:n,target:r,color:o,scale:l,property:s}),e.restore(),e.save(),bi(e,r,a.bottom)),Ei(e,{line:n,target:r,color:i,scale:l,property:s}),e.restore()}(e,{line:o,target:r,above:p,below:h,area:n,scale:i,axis:a}),ct(e))}var Pi={id:"filler",afterDatasetsUpdate:function(e,t,n){var r,o,i,a,l=(e.data.datasets||[]).length,s=[];for(o=0;o=0;--a){var l=o[a].$filler;l&&(l.line.updateControlPoints(i,l.axis),r&&Mi(e.ctx,l,i))}},beforeDatasetsDraw:function(e,t,n){if("beforeDatasetsDraw"===n.drawTime)for(var r=e.getSortedVisibleDatasetMetas(),o=r.length-1;o>=0;--o){var i=r[o].$filler;i&&Mi(e.ctx,i,e.chartArea)}},beforeDatasetDraw:function(e,t,n){var r=t.meta.$filler;r&&!1!==r.fill&&"beforeDatasetDraw"===n.drawTime&&Mi(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},xi=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,o=e.boxWidth,i=void 0===o?t:o;return e.usePointStyle&&(r=Math.min(r,t),i=Math.min(i,t)),{boxWidth:i,boxHeight:r,itemHeight:Math.max(t,r)}},Si=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Object(m.a)(n,[{key:"update",value:function(e,t,n){var r=this;r.maxWidth=e,r.maxHeight=t,r._margins=n,r.setDimensions(),r.buildLabels(),r.fit()}},{key:"setDimensions",value:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=e._margins.left,e.right=e.width):(e.height=e.maxHeight,e.top=e._margins.top,e.bottom=e.height)}},{key:"buildLabels",value:function(){var e=this,t=e.options.labels||{},n=T(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n}},{key:"fit",value:function(){var e=this,t=e.options,n=e.ctx;if(t.display){var r,o,i=t.labels,a=Et(i.font),l=a.size,s=e._computeTitleHeight(),u=xi(i,l),c=u.boxWidth,d=u.itemHeight;n.font=a.string,e.isHorizontal()?(r=e.maxWidth,o=e._fitRows(s,l,c,d)+10):(o=e.maxHeight,r=e._fitCols(s,l,c,d)+10),e.width=Math.min(r,t.maxWidth||e.maxWidth),e.height=Math.min(o,t.maxHeight||e.maxHeight)}else e.width=e.height=0}},{key:"_fitRows",value:function(e,t,n,r){var o=this,i=o.ctx,a=o.maxWidth,l=o.options.labels.padding,s=o.legendHitBoxes=[],u=o.lineWidths=[0],c=r+l,d=e;i.textAlign="left",i.textBaseline="middle";var p=-1,f=-c;return o.legendItems.forEach((function(e,o){var h=n+t/2+i.measureText(e.text).width;(0===o||u[u.length-1]+h+2*l>a)&&(d+=c,u[u.length-(o>0?0:1)]=0,f+=c,p++),s[o]={left:0,top:f,row:p,width:h,height:r},u[u.length-1]+=h+l})),d}},{key:"_fitCols",value:function(e,t,n,r){var o=this,i=o.ctx,a=o.maxHeight,l=o.options.labels.padding,s=o.legendHitBoxes=[],u=o.columnSizes=[],c=a-e,d=l,p=0,f=0,h=0,v=0;return o.legendItems.forEach((function(e,o){var a=n+t/2+i.measureText(e.text).width;o>0&&f+r+2*l>c&&(d+=p+l,u.push({width:p,height:f}),h+=p+l,v++,p=f=0),s[o]={left:h,top:f,col:v,width:a,height:r},p=Math.max(p,a),f+=r+l})),d+=p,u.push({width:p,height:f}),d}},{key:"adjustHitBoxes",value:function(){var e=this;if(e.options.display){var t=e._computeTitleHeight(),n=e.legendHitBoxes,r=e.options,o=r.align,i=r.labels.padding,a=yn(r.rtl,e.left,e.width);if(this.isHorizontal()){var l,s=0,u=w(o,e.left+i,e.right-e.lineWidths[s]),c=Object(v.a)(n);try{for(c.s();!(l=c.n()).done;){var d=l.value;s!==d.row&&(s=d.row,u=w(o,e.left+i,e.right-e.lineWidths[s])),d.top+=e.top+t+i,d.left=a.leftForLtr(a.x(u),d.width),u+=d.width+i}}catch(y){c.e(y)}finally{c.f()}}else{var p,f=0,h=w(o,e.top+t+i,e.bottom-e.columnSizes[f].height),g=Object(v.a)(n);try{for(g.s();!(p=g.n()).done;){var m=p.value;m.col!==f&&(f=m.col,h=w(o,e.top+t+i,e.bottom-e.columnSizes[f].height)),m.top=h,m.left+=e.left+i,m.left=a.leftForLtr(a.x(m.left),m.width),h+=m.height+i}}catch(y){g.e(y)}finally{g.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){var e=this;if(e.options.display){var t=e.ctx;ut(t,e),e._draw(),ct(t)}}},{key:"_draw",value:function(){var e,t=this,n=t.options,r=t.columnSizes,o=t.lineWidths,i=t.ctx,a=n.align,l=n.labels,s=nt.color,u=yn(n.rtl,t.left,t.width),c=Et(l.font),d=l.color,p=l.padding,f=c.size,h=f/2;t.drawTitle(),i.textAlign=u.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;var v=xi(l,f),g=v.boxWidth,m=v.boxHeight,y=v.itemHeight,b=t.isHorizontal(),O=this._computeTitleHeight();e=b?{x:w(a,t.left+p,t.right-o[0]),y:t.top+p+O,line:0}:{x:t.left+p,y:w(a,t.top+O+p,t.bottom-r[0].height),line:0},bn(t.ctx,n.textDirection);var _=y+p;t.legendItems.forEach((function(v,C){i.strokeStyle=v.fontColor||d,i.fillStyle=v.fontColor||d;var E=i.measureText(v.text).width,M=u.textAlign(v.textAlign||(v.textAlign=l.textAlign)),P=g+h+E,x=e.x,S=e.y;u.setWidth(t.width),b?C>0&&x+P+p>t.right&&(S=e.y+=_,e.line++,x=e.x=w(a,t.left+p,t.right-o[e.line])):C>0&&S+_>t.bottom&&(x=e.x=x+r[e.line].width+p,e.line++,S=e.y=w(a,t.top+O+p,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(g)||g<=0||isNaN(m)||m<0)){i.save();var r=R(n.lineWidth,1);if(i.fillStyle=R(n.fillStyle,s),i.lineCap=R(n.lineCap,"butt"),i.lineDashOffset=R(n.lineDashOffset,0),i.lineJoin=R(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=R(n.strokeStyle,s),i.setLineDash(R(n.lineDash,[])),l.usePointStyle){var o={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},a=u.xPlus(e,g/2);lt(i,o,a,t+h)}else{var c=t+Math.max((f-m)/2,0),d=u.leftForLtr(e,g),p=_t(n.borderRadius);i.beginPath(),Object.values(p).some((function(e){return 0!==e}))?gt(i,{x:d,y:c,w:g,h:m,radius:p}):i.rect(d,c,g,m),i.fill(),0!==r&&i.stroke()}i.restore()}}(u.x(x),S,v),x=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(M,x+g+h,b?x+P:t.right,n.rtl),function(e,t,n){ft(i,n.text,e,t+y/2,c,{strikethrough:n.hidden,textAlign:u.textAlign(n.textAlign)})}(u.x(x),S,v),b?e.x+=P+p:e.y+=_})),On(t.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this,t=e.options,n=t.title,r=Et(n.font),o=Ct(n.padding);if(n.display){var a,l=yn(t.rtl,e.left,e.width),s=e.ctx,u=n.position,c=r.size/2,d=o.top+c,p=e.left,f=e.width;if(this.isHorizontal())f=Math.max.apply(Math,Object(i.a)(e.lineWidths)),a=e.top+d,p=w(t.align,p,e.right-f);else{var h=e.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);a=d+w(t.align,e.top,e.bottom-h-t.labels.padding-e._computeTitleHeight())}var v=w(u,p,p+f);s.textAlign=l.textAlign(O(u)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,ft(s,n.text,v,a,r)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=Et(e.font),n=Ct(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,o,i=this;if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)for(o=i.legendHitBoxes,n=0;n=(r=o[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return i.legendItems[n];return null}},{key:"handleEvent",value:function(e){var t=this,n=t.options;if(function(e,t){if("mousemove"===e&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,n)){var r,o,i=t._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){var a=t._hoveredItem,l=(o=i,null!==(r=a)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);a&&!l&&T(n.onLeave,[e,a,t],t),t._hoveredItem=i,i&&!l&&T(n.onHover,[e,i,t],t)}else i&&T(n.onClick,[e,i,t],t)}}}]),n}($r);var Ri={id:"legend",_element:Si,start:function(e,t,n){var r=e.legend=new Si({ctx:e.ctx,options:n,chart:e});Ar(e,r,n),jr(e,r)},stop:function(e){Tr(e,e.legend),delete e.legend},beforeUpdate:function(e,t,n){var r=e.legend;Ar(e,r,n),r.options=n},afterUpdate:function(e){var t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent:function(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(e,t,n){var r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:function(e){return e.chart.options.color},boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.legend.options.labels,r=n.usePointStyle,o=n.pointStyle,i=n.textAlign,a=n.color;return e._getSortedDatasetMetas().map((function(e){var n=e.controller.getStyle(r?0:void 0),l=Ct(n.borderWidth);return{text:t[e.index].label,fillStyle:n.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:n.borderColor,pointStyle:o||n.pointStyle,rotation:n.rotation,textAlign:i||n.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:function(e){return e.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(e){return!e.startsWith("on")},labels:{_scriptable:function(e){return!["generateLabels","filter","sort"].includes(e)}}}},ji=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this)).chart=e.chart,r.options=e.options,r.ctx=e.ctx,r._padding=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Object(m.a)(n,[{key:"update",value:function(e,t){var n=this,r=n.options;if(n.left=0,n.top=0,r.display){n.width=n.right=e,n.height=n.bottom=t;var o=M(r.text)?r.text.length:1;n._padding=Ct(r.padding);var i=o*Et(r.font).lineHeight+n._padding.height;n.isHorizontal()?n.height=i:n.width=i}else n.width=n.height=n.right=n.bottom=0}},{key:"isHorizontal",value:function(){var e=this.options.position;return"top"===e||"bottom"===e}},{key:"_drawArgs",value:function(e){var t,n,r,o=this.top,i=this.left,a=this.bottom,l=this.right,s=this.options,u=s.align,c=0;return this.isHorizontal()?(n=w(u,i,l),r=o+e,t=l-i):("left"===s.position?(n=i+e,r=w(u,a,o),c=-.5*U):(n=l-e,r=w(u,o,a),c=.5*U),t=a-o),{titleX:n,titleY:r,maxWidth:t,rotation:c}}},{key:"draw",value:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r=Et(n.font),o=r.lineHeight/2+e._padding.top,i=e._drawArgs(o),a=i.titleX,l=i.titleY,s=i.maxWidth,u=i.rotation;ft(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:u,textAlign:O(n.align),textBaseline:"middle",translation:[a,l]})}}}]),n}($r);var Ti={id:"title",_element:ji,start:function(e,t,n){!function(e,t){var n=new ji({ctx:e.ctx,options:t,chart:e});Ar(e,n,t),jr(e,n),e.titleBlock=n}(e,n)},stop:function(e){var t=e.titleBlock;Tr(e,t),delete e.titleBlock},beforeUpdate:function(e,t,n){var r=e.titleBlock;Ar(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Ai=new WeakMap,Di={id:"subtitle",start:function(e,t,n){var r=new ji({ctx:e.ctx,options:n,chart:e});Ar(e,r,n),jr(e,r),Ai.set(e,r)},stop:function(e){Tr(e,Ai.get(e)),Ai.delete(e)},beforeUpdate:function(e,t,n){var r=Ai.get(e);Ar(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Ni={average:function(e){if(!e.length)return!1;var t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split("\n"):e}function Fi(e,t){var n=t.element,r=t.datasetIndex,o=t.index,i=e.getDatasetMeta(r).controller,a=i.getLabelAndValue(o),l=a.label,s=a.value;return{chart:e,label:l,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function Li(e,t){var n=e._chart.ctx,r=e.body,o=e.footer,i=e.title,a=t.boxWidth,l=t.boxHeight,s=Et(t.bodyFont),u=Et(t.titleFont),c=Et(t.footerFont),d=i.length,p=o.length,f=r.length,h=Ct(t.padding),v=h.height,g=0,m=r.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);(m+=e.beforeBody.length+e.afterBody.length,d&&(v+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),m)&&(v+=f*(t.displayColors?Math.max(l,s.lineHeight):s.lineHeight)+(m-f)*s.lineHeight+(m-1)*t.bodySpacing);p&&(v+=t.footerMarginTop+p*c.lineHeight+(p-1)*t.footerSpacing);var y=0,b=function(e){g=Math.max(g,n.measureText(e).width+y)};return n.save(),n.font=u.string,A(e.title,b),n.font=s.string,A(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?a+2:0,A(r,(function(e){A(e.before,b),A(e.lines,b),A(e.after,b)})),y=0,n.font=c.string,A(e.footer,b),n.restore(),{width:g+=h.width,height:v}}function Ii(e,t,n,r){var o=n.x,i=n.width,a=e.width,l=e.chartArea,s=l.left,u=l.right,c="center";return"center"===r?c=o<=(s+u)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),function(e,t,n,r){var o=r.x,i=r.width,a=n.caretSize+n.caretPadding;return"left"===e&&o+i+a>t.width||"right"===e&&o-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function Gi(e,t,n){var r=t.yAlign||function(e,t){var n=t.y,r=t.height;return ne.height-r/2?"bottom":"center"}(e,n);return{xAlign:t.xAlign||Ii(e,t,n,r),yAlign:r}}function Bi(e,t,n,r){var o=e.caretSize,i=e.caretPadding,a=e.cornerRadius,l=n.xAlign,s=n.yAlign,u=o+i,c=a+i,d=function(e,t){var n=e.x,r=e.width;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,l),p=function(e,t,n){var r=e.y,o=e.height;return"top"===t?r+=n:r-="bottom"===t?o+n:o/2,r}(t,s,u);return"center"===s?"left"===l?d+=u:"right"===l&&(d-=u):"left"===l?d-=c:"right"===l&&(d+=c),{x:pe(d,0,r.width-t.width),y:pe(p,0,r.height-t.height)}}function Vi(e,t,n){var r=Ct(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function Hi(e){return zi([],ki(e))}function Wi(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var Ui=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this)).opacity=0,r._active=[],r._chart=e._chart,r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.options=e.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return Object(m.a)(n,[{key:"initialize",value:function(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var e=this,t=e._cachedAnimations;if(t)return t;var n=e._chart,r=e.options.setContext(e.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new Dn(e._chart,o);return o._cacheable&&(e._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){var e,t,n,r=this;return r.$context||(r.$context=(e=r._chart.getContext(),t=r,n=r._tooltipItems,Object.assign(Object.create(e),{tooltip:t,tooltipItems:n,type:"tooltip"})))}},{key:"getTitle",value:function(e,t){var n=this,r=t.callbacks,o=r.beforeTitle.apply(n,[e]),i=r.title.apply(n,[e]),a=r.afterTitle.apply(n,[e]),l=[];return l=zi(l,ki(o)),l=zi(l,ki(i)),l=zi(l,ki(a))}},{key:"getBeforeBody",value:function(e,t){return Hi(t.callbacks.beforeBody.apply(this,[e]))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,o=[];return A(e,(function(e){var t={before:[],lines:[],after:[]},i=Wi(r,e);zi(t.before,ki(i.beforeLabel.call(n,e))),zi(t.lines,i.label.call(n,e)),zi(t.after,ki(i.afterLabel.call(n,e))),o.push(t)})),o}},{key:"getAfterBody",value:function(e,t){return Hi(t.callbacks.afterBody.apply(this,[e]))}},{key:"getFooter",value:function(e,t){var n=this,r=t.callbacks,o=r.beforeFooter.apply(n,[e]),i=r.footer.apply(n,[e]),a=r.afterFooter.apply(n,[e]),l=[];return l=zi(l,ki(o)),l=zi(l,ki(i)),l=zi(l,ki(a))}},{key:"_createItems",value:function(e){var t,n,r=this,o=r._active,i=r._chart.data,a=[],l=[],s=[],u=[];for(t=0,n=o.length;t0&&t.stroke()}},{key:"_updateAnimationTarget",value:function(e){var t=this,n=t._chart,r=t.$animations,o=r&&r.x,i=r&&r.y;if(o||i){var a=Ni[e.position].call(t,t._active,t._eventPosition);if(!a)return;var l=t._size=Li(t,e),s=Object.assign({},a,t._size),u=Gi(n,e,s),c=Bi(e,s,u,n);o._to===c.x&&i._to===c.y||(t.xAlign=u.xAlign,t.yAlign=u.yAlign,t.width=l.width,t.height=l.height,t.caretX=a.x,t.caretY=a.y,t._resolveAnimations().update(t,c))}}},{key:"draw",value:function(e){var t=this,n=t.options.setContext(t.getContext()),r=t.opacity;if(r){t._updateAnimationTarget(n);var o={width:t.width,height:t.height},i={x:t.x,y:t.y};r=Math.abs(r)<.001?0:r;var a=Ct(n.padding),l=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;n.enabled&&l&&(e.save(),e.globalAlpha=r,t.drawBackground(i,e,o,n),bn(e,n.textDirection),i.y+=a.top,t.drawTitle(i,e,n),t.drawBody(i,e,n),t.drawFooter(i,e,n),On(e,n.textDirection),e.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e,t){var n=this,r=n._active,o=e.map((function(e){var t=e.datasetIndex,r=e.index,o=n._chart.getDatasetMeta(t);if(!o)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:o.data[r],index:r}})),i=!D(r,o),a=n._positionChanged(o,t);(i||a)&&(n._active=o,n._eventPosition=t,n.update(!0))}},{key:"handleEvent",value:function(e,t){var n,r=this,o=r.options,i=r._active||[],a=[];"mouseout"!==e.type&&(a=r._chart.getElementsAtEventForMode(e,o.mode,o,t),o.reverse&&a.reverse());var l=r._positionChanged(a,e);return(n=t||!D(a,i)||l)&&(r._active=a,(o.enabled||o.external)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0,t))),n}},{key:"_positionChanged",value:function(e,t){var n=this.caretX,r=this.caretY,o=this.options,i=Ni[o.position].call(this,e,t);return!1!==i&&(n!==i.x||r!==i.y)}}]),n}($r);Ui.positioners=Ni;var qi={id:"tooltip",_element:Ui,positioners:Ni,afterInit:function(e,t,n){n&&(e.tooltip=new Ui({_chart:e,options:n}))},beforeUpdate:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw:function(e){var t=e.tooltip,n={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",n)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent:function(e,t){if(e.tooltip){var n=t.replay;e.tooltip.handleEvent(t.event,n)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:function(e,t){return t.bodyFont.size},boxWidth:function(e,t){return t.bodyFont.size},multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:_,title:function(e){if(e.length>0){var t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex=0&&et.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getValueForPixel",value:function(e){var t=this;return Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(ao);function Qi(e,t){var n,r,o,i,a=[],l=e.bounds,s=e.step,u=e.min,c=e.max,d=e.precision,p=e.count,f=e.maxTicks,h=e.maxDigits,v=e.includeBounds,g=s||1,m=f-1,y=t.min,b=t.max,O=!E(u),w=!E(c),_=!E(p),C=(b-y)/(h+1),M=te((b-y)/m/g)*g;if(M<1e-14&&!O&&!w)return[{value:y},{value:b}];(i=Math.ceil(b/M)-Math.floor(y/M))>m&&(M=te(i*M/m/g)*g),E(d)||(n=Math.pow(10,d),M=Math.ceil(M*n)/n),"ticks"===l?(r=Math.floor(y/M)*M,o=Math.ceil(b/M)*M):(r=y,o=b),O&&w&&s&&function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e}((c-u)/s,M/1e3)?(M=(c-u)/(i=Math.round(Math.min((c-u)/M,f))),r=u,o=c):_?M=((o=w?c:o)-(r=O?u:r))/(i=p-1):i=re(i=(o-r)/M,Math.round(i),M/1e3)?Math.round(i):Math.ceil(i);var P=Math.max(le(M),le(r));n=Math.pow(10,E(d)?P:d),r=Math.round(r*n)/n,o=Math.round(o*n)/n;var x=0;for(O&&(v&&r!==u?(a.push({value:u}),r0&&c>0&&l(0)}if(i===a){var d=1;(a>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(d=Math.abs(.05*a)),s(a+d),t||l(i-d)}e.min=i,e.max=a}},{key:"getTickLimit",value:function(){var e,t=this,n=t.options.ticks,r=n.maxTicksLimit,o=n.stepSize;return o?e=Math.ceil(t.max/o)-Math.floor(t.min/o)+1:(e=t.computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=t.ticks,r=e.getTickLimit(),o=Qi({maxTicks:r=Math.max(2,r),bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:e._maxDigits(),horizontal:e.isHorizontal(),minRotation:n.minRotation||0,includeBounds:!1!==n.includeBounds},e._range||e);return"ticks"===t.bounds&&oe(o,e,"value"),t.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),o}},{key:"configure",value:function(){var e=this,t=e.ticks,r=e.min,o=e.max;if(u(Object(s.a)(n.prototype),"configure",this).call(this),e.options.offset&&t.length){var i=(o-r)/Math.max(t.length-1,1)/2;r-=i,o+=i}e._startValue=r,e._endValue=o,e._valueRange=o-r}},{key:"getLabelForValue",value:function(e){return mn(e,this.chart.options.locale)}}]),n}(ao),Ji=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(){return Object(g.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"determineDataLimits",value:function(){var e=this,t=e.getMinMax(!0),n=t.min,r=t.max;e.min=x(n)?n:0,e.max=x(r)?r:1,e.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this,t=e.isHorizontal(),n=t?e.width:e.height,r=ie(e.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=e._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}},{key:"getPixelForValue",value:function(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}]),n}(Zi);function ea(e){return 1===e/Math.pow(10,Math.floor(J(e)))}Ji.id="linear",Ji.defaults={ticks:{callback:Xr.formatters.numeric}};var ta=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return Object(m.a)(n,[{key:"parse",value:function(e,t){var n=Zi.prototype.parse.apply(this,[e,t]);if(0!==n)return x(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var e=this,t=e.getMinMax(!0),n=t.min,r=t.max;e.min=x(n)?Math.max(0,n):null,e.max=x(r)?Math.max(0,r):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var e=this,t=e.getUserBounds(),n=t.minDefined,r=t.maxDefined,o=e.min,i=e.max,a=function(e){return o=n?o:e},l=function(e){return i=r?i:e},s=function(e,t){return Math.pow(10,Math.floor(J(e))+t)};o===i&&(o<=0?(a(1),l(10)):(a(s(o,-1)),l(s(i,1)))),o<=0&&a(s(i,-1)),i<=0&&l(s(o,1)),e._zero&&e.min!==e._suggestedMin&&o===s(e.min,0)&&a(s(o,-1)),e.min=o,e.max=i}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=function(e,t){var n=Math.floor(J(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),o=[],i=S(e.min,Math.pow(10,Math.floor(J(t.min)))),a=Math.floor(J(i)),l=Math.floor(i/Math.pow(10,a)),s=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:i,major:ea(i)}),10===++l&&(l=1,s=++a>=0?1:s),i=Math.round(l*Math.pow(10,a)*s)/s}while(ao?{start:t-n,end:t}:{start:t,end:t+n}}function oa(e){for(var t,n,r,o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},i={},a=[],l=[],s=e.getLabels().length,u=0;uo.r&&(o.r=g.end,i.r=h),m.starto.b&&(o.b=m.end,i.b=h)}e._setReductions(e.drawingArea,o,i),e._pointLabelItems=function(e,t,n){for(var r=[],o=e.getLabels().length,i=e.options,a=na(i),l=e.getDistanceFromCenterForValue(i.ticks.reverse?e.min:e.max),s=0;s270||n<90)&&(e-=t),e}function sa(e,t,n,r){var o=e.ctx;if(n)o.arc(e.xCenter,e.yCenter,t,0,q);else{var i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(var a=1;a=0&&e=0;o--){var i=r.setContext(e.getPointLabelContext(o)),a=Et(i.font),l=e._pointLabelItems[o],s=l.x,u=l.y,c=l.textAlign,d=l.left,p=l.top,f=l.right,h=l.bottom,v=i.backdropColor;if(!E(v)){var g=Ct(i.backdropPadding);n.fillStyle=v,n.fillRect(d-g.left,p-g.top,f-d+g.width,h-p+g.height)}ft(n,e._pointLabels[o],s,u+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}(r,s),l.display&&r.ticks.forEach((function(e,n){if(0!==n){t=r.getDistanceFromCenterForValue(e.value);var o=l.setContext(r.getContext(n-1));!function(e,t,n,r){var o=e.ctx,i=t.circular,a=t.color,l=t.lineWidth;!i&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(t.borderDash),o.lineDashOffset=t.borderDashOffset,o.beginPath(),sa(e,n,i,r),o.closePath(),o.stroke(),o.restore())}(r,o,t,s)}})),a.display){for(o.save(),e=r.getLabels().length-1;e>=0;e--){var u=a.setContext(r.getPointLabelContext(e)),c=u.color,d=u.lineWidth;d&&c&&(o.lineWidth=d,o.strokeStyle=c,o.setLineDash(u.borderDash),o.lineDashOffset=u.borderDashOffset,t=r.getDistanceFromCenterForValue(i.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),o.beginPath(),o.moveTo(r.xCenter,r.yCenter),o.lineTo(n.x,n.y),o.stroke())}o.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var e=this,t=e.ctx,n=e.options,r=n.ticks;if(r.display){var o,i,a=e.getIndexAngle(0);t.save(),t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",e.ticks.forEach((function(a,l){if(0!==l||n.reverse){var s=r.setContext(e.getContext(l)),u=Et(s.font);if(o=e.getDistanceFromCenterForValue(e.ticks[l].value),s.showLabelBackdrop){t.font=u.string,i=t.measureText(a.label).width,t.fillStyle=s.backdropColor;var c=Ct(s.backdropPadding);t.fillRect(-i/2-c.left,-o-u.size/2-c.top,i+c.width,u.size+c.height)}ft(t,a.label,0,-o,u,{color:s.color})}})),t.restore()}}},{key:"drawTitle",value:function(){}}]),n}(Zi);ca.id="radialLinear",ca.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Xr.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5}},ca.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},ca.descriptors={angleLines:{_fallback:"grid"}};var da={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},pa=Object.keys(da);function fa(e,t){return e-t}function ha(e,t){if(E(t))return null;var n=e._adapter,r=e._parseOpts,o=r.parser,i=r.round,a=r.isoWeekday,l=t;return"function"===typeof o&&(l=o(l)),x(l)||(l="string"===typeof o?n.parse(l,o):n.parse(l)),null===l?null:(i&&(l="week"!==i||!ne(a)&&!0!==a?n.startOf(l,i):n.startOf(l,"isoWeek",a)),+l)}function va(e,t,n,r){for(var o=pa.length,i=pa.indexOf(e);i=t?n[o]:n[i]]=!0}}else e[t]=!0}function ma(e,t,n){var r,o,i=[],a={},l=t.length;for(r=0;r=0&&(t[i].major=!0);return t}(e,i,a,n):i}var ya=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this,e))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return Object(m.a)(n,[{key:"init",value:function(e,t){var r=e.time||(e.time={}),o=this._adapter=new cr._date(e.adapters.date);L(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},u(Object(s.a)(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:ha(this,e)}},{key:"beforeLayout",value:function(){u(Object(s.a)(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this,t=e.options,n=e._adapter,r=t.time.unit||"day",o=e.getUserBounds(),i=o.min,a=o.max,l=o.minDefined,s=o.maxDefined;function u(e){l||isNaN(e.min)||(i=Math.min(i,e.min)),s||isNaN(e.max)||(a=Math.max(a,e.max))}l&&s||(u(e._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||u(e.getMinMax(!1))),i=x(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=x(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,e.min=Math.min(i,a-1),e.max=Math.max(i+1,a)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=t.time,r=t.ticks,o="labels"===r.source?e.getLabelTimestamps():e._generate();"ticks"===t.bounds&&o.length&&(e.min=e._userMin||o[0],e.max=e._userMax||o[o.length-1]);var i=e.min,a=function(e,t,n){for(var r=0,o=e.length;rr&&e[o-1]>n;)o--;return r>0||o=pa.indexOf(n);i--){var a=pa[i];if(da[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return pa[n?pa.indexOf(n):0]}(e,a.length,n.minUnit,e.min,e.max)),e._majorUnit=r.major.enabled&&"year"!==e._unit?function(e){for(var t=pa.indexOf(e)+1,n=pa.length;t1e5*u)throw new Error(o+" and "+i+" are too far apart with stepSize of "+u+" "+s);var h="data"===a.ticks.source&&n.getDataTimestamps();for(e=f,t=0;e0?l:1}},{key:"getDataTimestamps",value:function(){var e,t,n=this,r=n._cache.data||[];if(r.length)return r;var o=n.getMatchingVisibleMetas();if(n._normalized&&o.length)return n._cache.data=o[0].controller.getAllParsedValues(n);for(e=0,t=o.length;e=e[l].pos&&t<=e[s].pos){var u=xt(e,"pos",t);l=u.lo,s=u.hi}var c=e[l];r=c.pos,i=c.time;var d=e[s];o=d.pos,a=d.time}else{if(t>=e[l].time&&t<=e[s].time){var p=xt(e,"time",t);l=p.lo,s=p.hi}var f=e[l];r=f.time,i=f.pos;var h=e[s];o=h.time,a=h.pos}var v=o-r;return v?i+(a-i)*(t-r)/v:i}ya.id="time",ya.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var Oa=function(e){Object(c.a)(n,e);var t=Object(d.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this,e))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return Object(m.a)(n,[{key:"initOffsets",value:function(){var e=this,t=e._getTimestampsForTable(),r=e._table=e.buildLookupTable(t);e._minPos=ba(r,e.min),e._tableRange=ba(r,e.max)-e._minPos,u(Object(s.a)(n.prototype),"initOffsets",this).call(this,t)}},{key:"buildLookupTable",value:function(e){var t,n,r,o,i,a=this.min,l=this.max,s=[],u=[];for(t=0,n=e.length;t=a&&o<=l&&s.push(o);if(s.length<2)return[{time:a,pos:0},{time:l,pos:1}];for(t=0,n=s.length;t=0||(o[n]=e[n]);return o}var Ta=Object(r.forwardRef)((function(e,t){var n=e.id,i=e.className,a=e.height,l=void 0===a?150:a,s=e.width,u=void 0===s?300:s,c=e.redraw,d=void 0!==c&&c,p=e.type,f=e.data,h=e.options,v=void 0===h?{}:h,g=e.plugins,m=void 0===g?[]:g,y=e.getDatasetAtEvent,b=e.getElementAtEvent,O=e.getElementsAtEvent,w=e.fallbackContent,_=ja(e,["id","className","height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent"]),C=Object(r.useRef)(null),E=Object(r.useMemo)((function(){return"function"===typeof f?C.current?f(C.current):{}:Ea()({},f)}),[f,C.current]),M=Object(r.useState)(),P=M[0],x=M[1];Object(r.useImperativeHandle)(t,(function(){return P}),[P]);var S=function(){C.current&&x(new _a(C.current,{type:p,data:E,options:v,plugins:m}))},R=function(){P&&P.destroy()};return Object(r.useEffect)((function(){return S(),function(){return R()}}),[]),Object(r.useEffect)((function(){d?(R(),setTimeout((function(){S()}),0)):function(){if(P){if(v&&(P.options=Ra({},v)),!P.config.data)return P.config.data=E,void P.update();var e=E.datasets,t=void 0===e?[]:e,n=ja(E,["datasets"]),r=P.config.data.datasets,o=void 0===r?[]:r;Pa()(P.config.data,n),P.config.data.datasets=t.map((function(e){var t=Sa()(o,(function(t){return t.label===e.label&&t.type===e.type}));return t&&e.data?(t.data?t.data.length=e.data.length:t.data=[],Pa()(t.data,e.data),Pa()(t,Ra({},e,{data:t.data})),t):Ra({},e)})),P.update()}}()}),[e,E]),o.a.createElement("canvas",Object.assign({},_,{height:l,width:u,ref:C,id:n,className:i,onClick:function(e){P&&(y&&y(P.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1),e),b&&b(P.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),e),O&&O(P.getElementsAtEventForMode(e,"index",{intersect:!0},!1),e))},"data-testid":"canvas",role:"img"}),w)})),Aa=Object(r.forwardRef)((function(e,t){return o.a.createElement(Ta,Object.assign({},e,{type:"line",ref:t,options:e.options||{}}))})),Da=Object(r.forwardRef)((function(e,t){return o.a.createElement(Ta,Object.assign({},e,{type:"bar",ref:t,options:e.options||{}}))})),Na=(Object(r.forwardRef)((function(e,t){return o.a.createElement(Ta,Object.assign({},e,{type:"radar",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return o.a.createElement(Ta,Object.assign({},e,{type:"doughnut",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return o.a.createElement(Ta,Object.assign({},e,{type:"polarArea",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return o.a.createElement(Ta,Object.assign({},e,{type:"bubble",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return o.a.createElement(Ta,Object.assign({},e,{type:"pie",ref:t,options:e.options||{}}))})));Object(r.forwardRef)((function(e,t){return o.a.createElement(Ta,Object.assign({},e,{type:"scatter",ref:t,options:e.options||{}}))}))},function(e,t,n){"use strict";var r=n(79),o=n(193),i=n(64);var a=function(e,t,n){for(var a=-1,l=t.length,s={};++a-1?l[s?t[u]:u]:void 0}}(n(141).a);t.a=a},function(e,t,n){"use strict";var r=n(187),o=n(55),i=n(43);var a=function(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n},l=n(18);t.a=function(e,t,n){var s=Object(l.a)(e)?r.a:a,u=arguments.length<3;return s(e,Object(i.a)(t,4),n,u,o.a)}},function(e,t,n){"use strict";var r=n(28),o=n(114),i=n(26),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var l=function(e){return Object(i.a)(e)&&Object(o.a)(e.length)&&!!a[Object(r.a)(e)]},s=n(175),u=n(244),c=u.a&&u.a.isTypedArray,d=c?Object(s.a)(c):l;t.a=d},function(e,t,n){"use strict";var r=n(179),o=n(40),i=n(84),a=n(18),l=o.a?o.a.isConcatSpreadable:void 0;var s=function(e){return Object(a.a)(e)||Object(i.a)(e)||!!(l&&e&&e[l])};t.a=function e(t,n,o,i,a){var l=-1,u=t.length;for(o||(o=s),a||(a=[]);++l0&&o(c)?n>1?e(c,n-1,o,i,a):Object(r.a)(a,c):i||(a[a.length]=c)}return a}},function(e,t,n){"use strict";var r=n(44),o=function(){try{var e=Object(r.a)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.a=o},function(e,t,n){"use strict";var r=n(83);var o=function(){this.__data__=new r.a,this.size=0};var i=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var a=function(e){return this.__data__.get(e)};var l=function(e){return this.__data__.has(e)},s=n(85),u=n(99);var c=function(e,t){var n=this.__data__;if(n instanceof r.a){var o=n.__data__;if(!s.a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new u.a(o)}return n.set(e,t),this.size=n.size,this};function d(e){var t=this.__data__=new r.a(e);this.size=t.size}d.prototype.clear=o,d.prototype.delete=i,d.prototype.get=a,d.prototype.has=l,d.prototype.set=c;t.a=d},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(19),o=n(24),i=n(34),a=n(108),l=r.Object,s=o("".split);e.exports=i((function(){return!l("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):l(e)}:l},function(e,t,n){var r=n(19).TypeError;e.exports=function(e){if(void 0==e)throw r("Can't call method on "+e);return e}},function(e,t,n){var r=n(19),o=n(49),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},function(e,t,n){var r=n(73),o=n(137),i=n(221);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(19),o=n(73),i=n(294),a=n(70),l=n(222),s=r.TypeError,u=Object.defineProperty;t.f=o?u:function(e,t,n){if(a(e),t=l(t),a(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(231);e.exports=function(e){return r(e.length)}},function(e,t,n){var r=n(320),o=n(95),i="Object is destroyed",a=function e(t,n){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=o.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},n,!0),o.isObject(n)&&void 0!==n.svgStyle&&(this._opts.svgStyle=n.svgStyle),o.isObject(n)&&o.isObject(n.text)&&void 0!==n.text.style&&(this._opts.text.style=n.text.style);var i,a=this._createSvgView(this._opts);if(!(i=o.isString(t)?document.querySelector(t):t))throw new Error("Container does not exist: "+t);this._container=i,this._container.appendChild(a.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&o.setStyles(a.svg,this._opts.svgStyle),this.svg=a.svg,this.path=a.path,this.trail=a.trail,this.text=null;var l=o.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new r(a.path,l),o.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};a.prototype.animate=function(e,t,n){if(null===this._progressPath)throw new Error(i);this._progressPath.animate(e,t,n)},a.prototype.stop=function(){if(null===this._progressPath)throw new Error(i);void 0!==this._progressPath&&this._progressPath.stop()},a.prototype.pause=function(){if(null===this._progressPath)throw new Error(i);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},a.prototype.resume=function(){if(null===this._progressPath)throw new Error(i);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},a.prototype.destroy=function(){if(null===this._progressPath)throw new Error(i);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},a.prototype.set=function(e){if(null===this._progressPath)throw new Error(i);this._progressPath.set(e)},a.prototype.value=function(){if(null===this._progressPath)throw new Error(i);return void 0===this._progressPath?0:this._progressPath.value()},a.prototype.setText=function(e){if(null===this._progressPath)throw new Error(i);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),o.isObject(e)?(o.removeChildren(this.text),this.text.appendChild(e)):this.text.innerHTML=e},a.prototype._createSvgView=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(t,e);var n=null;(e.trailColor||e.trailWidth)&&(n=this._createTrail(e),t.appendChild(n));var r=this._createPath(e);return t.appendChild(r),{svg:t,path:r,trail:n}},a.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 100")},a.prototype._createPath=function(e){var t=this._pathString(e);return this._createPathElement(t,e)},a.prototype._createTrail=function(e){var t=this._trailString(e),n=o.extend({},e);return n.trailColor||(n.trailColor="#eee"),n.trailWidth||(n.trailWidth=n.strokeWidth),n.color=n.trailColor,n.strokeWidth=n.trailWidth,n.fill=null,this._createPathElement(t,n)},a.prototype._createPathElement=function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",e),n.setAttribute("stroke",t.color),n.setAttribute("stroke-width",t.strokeWidth),t.fill?n.setAttribute("fill",t.fill):n.setAttribute("fill-opacity","0"),n},a.prototype._createTextContainer=function(e,t){var n=document.createElement("div");n.className=e.text.className;var r=e.text.style;return r&&(e.text.autoStyleContainer&&(t.style.position="relative"),o.setStyles(n,r),r.color||(n.style.color=e.color)),this._initializeTextContainer(e,t,n),n},a.prototype._initializeTextContainer=function(e,t,n){},a.prototype._pathString=function(e){throw new Error("Override this function for each progress bar")},a.prototype._trailString=function(e){throw new Error("Override this function for each progress bar")},a.prototype._warnContainerAspectRatio=function(e){if(this.containerAspectRatio){var t=window.getComputedStyle(e,null),n=parseFloat(t.getPropertyValue("width"),10),r=parseFloat(t.getPropertyValue("height"),10);o.floatEquals(this.containerAspectRatio,n/r)||(console.warn("Incorrect aspect ratio of container","#"+e.id,"detected:",t.getPropertyValue("width")+"(width)","/",t.getPropertyValue("height")+"(height)","=",n/r),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},e.exports=a},function(e,t,n){"use strict";var r=n(109),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),v=s(n),g=0;ge.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){var t=+e;return t!==t||0===t?0:(t>0?r:n)(t)}},function(e,t,n){var r=n(34),o=n(58),i=n(158),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";var r=n(34);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var r=n(62),o=n(163);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(74),o=n(24),i=n(164),a=n(543),l=n(311),s=n(225),u=n(544),c=n(296).get,d=n(547),p=n(548),f=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,v=h,g=o("".charAt),m=o("".indexOf),y=o("".replace),b=o("".slice),O=function(){var e=/a/,t=/b*/g;return r(h,e,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=l.UNSUPPORTED_Y||l.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(O||_||w||d||p)&&(v=function(e){var t,n,o,l,s,d,p,C=this,E=c(C),M=i(e),P=E.raw;if(P)return P.lastIndex=C.lastIndex,t=r(v,P,M),C.lastIndex=P.lastIndex,t;var x=E.groups,S=w&&C.sticky,R=r(a,C),j=C.source,T=0,A=M;if(S&&(R=y(R,"y",""),-1===m(R,"g")&&(R+="g"),A=b(M,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==g(M,C.lastIndex-1))&&(j="(?: "+j+")",A=" "+A,T++),n=new RegExp("^(?:"+j+")",R)),_&&(n=new RegExp("^"+j+"$(?!\\s)",R)),O&&(o=C.lastIndex),l=r(h,S?n:C,A),S?l?(l.input=b(l.input,T),l[0]=b(l[0],T),l.index=C.lastIndex,C.lastIndex+=l[0].length):C.lastIndex=0:O&&l&&(C.lastIndex=C.global?l.index+l[0].length:o),_&&l&&l.length>1&&r(f,l[0],n,(function(){for(s=1;s-1}},function(e,t,n){"use strict";t.a=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r=200&&(d=s.a,p=!1,t=new r.a(t));e:for(;++c0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(a);t.a=s},function(e,t,n){"use strict";var r=/\s/;var o=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t},i=/^\s+/;var a=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e},l=n(45),s=n(76),u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,p=parseInt;t.a=function(e){if("number"==typeof e)return e;if(Object(s.a)(e))return NaN;if(Object(l.a)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(l.a)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=c.test(e);return n||d.test(e)?p(e.slice(2),n?2:8):u.test(e)?NaN:+e}},function(e,t,n){"use strict";var r=n(130);var o=function(e,t,n){"__proto__"==t&&r.a?Object(r.a)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},i=n(77),a=Object.prototype.hasOwnProperty;var l=function(e,t,n){var r=e[t];a.call(e,t)&&Object(i.a)(r,n)&&(void 0!==n||t in e)||o(e,t,n)},s=n(64),u=n(80),c=n(45),d=n(54);t.a=function(e,t,n,r){if(!Object(c.a)(e))return e;for(var o=-1,i=(t=Object(s.a)(t,e)).length,a=i-1,p=e;null!=p&&++o=200){var v=t?null:c(e);if(v)return Object(u.a)(v);p=!1,s=a.a,h=new r.a}else h=t?[]:f;e:for(;++l=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(a)})),e.exports=s}).call(this,n(373))},function(e,t,n){var r=n(146),o=n(398),i=n(399),a=n(400),l=n(401),s=n(402);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=l,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(90)(n(60),"Map");e.exports=r},function(e,t,n){var r=n(105),o=n(67);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(409),o=n(416),i=n(418),a=n(419),l=n(420);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(60),o=n(432),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s}).call(this,n(207)(e))},function(e,t,n){var r=n(434),o=n(435),i=n(436),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e0},t}(l.Component);function d(e,t){e.forEach((function(e){c[e]=t}))}t.AgGridColumn=c,d(u.ColDefUtil.BOOLEAN_PROPERTIES,s.default.bool),d(u.ColDefUtil.STRING_PROPERTIES,s.default.string),d(u.ColDefUtil.OBJECT_PROPERTIES,s.default.object),d(u.ColDefUtil.ARRAY_PROPERTIES,s.default.array),d(u.ColDefUtil.NUMBER_PROPERTIES,s.default.number),d(u.ColDefUtil.FUNCTION_PROPERTIES,s.default.func)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(r=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var o=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),i=function(){function e(){}return e.prototype.areEqual=function(t,n){return e.areEquivalent(e.copy(t),e.copy(n))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n0&&(t[r]={previousValue:o,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var r=this,o=!!t.debug;Object.keys(t).forEach((function(i){s._.includes(s.ComponentUtil.ALL_PROPERTIES,i)&&(r.changeDetectionService.getStrategy(r.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(o&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),s.ComponentUtil.getEventCallbacks().forEach((function(i){r.props[i]!==t[i]&&(o&&console.log("agGridReact: ["+i+"] event callback changed"),n[i]={previousValue:e[i],currentValue:t[i]})}))},t.prototype.processChanges=function(e){this.api&&s.ComponentUtil.processOnChange(e,this.gridOptions,this.api,this.columnApi)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return c.ChangeDetectionStrategyType.IdentityCheck}return c.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData)},t}(l.Component);t.AgGridReactFire=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showJsComp=function(e,n,r,o,i){if(!(!e||e.componentFromFramework)){var a=t.createJsComp(n,o);if(a){var l=a.getGui();return r.appendChild(l),i&&(i.current=a),function(){var e=a.getGui();e&&e.parentElement&&e.parentElement.removeChild(e),n.destroyBean(a),i&&(i.current=void 0)}}}},t.createJsComp=function(e,t){var n=t(e.getBean("userComponentFactory"));if(n)return n.resolveNow(null,(function(e){return e}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e,t){r.useEffect((function(){var n=t.current,r=n.parentElement;if(r){var o=document.createComment(e);return r.insertBefore(o,n),function(){r.removeChild(o)}}}),[])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(526),o=n(289);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},function(e,t,n){var r=n(224);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},function(e,t,n){var r=n(19),o=n(49),i=n(292),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},function(e,t,n){var r=n(530),o=n(226);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.0",mode:r?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(19),o=n(227),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},function(e,t,n){var r=n(19),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(19),o=n(69),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(24),o=n(49),i=n(226),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,t){e.exports={}},function(e,t,n){var r=n(159),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(108);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(24),o=n(34),i=n(49),a=n(305),l=n(135),s=n(229),u=function(){},c=[],d=l("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=r(p.exec),h=!p.exec(u),v=function(e){if(!i(e))return!1;try{return d(u,c,e),!0}catch(t){return!1}};e.exports=!d||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!f(p,s(e))}:v},function(e,t,n){var r=n(538),o=n(24),i=n(133),a=n(94),l=n(138),s=n(304),u=o([].push),c=function(e){var t=1==e,n=2==e,o=3==e,c=4==e,d=6==e,p=7==e,f=5==e||d;return function(h,v,g,m){for(var y,b,O=a(h),w=i(O),_=r(v,g),C=l(w),E=0,M=m||s,P=t?M(h,C):n||p?M(h,0):void 0;C>E;E++)if((f||E in w)&&(b=_(y=w[E],E,O),e))if(t)P[E]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return E;case 2:u(P,y)}else switch(e){case 4:return!1;case 7:u(P,y)}return d?-1:o||c?c:P}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){var r=n(299),o=n(232);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n>8*o&255;r+=("00"+(i=i%150+50).toString(16)).substr(-2)}return r}},{key:"render",value:function(){var e=this.props.src,t=!1;return this.props.lazyLoadingImage&&(t=!0,this.isLoaded(e)?t=!1:(e=this.props.lazyLoadingImage,this.loading||this.requestImage(this.props.src))),i.default.createElement("div",{className:a("rce-avatar-container",this.props.type,this.props.size,this.props.className),__source:{fileName:r,lineNumber:79}},this.props.letterItem?i.default.createElement("div",{className:"rce-avatar-letter-background",style:{backgroundColor:this.stringToColour(this.props.letterItem.id)},__source:{fileName:r,lineNumber:82}},i.default.createElement("span",{className:"rce-avatar-letter",__source:{fileName:r,lineNumber:85}},this.props.letterItem.letter)):i.default.createElement("img",{alt:this.props.alt,src:e,onError:this.props.onError,className:a("rce-avatar",{"rce-avatar-lazy":t}),__source:{fileName:r,lineNumber:90}}),this.props.sideElement)}}]),t}();s.defaultProps={type:"default",size:"default",src:"",alt:"",sideElement:null,lazyLoadingImage:void 0,onError:function(){}},t.default=s},function(e,t){e.exports=n(1533)},function(e,t){e.exports=n(564)},function(e,t){e.exports=n(565)},function(e,t){e.exports=n(566)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Button=void 0;var r="/Users/burak/github/react-chat-elements/src/Button/Button.js",o=function(){function e(e,t){for(var n=0;n0&&i.default.createElement("div",{__source:{fileName:r,lineNumber:81}},i.default.createElement(h.default,{animationType:"bottom",animationPosition:"norteast",buttonProps:{className:"rce-mtmg-right-icon",icon:{component:i.default.createElement(l.default,{__source:{fileName:r,lineNumber:88}}),size:24}},items:b,onSelect:M,__source:{fileName:r,lineNumber:82}}))),i.default.createElement("div",{className:"rce-mtmg-body-bottom",onClick:function(){return e.toggleClick()},__source:{fileName:r,lineNumber:97}},!0===this.state.toogle?i.default.createElement("div",{className:"rce-mtmg-bottom--tptitle",__source:{fileName:r,lineNumber:102}},i.default.createElement(s.default,{__source:{fileName:r,lineNumber:103}}),i.default.createElement("span",{__source:{fileName:r,lineNumber:104}},y)):i.default.createElement("div",{className:"rce-mtmg-body-bottom--bttitle",__source:{fileName:r,lineNumber:107}},i.default.createElement(u.default,{__source:{fileName:r,lineNumber:108}}),i.default.createElement("span",{__source:{fileName:r,lineNumber:109}},O.slice(0,P).map((function(e){return e.title||"Unknow"})).join(", "),O.length>P&&", +"+(O.length-P)))),i.default.createElement("div",{className:(0,v.default)("rce-mtmg-toogleContent",{"rce-mtmg-toogleContent--click":!0===this.state.toogle}),__source:{fileName:r,lineNumber:121}},w&&w.map((function(e,t){return i.default.createElement("div",{key:t,__source:{fileName:r,lineNumber:130}},!e.event&&i.default.createElement("div",{className:"rce-mitem",__source:{fileName:r,lineNumber:133}},i.default.createElement("div",{className:(0,v.default)("rce-mitem avatar",{"rce-mitem no-avatar":!e.avatar}),__source:{fileName:r,lineNumber:134}},e.avatar?i.default.createElement(f.default,{src:e.avatar,__source:{fileName:r,lineNumber:141}}):i.default.createElement(d.default,{__source:{fileName:r,lineNumber:142}})),i.default.createElement("div",{className:"rce-mitem-body",__source:{fileName:r,lineNumber:145}},i.default.createElement("div",{className:"rce-mitem-body--top",__source:{fileName:r,lineNumber:146}},i.default.createElement("div",{className:"rce-mitem-body--top-title",onClick:function(n){return C(e,t,n)},__source:{fileName:r,lineNumber:147}},e.title),i.default.createElement("div",{className:"rce-mitem-body--top-time",__source:{fileName:r,lineNumber:152}},e.dateString?e.dateString:e.date&&!isNaN(e.date)&&(0,p.format)(e.date))),i.default.createElement("div",{className:"rce-mitem-body--bottom",__source:{fileName:r,lineNumber:160}},i.default.createElement("div",{className:"rce-mitem-body--bottom-title",__source:{fileName:r,lineNumber:161}},e.message)))),e.event&&i.default.createElement("div",{className:"rce-mitem-event",__source:{fileName:r,lineNumber:172}},i.default.createElement("div",{className:"rce-mitem-bottom-body",__source:{fileName:r,lineNumber:173}},i.default.createElement("div",{className:"rce-mitem-body avatar",__source:{fileName:r,lineNumber:174}},i.default.createElement(c.default,{__source:{fileName:r,lineNumber:175}})),i.default.createElement("div",{className:"rce-mitem-bottom-body-top",__source:{fileName:r,lineNumber:177}},e.event.title,i.default.createElement("div",{className:"rce-mitem-body--top-time",__source:{fileName:r,lineNumber:179}},e.dateString?e.dateString:e.date&&!isNaN(e.date)&&(0,p.format)(e.date)),i.default.createElement("div",{className:"rce-mitem-avatar-content",__source:{fileName:r,lineNumber:186}},i.default.createElement("div",{className:"rce-mitem-avatar",__source:{fileName:r,lineNumber:188}},e.event.avatars&&e.event.avatars.slice(0,e.event.avatarsLimit).map((function(e,t){return e instanceof f.default?e:i.default.createElement(f.default,{key:t,src:e.src,__source:{fileName:r,lineNumber:192}})})),e.event.avatars&&e.event.avatarsLimit&&e.event.avatars.length>e.event.avatarsLimit&&i.default.createElement("div",{className:"rce-mitem-length rce-mitem-tooltip",tooltip:e.event.avatars.slice(e.event.avatarsLimit,e.event.avatars.length).map((function(e){return e.title})).join(","),__source:{fileName:r,lineNumber:200}},i.default.createElement("span",{className:"rce-mitem-tooltip-text",__source:{fileName:r,lineNumber:201}},"+"+(e.event.avatars.length-e.event.avatarsLimit))))),e.record&&i.default.createElement("div",{className:"rce-mtmg-call-record",__source:{fileName:r,lineNumber:211}},i.default.createElement("div",{className:"rce-mtmg-call-body",__source:{fileName:r,lineNumber:212}},i.default.createElement("div",{onClick:function(n){return E(e,t,n)},className:"rce-mtmg-call-avatars",__source:{fileName:r,lineNumber:213}},i.default.createElement(f.default,{className:"rce-mtmg-call-avatars",src:e.record.avatar,__source:{fileName:r,lineNumber:216}}),i.default.createElement("div",{className:"rce-mtmg-record-time",__source:{fileName:r,lineNumber:219}},e.record.time)),i.default.createElement("div",{className:"rce-mtmg-call-body-title",__source:{fileName:r,lineNumber:223}},i.default.createElement("span",{__source:{fileName:r,lineNumber:224}},e.record.title),i.default.createElement("div",{className:"rce-mtmg-call-body-bottom",__source:{fileName:r,lineNumber:227}},e.record.savedBy))))))))})))))}}]),t}();m.defaultProps={date:new Date,dateString:"",title:"",subject:"",collapseTitle:"",participantsLimit:3,avatarFlexible:!1,moreItems:[],dataSource:[],participants:[],onClick:function(){},onMeetingMoreSelect:function(){},onMeetingTitleClick:function(){},onMeetingVideoLinkClick:function(){},onAvatarError:function(){}},t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=void 0;var r=Object.assign||function(e){for(var t=1;t0&&a.default.createElement("span",{__source:{fileName:r,lineNumber:142}},this.props.unread))))))}}]),t}();p.defaultProps={id:"",onClick:null,avatar:"",avatarFlexible:!1,alt:"",title:"",subtitle:"",date:new Date,unread:0,statusColor:null,statusColorType:"badge",statusText:null,dateString:null,lazyLoadingImage:void 0,onAvatarError:function(){},showMute:null,showVideoCall:null},t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MeetingItem=void 0;var r="/Users/burak/github/react-chat-elements/src/MeetingItem/MeetingItem.js",o=function(){function e(e,t){for(var n=0;nthis.props.subjectLimit?"...":"");return a.default.createElement("div",{className:(0,p.default)("rce-container-mtitem",this.props.className),onClick:this.props.onClick,onContextMenu:this.props.onContextMenu,__source:{fileName:r,lineNumber:30}},a.default.createElement("audio",{autoPlay:!0,loop:!0,muted:this.props.audioMuted,src:this.props.audioSource,__source:{fileName:r,lineNumber:35}}),a.default.createElement("div",{className:"rce-mtitem",__source:{fileName:r,lineNumber:41}},a.default.createElement("div",{className:"rce-mtitem-top",__source:{fileName:r,lineNumber:42}},a.default.createElement("div",{className:"rce-mtitem-subject",__source:{fileName:r,lineNumber:43}},i),a.default.createElement("div",{className:"rce-mtitem-share",onClick:this.props.onShareClick,__source:{fileName:r,lineNumber:46}},a.default.createElement(s.default,{__source:{fileName:r,lineNumber:49}}))),a.default.createElement("div",{className:"rce-mtitem-body",__source:{fileName:r,lineNumber:52}},a.default.createElement("div",{className:"rce-mtitem-body--avatars",__source:{fileName:r,lineNumber:53}},this.props.avatars.slice(0,n).map((function(n,o){return n instanceof c.default?n:a.default.createElement(c.default,{key:o,src:n.src,alt:n.alt,className:"encircle"===n.statusColorType?"rce-mtitem-avatar-encircle-status":"",size:"small",letterItem:n.letterItem,sideElement:n.statusColor&&a.default.createElement("span",{className:"rce-mtitem-status",style:"encircle"===t?{boxShadow:"inset 0 0 0 2px "+n.statusColor+", inset 0 0 0 5px #FFFFFF"}:{backgroundColor:n.statusColor},__source:{fileName:r,lineNumber:65}},n.statusText),onError:e.props.onAvatarError,lazyLoadingImage:e.props.lazyLoadingImage,type:(0,p.default)("circle",{flexible:e.props.avatarFlexible}),__source:{fileName:r,lineNumber:56}})})),this.props.avatars.length>n&&a.default.createElement("div",{className:"rce-avatar-container circle small rce-mtitem-letter",__source:{fileName:r,lineNumber:83}},a.default.createElement("span",{__source:{fileName:r,lineNumber:84}},"+"+(this.props.avatars.length-n)))),a.default.createElement("div",{className:"rce-mtitem-body--functions",__source:{fileName:r,lineNumber:90}},this.props.closable&&a.default.createElement("div",{className:"rce-mtitem-closable",onClick:this.props.onCloseClick,__source:{fileName:r,lineNumber:93}},a.default.createElement(u.default,{__source:{fileName:r,lineNumber:96}})),a.default.createElement("div",{className:"rce-mtitem-button",onClick:this.props.onMeetingClick,__source:{fileName:r,lineNumber:99}},a.default.createElement(l.default,{__source:{fileName:r,lineNumber:102}})))),a.default.createElement("div",{className:"rce-mtitem-footer",__source:{fileName:r,lineNumber:106}},a.default.createElement("span",{className:"rce-mtitem-date",__source:{fileName:r,lineNumber:107}},o))))}}]),t}();h.defaultProps={id:"",subject:"",subjectLimit:60,onClick:null,avatarFlexible:!1,alt:"",title:"",subtitle:"",date:new Date,dateString:"",lazyLoadingImage:void 0,avatarLimit:5,avatars:[],audioMuted:!0,audioSource:null,onAvatarError:function(){},onMeetingClick:function(){},onShareClick:function(){}},t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AudioMessage=t.MeetingMessage=t.MeetingList=t.MeetingItem=t.ReplyMessage=t.Popup=t.SideBar=t.Dropdown=t.Navbar=t.Avatar=t.Button=t.Input=t.MessageList=t.ChatList=t.SystemMessage=t.ChatItem=t.MessageBox=void 0;var r=O(n(8)),o=O(n(14)),i=O(n(9)),a=O(n(37)),l=O(n(38)),s=O(n(40)),u=O(n(7)),c=O(n(2)),d=O(n(41)),p=O(n(12)),f=O(n(42)),h=O(n(43)),v=O(n(10)),g=O(n(15)),m=O(n(47)),y=O(n(11)),b=O(n(13));function O(e){return e&&e.__esModule?e:{default:e}}t.MessageBox=r.default,t.ChatItem=o.default,t.SystemMessage=i.default,t.ChatList=a.default,t.MessageList=l.default,t.Input=s.default,t.Button=u.default,t.Avatar=c.default,t.Navbar=d.default,t.Dropdown=p.default,t.SideBar=f.default,t.Popup=h.default,t.ReplyMessage=v.default,t.MeetingItem=g.default,t.MeetingList=m.default,t.MeetingMessage=y.default,t.AudioMessage=b.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoMessage=void 0;var r="/Users/burak/github/react-chat-elements/src/PhotoMessage/PhotoMessage.js",o=function(){function e(e,t){for(var n=0;nthis.props.toBottomHeight?!0!==this.state.downButton&&(this.state.downButton=!0,this.setState({downButton:!0,scrollBottom:t})):!1!==this.state.downButton&&(this.state.downButton=!1,this.setState({downButton:!1,scrollBottom:t})),this.props.onScroll instanceof Function&&this.props.onScroll(e)}},{key:"toBottom",value:function(e){this.mlistRef&&(this.mlistRef.scrollTop=this.mlistRef.scrollHeight,this.props.onDownButtonClick instanceof Function&&this.props.onDownButtonClick(e))}},{key:"onMeetingMoreSelect",value:function(e,t,n){this.props.onMeetingMoreSelect instanceof Function&&this.props.onMeetingMoreSelect(e,t,n)}},{key:"render",value:function(){var e=this;return l.default.createElement("div",{className:d(["rce-container-mlist",this.props.className]),__source:{fileName:o,lineNumber:160}},l.default.createElement("div",{ref:this.loadRef,onScroll:this.onScroll,className:"rce-mlist",__source:{fileName:o,lineNumber:162}},this.props.dataSource.map((function(t,n){return l.default.createElement(s.default,r({key:n},t,{onOpen:e.props.onOpen&&function(r){return e.onOpen(t,n,r)},onPhotoError:e.props.onPhotoError&&function(r){return e.onPhotoError(t,n,r)},onDownload:e.props.onDownload&&function(r){return e.onDownload(t,n,r)},onTitleClick:e.props.onTitleClick&&function(r){return e.onTitleClick(t,n,r)},onForwardClick:e.props.onForwardClick&&function(r){return e.onForwardClick(t,n,r)},onReplyClick:e.props.onReplyClick&&function(r){return e.onReplyClick(t,n,r)},onReplyMessageClick:e.props.onReplyMessageClick&&function(r){return e.onReplyMessageClick(t,n,r)},onRemoveMessageClick:e.props.onRemoveMessageClick&&function(r){return e.onRemoveMessageClick(t,n,r)},onClick:e.props.onClick&&function(r){return e.onClick(t,n,r)},onContextMenu:e.props.onContextMenu&&function(r){return e.onContextMenu(t,n,r)},onMeetingMoreSelect:e.props.onMeetingMoreSelect&&function(r){return e.onMeetingMoreSelect(t,n,r)},onMessageFocused:e.props.onMessageFocused&&function(r){return e.onMessageFocused(t,n,r)},onMeetingMessageClick:e.props.onMeetingMessageClick&&function(r){return e.onMeetingMessageClick(t,n,r)},onMeetingTitleClick:e.props.onMeetingTitleClick,onMeetingVideoLinkClick:e.props.onMeetingVideoLinkClick,__source:{fileName:o,lineNumber:168}}))}))),!0===this.props.downButton&&this.state.downButton&&"100%"!==this.props.toBottomHeight&&l.default.createElement("div",{className:"rce-mlist-down-button",onClick:this.toBottom.bind(this),__source:{fileName:o,lineNumber:194}},l.default.createElement(u.default,{__source:{fileName:o,lineNumber:197}}),this.props.downButtonBadge&&l.default.createElement("span",{className:"rce-mlist-down-button--badge",__source:{fileName:o,lineNumber:200}},this.props.downButtonBadge)))}}]),t}();p.defaultProps={onClick:null,onTitleClick:null,onForwardClick:null,onReplyClick:null,onReplyMessageClick:null,onMeetingMessageClick:null,onDownButtonClick:null,onOpen:null,onPhotoError:null,onDownload:null,dataSource:[],lockable:!1,toBottomHeight:300,downButton:!0,downButtonBadge:null},t.default=p},function(e,t){e.exports=n(1519)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Input=void 0;var r="/Users/burak/github/react-chat-elements/src/Input/Input.js",o=function(){function e(e,t){for(var n=0;nthis.props.maxlength)return this.props.onMaxLengthExceed instanceof Function&&this.props.onMaxLengthExceed(),void(this.input.value=(e.target.value||"").substring(0,this.props.maxlength));if(this.props.onChange instanceof Function&&this.props.onChange(e),!0===this.props.multiline&&!0===this.props.autoHeight){e.target.style.height!==this.props.minHeight+"px"&&(e.target.style.height=this.props.minHeight+"px");var t;t=e.target.scrollHeight<=this.props.maxHeight?e.target.scrollHeight+"px":this.props.maxHeight+"px",e.target.style.height!==t&&(e.target.style.height=t)}}},{key:"clear",value:function(){var e={FAKE_EVENT:!0,target:this.input};this.input.value&&(this.input.value=""),this.onChange(e)}},{key:"componentDidMount",value:function(){!0===this.props.autofocus&&this.input.focus()}},{key:"render",value:function(){var e=this;return a.default.createElement("div",{className:l("rce-container-input",this.props.className),__source:{fileName:r,lineNumber:58}},this.props.leftButtons&&a.default.createElement("div",{className:"rce-input-buttons",__source:{fileName:r,lineNumber:61}},this.props.leftButtons),!1===this.props.multiline?a.default.createElement("input",{ref:function(t){e.props.inputRef instanceof Function&&e.props.inputRef(t),e.input=t},type:this.props.type,className:l("rce-input"),placeholder:this.props.placeholder,defaultValue:this.props.defaultValue,style:this.props.inputStyle,onChange:this.onChange.bind(this),onCopy:this.props.onCopy,onCut:this.props.onCut,onPaste:this.props.onPaste,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onSelect:this.props.onSelect,onSubmit:this.props.onSubmit,onReset:this.props.onReset,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,__source:{fileName:r,lineNumber:67}}):a.default.createElement("textarea",{ref:function(t){e.props.inputRef instanceof Function&&e.props.inputRef(t),e.input=t},type:this.props.type,className:l("rce-input","rce-input-textarea"),placeholder:this.props.placeholder,defaultValue:this.props.defaultValue,style:this.props.inputStyle,onChange:this.onChange.bind(this),onCopy:this.props.onCopy,onCut:this.props.onCut,onPaste:this.props.onPaste,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onSelect:this.props.onSelect,onSubmit:this.props.onSubmit,onReset:this.props.onReset,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,__source:{fileName:r,lineNumber:91}}),this.props.rightButtons&&a.default.createElement("div",{className:"rce-input-buttons",__source:{fileName:r,lineNumber:117}},this.props.rightButtons))}}]),t}();s.defaultProps={type:"text",placeholder:"",defaultValue:"",onChange:null,rightButtons:null,leftButtons:null,multiline:!1,minHeight:25,maxHeight:200,autoHeight:!0,inputStyle:null,inputRef:null,maxlength:null,onMaxLengthExceed:null,autofocus:!1},t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Navbar=void 0;var r="/Users/burak/github/react-chat-elements/src/Navbar/Navbar.js",o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"image/jpeg",n=window.atob(e),r=[],o=0;o8)return o.drawImage(i,0,0,r.width,r.height),r;switch(n>4&&(r.width=t,r.height=e),n){case 2:o.translate(e,0),o.scale(-1,1);break;case 3:o.translate(e,t),o.rotate(Math.PI);break;case 4:o.translate(0,t),o.scale(1,-1);break;case 5:o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:o.rotate(.5*Math.PI),o.translate(0,-t);break;case 7:o.rotate(.5*Math.PI),o.translate(e,-t),o.scale(-1,1);break;case 8:o.rotate(-.5*Math.PI),o.translate(-e,0)}return n>4?o.drawImage(i,0,0,r.height,r.width):o.drawImage(i,0,0,r.width,r.height),r}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.75,n=e.toDataURL("image/jpeg",t);return n},v=function(e){return{KB:e/1e3,MB:e/1e6}},g=function(e){return new Promise((function(t,n){var r=new window.FileReader;r.addEventListener("load",(function(e){return t(e.target.result)}),!1),r.addEventListener("error",n,!1),r.readAsDataURL(e)}))},m=function(e){return new Promise((function(t,n){var r=new window.Image;r.addEventListener("load",(function(){return t(r)}),!1),r.addEventListener("error",n,!1),r.src=e}))},y=function(e,t){return function(n,r){if(!e&&!t)return{width:n,height:r};var o,i,a=n/r;return a>e/t?i=(o=Math.min(n,e))/a:o=(i=Math.min(r,t))*a,{width:o,height:i}}},b=function e(t){var n=t.quality,r=void 0===n?.75:n,o=t.size,i=void 0===o?2:o,a=t.maxWidth,s=void 0===a?1920:a,u=t.maxHeight,c=void 0===u?1920:u,d=t.resize,p=void 0===d||d,f=t.rotate,h=void 0!==f&&f;Object(l.a)(this,e),this.start=window.performance.now(),this.end=null,this.alt=null,this.ext=null,this.startSize=null,this.startWidth=null,this.startHeight=null,this.size=1e3*i*1e3,this.endSize=null,this.endWidth=null,this.endHeight=null,this.iterations=0,this.base64prefix=null,this.quality=r,this.resize=p,this.maxWidth=s,this.maxHeight=c,this.orientation=1,this.rotate=h},O=function(e){return new Promise((function(t){var n=new window.FileReader;n.onload=function(e){var n=new DataView(e.target.result);65496!==n.getUint16(0,!1)&&t(-2);for(var r=n.byteLength,o=2;o2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=h(e,n),l=u(a);return l>r||n>o?_(e,l,n-.1,r,o,i+1):a}function C(){return(C=Object(i.a)(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=new b(n)).start=window.performance.now(),r.alt=t.name,r.ext=t.type,r.startSize=t.size,!r.rotate){e.next=11;break}return e.next=8,O(t);case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=0;case 12:return r.orientation=e.t0,e.t1=E(r),e.next=16,g(t);case 16:return e.t2=e.sent,e.abrupt("return",(0,e.t1)(e.t2));case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return function(){var t=Object(i.a)(o.a.mark((function t(n){var r,i,a,l,s,p,h;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(n);case 2:return r=t.sent,e.startWidth=r.naturalWidth,e.startHeight=r.naturalHeight,e.resize?(i=y(e.maxWidth,e.maxHeight)(r.naturalWidth,r.naturalHeight),a=i.width,l=i.height,e.endWidth=a,e.endHeight=l):(e.endWidth=r.naturalWidth,e.endHeight=r.naturalHeight),s=f(e.endWidth,e.endHeight,e.orientation)(r),e.iterations=1,e.base64prefix=d(e.ext),t.next=11,_(s,e.startSize,e.quality,e.size,e.minQuality,e.iterations);case 11:return p=t.sent,e.finalSize=u(p),e.end=window.performance.now(),h=e.end-e.start,t.abrupt("return",{data:c(p),prefix:e.base64prefix,elapsedTimeInSeconds:h/1e3,alt:e.alt,initialSizeInMb:v(e.startSize).MB,endSizeInMb:v(e.finalSize).MB,ext:e.ext,quality:e.quality,endWidthInPx:e.endWidth,endHeightInPx:e.endHeight,initialWidthInPx:e.startWidth,initialHeightInPx:e.startHeight,sizeReducedInPercent:(e.startSize-e.finalSize)/e.startSize*100,iterations:e.iterations});case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}},,,,,,function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&o(n[0],n[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++rc))return!1;var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var h=-1,v=!0,g=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},t.prototype.hasSymbol=function(){return"function"===typeof Symbol&&Symbol.for},t.prototype.isStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,t){var n=this,r=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(r){var o=r[e];return o?o.apply(r,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}setTimeout((function(){return n.callMethod(e,t)}))},t.prototype.addMethod=function(e,t){this[e]=t},t}((function(){}));t.ReactComponent=a},function(e,t,n){"use strict";e.exports=n(501)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=0;t.default=function(){return"agPortalKey_"+ ++r}},function(e,t,n){"use strict";var r=n(46);t.a=r.instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(166),o=function(){function e(e){return Object(r.a)(e),null}return e.defaultProps={capture:!1},e}()},,function(e,t,n){"use strict";var r=n(62),o=n(19),i=n(34),a=n(233),l=n(69),s=n(94),u=n(138),c=n(303),d=n(304),p=n(160),f=n(58),h=n(158),v=f("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",y=o.TypeError,b=h>=51||!i((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),O=p("concat"),w=function(e){if(!l(e))return!1;var t=e[v];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!b||!O},{concat:function(e){var t,n,r,o,i,a=s(this),l=d(a,0),p=0;for(t=-1,r=arguments.length;tg)throw y(m);for(n=0;n=g)throw y(m);c(l,p++,i)}return l.length=p,l}})},function(e,t,n){var r=n(73),o=n(74),i=n(288),a=n(221),l=n(107),s=n(222),u=n(93),c=n(294),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=l(e),t=s(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(19),o=n(135),i=n(49),a=n(527),l=n(290),s=r.Object;e.exports=l?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,s(e))}},function(e,t,n){var r=n(291);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(158),o=n(34);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){var r=n(19).String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},function(e,t,n){var r=n(24),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},function(e,t,n){var r=n(73),o=n(34),i=n(228);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(19),o=n(49),i=n(93),a=n(136),l=n(227),s=n(229),u=n(296),c=n(298).CONFIGURABLE,d=u.get,p=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u,d=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,v=!!s&&!!s.noTargetGet,g=s&&void 0!==s.name?s.name:t;o(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||c&&n.name!==g)&&a(n,"name",g),(u=p(n)).source||(u.source=f.join("string"==typeof g?g:""))),e!==r?(d?!v&&e[t]&&(h=!0):delete e[t],h?e[t]=n:a(e,t,n)):h?e[t]=n:l(t,n)})(Function.prototype,"toString",(function(){return o(this)&&d(this).source||s(this)}))},function(e,t,n){var r,o,i,a=n(531),l=n(19),s=n(24),u=n(69),c=n(136),d=n(93),p=n(226),f=n(297),h=n(230),v="Object already initialized",g=l.TypeError,m=l.WeakMap;if(a||p.state){var y=p.state||(p.state=new m),b=s(y.get),O=s(y.has),w=s(y.set);r=function(e,t){if(O(y,e))throw new g(v);return t.facade=e,w(y,e,t),t},o=function(e){return b(y,e)||{}},i=function(e){return O(y,e)}}else{var _=f("state");h[_]=!0,r=function(e,t){if(d(e,_))throw new g(v);return t.facade=e,c(e,_,t),t},o=function(e){return d(e,_)?e[_]:{}},i=function(e){return d(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(225),o=n(293),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var r=n(73),o=n(93),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),s=l&&"something"===function(){}.name,u=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:s,CONFIGURABLE:u}},function(e,t,n){var r=n(24),o=n(93),i=n(107),a=n(300).indexOf,l=n(230),s=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(l,n)&&o(r,n)&&s(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||s(c,n));return c}},function(e,t,n){var r=n(107),o=n(301),i=n(138),a=function(e){return function(t,n,a){var l,s=r(t),u=i(s),c=o(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(159),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(222),o=n(137),i=n(221);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(536);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){var r=n(19),o=n(537),i=n(49),a=n(108),l=n(58)("toStringTag"),s=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),l))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(62),o=n(235).filter;r({target:"Array",proto:!0,forced:!n(160)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(62),o=n(24),i=n(133),a=n(107),l=n(161),s=o([].join),u=i!=Object,c=l("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s(a(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(62),o=n(541).left,i=n(161),a=n(158),l=n(542);r({target:"Array",proto:!0,forced:!i("reduce")||!l&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(62),o=n(19),i=n(233),a=n(234),l=n(69),s=n(301),u=n(138),c=n(107),d=n(303),p=n(58),f=n(160),h=n(310),v=f("slice"),g=p("species"),m=o.Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var n,r,o,p=c(this),f=u(p),v=s(e,f),b=s(void 0===t?f:t,f);if(i(p)&&(n=p.constructor,(a(n)&&(n===m||i(n.prototype))||l(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return h(p,v,b);for(r=new(void 0===n?m:n)(y(b-v,0)),o=0;v=j&&(R+=E(l,j,D)+L,j=D+A.length)}return R+E(l,j)}]}),!!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!M||P)},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;ne.strokeWidth&&(t=e.trailWidth);var n=50-t/2;return o.render(this._pathTemplate,{radius:n,"2radius":2*n})},i.prototype._trailString=function(e){return this._pathString(e)},e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o(t,n)&&e0&&n.indexOf(e)===t}))):[]}(t),r=function(e,t){return[t.filter((function(t){return-1===e.indexOf(t)})),e.filter((function(e){return-1===t.indexOf(e)}))]}(u.get(e)||[],n),o=r[0],i=r[1];e&&(o.forEach((function(t){return e.classList.add(t)})),i.forEach((function(t){return e.classList.remove(t)}))),u.set(e,n)},d=new function(){var e=this;this.add=function(t,n){if(e.nodes.has(t)){e.nodes.get(t).add(n)}else{var r=new Set;r.add(n),e.nodes.set(t,r)}},this.del=function(t,n){if(e.nodes.has(t)){var r=e.nodes.get(t);1!==r.size?r.delete(n):e.nodes.delete(t)}},this.emit=function(t,n){n(t,e.nodes.get(t))},this.nodes=new Map};function p(e,t){var n=i.a.useRef(),o=i.a.useRef(!1);l((function(){if(n.current=t,o.current){var i=Object(r.b)(e)?e.current:e;d.emit(i,c)}o.current=!0}),[t]),l((function(){var t=Object(r.b)(e)?e.current:e;return d.add(t,n),d.emit(t,c),function(){d.del(t,n),d.emit(t,c)}}),[e])}},function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),i=n(15),a=n(5),l=n.n(a),s=1073741823,u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var d=o.a.createContext||function(e,t){var n,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}()+"__",d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=c(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):s,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[a]=l.a.object.isRequired,n);var p=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?s:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?s:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((o={})[a]=l.a.object,o),{Provider:d,Consumer:p}};t.a=d}).call(this,n(104))},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){var r=n(392),o=n(273)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){var r=n(451)(n(490));e.exports=r},function(e,t){var n="undefined"!==typeof Element,r="function"===typeof Map,o="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var l,s,u,c;if(Array.isArray(e)){if((l=e.length)!=t.length)return!1;for(s=l;0!==s--;)if(!a(e[s],t[s]))return!1;return!0}if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!t.has(s.value[0]))return!1;for(c=e.entries();!(s=c.next()).done;)if(!a(s.value[1],t.get(s.value[0])))return!1;return!0}if(o&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!t.has(s.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((l=e.length)!=t.length)return!1;for(s=l;0!==s--;)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((l=(u=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(s=l;0!==s--;)if(!Object.prototype.hasOwnProperty.call(t,u[s]))return!1;if(n&&e instanceof Element)return!1;for(s=l;0!==s--;)if(("_owner"!==u[s]&&"__v"!==u[s]&&"__o"!==u[s]||!e.$$typeof)&&!a(e[u[s]],t[u[s]]))return!1;return!0}return e!==e&&t!==t}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},function(e,t,n){"use strict";n.d(t,"documentRef",(function(){return r}));var r={current:"undefined"===typeof document?null:document};"undefined"===typeof window||window},function(e,t){e.exports=function(){if("undefined"!==typeof window&&null!==window){if("(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)",window.devicePixelRatio>1.25)return!0;if(window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)").matches)return!0}return!1}},function(e,t,n){!function(){var t=n(558),r=n(318).utf8,o=n(559),i=n(318).bin,a=function e(n,a){n.constructor==String?n=a&&"binary"===a.encoding?i.stringToBytes(n):r.stringToBytes(n):o(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var l=t.bytesToWords(n),s=8*n.length,u=1732584193,c=-271733879,d=-1732584194,p=271733878,f=0;f>>24)|4278255360&(l[f]<<24|l[f]>>>8);l[s>>>5]|=128<>>9<<4)]=s;var h=e._ff,v=e._gg,g=e._hh,m=e._ii;for(f=0;f>>0,c=c+b>>>0,d=d+O>>>0,p=p+w>>>0}return t.endian([u,c,d,p])};a._ff=function(e,t,n,r,o,i,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<>>32-i)+t},a._gg=function(e,t,n,r,o,i,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<>>32-i)+t},a._hh=function(e,t,n,r,o,i,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<>>32-i)+t},a._ii=function(e,t,n,r,o,i,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()},function(e,t,n){var r=n(237),o=n(238),i=n(239),a=n(240),l=n(241),s=n(0),u=n(5),c=n(103),d=n(1527),p=n(242),f=n(1530),h=function(e){"use strict";a(n,e);var t=l(n);function n(){var e;return r(this,n),(e=t.call(this)).state={notifications:[]},e.uid=3400,e._isMounted=!1,e.overrideWidth=null,e.overrideStyle={},e.elements={notification:"NotificationItem",title:"Title",messageWrapper:"MessageWrapper",dismiss:"Dismiss",action:"Action",actionWrapper:"ActionWrapper"},e.setOverrideStyle=e.setOverrideStyle.bind(i(e)),e.wrapper=e.wrapper.bind(i(e)),e.container=e.container.bind(i(e)),e.byElement=e.byElement.bind(i(e)),e._didNotificationRemoved=e._didNotificationRemoved.bind(i(e)),e.addNotification=e.addNotification.bind(i(e)),e.getNotificationRef=e.getNotificationRef.bind(i(e)),e.removeNotification=e.removeNotification.bind(i(e)),e.editNotification=e.editNotification.bind(i(e)),e.clearNotifications=e.clearNotifications.bind(i(e)),e._getStyles={overrideWidth:e.overrideWidth,overrideStyle:e.overrideStyle,elements:e.elements,setOverrideStyle:e.setOverrideStyle,wrapper:e.wrapper,container:e.container,byElement:e.byElement},e}return o(n,[{key:"componentDidMount",value:function(){this.setOverrideStyle(this.props.style),this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"setOverrideStyle",value:function(e){this.overrideStyle=e}},{key:"wrapper",value:function(){return this.overrideStyle?c({},f.Wrapper,this.overrideStyle.Wrapper):{}}},{key:"container",value:function(e){var t=this.overrideStyle.Containers||{};return this.overrideStyle?(this.overrideWidth=f.Containers.DefaultStyle.width,t.DefaultStyle&&t.DefaultStyle.width&&(this.overrideWidth=t.DefaultStyle.width),t[e]&&t[e].width&&(this.overrideWidth=t[e].width),c({},f.Containers.DefaultStyle,f.Containers[e],t.DefaultStyle,t[e])):{}}},{key:"byElement",value:function(e){var t=this;return function(n){var r=t.elements[e],o=t.overrideStyle[r]||{};return t.overrideStyle?c({},f[r].DefaultStyle,f[r][n],o.DefaultStyle,o[n]):{}}}},{key:"_didNotificationRemoved",value:function(e){var t,n=this.state.notifications.filter((function(n){return n.uid!==e||(t=n,!1)}));this._isMounted&&this.setState({notifications:n}),t&&t.onRemove&&t.onRemove(t)}},{key:"addNotification",value:function(e){var t,n=c({},p.notification,e),r=this.state.notifications;if(!n.level)throw new Error("notification level is required.");if(-1===Object.keys(p.levels).indexOf(n.level))throw new Error("'"+n.level+"' is not a valid level.");if(isNaN(n.autoDismiss))throw new Error("'autoDismiss' must be a number.");if(-1===Object.keys(p.positions).indexOf(n.position))throw new Error("'"+n.position+"' is not a valid position.");for(n.position=n.position.toLowerCase(),n.level=n.level.toLowerCase(),n.autoDismiss=parseInt(n.autoDismiss,10),n.uid=n.uid||this.uid,n.ref="notification-"+n.uid,this.uid+=1,t=0;t-1&&Object.keys(t.refs[r].refs).forEach((function(o){o==="notification-"+(e.uid?e.uid:e)&&(n=t.refs[r].refs[o])}))})),n}},{key:"removeNotification",value:function(e){var t=this.getNotificationRef(e);return t&&t._hideNotification()}},{key:"editNotification",value:function(e,t){var n=null,r=e.uid?e.uid:e,o=this.state.notifications.filter((function(e){return r!==e.uid||(n=e,!1)}));n&&(o.push(c({},n,t)),this.setState({notifications:o}))}},{key:"clearNotifications",value:function(){var e=this;Object.keys(this.refs).forEach((function(t){t.indexOf("container")>-1&&Object.keys(e.refs[t].refs).forEach((function(n){e.refs[t].refs[n]._hideNotification()}))}))}},{key:"render",value:function(){var e=this,t=null,n=this.state.notifications;return n.length&&(t=Object.keys(p.positions).map((function(t){var r=n.filter((function(e){return t===e.position}));return r.length?s.createElement(d,{ref:"container-"+t,key:t,position:t,notifications:r,getStyles:e._getStyles,onRemove:e._didNotificationRemoved,noAnimation:e.props.noAnimation,allowHTML:e.props.allowHTML}):null}))),s.createElement("div",{className:"notifications-wrapper",style:this.wrapper()},t)}}]),n}(s.Component);h.propTypes={style:u.oneOfType([u.bool,u.object]),noAnimation:u.bool,allowHTML:u.bool,newOnTop:u.bool},h.defaultProps={style:{},noAnimation:!1,allowHTML:!1,newOnTop:!1},e.exports=h},function(e,t,n){"use strict";n(307),n(308),n(319),n(560),n(162),n(317);var r=n(0),o=n.n(r),i=n(5),a=n.n(i);n(306),n(309);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};l(this,e);var n=t.cachePrefix,r=void 0===n?u:n,o=t.sourceTTL,i=void 0===o?6048e5:o,a=t.sourceSize,s=void 0===a?20:a;this.cachePrefix=r,this.sourceTTL=i,this.sourceSize=s}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){if(d){t=JSON.stringify(t);try{localStorage.setItem(this.cachePrefix+e,t)}catch(n){console.error(n)}}}},{key:"get",value:function(e){if(!d)return null;var t=localStorage.getItem(this.cachePrefix+e);return t?JSON.parse(t):null}},{key:"sourceFailed",value:function(e){var t=this.get(c)||[];return(t=t.filter((function(t){var n=t.expires>0&&t.expires0&&t.expirese.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:O;if(!e)return"transparent";var n=_(e,t.length);return t[n]}function E(e){e=""+e;var t=v(w.exec(e)||[],3),n=t[1],r=void 0===n?0:n,o=t[2],i=void 0===o?"px":o;return{value:parseFloat(r),str:r+i,unit:i}}function M(e){return e=E(e),e=isNaN(e.value)?512:"px"===e.unit?e.value:0===e.value?0:512,b&&(e*=2),e}function P(e,t){var n=t.maxInitials;return e.split(/\s/).map((function(e){return e.substring(0,1).toUpperCase()})).filter((function(e){return!!e})).slice(0,n).join("").toUpperCase()}var x={};function S(e,t){if(x[t])x[t].push(e);else{var n=x[t]=[e];setTimeout((function(){delete x[t],n.forEach((function(e){return e()}))}),t)}}function R(e){return(R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(){return(j=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.internal===this&&!!this.fetch&&!0===this.active}}])&&U(t.prototype,n),r&&U(t,r),e}();function K(e){return(K="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:16,r=t.props,o=r.unstyled,i=r.textSizeRatio,a=r.textMarginRatio;if(e&&!o&&!t.state.src&&t.mounted){var l=e.parentNode,s=l.parentNode,u=l.getBoundingClientRect(),c=u.width,d=u.height;if(0!=c||0!=d){if(!s.style.fontSize){var p=d/i;s.style.fontSize="".concat(p,"px")}l.style.fontSize=null;var f=e.getBoundingClientRect(),h=f.width;if(!(h<0)){var v=c*(1-2*a);h>v&&(l.style.fontSize="calc(1em * ".concat(v/h,")"))}}else{var g=Math.min(1.5*n,500);S((function(){return t._scaleTextNode(e,g)}),g)}}})),t.state={internal:null,src:null,value:null,color:e.color},t}return t=s,(r=[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetch()}},{key:"componentDidUpdate",value:function(e){var t=!1;for(var n in i)t=t||e[n]!==this.props[n];t&&setTimeout(this.fetch,0)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.state.internal&&(this.state.internal.active=!1)}},{key:"_renderAsImage",value:function(){var e=this.props,t=e.className,n=e.round,r=e.unstyled,i=e.alt,a=e.title,l=e.name,s=e.value,u=this.state.internal,c=E(this.props.size),d=r?null:{maxWidth:"100%",width:c.str,height:c.str,borderRadius:!0===n?"100%":n};return o.a.createElement("img",{className:t+" sb-avatar__image",width:c.str,height:c.str,style:d,src:this.state.src,alt:i||l||s,title:a||l||s,onError:u&&u.fetch})}},{key:"_renderAsText",value:function(){var e=this.props,t=e.className,n=e.round,r=e.unstyled,i=e.title,a=e.name,l=e.value,s=E(this.props.size),u=r?null:{width:s.str,height:s.str,lineHeight:"initial",textAlign:"center",color:this.props.fgColor,background:this.state.color,borderRadius:!0===n?"100%":n},c=r?null:{display:"table",tableLayout:"fixed",width:"100%",height:"100%"},d=r?null:{display:"table-cell",verticalAlign:"middle",fontSize:"100%",whiteSpace:"nowrap"},p=[this.state.value,this.props.size].join("");return o.a.createElement("div",{className:t+" sb-avatar__text",style:u,title:i||a||l},o.a.createElement("div",{style:c},o.a.createElement("span",{style:d},o.a.createElement("span",{ref:this._scaleTextNode,key:p},this.state.value))))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.unstyled,r=e.round,i=e.style,a=e.onClick,l=this.state,s=l.src,u=l.sourceName,c=E(this.props.size),d=n?null:$({display:"inline-block",verticalAlign:"middle",width:c.str,height:c.str,borderRadius:!0===r?"100%":r,fontFamily:"Helvetica, Arial, sans-serif"},i),p=[t,"sb-avatar"];if(u){var f=u.toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/^-+|-+$/g,"");p.push("sb-avatar--"+f)}return o.a.createElement("div",{className:p.join(" "),onClick:a,style:d},s?this._renderAsImage():this._renderAsText())}}])&&Q(t.prototype,r),a&&Q(t,a),s}(r.PureComponent);return ne(l,"displayName","Avatar"),ne(l,"propTypes",$($({},i),{},{alt:a.a.string,title:a.a.string,className:a.a.string,fgColor:a.a.string,color:a.a.string,colors:a.a.arrayOf(a.a.string),round:a.a.oneOfType([a.a.bool,a.a.string]),style:a.a.object,size:a.a.oneOfType([a.a.number,a.a.string]),textSizeRatio:a.a.number,textMarginRatio:a.a.number,unstyled:a.a.bool,cache:a.a.object,onClick:a.a.func})),ne(l,"defaultProps",{className:"",fgColor:"#FFF",round:!1,size:100,textSizeRatio:3,textMarginRatio:.15,unstyled:!1}),ne(l,"getRandomColor",C),ne(l,"Cache",p),ne(l,"ConfigProvider",W),Object.assign(function(e){function t(t,n){if(B){var r=n&&n.reactAvatar;return o.a.createElement(e,j({},L,r,t))}return o.a.createElement(V,null,(function(r){return o.a.createElement(e,j({ref:n},L,r,t))}))}return t.contextTypes=W.childContextTypes,H(t)}(l),{getRandomColor:C,ConfigProvider:W,Cache:p})}({sources:Me})},function(e,t,n){"use strict";var r=n(3),o=n(16),i=n(6),a=(n(5),n(0)),l=n.n(a),s=n(22),u=n(172),c=n(96),d=n(173),p=n(7),f=n(188),h=n(15),v=n(165),g=n(1563);function m(e){var t=e.blurring,n=e.className,o=e.children,a=e.content,c=e.dimmed,f=Object(i.a)(Object(s.a)(t,"blurring"),Object(s.a)(c,"dimmed"),"dimmable",n),h=Object(u.a)(m,e),v=Object(d.a)(m,e);return l.a.createElement(v,Object(r.a)({},h,{className:f}),p.a.isNil(o)?a:o)}m.handledProps=["as","blurring","children","className","content","dimmed"],m.propTypes={};var y=m,b=n(12),O=n(1558),w=n(331),_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o