442 lines
1.5 MiB
442 lines
1.5 MiB
var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={exports:{}},u={},c=Symbol.for("react.element"),p=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.iterator;var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,_={};function S(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}function O(){}function P(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=S.prototype;var T=P.prototype=new O;T.constructor=P,R(T,S.prototype),T.isPureReactComponent=!0;var A=Array.isArray,D=Object.prototype.hasOwnProperty,N={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)D.call(t,r)&&!I.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return{$$typeof:c,type:e,key:i,ref:s,props:o,_owner:N.current}}function F(e){return"object"==typeof e&&null!==e&&e.$$typeof===c}var x=/\/+/g;function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function G(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case c:case p:s=!0}}if(s)return o=o(s=e),e=""===r?"."+L(s,0):r,A(o)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),G(o,t,n,"",(function(e){return e}))):null!=o&&(F(o)&&(o=function(e,t){return{$$typeof:c,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=""===r?".":r+":",A(e))for(var a=0;a<e.length;a++){var l=r+L(i=e[a],a);s+=G(i,t,n,l,o)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),a=0;!(i=e.next()).done;)s+=G(i=i.value,t,n,l=r+L(i,a++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function k(e,t,n){if(null==e)return e;var r=[],o=0;return G(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function V(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var H={current:null},W={transition:null},B={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:W,ReactCurrentOwner:N};function j(){throw Error("act(...) is not supported in production builds of React.")}u.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!F(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=S,u.Fragment=d,u.Profiler=f,u.PureComponent=P,u.StrictMode=h,u.Suspense=m,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,u.act=j,u.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=R({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=N.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)D.call(t,l)&&!I.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==a?a[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:c,type:e.type,key:o,ref:i,props:r,_owner:s}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=M,u.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:y,render:e}},u.isValidElement=F,u.lazy=function(e){return{$$typeof:w,_payload:{_status:-1,_result:e},_init:V}},u.memo=function(e,t){return{$$typeof:C,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=W.transition;W.transition={};try{e()}finally{W.transition=t}},u.unstable_act=j,u.useCallback=function(e,t){return H.current.useCallback(e,t)},u.useContext=function(e){return H.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return H.current.useDeferredValue(e)},u.useEffect=function(e,t){return H.current.useEffect(e,t)},u.useId=function(){return H.current.useId()},u.useImperativeHandle=function(e,t,n){return H.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return H.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return H.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return H.current.useMemo(e,t)},u.useReducer=function(e,t,n){return H.current.useReducer(e,t,n)},u.useRef=function(e){return H.current.useRef(e)},u.useState=function(e){return H.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return H.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return H.current.useTransition()},u.version="18.3.1",l.exports=u;var U=l.exports,z={exports:{}},K={},Y={exports:{}},q={};
|
||
/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,p=null,d=3,h=!1,f=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function C(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function w(e){if(g=!1,C(e),!f)if(null!==n(l))f=!0,I(E);else{var t=n(u);null!==t&&M(w,t.startTime-e)}}function E(t,o){f=!1,g&&(g=!1,y(S),S=-1),h=!0;var i=d;try{for(C(o),p=n(l);null!==p&&(!(p.expirationTime>o)||t&&!T());){var s=p.callback;if("function"==typeof s){p.callback=null,d=p.priorityLevel;var a=s(p.expirationTime<=o);o=e.unstable_now(),"function"==typeof a?p.callback=a:p===n(l)&&r(l),C(o)}else r(l);p=n(l)}if(null!==p)var c=!0;else{var v=n(u);null!==v&&M(w,v.startTime-o),c=!1}return c}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var b,R=!1,_=null,S=-1,O=5,P=-1;function T(){return!(e.unstable_now()-P<O)}function A(){if(null!==_){var t=e.unstable_now();P=t;var n=!0;try{n=_(!0,t)}finally{n?b():(R=!1,_=null)}}else R=!1}if("function"==typeof m)b=function(){m(A)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,N=D.port2;D.port1.onmessage=A,b=function(){N.postMessage(null)}}else b=function(){v(A,0)};function I(e){_=e,R||(R=!0,b())}function M(t,n){S=v((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){f||h||(f=!0,I(E))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_scheduleCallback=function(r,o,i){var s=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?s+i:s:i=s,r){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(g?(y(S),S=-1):g=!0,M(w,i-s))):(r.sortIndex=a,t(l,r),f||h||(f=!0,I(E))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}}(q),Y.exports=q;
|
||
/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var $=l.exports,X=Y.exports;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Z=new Set,J={};function ee(e,t){te(e,t),te(e+"Capture",t)}function te(e,t){for(J[e]=t,e=0;e<t.length;e++)Z.add(t[e])}var ne=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),re=Object.prototype.hasOwnProperty,oe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ie={},se={};function ae(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){le[e]=new ae(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];le[t]=new ae(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){le[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){le[e]=new ae(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){le[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){le[e]=new ae(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){le[e]=new ae(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){le[e]=new ae(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){le[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ue=/[\-:]([a-z])/g;function ce(e){return e[1].toUpperCase()}function pe(e,t,n,r){var o=le.hasOwnProperty(t)?le[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!re.call(se,e)||!re.call(ie,e)&&(oe.test(e)?se[e]=!0:(ie[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ue,ce);le[t]=new ae(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ue,ce);le[t]=new ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ue,ce);le[t]=new ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){le[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)})),le.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){le[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)}));var de=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),fe=Symbol.for("react.portal"),ge=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),be=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),Oe=Symbol.iterator;function Pe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Oe&&e[Oe]||e["@@iterator"])?e:null}var Te,Ae=Object.assign;function De(e){if(void 0===Te)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Te=t&&t[1]||""}return"\n"+Te+e}var Ne=!1;function Ie(e,t){if(!e||Ne)return"";Ne=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"==typeof u.stack){for(var o=u.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{Ne=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?De(e):""}function Me(e){switch(e.tag){case 5:return De(e.type);case 16:return De("Lazy");case 13:return De("Suspense");case 19:return De("SuspenseList");case 0:case 2:case 15:return e=Ie(e.type,!1);case 11:return e=Ie(e.type.render,!1);case 1:return e=Ie(e.type,!0);default:return""}}function Fe(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ge:return"Fragment";case fe:return"Portal";case ye:return"Profiler";case ve:return"StrictMode";case Ee:return"Suspense";case be:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case me:return(e._context.displayName||"Context")+".Provider";case we:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Re:return null!==(t=e.displayName||null)?t:Fe(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return Fe(e(t))}catch(n){}}return null}function xe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fe(t);case 8:return t===ve?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Le(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ge(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ke(e){e._valueTracker||(e._valueTracker=function(e){var t=Ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ge(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function He(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function We(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Be(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Le(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function je(e,t){null!=(t=t.checked)&&pe(e,"checked",t,!1)}function Ue(e,t){je(e,t);var n=Le(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ke(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ke(e,t.type,Le(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ze(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ke(e,t,n){"number"===t&&He(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ye=Array.isArray;function qe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Le(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function $e(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Q(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Q(92));if(Ye(n)){if(1<n.length)throw Error(Q(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Le(n)}}function Qe(e,t){var n=Le(t.value),r=Le(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ze(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Je(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function et(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Je(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tt,nt,rt=(nt=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((tt=tt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return nt(e,t)}))}:nt);function ot(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var it={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},st=["Webkit","ms","Moz","O"];function at(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||it.hasOwnProperty(e)&&it[e]?(""+t).trim():t+"px"}function lt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=at(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(it).forEach((function(e){st.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),it[t]=it[e]}))}));var ut=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ct(e,t){if(t){if(ut[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Q(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Q(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Q(62))}}function pt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dt=null;function ht(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ft=null,gt=null,vt=null;function yt(e){if(e=ui(e)){if("function"!=typeof ft)throw Error(Q(280));var t=e.stateNode;t&&(t=pi(t),ft(e.stateNode,e.type,t))}}function mt(e){gt?vt?vt.push(e):vt=[e]:gt=e}function Ct(){if(gt){var e=gt,t=vt;if(vt=gt=null,yt(e),t)for(e=0;e<t.length;e++)yt(t[e])}}function wt(e,t){return e(t)}function Et(){}var bt=!1;function Rt(e,t,n){if(bt)return e(t,n);bt=!0;try{return wt(e,t,n)}finally{bt=!1,(null!==gt||null!==vt)&&(Et(),Ct())}}function _t(e,t){var n=e.stateNode;if(null===n)return null;var r=pi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Q(231,t,typeof n));return n}var St=!1;if(ne)try{var Ot={};Object.defineProperty(Ot,"passive",{get:function(){St=!0}}),window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch(nt){St=!1}function Pt(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Tt=!1,At=null,Dt=!1,Nt=null,It={onError:function(e){Tt=!0,At=e}};function Mt(e,t,n,r,o,i,s,a,l){Tt=!1,At=null,Pt.apply(It,arguments)}function Ft(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function xt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Lt(e){if(Ft(e)!==e)throw Error(Q(188))}function Gt(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ft(e)))throw Error(Q(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Lt(o),e;if(i===r)return Lt(o),t;i=i.sibling}throw Error(Q(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(Q(189))}}if(n.alternate!==r)throw Error(Q(190))}if(3!==n.tag)throw Error(Q(188));return n.stateNode.current===n?e:t}(e))?kt(e):null}function kt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=kt(e);if(null!==t)return t;e=e.sibling}return null}var Vt=X.unstable_scheduleCallback,Ht=X.unstable_cancelCallback,Wt=X.unstable_shouldYield,Bt=X.unstable_requestPaint,jt=X.unstable_now,Ut=X.unstable_getCurrentPriorityLevel,zt=X.unstable_ImmediatePriority,Kt=X.unstable_UserBlockingPriority,Yt=X.unstable_NormalPriority,qt=X.unstable_LowPriority,$t=X.unstable_IdlePriority,Xt=null,Qt=null;var Zt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Jt(e)/en|0)|0},Jt=Math.log,en=Math.LN2;var tn=64,nn=4194304;function rn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function on(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=rn(a):0!==(i&=s)&&(r=rn(i))}else 0!==(s=n&~o)?r=rn(s):0!==i&&(r=rn(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Zt(t)),r|=e[n],t&=~o;return r}function sn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:default:return-1}}function an(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ln(){var e=tn;return 0==(4194240&(tn<<=1))&&(tn=64),e}function un(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Zt(t)]=n}function pn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Zt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var dn=0;function hn(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var fn,gn,vn,yn,mn,Cn=!1,wn=[],En=null,bn=null,Rn=null,_n=new Map,Sn=new Map,On=[],Pn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Tn(e,t){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":bn=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":_n.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sn.delete(t.pointerId)}}function An(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=ui(t))&&gn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dn(e){var t=li(e.target);if(null!==t){var n=Ft(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=xt(n)))return e.blockedOn=t,void mn(e.priority,(function(){vn(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ui(n))&&gn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);dt=r,n.target.dispatchEvent(r),dt=null,t.shift()}return!0}function In(e,t,n){Nn(e)&&n.delete(t)}function Mn(){Cn=!1,null!==En&&Nn(En)&&(En=null),null!==bn&&Nn(bn)&&(bn=null),null!==Rn&&Nn(Rn)&&(Rn=null),_n.forEach(In),Sn.forEach(In)}function Fn(e,t){e.blockedOn===t&&(e.blockedOn=null,Cn||(Cn=!0,X.unstable_scheduleCallback(X.unstable_NormalPriority,Mn)))}function xn(e){function t(t){return Fn(t,e)}if(0<wn.length){Fn(wn[0],e);for(var n=1;n<wn.length;n++){var r=wn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==En&&Fn(En,e),null!==bn&&Fn(bn,e),null!==Rn&&Fn(Rn,e),_n.forEach(t),Sn.forEach(t),n=0;n<On.length;n++)(r=On[n]).blockedOn===e&&(r.blockedOn=null);for(;0<On.length&&null===(n=On[0]).blockedOn;)Dn(n),null===n.blockedOn&&On.shift()}var Ln=de.ReactCurrentBatchConfig,Gn=!0;function kn(e,t,n,r){var o=dn,i=Ln.transition;Ln.transition=null;try{dn=1,Hn(e,t,n,r)}finally{dn=o,Ln.transition=i}}function Vn(e,t,n,r){var o=dn,i=Ln.transition;Ln.transition=null;try{dn=4,Hn(e,t,n,r)}finally{dn=o,Ln.transition=i}}function Hn(e,t,n,r){if(Gn){var o=Bn(e,t,n,r);if(null===o)Fo(e,t,r,Wn,n),Tn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return En=An(En,e,t,n,r,o),!0;case"dragenter":return bn=An(bn,e,t,n,r,o),!0;case"mouseover":return Rn=An(Rn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return _n.set(i,An(_n.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Sn.set(i,An(Sn.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Tn(e,r),4&t&&-1<Pn.indexOf(e)){for(;null!==o;){var i=ui(o);if(null!==i&&fn(i),null===(i=Bn(e,t,n,r))&&Fo(e,t,r,Wn,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Fo(e,t,r,null,n)}}var Wn=null;function Bn(e,t,n,r){if(Wn=null,null!==(e=li(e=ht(r))))if(null===(t=Ft(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=xt(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wn=e,null}function jn(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ut()){case zt:return 1;case Kt:return 4;case Yt:case qt:return 16;case $t:return 536870912;default:return 16}default:return 16}}var Un=null,zn=null,Kn=null;function Yn(){if(Kn)return Kn;var e,t,n=zn,r=n.length,o="value"in Un?Un.value:Un.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Kn=o.slice(e,1<t?1-t:void 0)}function qn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function $n(){return!0}function Xn(){return!1}function Qn(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?$n:Xn,this.isPropagationStopped=Xn,this}return Ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=$n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=$n)},persist:function(){},isPersistent:$n}),t}var Zn,Jn,er,tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nr=Qn(tr),rr=Ae({},tr,{view:0,detail:0}),or=Qn(rr),ir=Ae({},rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==er&&(er&&"mousemove"===e.type?(Zn=e.screenX-er.screenX,Jn=e.screenY-er.screenY):Jn=Zn=0,er=e),Zn)},movementY:function(e){return"movementY"in e?e.movementY:Jn}}),sr=Qn(ir),ar=Qn(Ae({},ir,{dataTransfer:0})),lr=Qn(Ae({},rr,{relatedTarget:0})),ur=Qn(Ae({},tr,{animationName:0,elapsedTime:0,pseudoElement:0})),cr=Qn(Ae({},tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),pr=Qn(Ae({},tr,{data:0})),dr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fr[e])&&!!t[e]}function vr(){return gr}var yr=Qn(Ae({},rr,{key:function(e){if(e.key){var t=dr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vr,charCode:function(e){return"keypress"===e.type?qn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),mr=Qn(Ae({},ir,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cr=Qn(Ae({},rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vr})),wr=Qn(Ae({},tr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Er=Qn(Ae({},ir,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),br=[9,13,27,32],Rr=ne&&"CompositionEvent"in window,_r=null;ne&&"documentMode"in document&&(_r=document.documentMode);var Sr=ne&&"TextEvent"in window&&!_r,Or=ne&&(!Rr||_r&&8<_r&&11>=_r),Pr=String.fromCharCode(32),Tr=!1;function Ar(e,t){switch(e){case"keyup":return-1!==br.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Nr=!1;var Ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ir[e.type]:"textarea"===t}function Fr(e,t,n,r){mt(r),0<(t=Lo(t,"onChange")).length&&(n=new nr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var xr=null,Lr=null;function Gr(e){To(e,0)}function kr(e){if(Ve(ci(e)))return e}function Vr(e,t){if("change"===e)return t}var Hr=!1;if(ne){var Wr;if(ne){var Br="oninput"in document;if(!Br){var jr=document.createElement("div");jr.setAttribute("oninput","return;"),Br="function"==typeof jr.oninput}Wr=Br}else Wr=!1;Hr=Wr&&(!document.documentMode||9<document.documentMode)}function Ur(){xr&&(xr.detachEvent("onpropertychange",zr),Lr=xr=null)}function zr(e){if("value"===e.propertyName&&kr(Lr)){var t=[];Fr(t,Lr,e,ht(e)),Rt(Gr,t)}}function Kr(e,t,n){"focusin"===e?(Ur(),Lr=n,(xr=t).attachEvent("onpropertychange",zr)):"focusout"===e&&Ur()}function Yr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return kr(Lr)}function qr(e,t){if("click"===e)return kr(t)}function $r(e,t){if("input"===e||"change"===e)return kr(t)}var Xr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Qr(e,t){if(Xr(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(r=0;r<n.length;r++){var o=n[r];if(!re.call(t,o)||!Xr(e[o],t[o]))return!1}return!0}function Zr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jr(e,t){var n,r=Zr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zr(r)}}function eo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?eo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function to(){for(var e=window,t=He();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=He((e=t.contentWindow).document)}return t}function no(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ro(e){var t=to(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eo(n.ownerDocument.documentElement,n)){if(null!==r&&no(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jr(n,i);var s=Jr(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var oo=ne&&"documentMode"in document&&11>=document.documentMode,io=null,so=null,ao=null,lo=!1;function uo(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lo||null==io||io!==He(r)||("selectionStart"in(r=io)&&no(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ao&&Qr(ao,r)||(ao=r,0<(r=Lo(so,"onSelect")).length&&(t=new nr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=io)))}function co(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var po={animationend:co("Animation","AnimationEnd"),animationiteration:co("Animation","AnimationIteration"),animationstart:co("Animation","AnimationStart"),transitionend:co("Transition","TransitionEnd")},ho={},fo={};function go(e){if(ho[e])return ho[e];if(!po[e])return e;var t,n=po[e];for(t in n)if(n.hasOwnProperty(t)&&t in fo)return ho[e]=n[t];return e}ne&&(fo=document.createElement("div").style,"AnimationEvent"in window||(delete po.animationend.animation,delete po.animationiteration.animation,delete po.animationstart.animation),"TransitionEvent"in window||delete po.transitionend.transition);var vo=go("animationend"),yo=go("animationiteration"),mo=go("animationstart"),Co=go("transitionend"),wo=new Map,Eo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function bo(e,t){wo.set(e,t),ee(t,[e])}for(var Ro=0;Ro<Eo.length;Ro++){var _o=Eo[Ro];bo(_o.toLowerCase(),"on"+(_o[0].toUpperCase()+_o.slice(1)))}bo(vo,"onAnimationEnd"),bo(yo,"onAnimationIteration"),bo(mo,"onAnimationStart"),bo("dblclick","onDoubleClick"),bo("focusin","onFocus"),bo("focusout","onBlur"),bo(Co,"onTransitionEnd"),te("onMouseEnter",["mouseout","mouseover"]),te("onMouseLeave",["mouseout","mouseover"]),te("onPointerEnter",["pointerout","pointerover"]),te("onPointerLeave",["pointerout","pointerover"]),ee("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ee("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ee("onBeforeInput",["compositionend","keypress","textInput","paste"]),ee("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ee("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ee("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var So="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Oo=new Set("cancel close invalid load scroll toggle".split(" ").concat(So));function Po(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,a,l){if(Mt.apply(this,arguments),Tt){if(!Tt)throw Error(Q(198));var u=At;Tt=!1,At=null,Dt||(Dt=!0,Nt=u)}}(r,t,void 0,e),e.currentTarget=null}function To(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Po(o,a,u),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Po(o,a,u),i=l}}}if(Dt)throw e=Nt,Dt=!1,Nt=null,e}function Ao(e,t){var n=t[ii];void 0===n&&(n=t[ii]=new Set);var r=e+"__bubble";n.has(r)||(Mo(t,e,2,!1),n.add(r))}function Do(e,t,n){var r=0;t&&(r|=4),Mo(n,e,r,t)}var No="_reactListening"+Math.random().toString(36).slice(2);function Io(e){if(!e[No]){e[No]=!0,Z.forEach((function(t){"selectionchange"!==t&&(Oo.has(t)||Do(t,!1,e),Do(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[No]||(t[No]=!0,Do("selectionchange",!1,t))}}function Mo(e,t,n,r){switch(jn(t)){case 1:var o=kn;break;case 4:o=Vn;break;default:o=Hn}n=o.bind(null,t,n,e),o=void 0,!St||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Fo(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=li(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}Rt((function(){var r=i,o=ht(n),s=[];e:{var a=wo.get(e);if(void 0!==a){var l=nr,u=e;switch(e){case"keypress":if(0===qn(n))break e;case"keydown":case"keyup":l=yr;break;case"focusin":u="focus",l=lr;break;case"focusout":u="blur",l=lr;break;case"beforeblur":case"afterblur":l=lr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=sr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=ar;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Cr;break;case vo:case yo:case mo:l=ur;break;case Co:l=wr;break;case"scroll":l=or;break;case"wheel":l=Er;break;case"copy":case"cut":case"paste":l=cr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=mr}var c=0!=(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=r;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&(null!=(g=_t(f,d))&&c.push(xo(f,g,h)))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,o),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===dt||!(u=n.relatedTarget||n.fromElement)||!li(u)&&!u[oi])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?li(u):null)&&(u!==(p=Ft(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=sr,g="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=mr,g="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:ci(l),h=null==u?a:ci(u),(a=new c(g,f+"leave",l,n,o)).target=p,a.relatedTarget=h,g=null,li(o)===r&&((c=new c(d,f+"enter",u,n,o)).target=h,c.relatedTarget=p,g=c),p=g,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Go(h))f++;for(h=0,g=d;g;g=Go(g))h++;for(;0<f-h;)c=Go(c),f--;for(;0<h-f;)d=Go(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Go(c),d=Go(d)}c=null}else c=null;null!==l&&ko(s,a,l,c,!1),null!==u&&null!==p&&ko(s,p,u,c,!0)}if("select"===(l=(a=r?ci(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var v=Vr;else if(Mr(a))if(Hr)v=$r;else{v=Yr;var y=Kr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(v=qr);switch(v&&(v=v(e,r))?Fr(s,v,n,o):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&Ke(a,"number",a.value)),y=r?ci(r):window,e){case"focusin":(Mr(y)||"true"===y.contentEditable)&&(io=y,so=r,ao=null);break;case"focusout":ao=so=io=null;break;case"mousedown":lo=!0;break;case"contextmenu":case"mouseup":case"dragend":lo=!1,uo(s,n,o);break;case"selectionchange":if(oo)break;case"keydown":case"keyup":uo(s,n,o)}var m;if(Rr)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Nr?Ar(e,n)&&(C="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(C="onCompositionStart");C&&(Or&&"ko"!==n.locale&&(Nr||"onCompositionStart"!==C?"onCompositionEnd"===C&&Nr&&(m=Yn()):(zn="value"in(Un=o)?Un.value:Un.textContent,Nr=!0)),0<(y=Lo(r,C)).length&&(C=new pr(C,e,null,n,o),s.push({event:C,listeners:y}),m?C.data=m:null!==(m=Dr(n))&&(C.data=m))),(m=Sr?function(e,t){switch(e){case"compositionend":return Dr(t);case"keypress":return 32!==t.which?null:(Tr=!0,Pr);case"textInput":return(e=t.data)===Pr&&Tr?null:e;default:return null}}(e,n):function(e,t){if(Nr)return"compositionend"===e||!Rr&&Ar(e,t)?(e=Yn(),Kn=zn=Un=null,Nr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Or&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Lo(r,"onBeforeInput")).length&&(o=new pr("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=m))}To(s,t)}))}function xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lo(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=_t(e,n))&&r.unshift(xo(e,i,o)),null!=(i=_t(e,t))&&r.push(xo(e,i,o))),e=e.return}return r}function Go(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ko(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=_t(n,i))&&s.unshift(xo(n,l,a)):o||null!=(l=_t(n,i))&&s.push(xo(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Vo=/\r\n?/g,Ho=/\u0000|\uFFFD/g;function Wo(e){return("string"==typeof e?e:""+e).replace(Vo,"\n").replace(Ho,"")}function Bo(e,t,n){if(t=Wo(t),Wo(e)!==t&&n)throw Error(Q(425))}function jo(){}var Uo=null,zo=null;function Ko(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Yo="function"==typeof setTimeout?setTimeout:void 0,qo="function"==typeof clearTimeout?clearTimeout:void 0,$o="function"==typeof Promise?Promise:void 0,Xo="function"==typeof queueMicrotask?queueMicrotask:void 0!==$o?function(e){return $o.resolve(null).then(e).catch(Qo)}:Yo;function Qo(e){setTimeout((function(){throw e}))}function Zo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void xn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);xn(t)}function Jo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ei(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ti=Math.random().toString(36).slice(2),ni="__reactFiber$"+ti,ri="__reactProps$"+ti,oi="__reactContainer$"+ti,ii="__reactEvents$"+ti,si="__reactListeners$"+ti,ai="__reactHandles$"+ti;function li(e){var t=e[ni];if(t)return t;for(var n=e.parentNode;n;){if(t=n[oi]||n[ni]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ei(e);null!==e;){if(n=e[ni])return n;e=ei(e)}return t}n=(e=n).parentNode}return null}function ui(e){return!(e=e[ni]||e[oi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ci(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Q(33))}function pi(e){return e[ri]||null}var di=[],hi=-1;function fi(e){return{current:e}}function gi(e){0>hi||(e.current=di[hi],di[hi]=null,hi--)}function vi(e,t){hi++,di[hi]=e.current,e.current=t}var yi={},mi=fi(yi),Ci=fi(!1),wi=yi;function Ei(e,t){var n=e.type.contextTypes;if(!n)return yi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bi(e){return null!=(e=e.childContextTypes)}function Ri(){gi(Ci),gi(mi)}function _i(e,t,n){if(mi.current!==yi)throw Error(Q(168));vi(mi,t),vi(Ci,n)}function Si(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(Q(108,xe(e)||"Unknown",o));return Ae({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yi,wi=mi.current,vi(mi,e),vi(Ci,Ci.current),!0}function Pi(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=Si(e,t,wi),r.__reactInternalMemoizedMergedChildContext=e,gi(Ci),gi(mi),vi(mi,e)):gi(Ci),vi(Ci,n)}var Ti=null,Ai=!1,Di=!1;function Ni(e){null===Ti?Ti=[e]:Ti.push(e)}function Ii(){if(!Di&&null!==Ti){Di=!0;var e=0,t=dn;try{var n=Ti;for(dn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ti=null,Ai=!1}catch(o){throw null!==Ti&&(Ti=Ti.slice(e+1)),Vt(zt,Ii),o}finally{dn=t,Di=!1}}return null}var Mi=[],Fi=0,xi=null,Li=0,Gi=[],ki=0,Vi=null,Hi=1,Wi="";function Bi(e,t){Mi[Fi++]=Li,Mi[Fi++]=xi,xi=e,Li=t}function ji(e,t,n){Gi[ki++]=Hi,Gi[ki++]=Wi,Gi[ki++]=Vi,Vi=e;var r=Hi;e=Wi;var o=32-Zt(r)-1;r&=~(1<<o),n+=1;var i=32-Zt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Hi=1<<32-Zt(t)+o|n<<o|r,Wi=i+e}else Hi=1<<i|n<<o|r,Wi=e}function Ui(e){null!==e.return&&(Bi(e,1),ji(e,1,0))}function zi(e){for(;e===xi;)xi=Mi[--Fi],Mi[Fi]=null,Li=Mi[--Fi],Mi[Fi]=null;for(;e===Vi;)Vi=Gi[--ki],Gi[ki]=null,Wi=Gi[--ki],Gi[ki]=null,Hi=Gi[--ki],Gi[ki]=null}var Ki=null,Yi=null,qi=!1,$i=null;function Xi(e,t){var n=Cc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Qi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Ki=e,Yi=Jo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Ki=e,Yi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Vi?{id:Hi,overflow:Wi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Cc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Ki=e,Yi=null,!0);default:return!1}}function Zi(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Ji(e){if(qi){var t=Yi;if(t){var n=t;if(!Qi(e,t)){if(Zi(e))throw Error(Q(418));t=Jo(n.nextSibling);var r=Ki;t&&Qi(e,t)?Xi(r,n):(e.flags=-4097&e.flags|2,qi=!1,Ki=e)}}else{if(Zi(e))throw Error(Q(418));e.flags=-4097&e.flags|2,qi=!1,Ki=e}}}function es(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ki=e}function ts(e){if(e!==Ki)return!1;if(!qi)return es(e),qi=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Ko(e.type,e.memoizedProps)),t&&(t=Yi)){if(Zi(e))throw ns(),Error(Q(418));for(;t;)Xi(e,t),t=Jo(t.nextSibling)}if(es(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Yi=Jo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Yi=null}}else Yi=Ki?Jo(e.stateNode.nextSibling):null;return!0}function ns(){for(var e=Yi;e;)e=Jo(e.nextSibling)}function rs(){Yi=Ki=null,qi=!1}function os(e){null===$i?$i=[e]:$i.push(e)}var is=de.ReactCurrentBatchConfig;function ss(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Q(309));var r=n.stateNode}if(!r)throw Error(Q(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(Q(284));if(!n._owner)throw Error(Q(290,e))}return e}function as(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ls(e){return(0,e._init)(e._payload)}function us(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ec(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function a(e,t,n,r){return null===t||6!==t.tag?((t=Sc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===ge?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===_e&&ls(i)===t.type)?((r=o(t,n.props)).ref=ss(e,t,n),r.return=e,r):((r=bc(n.type,n.key,n.props,null,e.mode,r)).ref=ss(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Oc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Rc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Sc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case he:return(n=bc(t.type,t.key,t.props,null,e.mode,n)).ref=ss(e,null,t),n.return=e,n;case fe:return(t=Oc(t,e.mode,n)).return=e,t;case _e:return p(e,(0,t._init)(t._payload),n)}if(Ye(t)||Pe(t))return(t=Rc(t,e.mode,n,null)).return=e,t;as(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:a(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case he:return n.key===o?l(e,t,n,r):null;case fe:return n.key===o?u(e,t,n,r):null;case _e:return d(e,t,(o=n._init)(n._payload),r)}if(Ye(n)||Pe(n))return null!==o?null:c(e,t,n,r,null);as(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return a(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case he:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case fe:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _e:return h(e,t,n,(0,r._init)(r._payload),o)}if(Ye(r)||Pe(r))return c(t,e=e.get(n)||null,r,o,null);as(t,r)}return null}return function a(l,u,c,f){if("object"==typeof c&&null!==c&&c.type===ge&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case he:e:{for(var g=c.key,v=u;null!==v;){if(v.key===g){if((g=c.type)===ge){if(7===v.tag){n(l,v.sibling),(u=o(v,c.props.children)).return=l,l=u;break e}}else if(v.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===_e&&ls(g)===v.type){n(l,v.sibling),(u=o(v,c.props)).ref=ss(l,v,c),u.return=l,l=u;break e}n(l,v);break}t(l,v),v=v.sibling}c.type===ge?((u=Rc(c.props.children,l.mode,f,c.key)).return=l,l=u):((f=bc(c.type,c.key,c.props,null,l.mode,f)).ref=ss(l,u,c),f.return=l,l=f)}return s(l);case fe:e:{for(v=c.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(u=o(u,c.children||[])).return=l,l=u;break e}n(l,u);break}t(l,u),u=u.sibling}(u=Oc(c,l.mode,f)).return=l,l=u}return s(l);case _e:return a(l,u,(v=c._init)(c._payload),f)}if(Ye(c))return function(o,s,a,l){for(var u=null,c=null,f=s,g=s=0,v=null;null!==f&&g<a.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var y=d(o,f,a[g],l);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(o,f),s=i(y,s,g),null===c?u=y:c.sibling=y,c=y,f=v}if(g===a.length)return n(o,f),qi&&Bi(o,g),u;if(null===f){for(;g<a.length;g++)null!==(f=p(o,a[g],l))&&(s=i(f,s,g),null===c?u=f:c.sibling=f,c=f);return qi&&Bi(o,g),u}for(f=r(o,f);g<a.length;g++)null!==(v=h(f,o,g,a[g],l))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),s=i(v,s,g),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),qi&&Bi(o,g),u}(l,u,c,f);if(Pe(c))return function(o,s,a,l){var u=Pe(a);if("function"!=typeof u)throw Error(Q(150));if(null==(a=u.call(a)))throw Error(Q(151));for(var c=u=null,f=s,g=s=0,v=null,y=a.next();null!==f&&!y.done;g++,y=a.next()){f.index>g?(v=f,f=null):v=f.sibling;var m=d(o,f,y.value,l);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(o,f),s=i(m,s,g),null===c?u=m:c.sibling=m,c=m,f=v}if(y.done)return n(o,f),qi&&Bi(o,g),u;if(null===f){for(;!y.done;g++,y=a.next())null!==(y=p(o,y.value,l))&&(s=i(y,s,g),null===c?u=y:c.sibling=y,c=y);return qi&&Bi(o,g),u}for(f=r(o,f);!y.done;g++,y=a.next())null!==(y=h(f,o,g,y.value,l))&&(e&&null!==y.alternate&&f.delete(null===y.key?g:y.key),s=i(y,s,g),null===c?u=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),qi&&Bi(o,g),u}(l,u,c,f);as(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(u=o(u,c)).return=l,l=u):(n(l,u),(u=Sc(c,l.mode,f)).return=l,l=u),s(l)):n(l,u)}}var cs=us(!0),ps=us(!1),ds=fi(null),hs=null,fs=null,gs=null;function vs(){gs=fs=hs=null}function ys(e){var t=ds.current;gi(ds),e._currentValue=t}function ms(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Cs(e,t){hs=e,gs=fs=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ll=!0),e.firstContext=null)}function ws(e){var t=e._currentValue;if(gs!==e)if(e={context:e,memoizedValue:t,next:null},null===fs){if(null===hs)throw Error(Q(308));fs=e,hs.dependencies={lanes:0,firstContext:e}}else fs=fs.next=e;return t}var Es=null;function bs(e){null===Es?Es=[e]:Es.push(e)}function Rs(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,bs(t)):(n.next=o.next,o.next=n),t.interleaved=n,_s(e,r)}function _s(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ss=!1;function Os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ps(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ts(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function As(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&vu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_s(e,n)}return null===(o=r.interleaved)?(t.next=t,bs(r)):(t.next=o.next,o.next=t),r.interleaved=t,_s(e,n)}function Ds(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,pn(e,n)}}function Ns(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Is(e,t,n,r){var o=e.updateQueue;Ss=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&((a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,g=a;switch(d=t,h=n,g.tag){case 1:if("function"==typeof(f=g.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=g.payload)?f.call(h,p,d):f))break e;p=Ae({},p,d);break e;case 2:Ss=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);_u|=s,e.lanes=s,e.memoizedState=p}}function Ms(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(Q(191,o));o.call(r)}}}var Fs={},xs=fi(Fs),Ls=fi(Fs),Gs=fi(Fs);function ks(e){if(e===Fs)throw Error(Q(174));return e}function Vs(e,t){switch(vi(Gs,t),vi(Ls,e),vi(xs,Fs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:et(null,"");break;default:t=et(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}gi(xs),vi(xs,t)}function Hs(){gi(xs),gi(Ls),gi(Gs)}function Ws(e){ks(Gs.current);var t=ks(xs.current),n=et(t,e.type);t!==n&&(vi(Ls,e),vi(xs,n))}function Bs(e){Ls.current===e&&(gi(xs),gi(Ls))}var js=fi(0);function Us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zs=[];function Ks(){for(var e=0;e<zs.length;e++)zs[e]._workInProgressVersionPrimary=null;zs.length=0}var Ys=de.ReactCurrentDispatcher,qs=de.ReactCurrentBatchConfig,$s=0,Xs=null,Qs=null,Zs=null,Js=!1,ea=!1,ta=0,na=0;function ra(){throw Error(Q(321))}function oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xr(e[n],t[n]))return!1;return!0}function ia(e,t,n,r,o,i){if($s=i,Xs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ys.current=null===e||null===e.memoizedState?Ba:ja,e=n(r,o),ea){i=0;do{if(ea=!1,ta=0,25<=i)throw Error(Q(301));i+=1,Zs=Qs=null,t.updateQueue=null,Ys.current=Ua,e=n(r,o)}while(ea)}if(Ys.current=Wa,t=null!==Qs&&null!==Qs.next,$s=0,Zs=Qs=Xs=null,Js=!1,t)throw Error(Q(300));return e}function sa(){var e=0!==ta;return ta=0,e}function aa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zs?Xs.memoizedState=Zs=e:Zs=Zs.next=e,Zs}function la(){if(null===Qs){var e=Xs.alternate;e=null!==e?e.memoizedState:null}else e=Qs.next;var t=null===Zs?Xs.memoizedState:Zs.next;if(null!==t)Zs=t,Qs=e;else{if(null===e)throw Error(Q(310));e={memoizedState:(Qs=e).memoizedState,baseState:Qs.baseState,baseQueue:Qs.baseQueue,queue:Qs.queue,next:null},null===Zs?Xs.memoizedState=Zs=e:Zs=Zs.next=e}return Zs}function ua(e,t){return"function"==typeof t?t(e):t}function ca(e){var t=la(),n=t.queue;if(null===n)throw Error(Q(311));n.lastRenderedReducer=e;var r=Qs,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if(($s&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(a=l=p,s=r):l=l.next=p,Xs.lanes|=c,_u|=c}u=u.next}while(null!==u&&u!==i);null===l?s=r:l.next=a,Xr(r,t.memoizedState)||(ll=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Xs.lanes|=i,_u|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function pa(e){var t=la(),n=t.queue;if(null===n)throw Error(Q(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Xr(i,t.memoizedState)||(ll=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function da(){}function ha(e,t){var n=Xs,r=la(),o=t(),i=!Xr(r.memoizedState,o);if(i&&(r.memoizedState=o,ll=!0),r=r.queue,Sa(va.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Zs&&1&Zs.memoizedState.tag){if(n.flags|=2048,wa(9,ga.bind(null,n,r,o,t),void 0,null),null===yu)throw Error(Q(349));0!=(30&$s)||fa(n,t,o)}return o}function fa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Xs.updateQueue)?(t={lastEffect:null,stores:null},Xs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ga(e,t,n,r){t.value=n,t.getSnapshot=r,ya(t)&&ma(e)}function va(e,t,n){return n((function(){ya(t)&&ma(e)}))}function ya(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xr(e,n)}catch(r){return!0}}function ma(e){var t=_s(e,1);null!==t&&Uu(t,e,1,-1)}function Ca(e){var t=aa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,Xs,e),[t.memoizedState,e]}function wa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xs.updateQueue)?(t={lastEffect:null,stores:null},Xs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ea(){return la().memoizedState}function ba(e,t,n,r){var o=aa();Xs.flags|=e,o.memoizedState=wa(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var o=la();r=void 0===r?null:r;var i=void 0;if(null!==Qs){var s=Qs.memoizedState;if(i=s.destroy,null!==r&&oa(r,s.deps))return void(o.memoizedState=wa(t,n,i,r))}Xs.flags|=e,o.memoizedState=wa(1|t,n,i,r)}function _a(e,t){return ba(8390656,8,e,t)}function Sa(e,t){return Ra(2048,8,e,t)}function Oa(e,t){return Ra(4,2,e,t)}function Pa(e,t){return Ra(4,4,e,t)}function Ta(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Aa(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4,4,Ta.bind(null,t,e),n)}function Da(){}function Na(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ia(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ma(e,t,n){return 0==(21&$s)?(e.baseState&&(e.baseState=!1,ll=!0),e.memoizedState=n):(Xr(n,t)||(n=ln(),Xs.lanes|=n,_u|=n,e.baseState=!0),t)}function Fa(e,t){var n=dn;dn=0!==n&&4>n?n:4,e(!0);var r=qs.transition;qs.transition={};try{e(!1),t()}finally{dn=n,qs.transition=r}}function xa(){return la().memoizedState}function La(e,t,n){var r=ju(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ka(e))Va(t,n);else if(null!==(n=Rs(e,t,n,r))){Uu(n,e,r,Bu()),Ha(n,t,r)}}function Ga(e,t,n){var r=ju(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ka(e))Va(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Xr(a,s)){var l=t.interleaved;return null===l?(o.next=o,bs(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(u){}null!==(n=Rs(e,t,o,r))&&(Uu(n,e,r,o=Bu()),Ha(n,t,r))}}function ka(e){var t=e.alternate;return e===Xs||null!==t&&t===Xs}function Va(e,t){ea=Js=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ha(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,pn(e,n)}}var Wa={readContext:ws,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useInsertionEffect:ra,useLayoutEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useDeferredValue:ra,useTransition:ra,useMutableSource:ra,useSyncExternalStore:ra,useId:ra,unstable_isNewReconciler:!1},Ba={readContext:ws,useCallback:function(e,t){return aa().memoizedState=[e,void 0===t?null:t],e},useContext:ws,useEffect:_a,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ba(4194308,4,Ta.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=aa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=aa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=La.bind(null,Xs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},aa().memoizedState=e},useState:Ca,useDebugValue:Da,useDeferredValue:function(e){return aa().memoizedState=e},useTransition:function(){var e=Ca(!1),t=e[0];return e=Fa.bind(null,e[1]),aa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xs,o=aa();if(qi){if(void 0===n)throw Error(Q(407));n=n()}else{if(n=t(),null===yu)throw Error(Q(349));0!=(30&$s)||fa(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,_a(va.bind(null,r,i,e),[e]),r.flags|=2048,wa(9,ga.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=aa(),t=yu.identifierPrefix;if(qi){var n=Wi;t=":"+t+"R"+(n=(Hi&~(1<<32-Zt(Hi)-1)).toString(32)+n),0<(n=ta++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=na++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ja={readContext:ws,useCallback:Na,useContext:ws,useEffect:Sa,useImperativeHandle:Aa,useInsertionEffect:Oa,useLayoutEffect:Pa,useMemo:Ia,useReducer:ca,useRef:Ea,useState:function(){return ca(ua)},useDebugValue:Da,useDeferredValue:function(e){return Ma(la(),Qs.memoizedState,e)},useTransition:function(){return[ca(ua)[0],la().memoizedState]},useMutableSource:da,useSyncExternalStore:ha,useId:xa,unstable_isNewReconciler:!1},Ua={readContext:ws,useCallback:Na,useContext:ws,useEffect:Sa,useImperativeHandle:Aa,useInsertionEffect:Oa,useLayoutEffect:Pa,useMemo:Ia,useReducer:pa,useRef:Ea,useState:function(){return pa(ua)},useDebugValue:Da,useDeferredValue:function(e){var t=la();return null===Qs?t.memoizedState=e:Ma(t,Qs.memoizedState,e)},useTransition:function(){return[pa(ua)[0],la().memoizedState]},useMutableSource:da,useSyncExternalStore:ha,useId:xa,unstable_isNewReconciler:!1};function za(e,t){if(e&&e.defaultProps){for(var n in t=Ae({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ka(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ae({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ya={isMounted:function(e){return!!(e=e._reactInternals)&&Ft(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Bu(),o=ju(e),i=Ts(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=As(e,i,o))&&(Uu(t,e,o,r),Ds(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Bu(),o=ju(e),i=Ts(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=As(e,i,o))&&(Uu(t,e,o,r),Ds(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Bu(),r=ju(e),o=Ts(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=As(e,o,r))&&(Uu(t,e,r,n),Ds(t,e,r))}};function qa(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!Qr(n,r)||!Qr(o,i))}function $a(e,t,n){var r=!1,o=yi,i=t.contextType;return"object"==typeof i&&null!==i?i=ws(i):(o=bi(t)?wi:mi.current,i=(r=null!=(r=t.contextTypes))?Ei(e,o):yi),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ya,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Xa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ya.enqueueReplaceState(t,t.state,null)}function Qa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Os(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ws(i):(i=bi(t)?wi:mi.current,o.context=Ei(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ka(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ya.enqueueReplaceState(o,o.state,null),Is(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Za(e,t){try{var n="",r=t;do{n+=Me(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ja(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function el(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var tl="function"==typeof WeakMap?WeakMap:Map;function nl(e,t,n){(n=Ts(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Iu||(Iu=!0,Mu=r),el(0,t)},n}function rl(e,t,n){(n=Ts(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){el(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){el(0,t),"function"!=typeof r&&(null===Fu?Fu=new Set([this]):Fu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ol(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new tl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=hc.bind(null,e,t,n),t.then(e,e))}function il(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function sl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ts(-1,1)).tag=2,As(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var al=de.ReactCurrentOwner,ll=!1;function ul(e,t,n,r){t.child=null===e?ps(t,null,n,r):cs(t,e.child,n,r)}function cl(e,t,n,r,o){n=n.render;var i=t.ref;return Cs(t,o),r=ia(e,t,n,r,i,o),n=sa(),null===e||ll?(qi&&n&&Ui(t),t.flags|=1,ul(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Il(e,t,o))}function pl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||wc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=bc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,dl(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:Qr)(s,r)&&e.ref===t.ref)return Il(e,t,o)}return t.flags|=1,(e=Ec(i,r)).ref=t.ref,e.return=t,t.child=e}function dl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Qr(i,r)&&e.ref===t.ref){if(ll=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Il(e,t,o);0!=(131072&e.flags)&&(ll=!0)}}return gl(e,t,n,r,o)}function hl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},vi(Eu,wu),wu|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,vi(Eu,wu),wu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,vi(Eu,wu),wu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,vi(Eu,wu),wu|=r;return ul(e,t,o,n),t.child}function fl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gl(e,t,n,r,o){var i=bi(n)?wi:mi.current;return i=Ei(t,i),Cs(t,o),n=ia(e,t,n,r,i,o),r=sa(),null===e||ll?(qi&&r&&Ui(t),t.flags|=1,ul(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Il(e,t,o))}function vl(e,t,n,r,o){if(bi(n)){var i=!0;Oi(t)}else i=!1;if(Cs(t,o),null===t.stateNode)Nl(e,t),$a(t,n,r),Qa(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;"object"==typeof u&&null!==u?u=ws(u):u=Ei(t,u=bi(n)?wi:mi.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&Xa(t,s,r,u),Ss=!1;var d=t.memoizedState;s.state=d,Is(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Ci.current||Ss?("function"==typeof c&&(Ka(t,n,c,r),l=t.memoizedState),(a=Ss||qa(t,n,a,r,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ps(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:za(t.type,a),s.props=u,p=t.pendingProps,d=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=ws(l):l=Ei(t,l=bi(n)?wi:mi.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&Xa(t,s,r,l),Ss=!1,d=t.memoizedState,s.state=d,Is(t,r,s,o);var f=t.memoizedState;a!==p||d!==f||Ci.current||Ss?("function"==typeof h&&(Ka(t,n,h,r),f=t.memoizedState),(u=Ss||qa(t,n,u,r,d,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return yl(e,t,n,r,i,o)}function yl(e,t,n,r,o,i){fl(e,t);var s=0!=(128&t.flags);if(!r&&!s)return o&&Pi(t,n,!1),Il(e,t,i);r=t.stateNode,al.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=cs(t,e.child,null,i),t.child=cs(t,null,a,i)):ul(e,t,a,i),t.memoizedState=r.state,o&&Pi(t,n,!0),t.child}function ml(e){var t=e.stateNode;t.pendingContext?_i(0,t.pendingContext,t.pendingContext!==t.context):t.context&&_i(0,t.context,!1),Vs(e,t.containerInfo)}function Cl(e,t,n,r,o){return rs(),os(o),t.flags|=256,ul(e,t,n,r),t.child}var wl,El,bl,Rl={dehydrated:null,treeContext:null,retryLane:0};function _l(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sl(e,t,n){var r,o=t.pendingProps,i=js.current,s=!1,a=0!=(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),vi(js,1&i),null===e)return Ji(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,s?(o=t.mode,s=t.child,a={mode:"hidden",children:a},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=a):s=_c(a,o,0,null),e=Rc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=_l(n),t.memoizedState=Rl,e):Ol(t,a));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,s){if(n)return 256&t.flags?(t.flags&=-257,Pl(e,t,s,r=Ja(Error(Q(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=_c({mode:"visible",children:r.children},o,0,null),(i=Rc(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&cs(t,e.child,null,s),t.child.memoizedState=_l(s),t.memoizedState=Rl,i);if(0==(1&t.mode))return Pl(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var a=r.dgst;return r=a,Pl(e,t,s,r=Ja(i=Error(Q(419)),r,void 0))}if(a=0!=(s&e.childLanes),ll||a){if(null!==(r=yu)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,_s(e,o),Uu(r,e,o,-1))}return rc(),Pl(e,t,s,r=Ja(Error(Q(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=gc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Yi=Jo(o.nextSibling),Ki=t,qi=!0,$i=null,null!==e&&(Gi[ki++]=Hi,Gi[ki++]=Wi,Gi[ki++]=Vi,Hi=e.id,Wi=e.overflow,Vi=t),(t=Ol(t,r.children)).flags|=4096,t)}(e,t,a,o,r,i,n);if(s){s=o.fallback,a=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&a)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Ec(i,l)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Ec(r,s):(s=Rc(s,a,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,a=null===(a=e.child.memoizedState)?_l(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~n,t.memoizedState=Rl,o}return e=(s=e.child).sibling,o=Ec(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ol(e,t){return(t=_c({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Pl(e,t,n,r){return null!==r&&os(r),cs(t,e.child,null,n),(e=Ol(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ms(e.return,t,n)}function Al(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Dl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ul(e,t,r.children,n),0!=(2&(r=js.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Tl(e,n,t);else if(19===e.tag)Tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(vi(js,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Us(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Al(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Us(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Al(t,!0,n,null,i);break;case"together":Al(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_u|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Q(153));if(null!==t.child){for(n=Ec(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ec(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ml(e,t){if(!qi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xl(e,t,n){var r=t.pendingProps;switch(zi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fl(t),null;case 1:return bi(t.type)&&Ri(),Fl(t),null;case 3:return r=t.stateNode,Hs(),gi(Ci),gi(mi),Ks(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ts(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==$i&&(qu($i),$i=null))),Fl(t),null;case 5:Bs(t);var o=ks(Gs.current);if(n=t.type,null!==e&&null!=t.stateNode)El(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Q(166));return Fl(t),null}if(e=ks(xs.current),ts(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ni]=t,r[ri]=i,e=0!=(1&t.mode),n){case"dialog":Ao("cancel",r),Ao("close",r);break;case"iframe":case"object":case"embed":Ao("load",r);break;case"video":case"audio":for(o=0;o<So.length;o++)Ao(So[o],r);break;case"source":Ao("error",r);break;case"img":case"image":case"link":Ao("error",r),Ao("load",r);break;case"details":Ao("toggle",r);break;case"input":Be(r,i),Ao("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ao("invalid",r);break;case"textarea":Xe(r,i),Ao("invalid",r)}for(var s in ct(n,i),o=null,i)if(i.hasOwnProperty(s)){var a=i[s];"children"===s?"string"==typeof a?r.textContent!==a&&(!0!==i.suppressHydrationWarning&&Bo(r.textContent,a,e),o=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(!0!==i.suppressHydrationWarning&&Bo(r.textContent,a,e),o=["children",""+a]):J.hasOwnProperty(s)&&null!=a&&"onScroll"===s&&Ao("scroll",r)}switch(n){case"input":ke(r),ze(r,i,!0);break;case"textarea":ke(r),Ze(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=jo)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Je(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ni]=t,e[ri]=r,wl(e,t),t.stateNode=e;e:{switch(s=pt(n,r),n){case"dialog":Ao("cancel",e),Ao("close",e),o=r;break;case"iframe":case"object":case"embed":Ao("load",e),o=r;break;case"video":case"audio":for(o=0;o<So.length;o++)Ao(So[o],e);o=r;break;case"source":Ao("error",e),o=r;break;case"img":case"image":case"link":Ao("error",e),Ao("load",e),o=r;break;case"details":Ao("toggle",e),o=r;break;case"input":Be(e,r),o=We(e,r),Ao("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ae({},r,{value:void 0}),Ao("invalid",e);break;case"textarea":Xe(e,r),o=$e(e,r),Ao("invalid",e);break;default:o=r}for(i in ct(n,o),a=o)if(a.hasOwnProperty(i)){var l=a[i];"style"===i?lt(e,l):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&rt(e,l):"children"===i?"string"==typeof l?("textarea"!==n||""!==l)&&ot(e,l):"number"==typeof l&&ot(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(J.hasOwnProperty(i)?null!=l&&"onScroll"===i&&Ao("scroll",e):null!=l&&pe(e,i,l,s))}switch(n){case"input":ke(e),ze(e,r,!1);break;case"textarea":ke(e),Ze(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Le(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?qe(e,!!r.multiple,i,!1):null!=r.defaultValue&&qe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=jo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Fl(t),null;case 6:if(e&&null!=t.stateNode)bl(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Q(166));if(n=ks(Gs.current),ks(xs.current),ts(t)){if(r=t.stateNode,n=t.memoizedProps,r[ni]=t,(i=r.nodeValue!==n)&&null!==(e=Ki))switch(e.tag){case 3:Bo(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Bo(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ni]=t,t.stateNode=r}return Fl(t),null;case 13:if(gi(js),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(qi&&null!==Yi&&0!=(1&t.mode)&&0==(128&t.flags))ns(),rs(),t.flags|=98560,i=!1;else if(i=ts(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(Q(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(Q(317));i[ni]=t}else rs(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Fl(t),i=!1}else null!==$i&&(qu($i),$i=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&js.current)?0===bu&&(bu=3):rc())),null!==t.updateQueue&&(t.flags|=4),Fl(t),null);case 4:return Hs(),null===e&&Io(t.stateNode.containerInfo),Fl(t),null;case 10:return ys(t.type._context),Fl(t),null;case 17:return bi(t.type)&&Ri(),Fl(t),null;case 19:if(gi(js),null===(i=t.memoizedState))return Fl(t),null;if(r=0!=(128&t.flags),null===(s=i.rendering))if(r)Ml(i,!1);else{if(0!==bu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=Us(e))){for(t.flags|=128,Ml(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return vi(js,1&js.current|2),t.child}e=e.sibling}null!==i.tail&&jt()>Du&&(t.flags|=128,r=!0,Ml(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Us(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ml(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!qi)return Fl(t),null}else 2*jt()-i.renderingStartTime>Du&&1073741824!==n&&(t.flags|=128,r=!0,Ml(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=jt(),t.sibling=null,n=js.current,vi(js,r?1&n|2:1&n),t):(Fl(t),null);case 22:case 23:return Ju(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&wu)&&(Fl(t),6&t.subtreeFlags&&(t.flags|=8192)):Fl(t),null;case 24:case 25:return null}throw Error(Q(156,t.tag))}function Ll(e,t){switch(zi(t),t.tag){case 1:return bi(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Hs(),gi(Ci),gi(mi),Ks(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Bs(t),null;case 13:if(gi(js),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Q(340));rs()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return gi(js),null;case 4:return Hs(),null;case 10:return ys(t.type._context),null;case 22:case 23:return Ju(),null;case 24:default:return null}}wl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},El=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ks(xs.current);var i,s=null;switch(n){case"input":o=We(e,o),r=We(e,r),s=[];break;case"select":o=Ae({},o,{value:void 0}),r=Ae({},r,{value:void 0}),s=[];break;case"textarea":o=$e(e,o),r=$e(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=jo)}for(u in ct(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(J.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(null!=l||null!=a))if("style"===u)if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,a=a?a.__html:void 0,null!=l&&a!==l&&(s=s||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(J.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Ao("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},bl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,kl=!1,Vl="function"==typeof WeakSet?WeakSet:Set,Hl=null;function Wl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){dc(e,t,r)}else n.current=null}function Bl(e,t,n){try{n()}catch(r){dc(e,t,r)}}var jl=!1;function Ul(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Bl(t,n,i)}o=o.next}while(o!==r)}}function zl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kl(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}"function"==typeof t?t(e):t.current=e}}function Yl(e){var t=e.alternate;null!==t&&(e.alternate=null,Yl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ni],delete t[ri],delete t[ii],delete t[si],delete t[ai])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ql(e){return 5===e.tag||3===e.tag||4===e.tag}function $l(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ql(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Xl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=jo));else if(4!==r&&null!==(e=e.child))for(Xl(e,t,n),e=e.sibling;null!==e;)Xl(e,t,n),e=e.sibling}function Ql(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ql(e,t,n),e=e.sibling;null!==e;)Ql(e,t,n),e=e.sibling}var Zl=null,Jl=!1;function eu(e,t,n){for(n=n.child;null!==n;)tu(e,t,n),n=n.sibling}function tu(e,t,n){if(Qt&&"function"==typeof Qt.onCommitFiberUnmount)try{Qt.onCommitFiberUnmount(Xt,n)}catch(a){}switch(n.tag){case 5:kl||Wl(n,t);case 6:var r=Zl,o=Jl;Zl=null,eu(e,t,n),Jl=o,null!==(Zl=r)&&(Jl?(e=Zl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Zl.removeChild(n.stateNode));break;case 18:null!==Zl&&(Jl?(e=Zl,n=n.stateNode,8===e.nodeType?Zo(e.parentNode,n):1===e.nodeType&&Zo(e,n),xn(e)):Zo(Zl,n.stateNode));break;case 4:r=Zl,o=Jl,Zl=n.stateNode.containerInfo,Jl=!0,eu(e,t,n),Zl=r,Jl=o;break;case 0:case 11:case 14:case 15:if(!kl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(0!=(2&i)||0!=(4&i))&&Bl(n,t,s),o=o.next}while(o!==r)}eu(e,t,n);break;case 1:if(!kl&&(Wl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){dc(n,t,a)}eu(e,t,n);break;case 21:eu(e,t,n);break;case 22:1&n.mode?(kl=(r=kl)||null!==n.memoizedState,eu(e,t,n),kl=r):eu(e,t,n);break;default:eu(e,t,n)}}function nu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Vl),t.forEach((function(t){var r=vc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ru(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;null!==a;){switch(a.tag){case 5:Zl=a.stateNode,Jl=!1;break e;case 3:case 4:Zl=a.stateNode.containerInfo,Jl=!0;break e}a=a.return}if(null===Zl)throw Error(Q(160));tu(i,s,o),Zl=null,Jl=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(u){dc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ou(t,e),t=t.sibling}function ou(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ru(t,e),iu(e),4&r){try{Ul(3,e,e.return),zl(3,e)}catch(g){dc(e,e.return,g)}try{Ul(5,e,e.return)}catch(g){dc(e,e.return,g)}}break;case 1:ru(t,e),iu(e),512&r&&null!==n&&Wl(n,n.return);break;case 5:if(ru(t,e),iu(e),512&r&&null!==n&&Wl(n,n.return),32&e.flags){var o=e.stateNode;try{ot(o,"")}catch(g){dc(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===a&&"radio"===i.type&&null!=i.name&&je(o,i),pt(a,s);var u=pt(a,i);for(s=0;s<l.length;s+=2){var c=l[s],p=l[s+1];"style"===c?lt(o,p):"dangerouslySetInnerHTML"===c?rt(o,p):"children"===c?ot(o,p):pe(o,c,p,u)}switch(a){case"input":Ue(o,i);break;case"textarea":Qe(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?qe(o,!!i.multiple,h,!1):d!==!!i.multiple&&(null!=i.defaultValue?qe(o,!!i.multiple,i.defaultValue,!0):qe(o,!!i.multiple,i.multiple?[]:"",!1))}o[ri]=i}catch(g){dc(e,e.return,g)}}break;case 6:if(ru(t,e),iu(e),4&r){if(null===e.stateNode)throw Error(Q(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){dc(e,e.return,g)}}break;case 3:if(ru(t,e),iu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{xn(t.containerInfo)}catch(g){dc(e,e.return,g)}break;case 4:ru(t,e),iu(e);break;case 13:ru(t,e),iu(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Au=jt())),4&r&&nu(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(kl=(u=kl)||c,ru(t,e),kl=u):ru(t,e),iu(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(Hl=e,c=e.child;null!==c;){for(p=Hl=c;null!==Hl;){switch(h=(d=Hl).child,d.tag){case 0:case 11:case 14:case 15:Ul(4,d,d.return);break;case 1:Wl(d,d.return);var f=d.stateNode;if("function"==typeof f.componentWillUnmount){r=d,n=d.return;try{t=r,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(g){dc(r,n,g)}}break;case 5:Wl(d,d.return);break;case 22:if(null!==d.memoizedState){uu(p);continue}}null!==h?(h.return=d,Hl=h):uu(p)}c=c.sibling}e:for(c=null,p=e;;){if(5===p.tag){if(null===c){c=p;try{o=p.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(a=p.stateNode,s=null!=(l=p.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,a.style.display=at("display",s))}catch(g){dc(e,e.return,g)}}}else if(6===p.tag){if(null===c)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){dc(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;c===p&&(c=null),p=p.return}c===p&&(c=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ru(t,e),iu(e),4&r&&nu(e);break;case 21:break;default:ru(t,e),iu(e)}}function iu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ql(n)){var r=n;break e}n=n.return}throw Error(Q(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ot(o,""),r.flags&=-33),Ql(e,$l(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Xl(e,$l(e),i);break;default:throw Error(Q(161))}}catch(s){dc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function su(e,t,n){Hl=e,au(e)}function au(e,t,n){for(var r=0!=(1&e.mode);null!==Hl;){var o=Hl,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Gl;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||kl;a=Gl;var u=kl;if(Gl=s,(kl=l)&&!u)for(Hl=o;null!==Hl;)l=(s=Hl).child,22===s.tag&&null!==s.memoizedState?cu(o):null!==l?(l.return=s,Hl=l):cu(o);for(;null!==i;)Hl=i,au(i),i=i.sibling;Hl=o,Gl=a,kl=u}lu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Hl=i):lu(e)}}function lu(e){for(;null!==Hl;){var t=Hl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:kl||zl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!kl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:za(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ms(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ms(t,s,n)}break;case 5:var a=t.stateNode;if(null===n&&4&t.flags){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var p=c.dehydrated;null!==p&&xn(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}kl||512&t.flags&&Kl(t)}catch(d){dc(t,t.return,d)}}if(t===e){Hl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Hl=n;break}Hl=t.return}}function uu(e){for(;null!==Hl;){var t=Hl;if(t===e){Hl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Hl=n;break}Hl=t.return}}function cu(e){for(;null!==Hl;){var t=Hl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{zl(4,t)}catch(l){dc(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){dc(t,o,l)}}var i=t.return;try{Kl(t)}catch(l){dc(t,i,l)}break;case 5:var s=t.return;try{Kl(t)}catch(l){dc(t,s,l)}}}catch(l){dc(t,t.return,l)}if(t===e){Hl=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Hl=a;break}Hl=t.return}}var pu,du=Math.ceil,hu=de.ReactCurrentDispatcher,fu=de.ReactCurrentOwner,gu=de.ReactCurrentBatchConfig,vu=0,yu=null,mu=null,Cu=0,wu=0,Eu=fi(0),bu=0,Ru=null,_u=0,Su=0,Ou=0,Pu=null,Tu=null,Au=0,Du=1/0,Nu=null,Iu=!1,Mu=null,Fu=null,xu=!1,Lu=null,Gu=0,ku=0,Vu=null,Hu=-1,Wu=0;function Bu(){return 0!=(6&vu)?jt():-1!==Hu?Hu:Hu=jt()}function ju(e){return 0==(1&e.mode)?1:0!=(2&vu)&&0!==Cu?Cu&-Cu:null!==is.transition?(0===Wu&&(Wu=ln()),Wu):0!==(e=dn)?e:e=void 0===(e=window.event)?16:jn(e.type)}function Uu(e,t,n,r){if(50<ku)throw ku=0,Vu=null,Error(Q(185));cn(e,n,r),0!=(2&vu)&&e===yu||(e===yu&&(0==(2&vu)&&(Su|=n),4===bu&&$u(e,Cu)),zu(e,r),1===n&&0===vu&&0==(1&t.mode)&&(Du=jt()+500,Ai&&Ii()))}function zu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Zt(i),a=1<<s,l=o[s];-1===l?0!=(a&n)&&0==(a&r)||(o[s]=sn(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=on(e,e===yu?Cu:0);if(0===r)null!==n&&Ht(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ht(n),1===t)0===e.tag?function(e){Ai=!0,Ni(e)}(Xu.bind(null,e)):Ni(Xu.bind(null,e)),Xo((function(){0==(6&vu)&&Ii()})),n=null;else{switch(hn(r)){case 1:n=zt;break;case 4:n=Kt;break;case 16:n=Yt;break;case 536870912:n=$t;break;default:n=Yt}n=yc(n,Ku.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ku(e,t){if(Hu=-1,Wu=0,0!=(6&vu))throw Error(Q(327));var n=e.callbackNode;if(cc()&&e.callbackNode!==n)return null;var r=on(e,e===yu?Cu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=oc(e,r);else{t=r;var o=vu;vu|=2;var i=nc();for(yu===e&&Cu===t||(Nu=null,Du=jt()+500,ec(e,t));;)try{sc();break}catch(a){tc(e,a)}vs(),hu.current=i,vu=o,null!==mu?t=0:(yu=null,Cu=0,t=bu)}if(0!==t){if(2===t&&(0!==(o=an(e))&&(r=o,t=Yu(e,o))),1===t)throw n=Ru,ec(e,0),$u(e,r),zu(e,jt()),n;if(6===t)$u(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Xr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=oc(e,r))&&(0!==(i=an(e))&&(r=i,t=Yu(e,i))),1===t))throw n=Ru,ec(e,0),$u(e,r),zu(e,jt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Q(345));case 2:uc(e,Tu,Nu);break;case 3:if($u(e,r),(130023424&r)===r&&10<(t=Au+500-jt())){if(0!==on(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Bu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Yo(uc.bind(null,e,Tu,Nu),t);break}uc(e,Tu,Nu);break;case 4:if($u(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Zt(r);i=1<<s,(s=t[s])>o&&(o=s),r&=~i}if(r=o,10<(r=(120>(r=jt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*du(r/1960))-r)){e.timeoutHandle=Yo(uc.bind(null,e,Tu,Nu),r);break}uc(e,Tu,Nu);break;case 5:uc(e,Tu,Nu);break;default:throw Error(Q(329))}}}return zu(e,jt()),e.callbackNode===n?Ku.bind(null,e):null}function Yu(e,t){var n=Pu;return e.current.memoizedState.isDehydrated&&(ec(e,t).flags|=256),2!==(e=oc(e,t))&&(t=Tu,Tu=n,null!==t&&qu(t)),e}function qu(e){null===Tu?Tu=e:Tu.push.apply(Tu,e)}function $u(e,t){for(t&=~Ou,t&=~Su,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Zt(t),r=1<<n;e[n]=-1,t&=~r}}function Xu(e){if(0!=(6&vu))throw Error(Q(327));cc();var t=on(e,0);if(0==(1&t))return zu(e,jt()),null;var n=oc(e,t);if(0!==e.tag&&2===n){var r=an(e);0!==r&&(t=r,n=Yu(e,r))}if(1===n)throw n=Ru,ec(e,0),$u(e,t),zu(e,jt()),n;if(6===n)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,uc(e,Tu,Nu),zu(e,jt()),null}function Qu(e,t){var n=vu;vu|=1;try{return e(t)}finally{0===(vu=n)&&(Du=jt()+500,Ai&&Ii())}}function Zu(e){null!==Lu&&0===Lu.tag&&0==(6&vu)&&cc();var t=vu;vu|=1;var n=gu.transition,r=dn;try{if(gu.transition=null,dn=1,e)return e()}finally{dn=r,gu.transition=n,0==(6&(vu=t))&&Ii()}}function Ju(){wu=Eu.current,gi(Eu)}function ec(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,qo(n)),null!==mu)for(n=mu.return;null!==n;){var r=n;switch(zi(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ri();break;case 3:Hs(),gi(Ci),gi(mi),Ks();break;case 5:Bs(r);break;case 4:Hs();break;case 13:case 19:gi(js);break;case 10:ys(r.type._context);break;case 22:case 23:Ju()}n=n.return}if(yu=e,mu=e=Ec(e.current,null),Cu=wu=t,bu=0,Ru=null,Ou=Su=_u=0,Tu=Pu=null,null!==Es){for(t=0;t<Es.length;t++)if(null!==(r=(n=Es[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}Es=null}return e}function tc(e,t){for(;;){var n=mu;try{if(vs(),Ys.current=Wa,Js){for(var r=Xs.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Js=!1}if($s=0,Zs=Qs=Xs=null,ea=!1,ta=0,fu.current=null,null===n||null===n.return){bu=1,Ru=t,mu=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Cu,a.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=a,p=c.tag;if(0==(1&c.mode)&&(0===p||11===p||15===p)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=il(s);if(null!==h){h.flags&=-257,sl(h,s,a,0,t),1&h.mode&&ol(i,u,t),l=u;var f=(t=h).updateQueue;if(null===f){var g=new Set;g.add(l),t.updateQueue=g}else f.add(l);break e}if(0==(1&t)){ol(i,u,t),rc();break e}l=Error(Q(426))}else if(qi&&1&a.mode){var v=il(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),sl(v,s,a,0,t),os(Za(l,a));break e}}i=l=Za(l,a),4!==bu&&(bu=2),null===Pu?Pu=[i]:Pu.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ns(i,nl(0,l,t));break e;case 1:a=l;var y=i.type,m=i.stateNode;if(0==(128&i.flags)&&("function"==typeof y.getDerivedStateFromError||null!==m&&"function"==typeof m.componentDidCatch&&(null===Fu||!Fu.has(m)))){i.flags|=65536,t&=-t,i.lanes|=t,Ns(i,rl(i,a,t));break e}}i=i.return}while(null!==i)}lc(n)}catch(C){t=C,mu===n&&null!==n&&(mu=n=n.return);continue}break}}function nc(){var e=hu.current;return hu.current=Wa,null===e?Wa:e}function rc(){0!==bu&&3!==bu&&2!==bu||(bu=4),null===yu||0==(268435455&_u)&&0==(268435455&Su)||$u(yu,Cu)}function oc(e,t){var n=vu;vu|=2;var r=nc();for(yu===e&&Cu===t||(Nu=null,ec(e,t));;)try{ic();break}catch(o){tc(e,o)}if(vs(),vu=n,hu.current=r,null!==mu)throw Error(Q(261));return yu=null,Cu=0,bu}function ic(){for(;null!==mu;)ac(mu)}function sc(){for(;null!==mu&&!Wt();)ac(mu)}function ac(e){var t=pu(e.alternate,e,wu);e.memoizedProps=e.pendingProps,null===t?lc(e):mu=t,fu.current=null}function lc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=xl(n,t,wu)))return void(mu=n)}else{if(null!==(n=Ll(n,t)))return n.flags&=32767,void(mu=n);if(null===e)return bu=6,void(mu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(mu=t);mu=t=e}while(null!==t);0===bu&&(bu=5)}function uc(e,t,n){var r=dn,o=gu.transition;try{gu.transition=null,dn=1,function(e,t,n,r){do{cc()}while(null!==Lu);if(0!=(6&vu))throw Error(Q(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Q(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Zt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===yu&&(mu=yu=null,Cu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||xu||(xu=!0,yc(Yt,(function(){return cc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=gu.transition,gu.transition=null;var s=dn;dn=1;var a=vu;vu|=4,fu.current=null,function(e,t){if(Uo=Gn,no(e=to())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,p=e,d=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(a=s+o),p!==i||0!==r&&3!==p.nodeType||(l=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)d=p,p=h;for(;;){if(p===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++c===r&&(l=s),null!==(h=p.nextSibling))break;d=(p=d).parentNode}p=h}n=-1===a||-1===l?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(zo={focusedElem:e,selectionRange:n},Gn=!1,Hl=t;null!==Hl;)if(e=(t=Hl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Hl=e;else for(;null!==Hl;){t=Hl;try{var f=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:break;case 1:if(null!==f){var g=f.memoizedProps,v=f.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:za(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var C=t.stateNode.containerInfo;1===C.nodeType?C.textContent="":9===C.nodeType&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(w){dc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Hl=e;break}Hl=t.return}f=jl,jl=!1}(e,n),ou(n,e),ro(zo),Gn=!!Uo,zo=Uo=null,e.current=n,su(n),Bt(),vu=a,dn=s,gu.transition=i}else e.current=n;if(xu&&(xu=!1,Lu=e,Gu=o),0===(i=e.pendingLanes)&&(Fu=null),function(e){if(Qt&&"function"==typeof Qt.onCommitFiberRoot)try{Qt.onCommitFiberRoot(Xt,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),zu(e,jt()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Iu)throw Iu=!1,e=Mu,Mu=null,e;0!=(1&Gu)&&0!==e.tag&&cc(),0!=(1&(i=e.pendingLanes))?e===Vu?ku++:(ku=0,Vu=e):ku=0,Ii()}(e,t,n,r)}finally{gu.transition=o,dn=r}return null}function cc(){if(null!==Lu){var e=hn(Gu),t=gu.transition,n=dn;try{if(gu.transition=null,dn=16>e?16:e,null===Lu)var r=!1;else{if(e=Lu,Lu=null,Gu=0,0!=(6&vu))throw Error(Q(331));var o=vu;for(vu|=4,Hl=e.current;null!==Hl;){var i=Hl,s=i.child;if(0!=(16&Hl.flags)){var a=i.deletions;if(null!==a){for(var l=0;l<a.length;l++){var u=a[l];for(Hl=u;null!==Hl;){var c=Hl;switch(c.tag){case 0:case 11:case 15:Ul(8,c,i)}var p=c.child;if(null!==p)p.return=c,Hl=p;else for(;null!==Hl;){var d=(c=Hl).sibling,h=c.return;if(Yl(c),c===u){Hl=null;break}if(null!==d){d.return=h,Hl=d;break}Hl=h}}}var f=i.alternate;if(null!==f){var g=f.child;if(null!==g){f.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Hl=i}}if(0!=(2064&i.subtreeFlags)&&null!==s)s.return=i,Hl=s;else e:for(;null!==Hl;){if(0!=(2048&(i=Hl).flags))switch(i.tag){case 0:case 11:case 15:Ul(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Hl=y;break e}Hl=i.return}}var m=e.current;for(Hl=m;null!==Hl;){var C=(s=Hl).child;if(0!=(2064&s.subtreeFlags)&&null!==C)C.return=s,Hl=C;else e:for(s=m;null!==Hl;){if(0!=(2048&(a=Hl).flags))try{switch(a.tag){case 0:case 11:case 15:zl(9,a)}}catch(E){dc(a,a.return,E)}if(a===s){Hl=null;break e}var w=a.sibling;if(null!==w){w.return=a.return,Hl=w;break e}Hl=a.return}}if(vu=o,Ii(),Qt&&"function"==typeof Qt.onPostCommitFiberRoot)try{Qt.onPostCommitFiberRoot(Xt,e)}catch(E){}r=!0}return r}finally{dn=n,gu.transition=t}}return!1}function pc(e,t,n){e=As(e,t=nl(0,t=Za(n,t),1),1),t=Bu(),null!==e&&(cn(e,1,t),zu(e,t))}function dc(e,t,n){if(3===e.tag)pc(e,e,n);else for(;null!==t;){if(3===t.tag){pc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Fu||!Fu.has(r))){t=As(t,e=rl(t,e=Za(n,e),1),1),e=Bu(),null!==t&&(cn(t,1,e),zu(t,e));break}}t=t.return}}function hc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Bu(),e.pingedLanes|=e.suspendedLanes&n,yu===e&&(Cu&n)===n&&(4===bu||3===bu&&(130023424&Cu)===Cu&&500>jt()-Au?ec(e,0):Ou|=n),zu(e,t)}function fc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=nn,0==(130023424&(nn<<=1))&&(nn=4194304)));var n=Bu();null!==(e=_s(e,t))&&(cn(e,t,n),zu(e,n))}function gc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),fc(e,n)}function vc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Q(314))}null!==r&&r.delete(t),fc(e,n)}function yc(e,t){return Vt(e,t)}function mc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cc(e,t,n,r){return new mc(e,t,n,r)}function wc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ec(e,t){var n=e.alternate;return null===n?((n=Cc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bc(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)wc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ge:return Rc(n.children,o,i,t);case ve:s=8,o|=8;break;case ye:return(e=Cc(12,n,t,2|o)).elementType=ye,e.lanes=i,e;case Ee:return(e=Cc(13,n,t,o)).elementType=Ee,e.lanes=i,e;case be:return(e=Cc(19,n,t,o)).elementType=be,e.lanes=i,e;case Se:return _c(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case me:s=10;break e;case Ce:s=9;break e;case we:s=11;break e;case Re:s=14;break e;case _e:s=16,r=null;break e}throw Error(Q(130,null==e?e:typeof e,""))}return(t=Cc(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Rc(e,t,n,r){return(e=Cc(7,e,r,t)).lanes=n,e}function _c(e,t,n,r){return(e=Cc(22,e,r,t)).elementType=Se,e.lanes=n,e.stateNode={isHidden:!1},e}function Sc(e,t,n){return(e=Cc(6,e,null,t)).lanes=n,e}function Oc(e,t,n){return(t=Cc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=un(0),this.expirationTimes=un(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=un(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tc(e,t,n,r,o,i,s,a,l){return e=new Pc(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Cc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Os(i),e}function Ac(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:fe,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Dc(e){if(!e)return yi;e:{if(Ft(e=e._reactInternals)!==e||1!==e.tag)throw Error(Q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Q(171))}if(1===e.tag){var n=e.type;if(bi(n))return Si(e,n,t)}return t}function Nc(e,t,n,r,o,i,s,a,l){return(e=Tc(n,r,!0,e,0,i,0,a,l)).context=Dc(null),n=e.current,(i=Ts(r=Bu(),o=ju(n))).callback=null!=t?t:null,As(n,i,o),e.current.lanes=o,cn(e,o,r),zu(e,r),e}function Ic(e,t,n,r){var o=t.current,i=Bu(),s=ju(o);return n=Dc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ts(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=As(o,t,s))&&(Uu(e,o,s,i),Ds(e,o,s)),s}function Mc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Fc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function xc(e,t){Fc(e,t),(e=e.alternate)&&Fc(e,t)}pu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ci.current)ll=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ll=!1,function(e,t,n){switch(t.tag){case 3:ml(t),rs();break;case 5:Ws(t);break;case 1:bi(t.type)&&Oi(t);break;case 4:Vs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;vi(ds,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(vi(js,1&js.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Sl(e,t,n):(vi(js,1&js.current),null!==(e=Il(e,t,n))?e.sibling:null);vi(js,1&js.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Dl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),vi(js,js.current),r)break;return null;case 22:case 23:return t.lanes=0,hl(e,t,n)}return Il(e,t,n)}(e,t,n);ll=0!=(131072&e.flags)}else ll=!1,qi&&0!=(1048576&t.flags)&&ji(t,Li,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nl(e,t),e=t.pendingProps;var o=Ei(t,mi.current);Cs(t,n),o=ia(null,t,r,e,o,n);var i=sa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(r)?(i=!0,Oi(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Os(t),o.updater=Ya,t.stateNode=o,o._reactInternals=t,Qa(t,r,e,n),t=yl(null,t,r,!0,i,n)):(t.tag=0,qi&&i&&Ui(t),ul(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return wc(e)?1:0;if(null!=e){if((e=e.$$typeof)===we)return 11;if(e===Re)return 14}return 2}(r),e=za(r,e),o){case 0:t=gl(null,t,r,e,n);break e;case 1:t=vl(null,t,r,e,n);break e;case 11:t=cl(null,t,r,e,n);break e;case 14:t=pl(null,t,r,za(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,gl(e,t,r,o=t.elementType===r?o:za(r,o),n);case 1:return r=t.type,o=t.pendingProps,vl(e,t,r,o=t.elementType===r?o:za(r,o),n);case 3:e:{if(ml(t),null===e)throw Error(Q(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ps(e,t),Is(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Cl(e,t,r,n,o=Za(Error(Q(423)),t));break e}if(r!==o){t=Cl(e,t,r,n,o=Za(Error(Q(424)),t));break e}for(Yi=Jo(t.stateNode.containerInfo.firstChild),Ki=t,qi=!0,$i=null,n=ps(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(rs(),r===o){t=Il(e,t,n);break e}ul(e,t,r,n)}t=t.child}return t;case 5:return Ws(t),null===e&&Ji(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Ko(r,o)?s=null:null!==i&&Ko(r,i)&&(t.flags|=32),fl(e,t),ul(e,t,s,n),t.child;case 6:return null===e&&Ji(t),null;case 13:return Sl(e,t,n);case 4:return Vs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=cs(t,null,r,n):ul(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,cl(e,t,r,o=t.elementType===r?o:za(r,o),n);case 7:return ul(e,t,t.pendingProps,n),t.child;case 8:case 12:return ul(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,vi(ds,r._currentValue),r._currentValue=s,null!==i)if(Xr(i.value,s)){if(i.children===o.children&&!Ci.current){t=Il(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var a=i.dependencies;if(null!==a){s=i.child;for(var l=a.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=Ts(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),ms(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(Q(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),ms(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ul(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Cs(t,n),r=r(o=ws(o)),t.flags|=1,ul(e,t,r,n),t.child;case 14:return o=za(r=t.type,t.pendingProps),pl(e,t,r,o=za(r.type,o),n);case 15:return dl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:za(r,o),Nl(e,t),t.tag=1,bi(r)?(e=!0,Oi(t)):e=!1,Cs(t,n),$a(t,r,o),Qa(t,r,o,n),yl(null,t,r,!0,e,n);case 19:return Dl(e,t,n);case 22:return hl(e,t,n)}throw Error(Q(156,t.tag))};var Lc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function kc(e){this._internalRoot=e}function Vc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Hc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Wc(){}function Bc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Mc(s);a.call(e)}}Ic(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Mc(s);i.call(e)}}var s=Nc(t,r,e,0,null,!1,0,"",Wc);return e._reactRootContainer=s,e[oi]=s.current,Io(8===e.nodeType?e.parentNode:e),Zu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Mc(l);a.call(e)}}var l=Tc(e,0,!1,null,0,!1,0,"",Wc);return e._reactRootContainer=l,e[oi]=l.current,Io(8===e.nodeType?e.parentNode:e),Zu((function(){Ic(t,l,n,r)})),l}(n,t,e,o,r);return Mc(s)}kc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Q(409));Ic(e,t,null,null)},kc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Zu((function(){Ic(null,e,null,null)})),t[oi]=null}},kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=yn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<On.length&&0!==t&&t<On[n].priority;n++);On.splice(n,0,e),0===n&&Dn(e)}},fn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=rn(t.pendingLanes);0!==n&&(pn(t,1|n),zu(t,jt()),0==(6&vu)&&(Du=jt()+500,Ii()))}break;case 13:Zu((function(){var t=_s(e,1);if(null!==t){var n=Bu();Uu(t,e,1,n)}})),xc(e,1)}},gn=function(e){if(13===e.tag){var t=_s(e,134217728);if(null!==t)Uu(t,e,134217728,Bu());xc(e,134217728)}},vn=function(e){if(13===e.tag){var t=ju(e),n=_s(e,t);if(null!==n)Uu(n,e,t,Bu());xc(e,t)}},yn=function(){return dn},mn=function(e,t){var n=dn;try{return dn=e,t()}finally{dn=n}},ft=function(e,t,n){switch(t){case"input":if(Ue(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=pi(r);if(!o)throw Error(Q(90));Ve(r),Ue(r,o)}}}break;case"textarea":Qe(e,n);break;case"select":null!=(t=n.value)&&qe(e,!!n.multiple,t,!1)}},wt=Qu,Et=Zu;var jc={usingClientEntryPoint:!1,Events:[ui,ci,pi,mt,Ct,Qu]},Uc={findFiberByHostInstance:li,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zc={bundleType:Uc.bundleType,version:Uc.version,rendererPackageName:Uc.rendererPackageName,rendererConfig:Uc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:de.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Gt(e))?null:e.stateNode},findFiberByHostInstance:Uc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kc.isDisabled&&Kc.supportsFiber)try{Xt=Kc.inject(zc),Qt=Kc}catch(nt){}}K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jc,K.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vc(t))throw Error(Q(200));return Ac(e,t,null,n)},K.createRoot=function(e,t){if(!Vc(e))throw Error(Q(299));var n=!1,r="",o=Lc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Tc(e,1,!1,null,0,n,0,r,o),e[oi]=t.current,Io(8===e.nodeType?e.parentNode:e),new Gc(t)},K.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Q(188));throw e=Object.keys(e).join(","),Error(Q(268,e))}return e=null===(e=Gt(t))?null:e.stateNode},K.flushSync=function(e){return Zu(e)},K.hydrate=function(e,t,n){if(!Hc(t))throw Error(Q(200));return Bc(null,e,t,!0,n)},K.hydrateRoot=function(e,t,n){if(!Vc(e))throw Error(Q(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Lc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Nc(t,null,e,1,null!=n?n:null,o,0,i,s),e[oi]=t.current,Io(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new kc(t)},K.render=function(e,t,n){if(!Hc(t))throw Error(Q(200));return Bc(null,e,t,!1,n)},K.unmountComponentAtNode=function(e){if(!Hc(e))throw Error(Q(40));return!!e._reactRootContainer&&(Zu((function(){Bc(null,null,e,!1,(function(){e._reactRootContainer=null,e[oi]=null}))})),!0)},K.unstable_batchedUpdates=Qu,K.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hc(n))throw Error(Q(200));if(null==e||void 0===e._reactInternals)throw Error(Q(38));return Bc(e,t,n,!1,r)},K.version="18.3.1-next-f1338f8080-20240426",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)}}(),z.exports=K;var Yc,qc=z.exports,$c=z.exports;Yc=$c.createRoot,$c.hydrateRoot;var Xc,Qc,Zc={exports:{}};
|
||
/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/function Jc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}Xc=Zc,Qc=Zc.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,i=32,s=64,l=128,u=256,c=1/0,p=9007199254740991,d=NaN,h=4294967295,f=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",s],["rearg",u]],g="[object Arguments]",v="[object Array]",y="[object Boolean]",m="[object Date]",C="[object Error]",w="[object Function]",E="[object GeneratorFunction]",b="[object Map]",R="[object Number]",_="[object Object]",S="[object Promise]",O="[object RegExp]",P="[object Set]",T="[object String]",A="[object Symbol]",D="[object WeakMap]",N="[object ArrayBuffer]",I="[object DataView]",M="[object Float32Array]",F="[object Float64Array]",x="[object Int8Array]",L="[object Int16Array]",G="[object Int32Array]",k="[object Uint8Array]",V="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",B=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(z.source),q=RegExp(K.source),$=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",be="\\u2700-\\u27bf",Re="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Te="[\\ud800-\\udfff]",Ae="["+Oe+"]",De="["+Ee+"]",Ne="\\d+",Ie="[\\u2700-\\u27bf]",Me="["+Re+"]",Fe="[^\\ud800-\\udfff"+Oe+Ne+be+Re+_e+"]",xe="\\ud83c[\\udffb-\\udfff]",Le="[^\\ud800-\\udfff]",Ge="(?:\\ud83c[\\udde6-\\uddff]){2}",ke="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+_e+"]",He="(?:"+Me+"|"+Fe+")",We="(?:"+Ve+"|"+Fe+")",Be="(?:['’](?:d|ll|m|re|s|t|ve))?",je="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+De+"|"+xe+")?",ze="[\\ufe0e\\ufe0f]?",Ke=ze+Ue+"(?:\\u200d(?:"+[Le,Ge,ke].join("|")+")"+ze+Ue+")*",Ye="(?:"+[Ie,Ge,ke].join("|")+")"+Ke,qe="(?:"+[Le+De+"?",De,Ge,ke,Te].join("|")+")",$e=RegExp(Pe,"g"),Xe=RegExp(De,"g"),Qe=RegExp(xe+"(?="+xe+")|"+qe+Ke,"g"),Ze=RegExp([Ve+"?"+Me+"+"+Be+"(?="+[Ae,Ve,"$"].join("|")+")",We+"+"+je+"(?="+[Ae,Ve+He,"$"].join("|")+")",Ve+"?"+He+"+"+Be,Ve+"+"+je,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Ye].join("|"),"g"),Je=RegExp("[\\u200d\\ud800-\\udfff"+Ee+Se+"]"),et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,rt={};rt[M]=rt[F]=rt[x]=rt[L]=rt[G]=rt[k]=rt[V]=rt[H]=rt[W]=!0,rt[g]=rt[v]=rt[N]=rt[y]=rt[I]=rt[m]=rt[C]=rt[w]=rt[b]=rt[R]=rt[_]=rt[O]=rt[P]=rt[T]=rt[D]=!1;var ot={};ot[g]=ot[v]=ot[N]=ot[I]=ot[y]=ot[m]=ot[M]=ot[F]=ot[x]=ot[L]=ot[G]=ot[b]=ot[R]=ot[_]=ot[O]=ot[P]=ot[T]=ot[A]=ot[k]=ot[V]=ot[H]=ot[W]=!0,ot[C]=ot[w]=ot[D]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,at=parseInt,lt="object"==typeof a&&a&&a.Object===Object&&a,ut="object"==typeof self&&self&&self.Object===Object&&self,ct=lt||ut||Function("return this")(),pt=Qc&&!Qc.nodeType&&Qc,dt=pt&&Xc&&!Xc.nodeType&&Xc,ht=dt&&dt.exports===pt,ft=ht&<.process,gt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||ft&&ft.binding&&ft.binding("util")}catch(t){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,mt=gt&>.isMap,Ct=gt&>.isRegExp,wt=gt&>.isSet,Et=gt&>.isTypedArray;function bt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Rt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Tt(e,t){return!(null==e||!e.length)&&kt(e,t,0)>-1}function At(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Nt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Mt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var xt=Bt("length");function Lt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Gt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function kt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Gt(e,Ht,n)}function Vt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ht(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:d}function Bt(t){return function(n){return null==n?e:n[t]}}function jt(t){return function(n){return null==t?e:t[n]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function zt(t,n){for(var r,o=-1,i=t.length;++o<i;){var s=n(t[o]);s!==e&&(r=r===e?s:r+s)}return r}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function qt(e){return function(t){return e(t)}}function $t(e,t){return Dt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&kt(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length;n--&&kt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var en=jt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=jt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+it[e]}function rn(e){return Je.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,o=e.length,i=0,s=[];++n<o;){var a=e[n];a!==t&&a!==r||(e[n]=r,s[i++]=n)}return s}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){return rn(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):xt(e)}function cn(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=jt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function a(oe){var Ee,be=(oe=null==oe?ct:hn.defaults(ct.Object(),oe,hn.pick(ct,tt))).Array,Re=oe.Date,_e=oe.Error,Se=oe.Function,Oe=oe.Math,Pe=oe.Object,Te=oe.RegExp,Ae=oe.String,De=oe.TypeError,Ne=be.prototype,Ie=Se.prototype,Me=Pe.prototype,Fe=oe["__core-js_shared__"],xe=Ie.toString,Le=Me.hasOwnProperty,Ge=0,ke=(Ee=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+Ee:"",Ve=Me.toString,He=xe.call(Pe),We=ct._,Be=Te("^"+xe.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=ht?oe.Buffer:e,Ue=oe.Symbol,ze=oe.Uint8Array,Ke=je?je.allocUnsafe:e,Ye=sn(Pe.getPrototypeOf,Pe),qe=Pe.create,Qe=Me.propertyIsEnumerable,Je=Ne.splice,it=Ue?Ue.isConcatSpreadable:e,lt=Ue?Ue.iterator:e,ut=Ue?Ue.toStringTag:e,pt=function(){try{var e=hi(Pe,"defineProperty");return e({},"",{}),e}catch(t){}}(),dt=oe.clearTimeout!==ct.clearTimeout&&oe.clearTimeout,ft=Re&&Re.now!==ct.Date.now&&Re.now,gt=oe.setTimeout!==ct.setTimeout&&oe.setTimeout,xt=Oe.ceil,jt=Oe.floor,fn=Pe.getOwnPropertySymbols,gn=je?je.isBuffer:e,vn=oe.isFinite,yn=Ne.join,mn=sn(Pe.keys,Pe),Cn=Oe.max,wn=Oe.min,En=Re.now,bn=oe.parseInt,Rn=Oe.random,_n=Ne.reverse,Sn=hi(oe,"DataView"),On=hi(oe,"Map"),Pn=hi(oe,"Promise"),Tn=hi(oe,"Set"),An=hi(oe,"WeakMap"),Dn=hi(Pe,"create"),Nn=An&&new An,In={},Mn=ji(Sn),Fn=ji(On),xn=ji(Pn),Ln=ji(Tn),Gn=ji(An),kn=Ue?Ue.prototype:e,Vn=kn?kn.valueOf:e,Hn=kn?kn.toString:e;function Wn(e){if(sa(e)&&!$s(e)&&!(e instanceof zn)){if(e instanceof Un)return e;if(Le.call(e,"__wrapped__"))return Ui(e)}return new Un(e)}var Bn=function(){function t(){}return function(n){if(!ia(n))return{};if(qe)return qe(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function jn(){}function Un(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Qn(e,t){var n=$s(e),r=!n&&qs(e),o=!n&&!r&&Js(e),i=!n&&!r&&!o&&fa(e),s=n||r||o||i,a=s?Kt(e.length,Ae):[],l=a.length;for(var u in e)!t&&!Le.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wi(u,l))||a.push(u);return a}function Zn(t){var n=t.length;return n?t[$r(0,n-1)]:e}function Jn(e,t){return Gi(No(e),lr(t,0,e.length))}function er(e){return Gi(No(e))}function tr(t,n,r){(r!==e&&!zs(t[n],r)||r===e&&!(n in t))&&sr(t,n,r)}function nr(t,n,r){var o=t[n];Le.call(t,n)&&zs(o,r)&&(r!==e||n in t)||sr(t,n,r)}function rr(e,t){for(var n=e.length;n--;)if(zs(e[n][0],t))return n;return-1}function or(e,t,n,r){return hr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Io(t,La(t),e)}function sr(e,t,n){"__proto__"==t&&pt?pt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(t,n){for(var r=-1,o=n.length,i=be(o),s=null==t;++r<o;)i[r]=s?e:Na(t,n[r]);return i}function lr(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function ur(t,n,r,o,i,s){var a,l=1&n,u=2&n,c=4&n;if(r&&(a=i?r(t,o,i,s):r(t)),a!==e)return a;if(!ia(t))return t;var p=$s(t);if(p){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return No(t,a)}else{var d=vi(t),h=d==w||d==E;if(Js(t))return So(t,l);if(d==_||d==g||h&&!i){if(a=u||h?{}:mi(t),!l)return u?function(e,t){return Io(e,gi(e),t)}(t,function(e,t){return e&&Io(t,Ga(t),e)}(a,t)):function(e,t){return Io(e,fi(e),t)}(t,ir(a,t))}else{if(!ot[d])return i?t:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case N:return Oo(e);case y:case m:return new o(+e);case I:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case F:case x:case L:case G:case k:case V:case H:case W:return Po(e,n);case b:return new o;case R:case T:return new o(e);case O:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new o;case A:return r=e,Vn?Pe(Vn.call(r)):{}}}(t,d,l)}}s||(s=new Xn);var f=s.get(t);if(f)return f;s.set(t,a),pa(t)?t.forEach((function(e){a.add(ur(e,n,r,e,t,s))})):aa(t)&&t.forEach((function(e,o){a.set(o,ur(e,n,r,o,t,s))}));var v=p?e:(c?u?si:ii:u?Ga:La)(t);return _t(v||t,(function(e,o){v&&(e=t[o=e]),nr(a,o,ur(e,n,r,o,t,s))})),a}function cr(t,n,r){var o=r.length;if(null==t)return!o;for(t=Pe(t);o--;){var i=r[o],s=n[i],a=t[i];if(a===e&&!(i in t)||!s(a))return!1}return!0}function pr(n,r,o){if("function"!=typeof n)throw new De(t);return Mi((function(){n.apply(e,o)}),r)}function dr(e,t,n,r){var o=-1,i=Tt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=Dt(t,qt(n))),r?(i=At,s=!1):t.length>=200&&(i=Xt,s=!1,t=new $n(t));e:for(;++o<a;){var c=e[o],p=null==n?c:n(c);if(c=r||0!==c?c:0,s&&p==p){for(var d=u;d--;)if(t[d]===p)continue e;l.push(c)}else i(t,p,r)||l.push(c)}return l}Wn.templateSettings={escape:$,evaluate:X,interpolate:Q,variable:"",imports:{_:Wn}},Wn.prototype=jn.prototype,Wn.prototype.constructor=Wn,Un.prototype=Bn(jn.prototype),Un.prototype.constructor=Un,zn.prototype=Bn(jn.prototype),zn.prototype.constructor=zn,Kn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Kn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kn.prototype.get=function(t){var r=this.__data__;if(Dn){var o=r[t];return o===n?e:o}return Le.call(r,t)?r[t]:e},Kn.prototype.has=function(t){var n=this.__data__;return Dn?n[t]!==e:Le.call(n,t)},Kn.prototype.set=function(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=Dn&&r===e?n:r,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0||(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,0))},Yn.prototype.get=function(t){var n=this.__data__,r=rr(n,t);return r<0?e:n[r][1]},Yn.prototype.has=function(e){return rr(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(On||Yn),string:new Kn}},qn.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return pi(this,e).get(e)},qn.prototype.has=function(e){return pi(this,e).has(e)},qn.prototype.set=function(e,t){var n=pi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,n),this},$n.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var hr=xo(Er),fr=xo(br,!0);function gr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(t,n,r){for(var o=-1,i=t.length;++o<i;){var s=t[o],a=n(s);if(null!=a&&(l===e?a==a&&!ha(a):r(a,l)))var l=a,u=s}return u}function yr(e,t){var n=[];return hr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=Ci),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?mr(a,t-1,n,r,o):Nt(o,a):r||(o[o.length]=a)}return o}var Cr=Lo(),wr=Lo(!0);function Er(e,t){return e&&Cr(e,t,La)}function br(e,t){return e&&wr(e,t,La)}function Rr(e,t){return Pt(t,(function(t){return na(e[t])}))}function _r(t,n){for(var r=0,o=(n=Eo(n,t)).length;null!=t&&r<o;)t=t[Bi(n[r++])];return r&&r==o?t:e}function Sr(e,t,n){var r=t(e);return $s(e)?r:Nt(r,n(e))}function Or(t){return null==t?t===e?"[object Undefined]":"[object Null]":ut&&ut in Pe(t)?function(t){var n=Le.call(t,ut),r=t[ut];try{t[ut]=e;var o=!0}catch(s){}var i=Ve.call(t);return o&&(n?t[ut]=r:delete t[ut]),i}(t):function(e){return Ve.call(e)}(t)}function Pr(e,t){return e>t}function Tr(e,t){return null!=e&&Le.call(e,t)}function Ar(e,t){return null!=e&&t in Pe(e)}function Dr(t,n,r){for(var o=r?At:Tt,i=t[0].length,s=t.length,a=s,l=be(s),u=1/0,c=[];a--;){var p=t[a];a&&n&&(p=Dt(p,qt(n))),u=wn(p.length,u),l[a]=!r&&(n||i>=120&&p.length>=120)?new $n(a&&p):e}p=t[0];var d=-1,h=l[0];e:for(;++d<i&&c.length<u;){var f=p[d],g=n?n(f):f;if(f=r||0!==f?f:0,!(h?Xt(h,g):o(c,g,r))){for(a=s;--a;){var v=l[a];if(!(v?Xt(v,g):o(t[a],g,r)))continue e}h&&h.push(g),c.push(f)}}return c}function Nr(t,n,r){var o=null==(t=Ai(t,n=Eo(n,t)))?t:t[Bi(ts(n))];return null==o?e:bt(o,t,r)}function Ir(e){return sa(e)&&Or(e)==g}function Mr(t,n,r,o,i){return t===n||(null==t||null==n||!sa(t)&&!sa(n)?t!=t&&n!=n:function(t,n,r,o,i,s){var a=$s(t),l=$s(n),u=a?v:vi(t),c=l?v:vi(n),p=(u=u==g?_:u)==_,d=(c=c==g?_:c)==_,h=u==c;if(h&&Js(t)){if(!Js(n))return!1;a=!0,p=!1}if(h&&!p)return s||(s=new Xn),a||fa(t)?ri(t,n,r,o,i,s):function(e,t,n,r,o,i,s){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new ze(e),new ze(t)));case y:case m:case R:return zs(+e,+t);case C:return e.name==t.name&&e.message==t.message;case O:case T:return e==t+"";case b:var a=on;case P:var l=1&r;if(a||(a=ln),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var c=ri(a(e),a(t),r,o,i,s);return s.delete(e),c;case A:if(Vn)return Vn.call(e)==Vn.call(t)}return!1}(t,n,u,r,o,i,s);if(!(1&r)){var f=p&&Le.call(t,"__wrapped__"),w=d&&Le.call(n,"__wrapped__");if(f||w){var E=f?t.value():t,S=w?n.value():n;return s||(s=new Xn),i(E,S,r,o,s)}}return!!h&&(s||(s=new Xn),function(t,n,r,o,i,s){var a=1&r,l=ii(t),u=l.length,c=ii(n).length;if(u!=c&&!a)return!1;for(var p=u;p--;){var d=l[p];if(!(a?d in n:Le.call(n,d)))return!1}var h=s.get(t),f=s.get(n);if(h&&f)return h==n&&f==t;var g=!0;s.set(t,n),s.set(n,t);for(var v=a;++p<u;){var y=t[d=l[p]],m=n[d];if(o)var C=a?o(m,y,d,n,t,s):o(y,m,d,t,n,s);if(!(C===e?y===m||i(y,m,r,o,s):C)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var w=t.constructor,E=n.constructor;w==E||!("constructor"in t)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(n),g}(t,n,r,o,i,s))}(t,n,r,o,Mr,i))}function Fr(t,n,r,o){var i=r.length,s=i,a=!o;if(null==t)return!s;for(t=Pe(t);i--;){var l=r[i];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<s;){var u=(l=r[i])[0],c=t[u],p=l[1];if(a&&l[2]){if(c===e&&!(u in t))return!1}else{var d=new Xn;if(o)var h=o(c,p,u,t,n,d);if(!(h===e?Mr(p,c,3,o,d):h))return!1}}return!0}function xr(e){return!(!ia(e)||(t=e,ke&&ke in t))&&(na(e)?Be:ge).test(ji(e));var t}function Lr(e){return"function"==typeof e?e:null==e?ll:"object"==typeof e?$s(e)?Br(e[0],e[1]):Wr(e):yl(e)}function Gr(e){if(!Si(e))return mn(e);var t=[];for(var n in Pe(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function kr(e){if(!ia(e))return function(e){var t=[];if(null!=e)for(var n in Pe(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}function Vr(e,t){return e<t}function Hr(e,t){var n=-1,r=Qs(e)?be(e.length):[];return hr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Wr(e){var t=di(e);return 1==t.length&&t[0][2]?Pi(t[0][0],t[0][1]):function(n){return n===e||Fr(n,e,t)}}function Br(t,n){return bi(t)&&Oi(n)?Pi(Bi(t),n):function(r){var o=Na(r,t);return o===e&&o===n?Ia(r,t):Mr(n,o,3)}}function jr(t,n,r,o,i){t!==n&&Cr(n,(function(s,a){if(i||(i=new Xn),ia(s))!function(t,n,r,o,i,s,a){var l=Ni(t,r),u=Ni(n,r),c=a.get(u);if(c)tr(t,r,c);else{var p=s?s(l,u,r+"",t,n,a):e,d=p===e;if(d){var h=$s(u),f=!h&&Js(u),g=!h&&!f&&fa(u);p=u,h||f||g?$s(l)?p=l:Zs(l)?p=No(l):f?(d=!1,p=So(u,!0)):g?(d=!1,p=Po(u,!0)):p=[]:ua(u)||qs(u)?(p=l,qs(l)?p=ba(l):ia(l)&&!na(l)||(p=mi(u))):d=!1}d&&(a.set(u,p),i(p,u,o,s,a),a.delete(u)),tr(t,r,p)}}(t,n,a,r,jr,o,i);else{var l=o?o(Ni(t,a),s,a+"",t,n,i):e;l===e&&(l=s),tr(t,a,l)}}),Ga)}function Ur(t,n){var r=t.length;if(r)return wi(n+=n<0?r:0,r)?t[n]:e}function zr(e,t,n){t=t.length?Dt(t,(function(e){return $s(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e})):[ll];var r=-1;return t=Dt(t,qt(ci())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Hr(e,(function(e,n,o){return{criteria:Dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;++r<s;){var l=To(o[r],i[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Kr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=_r(e,s);n(a,s)&&eo(i,Eo(s,e),a)}return i}function Yr(e,t,n,r){var o=r?Vt:kt,i=-1,s=t.length,a=e;for(e===t&&(t=No(t)),n&&(a=Dt(e,qt(n)));++i<s;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(a,c,l,r))>-1;)a!==e&&Je.call(a,l,1),Je.call(e,l,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Je.call(e,o,1):ho(e,o)}}return e}function $r(e,t){return e+jt(Rn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=jt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Fi(Ti(e,t,ll),e+"")}function Zr(e){return Zn(za(e))}function Jr(e,t){var n=za(e);return Gi(n,lr(t,0,n.length))}function eo(t,n,r,o){if(!ia(t))return t;for(var i=-1,s=(n=Eo(n,t)).length,a=s-1,l=t;null!=l&&++i<s;){var u=Bi(n[i]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var p=l[u];(c=o?o(p,u,l):e)===e&&(c=ia(p)?p:wi(n[i+1])?[]:{})}nr(l,u,c),l=l[u]}return t}var to=Nn?function(e,t){return Nn.set(e,t),e}:ll,no=pt?function(e,t){return pt(e,"toString",{configurable:!0,enumerable:!1,value:il(t),writable:!0})}:ll;function ro(e){return Gi(za(e))}function oo(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=be(o);++r<o;)i[r]=e[r+t];return i}function io(e,t){var n;return hr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!ha(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return ao(e,t,ll,n)}function ao(t,n,r,o){var i=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(n=r(n))!=n,l=null===n,u=ha(n),c=n===e;i<s;){var p=jt((i+s)/2),d=r(t[p]),h=d!==e,f=null===d,g=d==d,v=ha(d);if(a)var y=o||g;else y=c?g&&(o||h):l?g&&h&&(o||!f):u?g&&h&&!f&&(o||!v):!f&&!v&&(o?d<=n:d<n);y?i=p+1:s=p}return wn(s,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!zs(a,l)){var l=a;i[o++]=0===s?0:s}}return i}function uo(e){return"number"==typeof e?e:ha(e)?d:+e}function co(e){if("string"==typeof e)return e;if($s(e))return Dt(e,co)+"";if(ha(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=Tt,i=e.length,s=!0,a=[],l=a;if(n)s=!1,o=At;else if(i>=200){var u=t?null:Qo(e);if(u)return ln(u);s=!1,o=Xt,l=new $n}else l=t?[]:a;e:for(;++r<i;){var c=e[r],p=t?t(c):c;if(c=n||0!==c?c:0,s&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue e;t&&l.push(p),a.push(c)}else o(l,p,n)||(l!==a&&l.push(p),a.push(c))}return a}function ho(e,t){return null==(e=Ai(e,t=Eo(t,e)))||delete e[Bi(ts(t))]}function fo(e,t,n,r){return eo(e,t,n(_r(e,t)),r)}function go(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function vo(e,t){var n=e;return n instanceof zn&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function yo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=be(r);++o<r;)for(var s=e[o],a=-1;++a<r;)a!=o&&(i[o]=dr(i[o]||s,e[a],t,n));return po(mr(i,1),t,n)}function mo(t,n,r){for(var o=-1,i=t.length,s=n.length,a={};++o<i;){var l=o<s?n[o]:e;r(a,t[o],l)}return a}function Co(e){return Zs(e)?e:[]}function wo(e){return"function"==typeof e?e:ll}function Eo(e,t){return $s(e)?e:bi(e,t)?[e]:Wi(Ra(e))}var bo=Qr;function Ro(t,n,r){var o=t.length;return r=r===e?o:r,!n&&r>=o?t:oo(t,n,r)}var _o=dt||function(e){return ct.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Po(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(t,n){if(t!==n){var r=t!==e,o=null===t,i=t==t,s=ha(t),a=n!==e,l=null===n,u=n==n,c=ha(n);if(!l&&!c&&!s&&t>n||s&&a&&u&&!l&&!c||o&&a&&u||!r&&u||!i)return 1;if(!o&&!s&&!c&&t<n||c&&r&&i&&!o&&!s||l&&r&&i||!a&&i||!u)return-1}return 0}function Ao(e,t,n,r){for(var o=-1,i=e.length,s=n.length,a=-1,l=t.length,u=Cn(i-s,0),c=be(l+u),p=!r;++a<l;)c[a]=t[a];for(;++o<s;)(p||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[a++]=e[o++];return c}function Do(e,t,n,r){for(var o=-1,i=e.length,s=-1,a=n.length,l=-1,u=t.length,c=Cn(i-a,0),p=be(c+u),d=!r;++o<c;)p[o]=e[o];for(var h=o;++l<u;)p[h+l]=t[l];for(;++s<a;)(d||o<i)&&(p[h+n[s]]=e[o++]);return p}function No(e,t){var n=-1,r=e.length;for(t||(t=be(r));++n<r;)t[n]=e[n];return t}function Io(t,n,r,o){var i=!r;r||(r={});for(var s=-1,a=n.length;++s<a;){var l=n[s],u=o?o(r[l],t[l],l,r,t):e;u===e&&(u=t[l]),i?sr(r,l,u):nr(r,l,u)}return r}function Mo(e,t){return function(n,r){var o=$s(n)?Rt:or,i=t?t():{};return o(n,e,ci(r,2),i)}}function Fo(t){return Qr((function(n,r){var o=-1,i=r.length,s=i>1?r[i-1]:e,a=i>2?r[2]:e;for(s=t.length>3&&"function"==typeof s?(i--,s):e,a&&Ei(r[0],r[1],a)&&(s=i<3?e:s,i=1),n=Pe(n);++o<i;){var l=r[o];l&&t(n,l,o,s)}return n}))}function xo(e,t){return function(n,r){if(null==n)return n;if(!Qs(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Pe(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Pe(t),s=r(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===n(i[l],l,i))break}return t}}function Go(t){return function(n){var r=rn(n=Ra(n))?cn(n):e,o=r?r[0]:n.charAt(0),i=r?Ro(r,1).join(""):n.slice(1);return o[t]()+i}}function ko(e){return function(t){return It(nl(qa(t).replace($e,"")),e,"")}}function Vo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ia(r)?r:n}}function Ho(t){return function(n,r,o){var i=Pe(n);if(!Qs(n)){var s=ci(r,3);n=La(n),r=function(e){return s(i[e],e,i)}}var a=t(n,r,o);return a>-1?i[s?n[a]:a]:e}}function Wo(n){return oi((function(r){var o=r.length,i=o,s=Un.prototype.thru;for(n&&r.reverse();i--;){var a=r[i];if("function"!=typeof a)throw new De(t);if(s&&!l&&"wrapper"==li(a))var l=new Un([],!0)}for(i=l?i:o;++i<o;){var u=li(a=r[i]),c="wrapper"==u?ai(a):e;l=c&&Ri(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[li(c[0])].apply(l,c[3]):1==a.length&&Ri(a)?l[u]():l.thru(a)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&$s(t))return l.plant(t).value();for(var n=0,i=o?r[n].apply(this,e):t;++n<o;)i=r[n].call(this,i);return i}}))}function Bo(t,n,r,o,i,s,a,u,c,p){var d=n&l,h=1&n,f=2&n,g=24&n,v=512&n,y=f?e:Vo(t);return function e(){for(var l=arguments.length,m=be(l),C=l;C--;)m[C]=arguments[C];if(g)var w=ui(e),E=Jt(m,w);if(o&&(m=Ao(m,o,i,g)),s&&(m=Do(m,s,a,g)),l-=E,g&&l<p){var b=an(m,w);return $o(t,n,Bo,e.placeholder,r,m,b,u,c,p-l)}var R=h?r:this,_=f?R[t]:t;return l=m.length,u?m=Di(m,u):v&&l>1&&m.reverse(),d&&c<l&&(m.length=c),this&&this!==ct&&this instanceof e&&(_=y||Vo(_)),_.apply(R,m)}}function jo(e,t){return function(n,r){return function(e,t,n,r){return Er(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Uo(t,n){return function(r,o){var i;if(r===e&&o===e)return n;if(r!==e&&(i=r),o!==e){if(i===e)return o;"string"==typeof r||"string"==typeof o?(r=co(r),o=co(o)):(r=uo(r),o=uo(o)),i=t(r,o)}return i}}function zo(e){return oi((function(t){return t=Dt(t,qt(ci())),Qr((function(n){var r=this;return e(t,(function(e){return bt(e,r,n)}))}))}))}function Ko(t,n){var r=(n=n===e?" ":co(n)).length;if(r<2)return r?Xr(n,t):n;var o=Xr(n,xt(t/un(n)));return rn(n)?Ro(cn(o),0,t).join(""):o.slice(0,t)}function Yo(t){return function(n,r,o){return o&&"number"!=typeof o&&Ei(n,r,o)&&(r=o=e),n=ma(n),r===e?(r=n,n=0):r=ma(r),function(e,t,n,r){for(var o=-1,i=Cn(xt((t-e)/(n||1)),0),s=be(i);i--;)s[r?i:++o]=e,e+=n;return s}(n,r,o=o===e?n<r?1:-1:ma(o),t)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ea(t),n=Ea(n)),e(t,n)}}function $o(t,n,r,o,a,l,u,c,p,d){var h=8&n;n|=h?i:s,4&(n&=~(h?s:i))||(n&=-4);var f=[t,n,a,h?l:e,h?u:e,h?e:l,h?e:u,c,p,d],g=r.apply(e,f);return Ri(t)&&Ii(g,f),g.placeholder=o,xi(g,t,n)}function Xo(e){var t=Oe[e];return function(e,n){if(e=Ea(e),(n=null==n?0:wn(Ca(n),292))&&vn(e)){var r=(Ra(e)+"e").split("e");return+((r=(Ra(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=Tn&&1/ln(new Tn([,-0]))[1]==c?function(e){return new Tn(e)}:hl;function Zo(e){return function(t){var n=vi(t);return n==b?on(t):n==P?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(n,a,c,p,d,h,f,g){var v=2&a;if(!v&&"function"!=typeof n)throw new De(t);var y=p?p.length:0;if(y||(a&=-97,p=d=e),f=f===e?f:Cn(Ca(f),0),g=g===e?g:Ca(g),y-=d?d.length:0,a&s){var m=p,C=d;p=d=e}var w=v?e:ai(n),E=[n,a,c,p,d,m,C,h,f,g];if(w&&function(e,t){var n=e[1],o=t[1],i=n|o,s=i<131,a=o==l&&8==n||o==l&&n==u&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!s&&!a)return e;1&o&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var p=e[3];e[3]=p?Ao(p,c,t[4]):c,e[4]=p?an(e[3],r):t[4]}(c=t[5])&&(p=e[5],e[5]=p?Do(p,c,t[6]):c,e[6]=p?an(e[5],r):t[6]),(c=t[7])&&(e[7]=c),o&l&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(E,w),n=E[0],a=E[1],c=E[2],p=E[3],d=E[4],!(g=E[9]=E[9]===e?v?0:n.length:Cn(E[9]-y,0))&&24&a&&(a&=-25),a&&1!=a)b=8==a||a==o?function(t,n,r){var o=Vo(t);return function i(){for(var s=arguments.length,a=be(s),l=s,u=ui(i);l--;)a[l]=arguments[l];var c=s<3&&a[0]!==u&&a[s-1]!==u?[]:an(a,u);return(s-=c.length)<r?$o(t,n,Bo,i.placeholder,e,a,c,e,e,r-s):bt(this&&this!==ct&&this instanceof i?o:t,this,a)}}(n,a,g):a!=i&&33!=a||d.length?Bo.apply(e,E):function(e,t,n,r){var o=1&t,i=Vo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,u=r.length,c=be(u+a),p=this&&this!==ct&&this instanceof t?i:e;++l<u;)c[l]=r[l];for(;a--;)c[l++]=arguments[++s];return bt(p,o?n:this,c)}}(n,a,c,p);else var b=function(e,t,n){var r=1&t,o=Vo(e);return function t(){return(this&&this!==ct&&this instanceof t?o:e).apply(r?n:this,arguments)}}(n,a,c);return xi((w?to:Ii)(b,E),n,a)}function ei(t,n,r,o){return t===e||zs(t,Me[r])&&!Le.call(o,r)?n:t}function ti(t,n,r,o,i,s){return ia(t)&&ia(n)&&(s.set(n,t),jr(t,n,e,ti,s),s.delete(n)),t}function ni(t){return ua(t)?e:t}function ri(t,n,r,o,i,s){var a=1&r,l=t.length,u=n.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(t),p=s.get(n);if(c&&p)return c==n&&p==t;var d=-1,h=!0,f=2&r?new $n:e;for(s.set(t,n),s.set(n,t);++d<l;){var g=t[d],v=n[d];if(o)var y=a?o(v,g,d,n,t,s):o(g,v,d,t,n,s);if(y!==e){if(y)continue;h=!1;break}if(f){if(!Ft(n,(function(e,t){if(!Xt(f,t)&&(g===e||i(g,e,r,o,s)))return f.push(t)}))){h=!1;break}}else if(g!==v&&!i(g,v,r,o,s)){h=!1;break}}return s.delete(t),s.delete(n),h}function oi(t){return Fi(Ti(t,e,Xi),t+"")}function ii(e){return Sr(e,La,fi)}function si(e){return Sr(e,Ga,gi)}var ai=Nn?function(e){return Nn.get(e)}:hl;function li(e){for(var t=e.name+"",n=In[t],r=Le.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Le.call(Wn,"placeholder")?Wn:e).placeholder}function ci(){var e=Wn.iteratee||ul;return e=e===ul?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function pi(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function di(e){for(var t=La(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function hi(t,n){var r=function(t,n){return null==t?e:t[n]}(t,n);return xr(r)?r:e}var fi=fn?function(e){return null==e?[]:(e=Pe(e),Pt(fn(e),(function(t){return Qe.call(e,t)})))}:wl,gi=fn?function(e){for(var t=[];e;)Nt(t,fi(e)),e=Ye(e);return t}:wl,vi=Or;function yi(e,t,n){for(var r=-1,o=(t=Eo(t,e)).length,i=!1;++r<o;){var s=Bi(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&oa(o)&&wi(s,o)&&($s(e)||qs(e))}function mi(e){return"function"!=typeof e.constructor||Si(e)?{}:Bn(Ye(e))}function Ci(e){return $s(e)||qs(e)||!!(it&&e&&e[it])}function wi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function Ei(e,t,n){if(!ia(n))return!1;var r=typeof t;return!!("number"==r?Qs(n)&&wi(t,n.length):"string"==r&&t in n)&&zs(n[t],e)}function bi(e,t){if($s(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ha(e))||J.test(e)||!Z.test(e)||null!=t&&e in Pe(t)}function Ri(e){var t=li(e),n=Wn[t];if("function"!=typeof n||!(t in zn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(Sn&&vi(new Sn(new ArrayBuffer(1)))!=I||On&&vi(new On)!=b||Pn&&vi(Pn.resolve())!=S||Tn&&vi(new Tn)!=P||An&&vi(new An)!=D)&&(vi=function(t){var n=Or(t),r=n==_?t.constructor:e,o=r?ji(r):"";if(o)switch(o){case Mn:return I;case Fn:return b;case xn:return S;case Ln:return P;case Gn:return D}return n});var _i=Fe?na:El;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Oi(e){return e==e&&!ia(e)}function Pi(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in Pe(r))}}function Ti(t,n,r){return n=Cn(n===e?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=Cn(e.length-n,0),s=be(i);++o<i;)s[o]=e[n+o];o=-1;for(var a=be(n+1);++o<n;)a[o]=e[o];return a[n]=r(s),bt(t,this,a)}}function Ai(e,t){return t.length<2?e:_r(e,oo(t,0,-1))}function Di(t,n){for(var r=t.length,o=wn(n.length,r),i=No(t);o--;){var s=n[o];t[o]=wi(s,r)?i[s]:e}return t}function Ni(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Li(to),Mi=gt||function(e,t){return ct.setTimeout(e,t)},Fi=Li(no);function xi(e,t,n){var r=t+"";return Fi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(f,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Li(t){var n=0,r=0;return function(){var o=En(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Gi(t,n){var r=-1,o=t.length,i=o-1;for(n=n===e?o:n;++r<n;){var s=$r(r,i),a=t[s];t[s]=t[r],t[r]=a}return t.length=n,t}var ki,Vi,Hi,Wi=(ki=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ce,"$1"):n||e)})),t},Vi=Vs(ki,(function(e){return 500===Hi.size&&Hi.clear(),e})),Hi=Vi.cache,Vi);function Bi(e){if("string"==typeof e||ha(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ji(e){if(null!=e){try{return xe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ui(e){if(e instanceof zn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=No(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Qr((function(e,t){return Zs(e)?dr(e,mr(t,1,Zs,!0)):[]})),Ki=Qr((function(t,n){var r=ts(n);return Zs(r)&&(r=e),Zs(t)?dr(t,mr(n,1,Zs,!0),ci(r,2)):[]})),Yi=Qr((function(t,n){var r=ts(n);return Zs(r)&&(r=e),Zs(t)?dr(t,mr(n,1,Zs,!0),e,r):[]}));function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ca(n);return o<0&&(o=Cn(r+o,0)),Gt(e,ci(t,3),o)}function $i(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o-1;return r!==e&&(i=Ca(r),i=r<0?Cn(o+i,0):wn(i,o-1)),Gt(t,ci(n,3),i,!0)}function Xi(e){return null!=e&&e.length?mr(e,1):[]}function Qi(t){return t&&t.length?t[0]:e}var Zi=Qr((function(e){var t=Dt(e,Co);return t.length&&t[0]===e[0]?Dr(t):[]})),Ji=Qr((function(t){var n=ts(t),r=Dt(t,Co);return n===ts(r)?n=e:r.pop(),r.length&&r[0]===t[0]?Dr(r,ci(n,2)):[]})),es=Qr((function(t){var n=ts(t),r=Dt(t,Co);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?Dr(r,e,n):[]}));function ts(t){var n=null==t?0:t.length;return n?t[n-1]:e}var ns=Qr(rs);function rs(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var os=oi((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return qr(e,Dt(t,(function(e){return wi(e,n)?+e:e})).sort(To)),r}));function is(e){return null==e?e:_n.call(e)}var ss=Qr((function(e){return po(mr(e,1,Zs,!0))})),as=Qr((function(t){var n=ts(t);return Zs(n)&&(n=e),po(mr(t,1,Zs,!0),ci(n,2))})),ls=Qr((function(t){var n=ts(t);return n="function"==typeof n?n:e,po(mr(t,1,Zs,!0),e,n)}));function us(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Zs(e))return t=Cn(e.length,t),!0})),Kt(t,(function(t){return Dt(e,Bt(t))}))}function cs(t,n){if(!t||!t.length)return[];var r=us(t);return null==n?r:Dt(r,(function(t){return bt(n,e,t)}))}var ps=Qr((function(e,t){return Zs(e)?dr(e,t):[]})),ds=Qr((function(e){return yo(Pt(e,Zs))})),hs=Qr((function(t){var n=ts(t);return Zs(n)&&(n=e),yo(Pt(t,Zs),ci(n,2))})),fs=Qr((function(t){var n=ts(t);return n="function"==typeof n?n:e,yo(Pt(t,Zs),e,n)})),gs=Qr(us),vs=Qr((function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,cs(t,r)}));function ys(e){var t=Wn(e);return t.__chain__=!0,t}function ms(e,t){return t(e)}var Cs=oi((function(t){var n=t.length,r=n?t[0]:0,o=this.__wrapped__,i=function(e){return ar(e,t)};return!(n>1||this.__actions__.length)&&o instanceof zn&&wi(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:e}),new Un(o,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(i)})),ws=Mo((function(e,t,n){Le.call(e,n)?++e[n]:sr(e,n,1)})),Es=Ho(qi),bs=Ho($i);function Rs(e,t){return($s(e)?_t:hr)(e,ci(t,3))}function _s(e,t){return($s(e)?St:fr)(e,ci(t,3))}var Ss=Mo((function(e,t,n){Le.call(e,n)?e[n].push(t):sr(e,n,[t])})),Os=Qr((function(e,t,n){var r=-1,o="function"==typeof t,i=Qs(e)?be(e.length):[];return hr(e,(function(e){i[++r]=o?bt(t,e,n):Nr(e,t,n)})),i})),Ps=Mo((function(e,t,n){sr(e,n,t)}));function Ts(e,t){return($s(e)?Dt:Hr)(e,ci(t,3))}var As=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ds=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ei(e,t[0],t[1])?t=[]:n>2&&Ei(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,mr(t,1),[])})),Ns=ft||function(){return ct.Date.now()};function Is(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Jo(t,l,e,e,e,e,n)}function Ms(n,r){var o;if("function"!=typeof r)throw new De(t);return n=Ca(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=e),o}}var Fs=Qr((function(e,t,n){var r=1;if(n.length){var o=an(n,ui(Fs));r|=i}return Jo(e,r,t,n,o)})),xs=Qr((function(e,t,n){var r=3;if(n.length){var o=an(n,ui(xs));r|=i}return Jo(t,r,e,n,o)}));function Ls(n,r,o){var i,s,a,l,u,c,p=0,d=!1,h=!1,f=!0;if("function"!=typeof n)throw new De(t);function g(t){var r=i,o=s;return i=s=e,p=t,l=n.apply(o,r)}function v(e){return p=e,u=Mi(m,r),d?g(e):l}function y(t){var n=t-c;return c===e||n>=r||n<0||h&&t-p>=a}function m(){var e=Ns();if(y(e))return C(e);u=Mi(m,function(e){var t=r-(e-c);return h?wn(t,a-(e-p)):t}(e))}function C(t){return u=e,f&&i?g(t):(i=s=e,l)}function w(){var t=Ns(),n=y(t);if(i=arguments,s=this,c=t,n){if(u===e)return v(c);if(h)return _o(u),u=Mi(m,r),g(c)}return u===e&&(u=Mi(m,r)),l}return r=Ea(r)||0,ia(o)&&(d=!!o.leading,a=(h="maxWait"in o)?Cn(Ea(o.maxWait)||0,r):a,f="trailing"in o?!!o.trailing:f),w.cancel=function(){u!==e&&_o(u),p=0,i=c=s=u=e},w.flush=function(){return u===e?l:C(Ns())},w}var Gs=Qr((function(e,t){return pr(e,1,t)})),ks=Qr((function(e,t,n){return pr(e,Ea(t)||0,n)}));function Vs(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new De(t);var r=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,t);return r.cache=i.set(o,s)||i,s};return r.cache=new(Vs.Cache||qn),r}function Hs(e){if("function"!=typeof e)throw new De(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Vs.Cache=qn;var Ws=bo((function(e,t){var n=(t=1==t.length&&$s(t[0])?Dt(t[0],qt(ci())):Dt(mr(t,1),qt(ci()))).length;return Qr((function(r){for(var o=-1,i=wn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return bt(e,this,r)}))})),Bs=Qr((function(t,n){var r=an(n,ui(Bs));return Jo(t,i,e,n,r)})),js=Qr((function(t,n){var r=an(n,ui(js));return Jo(t,s,e,n,r)})),Us=oi((function(t,n){return Jo(t,u,e,e,e,n)}));function zs(e,t){return e===t||e!=e&&t!=t}var Ks=qo(Pr),Ys=qo((function(e,t){return e>=t})),qs=Ir(function(){return arguments}())?Ir:function(e){return sa(e)&&Le.call(e,"callee")&&!Qe.call(e,"callee")},$s=be.isArray,Xs=vt?qt(vt):function(e){return sa(e)&&Or(e)==N};function Qs(e){return null!=e&&oa(e.length)&&!na(e)}function Zs(e){return sa(e)&&Qs(e)}var Js=gn||El,ea=yt?qt(yt):function(e){return sa(e)&&Or(e)==m};function ta(e){if(!sa(e))return!1;var t=Or(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ua(e)}function na(e){if(!ia(e))return!1;var t=Or(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ra(e){return"number"==typeof e&&e==Ca(e)}function oa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ia(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function sa(e){return null!=e&&"object"==typeof e}var aa=mt?qt(mt):function(e){return sa(e)&&vi(e)==b};function la(e){return"number"==typeof e||sa(e)&&Or(e)==R}function ua(e){if(!sa(e)||Or(e)!=_)return!1;var t=Ye(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==He}var ca=Ct?qt(Ct):function(e){return sa(e)&&Or(e)==O},pa=wt?qt(wt):function(e){return sa(e)&&vi(e)==P};function da(e){return"string"==typeof e||!$s(e)&&sa(e)&&Or(e)==T}function ha(e){return"symbol"==typeof e||sa(e)&&Or(e)==A}var fa=Et?qt(Et):function(e){return sa(e)&&oa(e.length)&&!!rt[Or(e)]},ga=qo(Vr),va=qo((function(e,t){return e<=t}));function ya(e){if(!e)return[];if(Qs(e))return da(e)?cn(e):No(e);if(lt&&e[lt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[lt]());var t=vi(e);return(t==b?on:t==P?ln:za)(e)}function ma(e){return e?(e=Ea(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Ca(e){var t=ma(e),n=t%1;return t==t?n?t-n:t:0}function wa(e){return e?lr(Ca(e),0,h):0}function Ea(e){if("number"==typeof e)return e;if(ha(e))return d;if(ia(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ia(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=fe.test(e);return n||ve.test(e)?at(e.slice(2),n?2:8):he.test(e)?d:+e}function ba(e){return Io(e,Ga(e))}function Ra(e){return null==e?"":co(e)}var _a=Fo((function(e,t){if(Si(t)||Qs(t))Io(t,La(t),e);else for(var n in t)Le.call(t,n)&&nr(e,n,t[n])})),Sa=Fo((function(e,t){Io(t,Ga(t),e)})),Oa=Fo((function(e,t,n,r){Io(t,Ga(t),e,r)})),Pa=Fo((function(e,t,n,r){Io(t,La(t),e,r)})),Ta=oi(ar),Aa=Qr((function(t,n){t=Pe(t);var r=-1,o=n.length,i=o>2?n[2]:e;for(i&&Ei(n[0],n[1],i)&&(o=1);++r<o;)for(var s=n[r],a=Ga(s),l=-1,u=a.length;++l<u;){var c=a[l],p=t[c];(p===e||zs(p,Me[c])&&!Le.call(t,c))&&(t[c]=s[c])}return t})),Da=Qr((function(t){return t.push(e,ti),bt(Va,e,t)}));function Na(t,n,r){var o=null==t?e:_r(t,n);return o===e?r:o}function Ia(e,t){return null!=e&&yi(e,t,Ar)}var Ma=jo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),e[t]=n}),il(ll)),Fa=jo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),ci),xa=Qr(Nr);function La(e){return Qs(e)?Qn(e):Gr(e)}function Ga(e){return Qs(e)?Qn(e,!0):kr(e)}var ka=Fo((function(e,t,n){jr(e,t,n)})),Va=Fo((function(e,t,n,r){jr(e,t,n,r)})),Ha=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=Eo(t,e),r||(r=t.length>1),t})),Io(e,si(e),n),r&&(n=ur(n,7,ni));for(var o=t.length;o--;)ho(n,t[o]);return n})),Wa=oi((function(e,t){return null==e?{}:function(e,t){return Kr(e,t,(function(t,n){return Ia(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=Dt(si(e),(function(e){return[e]}));return t=ci(t),Kr(e,n,(function(e,n){return t(e,n[0])}))}var ja=Zo(La),Ua=Zo(Ga);function za(e){return null==e?[]:$t(e,La(e))}var Ka=ko((function(e,t,n){return t=t.toLowerCase(),e+(n?Ya(t):t)}));function Ya(e){return tl(Ra(e).toLowerCase())}function qa(e){return(e=Ra(e))&&e.replace(me,en).replace(Xe,"")}var $a=ko((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Xa=ko((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qa=Go("toLowerCase"),Za=ko((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ja=ko((function(e,t,n){return e+(n?" ":"")+tl(t)})),el=ko((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),tl=Go("toUpperCase");function nl(t,n,r){return t=Ra(t),(n=r?e:n)===e?function(e){return et.test(e)}(t)?function(e){return e.match(Ze)||[]}(t):function(e){return e.match(le)||[]}(t):t.match(n)||[]}var rl=Qr((function(t,n){try{return bt(t,e,n)}catch(r){return ta(r)?r:new _e(r)}})),ol=oi((function(e,t){return _t(t,(function(t){t=Bi(t),sr(e,t,Fs(e[t],e))})),e}));function il(e){return function(){return e}}var sl=Wo(),al=Wo(!0);function ll(e){return e}function ul(e){return Lr("function"==typeof e?e:ur(e,1))}var cl=Qr((function(e,t){return function(n){return Nr(n,e,t)}})),pl=Qr((function(e,t){return function(n){return Nr(e,n,t)}}));function dl(e,t,n){var r=La(t),o=Rr(t,r);null!=n||ia(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Rr(t,La(t)));var i=!(ia(n)&&"chain"in n&&!n.chain),s=na(e);return _t(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=No(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function hl(){}var fl=zo(Dt),gl=zo(Ot),vl=zo(Ft);function yl(e){return bi(e)?Bt(Bi(e)):function(e){return function(t){return _r(t,e)}}(e)}var ml=Yo(),Cl=Yo(!0);function wl(){return[]}function El(){return!1}var bl,Rl=Uo((function(e,t){return e+t}),0),_l=Xo("ceil"),Sl=Uo((function(e,t){return e/t}),1),Ol=Xo("floor"),Pl=Uo((function(e,t){return e*t}),1),Tl=Xo("round"),Al=Uo((function(e,t){return e-t}),0);return Wn.after=function(e,n){if("function"!=typeof n)throw new De(t);return e=Ca(e),function(){if(--e<1)return n.apply(this,arguments)}},Wn.ary=Is,Wn.assign=_a,Wn.assignIn=Sa,Wn.assignInWith=Oa,Wn.assignWith=Pa,Wn.at=Ta,Wn.before=Ms,Wn.bind=Fs,Wn.bindAll=ol,Wn.bindKey=xs,Wn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $s(e)?e:[e]},Wn.chain=ys,Wn.chunk=function(t,n,r){n=(r?Ei(t,n,r):n===e)?1:Cn(Ca(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var i=0,s=0,a=be(xt(o/n));i<o;)a[s++]=oo(t,i,i+=n);return a},Wn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Wn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=be(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nt($s(n)?No(n):[n],mr(t,1))},Wn.cond=function(e){var n=null==e?0:e.length,r=ci();return e=n?Dt(e,(function(e){if("function"!=typeof e[1])throw new De(t);return[r(e[0]),e[1]]})):[],Qr((function(t){for(var r=-1;++r<n;){var o=e[r];if(bt(o[0],this,t))return bt(o[1],this,t)}}))},Wn.conforms=function(e){return function(e){var t=La(e);return function(n){return cr(n,e,t)}}(ur(e,1))},Wn.constant=il,Wn.countBy=ws,Wn.create=function(e,t){var n=Bn(e);return null==t?n:ir(n,t)},Wn.curry=function t(n,r,o){var i=Jo(n,8,e,e,e,e,e,r=o?e:r);return i.placeholder=t.placeholder,i},Wn.curryRight=function t(n,r,i){var s=Jo(n,o,e,e,e,e,e,r=i?e:r);return s.placeholder=t.placeholder,s},Wn.debounce=Ls,Wn.defaults=Aa,Wn.defaultsDeep=Da,Wn.defer=Gs,Wn.delay=ks,Wn.difference=zi,Wn.differenceBy=Ki,Wn.differenceWith=Yi,Wn.drop=function(t,n,r){var o=null==t?0:t.length;return o?oo(t,(n=r||n===e?1:Ca(n))<0?0:n,o):[]},Wn.dropRight=function(t,n,r){var o=null==t?0:t.length;return o?oo(t,0,(n=o-(n=r||n===e?1:Ca(n)))<0?0:n):[]},Wn.dropRightWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!0,!0):[]},Wn.dropWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!0):[]},Wn.fill=function(t,n,r,o){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&Ei(t,n,r)&&(r=0,o=i),function(t,n,r,o){var i=t.length;for((r=Ca(r))<0&&(r=-r>i?0:i+r),(o=o===e||o>i?i:Ca(o))<0&&(o+=i),o=r>o?0:wa(o);r<o;)t[r++]=n;return t}(t,n,r,o)):[]},Wn.filter=function(e,t){return($s(e)?Pt:yr)(e,ci(t,3))},Wn.flatMap=function(e,t){return mr(Ts(e,t),1)},Wn.flatMapDeep=function(e,t){return mr(Ts(e,t),c)},Wn.flatMapDepth=function(t,n,r){return r=r===e?1:Ca(r),mr(Ts(t,n),r)},Wn.flatten=Xi,Wn.flattenDeep=function(e){return null!=e&&e.length?mr(e,c):[]},Wn.flattenDepth=function(t,n){return null!=t&&t.length?mr(t,n=n===e?1:Ca(n)):[]},Wn.flip=function(e){return Jo(e,512)},Wn.flow=sl,Wn.flowRight=al,Wn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Wn.functions=function(e){return null==e?[]:Rr(e,La(e))},Wn.functionsIn=function(e){return null==e?[]:Rr(e,Ga(e))},Wn.groupBy=Ss,Wn.initial=function(e){return null!=e&&e.length?oo(e,0,-1):[]},Wn.intersection=Zi,Wn.intersectionBy=Ji,Wn.intersectionWith=es,Wn.invert=Ma,Wn.invertBy=Fa,Wn.invokeMap=Os,Wn.iteratee=ul,Wn.keyBy=Ps,Wn.keys=La,Wn.keysIn=Ga,Wn.map=Ts,Wn.mapKeys=function(e,t){var n={};return t=ci(t,3),Er(e,(function(e,r,o){sr(n,t(e,r,o),e)})),n},Wn.mapValues=function(e,t){var n={};return t=ci(t,3),Er(e,(function(e,r,o){sr(n,r,t(e,r,o))})),n},Wn.matches=function(e){return Wr(ur(e,1))},Wn.matchesProperty=function(e,t){return Br(e,ur(t,1))},Wn.memoize=Vs,Wn.merge=ka,Wn.mergeWith=Va,Wn.method=cl,Wn.methodOf=pl,Wn.mixin=dl,Wn.negate=Hs,Wn.nthArg=function(e){return e=Ca(e),Qr((function(t){return Ur(t,e)}))},Wn.omit=Ha,Wn.omitBy=function(e,t){return Ba(e,Hs(ci(t)))},Wn.once=function(e){return Ms(2,e)},Wn.orderBy=function(t,n,r,o){return null==t?[]:($s(n)||(n=null==n?[]:[n]),$s(r=o?e:r)||(r=null==r?[]:[r]),zr(t,n,r))},Wn.over=fl,Wn.overArgs=Ws,Wn.overEvery=gl,Wn.overSome=vl,Wn.partial=Bs,Wn.partialRight=js,Wn.partition=As,Wn.pick=Wa,Wn.pickBy=Ba,Wn.property=yl,Wn.propertyOf=function(t){return function(n){return null==t?e:_r(t,n)}},Wn.pull=ns,Wn.pullAll=rs,Wn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ci(n,2)):e},Wn.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?Yr(t,n,e,r):t},Wn.pullAt=os,Wn.range=ml,Wn.rangeRight=Cl,Wn.rearg=Us,Wn.reject=function(e,t){return($s(e)?Pt:yr)(e,Hs(ci(t,3)))},Wn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ci(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return qr(e,o),n},Wn.rest=function(n,r){if("function"!=typeof n)throw new De(t);return Qr(n,r=r===e?r:Ca(r))},Wn.reverse=is,Wn.sampleSize=function(t,n,r){return n=(r?Ei(t,n,r):n===e)?1:Ca(n),($s(t)?Jn:Jr)(t,n)},Wn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Wn.setWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:eo(t,n,r,o)},Wn.shuffle=function(e){return($s(e)?er:ro)(e)},Wn.slice=function(t,n,r){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&Ei(t,n,r)?(n=0,r=o):(n=null==n?0:Ca(n),r=r===e?o:Ca(r)),oo(t,n,r)):[]},Wn.sortBy=Ds,Wn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Wn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ci(t,2)):[]},Wn.split=function(t,n,r){return r&&"number"!=typeof r&&Ei(t,n,r)&&(n=r=e),(r=r===e?h:r>>>0)?(t=Ra(t))&&("string"==typeof n||null!=n&&!ca(n))&&!(n=co(n))&&rn(t)?Ro(cn(t),0,r):t.split(n,r):[]},Wn.spread=function(e,n){if("function"!=typeof e)throw new De(t);return n=null==n?0:Cn(Ca(n),0),Qr((function(t){var r=t[n],o=Ro(t,0,n);return r&&Nt(o,r),bt(e,this,o)}))},Wn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Wn.take=function(t,n,r){return t&&t.length?oo(t,0,(n=r||n===e?1:Ca(n))<0?0:n):[]},Wn.takeRight=function(t,n,r){var o=null==t?0:t.length;return o?oo(t,(n=o-(n=r||n===e?1:Ca(n)))<0?0:n,o):[]},Wn.takeRightWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!1,!0):[]},Wn.takeWhile=function(e,t){return e&&e.length?go(e,ci(t,3)):[]},Wn.tap=function(e,t){return t(e),e},Wn.throttle=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new De(t);return ia(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Ls(e,n,{leading:o,maxWait:n,trailing:i})},Wn.thru=ms,Wn.toArray=ya,Wn.toPairs=ja,Wn.toPairsIn=Ua,Wn.toPath=function(e){return $s(e)?Dt(e,Bi):ha(e)?[e]:No(Wi(Ra(e)))},Wn.toPlainObject=ba,Wn.transform=function(e,t,n){var r=$s(e),o=r||Js(e)||fa(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ia(e)&&na(i)?Bn(Ye(e)):{}}return(o?_t:Er)(e,(function(e,r,o){return t(n,e,r,o)})),n},Wn.unary=function(e){return Is(e,1)},Wn.union=ss,Wn.unionBy=as,Wn.unionWith=ls,Wn.uniq=function(e){return e&&e.length?po(e):[]},Wn.uniqBy=function(e,t){return e&&e.length?po(e,ci(t,2)):[]},Wn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?po(t,e,n):[]},Wn.unset=function(e,t){return null==e||ho(e,t)},Wn.unzip=us,Wn.unzipWith=cs,Wn.update=function(e,t,n){return null==e?e:fo(e,t,wo(n))},Wn.updateWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:fo(t,n,wo(r),o)},Wn.values=za,Wn.valuesIn=function(e){return null==e?[]:$t(e,Ga(e))},Wn.without=ps,Wn.words=nl,Wn.wrap=function(e,t){return Bs(wo(t),e)},Wn.xor=ds,Wn.xorBy=hs,Wn.xorWith=fs,Wn.zip=gs,Wn.zipObject=function(e,t){return mo(e||[],t||[],nr)},Wn.zipObjectDeep=function(e,t){return mo(e||[],t||[],eo)},Wn.zipWith=vs,Wn.entries=ja,Wn.entriesIn=Ua,Wn.extend=Sa,Wn.extendWith=Oa,dl(Wn,Wn),Wn.add=Rl,Wn.attempt=rl,Wn.camelCase=Ka,Wn.capitalize=Ya,Wn.ceil=_l,Wn.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=Ea(r))==r?r:0),n!==e&&(n=(n=Ea(n))==n?n:0),lr(Ea(t),n,r)},Wn.clone=function(e){return ur(e,4)},Wn.cloneDeep=function(e){return ur(e,5)},Wn.cloneDeepWith=function(t,n){return ur(t,5,n="function"==typeof n?n:e)},Wn.cloneWith=function(t,n){return ur(t,4,n="function"==typeof n?n:e)},Wn.conformsTo=function(e,t){return null==t||cr(e,t,La(t))},Wn.deburr=qa,Wn.defaultTo=function(e,t){return null==e||e!=e?t:e},Wn.divide=Sl,Wn.endsWith=function(t,n,r){t=Ra(t),n=co(n);var o=t.length,i=r=r===e?o:lr(Ca(r),0,o);return(r-=n.length)>=0&&t.slice(r,i)==n},Wn.eq=zs,Wn.escape=function(e){return(e=Ra(e))&&q.test(e)?e.replace(K,tn):e},Wn.escapeRegExp=function(e){return(e=Ra(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Wn.every=function(t,n,r){var o=$s(t)?Ot:gr;return r&&Ei(t,n,r)&&(n=e),o(t,ci(n,3))},Wn.find=Es,Wn.findIndex=qi,Wn.findKey=function(e,t){return Lt(e,ci(t,3),Er)},Wn.findLast=bs,Wn.findLastIndex=$i,Wn.findLastKey=function(e,t){return Lt(e,ci(t,3),br)},Wn.floor=Ol,Wn.forEach=Rs,Wn.forEachRight=_s,Wn.forIn=function(e,t){return null==e?e:Cr(e,ci(t,3),Ga)},Wn.forInRight=function(e,t){return null==e?e:wr(e,ci(t,3),Ga)},Wn.forOwn=function(e,t){return e&&Er(e,ci(t,3))},Wn.forOwnRight=function(e,t){return e&&br(e,ci(t,3))},Wn.get=Na,Wn.gt=Ks,Wn.gte=Ys,Wn.has=function(e,t){return null!=e&&yi(e,t,Tr)},Wn.hasIn=Ia,Wn.head=Qi,Wn.identity=ll,Wn.includes=function(e,t,n,r){e=Qs(e)?e:za(e),n=n&&!r?Ca(n):0;var o=e.length;return n<0&&(n=Cn(o+n,0)),da(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&kt(e,t,n)>-1},Wn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ca(n);return o<0&&(o=Cn(r+o,0)),kt(e,t,o)},Wn.inRange=function(t,n,r){return n=ma(n),r===e?(r=n,n=0):r=ma(r),function(e,t,n){return e>=wn(t,n)&&e<Cn(t,n)}(t=Ea(t),n,r)},Wn.invoke=xa,Wn.isArguments=qs,Wn.isArray=$s,Wn.isArrayBuffer=Xs,Wn.isArrayLike=Qs,Wn.isArrayLikeObject=Zs,Wn.isBoolean=function(e){return!0===e||!1===e||sa(e)&&Or(e)==y},Wn.isBuffer=Js,Wn.isDate=ea,Wn.isElement=function(e){return sa(e)&&1===e.nodeType&&!ua(e)},Wn.isEmpty=function(e){if(null==e)return!0;if(Qs(e)&&($s(e)||"string"==typeof e||"function"==typeof e.splice||Js(e)||fa(e)||qs(e)))return!e.length;var t=vi(e);if(t==b||t==P)return!e.size;if(Si(e))return!Gr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Wn.isEqual=function(e,t){return Mr(e,t)},Wn.isEqualWith=function(t,n,r){var o=(r="function"==typeof r?r:e)?r(t,n):e;return o===e?Mr(t,n,e,r):!!o},Wn.isError=ta,Wn.isFinite=function(e){return"number"==typeof e&&vn(e)},Wn.isFunction=na,Wn.isInteger=ra,Wn.isLength=oa,Wn.isMap=aa,Wn.isMatch=function(e,t){return e===t||Fr(e,t,di(t))},Wn.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Fr(t,n,di(n),r)},Wn.isNaN=function(e){return la(e)&&e!=+e},Wn.isNative=function(e){if(_i(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},Wn.isNil=function(e){return null==e},Wn.isNull=function(e){return null===e},Wn.isNumber=la,Wn.isObject=ia,Wn.isObjectLike=sa,Wn.isPlainObject=ua,Wn.isRegExp=ca,Wn.isSafeInteger=function(e){return ra(e)&&e>=-9007199254740991&&e<=p},Wn.isSet=pa,Wn.isString=da,Wn.isSymbol=ha,Wn.isTypedArray=fa,Wn.isUndefined=function(t){return t===e},Wn.isWeakMap=function(e){return sa(e)&&vi(e)==D},Wn.isWeakSet=function(e){return sa(e)&&"[object WeakSet]"==Or(e)},Wn.join=function(e,t){return null==e?"":yn.call(e,t)},Wn.kebabCase=$a,Wn.last=ts,Wn.lastIndexOf=function(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o;return r!==e&&(i=(i=Ca(r))<0?Cn(o+i,0):wn(i,o-1)),n==n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,i):Gt(t,Ht,i,!0)},Wn.lowerCase=Xa,Wn.lowerFirst=Qa,Wn.lt=ga,Wn.lte=va,Wn.max=function(t){return t&&t.length?vr(t,ll,Pr):e},Wn.maxBy=function(t,n){return t&&t.length?vr(t,ci(n,2),Pr):e},Wn.mean=function(e){return Wt(e,ll)},Wn.meanBy=function(e,t){return Wt(e,ci(t,2))},Wn.min=function(t){return t&&t.length?vr(t,ll,Vr):e},Wn.minBy=function(t,n){return t&&t.length?vr(t,ci(n,2),Vr):e},Wn.stubArray=wl,Wn.stubFalse=El,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Pl,Wn.nth=function(t,n){return t&&t.length?Ur(t,Ca(n)):e},Wn.noConflict=function(){return ct._===this&&(ct._=We),this},Wn.noop=hl,Wn.now=Ns,Wn.pad=function(e,t,n){e=Ra(e);var r=(t=Ca(t))?un(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ko(jt(o),n)+e+Ko(xt(o),n)},Wn.padEnd=function(e,t,n){e=Ra(e);var r=(t=Ca(t))?un(e):0;return t&&r<t?e+Ko(t-r,n):e},Wn.padStart=function(e,t,n){e=Ra(e);var r=(t=Ca(t))?un(e):0;return t&&r<t?Ko(t-r,n)+e:e},Wn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(Ra(e).replace(re,""),t||0)},Wn.random=function(t,n,r){if(r&&"boolean"!=typeof r&&Ei(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=ma(t),n===e?(n=t,t=0):n=ma(n)),t>n){var o=t;t=n,n=o}if(r||t%1||n%1){var i=Rn();return wn(t+i*(n-t+st("1e-"+((i+"").length-1))),n)}return $r(t,n)},Wn.reduce=function(e,t,n){var r=$s(e)?It:Ut,o=arguments.length<3;return r(e,ci(t,4),n,o,hr)},Wn.reduceRight=function(e,t,n){var r=$s(e)?Mt:Ut,o=arguments.length<3;return r(e,ci(t,4),n,o,fr)},Wn.repeat=function(t,n,r){return n=(r?Ei(t,n,r):n===e)?1:Ca(n),Xr(Ra(t),n)},Wn.replace=function(){var e=arguments,t=Ra(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wn.result=function(t,n,r){var o=-1,i=(n=Eo(n,t)).length;for(i||(i=1,t=e);++o<i;){var s=null==t?e:t[Bi(n[o])];s===e&&(o=i,s=r),t=na(s)?s.call(t):s}return t},Wn.round=Tl,Wn.runInContext=a,Wn.sample=function(e){return($s(e)?Zn:Zr)(e)},Wn.size=function(e){if(null==e)return 0;if(Qs(e))return da(e)?un(e):e.length;var t=vi(e);return t==b||t==P?e.size:Gr(e).length},Wn.snakeCase=Za,Wn.some=function(t,n,r){var o=$s(t)?Ft:io;return r&&Ei(t,n,r)&&(n=e),o(t,ci(n,3))},Wn.sortedIndex=function(e,t){return so(e,t)},Wn.sortedIndexBy=function(e,t,n){return ao(e,t,ci(n,2))},Wn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&zs(e[r],t))return r}return-1},Wn.sortedLastIndex=function(e,t){return so(e,t,!0)},Wn.sortedLastIndexBy=function(e,t,n){return ao(e,t,ci(n,2),!0)},Wn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=so(e,t,!0)-1;if(zs(e[n],t))return n}return-1},Wn.startCase=Ja,Wn.startsWith=function(e,t,n){return e=Ra(e),n=null==n?0:lr(Ca(n),0,e.length),t=co(t),e.slice(n,n+t.length)==t},Wn.subtract=Al,Wn.sum=function(e){return e&&e.length?zt(e,ll):0},Wn.sumBy=function(e,t){return e&&e.length?zt(e,ci(t,2)):0},Wn.template=function(t,n,r){var o=Wn.templateSettings;r&&Ei(t,n,r)&&(n=e),t=Ra(t),n=Oa({},n,o,ei);var i,s,a=Oa({},n.imports,o.imports,ei),l=La(a),u=$t(a,l),c=0,p=n.interpolate||Ce,d="__p += '",h=Te((n.escape||Ce).source+"|"+p.source+"|"+(p===Q?pe:Ce).source+"|"+(n.evaluate||Ce).source+"|$","g"),f="//# sourceURL="+(Le.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";t.replace(h,(function(e,n,r,o,a,l){return r||(r=o),d+=t.slice(c,l).replace(we,nn),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+e.length,e})),d+="';\n";var g=Le.call(n,"variable")&&n.variable;if(g){if(ue.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(B,""):d).replace(j,"$1").replace(U,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=rl((function(){return Se(l,f+"return "+d).apply(e,u)}));if(v.source=d,ta(v))throw v;return v},Wn.times=function(e,t){if((e=Ca(e))<1||e>p)return[];var n=h,r=wn(e,h);t=ci(t),e-=h;for(var o=Kt(r,t);++n<e;)t(n);return o},Wn.toFinite=ma,Wn.toInteger=Ca,Wn.toLength=wa,Wn.toLower=function(e){return Ra(e).toLowerCase()},Wn.toNumber=Ea,Wn.toSafeInteger=function(e){return e?lr(Ca(e),-9007199254740991,p):0===e?e:0},Wn.toString=Ra,Wn.toUpper=function(e){return Ra(e).toUpperCase()},Wn.trim=function(t,n,r){if((t=Ra(t))&&(r||n===e))return Yt(t);if(!t||!(n=co(n)))return t;var o=cn(t),i=cn(n);return Ro(o,Qt(o,i),Zt(o,i)+1).join("")},Wn.trimEnd=function(t,n,r){if((t=Ra(t))&&(r||n===e))return t.slice(0,pn(t)+1);if(!t||!(n=co(n)))return t;var o=cn(t);return Ro(o,0,Zt(o,cn(n))+1).join("")},Wn.trimStart=function(t,n,r){if((t=Ra(t))&&(r||n===e))return t.replace(re,"");if(!t||!(n=co(n)))return t;var o=cn(t);return Ro(o,Qt(o,cn(n))).join("")},Wn.truncate=function(t,n){var r=30,o="...";if(ia(n)){var i="separator"in n?n.separator:i;r="length"in n?Ca(n.length):r,o="omission"in n?co(n.omission):o}var s=(t=Ra(t)).length;if(rn(t)){var a=cn(t);s=a.length}if(r>=s)return t;var l=r-un(o);if(l<1)return o;var u=a?Ro(a,0,l).join(""):t.slice(0,l);if(i===e)return u+o;if(a&&(l+=u.length-l),ca(i)){if(t.slice(l).search(i)){var c,p=u;for(i.global||(i=Te(i.source,Ra(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(p);)var d=c.index;u=u.slice(0,d===e?l:d)}}else if(t.indexOf(co(i),l)!=l){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+o},Wn.unescape=function(e){return(e=Ra(e))&&Y.test(e)?e.replace(z,dn):e},Wn.uniqueId=function(e){var t=++Ge;return Ra(e)+t},Wn.upperCase=el,Wn.upperFirst=tl,Wn.each=Rs,Wn.eachRight=_s,Wn.first=Qi,dl(Wn,(bl={},Er(Wn,(function(e,t){Le.call(Wn.prototype,t)||(bl[t]=e)})),bl),{chain:!1}),Wn.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Wn[e].placeholder=Wn})),_t(["drop","take"],(function(t,n){zn.prototype[t]=function(r){r=r===e?1:Cn(Ca(r),0);var o=this.__filtered__&&!n?new zn(this):this.clone();return o.__filtered__?o.__takeCount__=wn(r,o.__takeCount__):o.__views__.push({size:wn(r,h),type:t+(o.__dir__<0?"Right":"")}),o},zn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}})),zn.prototype.compact=function(){return this.filter(ll)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new zn(this):this.map((function(n){return Nr(n,e,t)}))})),zn.prototype.reject=function(e){return this.filter(Hs(ci(e)))},zn.prototype.slice=function(t,n){t=Ca(t);var r=this;return r.__filtered__&&(t>0||n<0)?new zn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=Ca(n))<0?r.dropRight(-n):r.take(n-t)),r)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(h)},Er(zn.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=Wn[o?"take"+("last"==n?"Right":""):n],s=o||/^find/.test(n);i&&(Wn.prototype[n]=function(){var n=this.__wrapped__,a=o?[1]:arguments,l=n instanceof zn,u=a[0],c=l||$s(n),p=function(e){var t=i.apply(Wn,Nt([e],a));return o&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,g=l&&!h;if(!s&&c){n=g?n:new zn(this);var v=t.apply(n,a);return v.__actions__.push({func:ms,args:[p],thisArg:e}),new Un(v,d)}return f&&g?t.apply(this,a):(v=this.thru(p),f?o?v.value()[0]:v.value():v)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Wn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($s(o)?o:[],e)}return this[n]((function(n){return t.apply($s(n)?n:[],e)}))}})),Er(zn.prototype,(function(e,t){var n=Wn[t];if(n){var r=n.name+"";Le.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[Bo(e,2).name]=[{name:"wrapper",func:e}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=No(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=No(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=No(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$s(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=wn(t,e+s);break;case"takeRight":e=Cn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,l=a-s,u=r?a:s-1,c=this.__iteratees__,p=c.length,d=0,h=wn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return vo(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var g=-1,v=e[u+=t];++g<p;){var y=c[g],m=y.iteratee,C=y.type,w=m(v);if(2==C)v=w;else if(!w){if(1==C)continue e;break e}}f[d++]=v}return f},Wn.prototype.at=Cs,Wn.prototype.chain=function(){return ys(this)},Wn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Wn.prototype.next=function(){this.__values__===e&&(this.__values__=ya(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Wn.prototype.plant=function(t){for(var n,r=this;r instanceof jn;){var o=Ui(r);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=t,n},Wn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof zn){var n=t;return this.__actions__.length&&(n=new zn(this)),(n=n.reverse()).__actions__.push({func:ms,args:[is],thisArg:e}),new Un(n,this.__chain__)}return this.thru(is)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,lt&&(Wn.prototype[lt]=function(){return this}),Wn}();dt?((dt.exports=hn)._=hn,pt._=hn):ct._=hn}.call(a);var ep={};function tp(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:ep}var np=Object.assign,rp=Object.getOwnPropertyDescriptor,op=Object.defineProperty,ip=Object.prototype,sp=[];Object.freeze(sp);var ap={};Object.freeze(ap);var lp="undefined"!=typeof Proxy,up=Object.toString();function cp(){lp||Jc("Proxy not available")}function pp(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var dp=function(){};function hp(e){return"function"==typeof e}function fp(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function gp(e){return null!==e&&"object"==typeof e}function vp(e){if(!gp(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===up}function yp(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function mp(e,t,n){op(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Cp(e,t,n){op(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function wp(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return gp(e)&&!0===e[n]}}function Ep(e){return e instanceof Map}function bp(e){return e instanceof Set}var Rp=void 0!==Object.getOwnPropertySymbols;var _p="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Rp?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Sp(e){return null===e?null:"object"==typeof e?""+e:e}function Op(e,t){return ip.hasOwnProperty.call(e,t)}var Pp=Object.getOwnPropertyDescriptors||function(e){var t={};return _p(e).forEach((function(n){t[n]=rp(e,n)})),t};function Tp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function Ap(e,t,n){return t&&Tp(e.prototype,t),n&&Tp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dp(){return(Dp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Np(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ip(e,t)}function Ip(e,t){return(Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xp(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Fp(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)?Fp(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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 Lp=Symbol("mobx-stored-annotations");function Gp(e){return Object.assign((function(t,n){kp(t,n,e)}),e)}function kp(e,t,n){Op(e,Lp)||mp(e,Lp,Dp({},e[Lp])),function(e){return"override"===e.annotationType_}(n)||(e[Lp][t]=n)}var Vp=Symbol("mobx administration"),Hp=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Vd.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return ph(this)},t.reportChanged=function(){uh(),dh(this),ih.stateVersion=ih.stateVersion<Number.MAX_SAFE_INTEGER?ih.stateVersion+1:Number.MIN_SAFE_INTEGER,ch()},t.toString=function(){return this.name_},e}(),Wp=wp("Atom",Hp);function Bp(e,t,n){void 0===t&&(t=dp),void 0===n&&(n=dp);var r,o=new Hp(e);return t!==dp&&Ih("onBO",o,t,r),n!==dp&&Nh(o,n),o}var jp={identity:function(e,t){return e===t},structural:function(e,t){return Zf(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return Zf(e,t,1)}};function Up(e,t,n){return Bh(e)?e:Array.isArray(e)?bd.array(e,{name:n}):vp(e)?bd.object(e,void 0,{name:n}):Ep(e)?bd.map(e,{name:n}):bp(e)?bd.set(e,{name:n}):"function"!=typeof e||Oh(e)||Wh(e)?e:yp(e)?Vh(e):_h(n,e)}function zp(e){return e}var Kp=Gp({annotationType_:"override",make_:function(e,t){return 0},extend_:function(e,t,n,r){Jc("'"+this.annotationType_+"' can only be used with 'makeObservable'")}});function Yp(e,t){return{annotationType_:e,options_:t,make_:qp,extend_:$p}}function qp(e,t,n,r){var o;if(null!=(o=this.options_)&&o.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Oh(n.value))return 1;var i=Xp(e,this,t,n,!1);return op(r,t,i),2}function $p(e,t,n,r){var o=Xp(e,this,t,n);return e.defineProperty_(t,o,r)}function Xp(e,t,n,r,o){var i,s,a,l,u,c,p,d;void 0===o&&(o=ih.safeDescriptors),d=r,t.annotationType_,d.value;var h,f=r.value;null!=(i=t.options_)&&i.bound&&(f=f.bind(null!=(h=e.proxy_)?h:e.target_));return{value:Nd(null!=(s=null==(a=t.options_)?void 0:a.name)?s:n.toString(),f,null!=(l=null==(u=t.options_)?void 0:u.autoAction)&&l,null!=(c=t.options_)&&c.bound?null!=(p=e.proxy_)?p:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function Qp(e,t){return{annotationType_:e,options_:t,make_:Zp,extend_:Jp}}function Zp(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!Op(e.target_,t)||!Wh(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Wh(n.value))return 1;var i=ed(e,this,t,n,!1,!1);return op(r,t,i),2}function Jp(e,t,n,r){var o,i=ed(e,this,t,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function ed(e,t,n,r,o,i){var s;void 0===i&&(i=ih.safeDescriptors),s=r,t.annotationType_,s.value;var a,l=r.value;(Wh(l)||(l=Vh(l)),o)&&((l=l.bind(null!=(a=e.proxy_)?a:e.target_)).isMobXFlow=!0);return{value:l,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function td(e,t){return{annotationType_:e,options_:t,make_:nd,extend_:rd}}function nd(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function rd(e,t,n,r){var o;return o=n,this.annotationType_,o.get,e.defineComputedProperty_(t,Dp({},this.options_,{get:n.get,set:n.set}),r)}function od(e,t){return{annotationType_:e,options_:t,make_:id,extend_:sd}}function id(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function sd(e,t,n,r){var o,i;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:Up,r)}var ad=ld();function ld(e){return{annotationType_:"true",options_:e,make_:ud,extend_:cd}}function ud(e,t,n,r){var o,i,s,a;if(n.get)return Sd.make_(e,t,n,r);if(n.set){var l=Nd(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ih.safeDescriptors||e.isPlainObject_,set:l})?0:2:(op(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return yp(n.value)?(null!=(a=this.options_)&&a.autoBind?Vh.bound:Vh).make_(e,t,n,r):(null!=(s=this.options_)&&s.autoBind?_h.bound:_h).make_(e,t,n,r);var u,c=!1===(null==(o=this.options_)?void 0:o.deep)?bd.ref:bd;"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_));return c.make_(e,t,n,r)}function cd(e,t,n,r){var o,i,s;if(n.get)return Sd.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!ih.safeDescriptors||e.isPlainObject_,set:Nd(t.toString(),n.set)},r);"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(s=e.proxy_)?s:e.target_));return(!1===(null==(i=this.options_)?void 0:i.deep)?bd.ref:bd).extend_(e,t,n,r)}var pd={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function dd(e){return e||pd}Object.freeze(pd);var hd=od("observable"),fd=od("observable.ref",{enhancer:zp}),gd=od("observable.shallow",{enhancer:function(e,t,n){return null==e||xf(e)||wf(e)||Of(e)||Af(e)?e:Array.isArray(e)?bd.array(e,{name:n,deep:!1}):vp(e)?bd.object(e,void 0,{name:n,deep:!1}):Ep(e)?bd.map(e,{name:n,deep:!1}):bp(e)?bd.set(e,{name:n,deep:!1}):void 0}}),vd=od("observable.struct",{enhancer:function(e,t){return Zf(e,t)?t:e}}),yd=Gp(hd);function md(e){return!0===e.deep?Up:!1===e.deep?zp:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:Up;var t,n,r}function Cd(e,t,n){if(!fp(t))return Bh(e)?e:vp(e)?bd.object(e,t,n):Array.isArray(e)?bd.array(e,t):Ep(e)?bd.map(e,t):bp(e)?bd.set(e,t):"object"==typeof e&&null!==e?e:bd.box(e,t);kp(e,t,hd)}np(Cd,yd);var wd,Ed,bd=np(Cd,{box:function(e,t){var n=dd(t);return new Gd(e,md(n),n.name,!0,n.equals)},array:function(e,t){var n=dd(t);return(!1===ih.useProxies||!1===n.proxy?Kf:pf)(e,md(n),n.name)},map:function(e,t){var n=dd(t);return new Sf(e,md(n),n.name)},set:function(e,t){var n=dd(t);return new Tf(e,md(n),n.name)},object:function(e,t,n){return function(e,t,n,r){var o=Pp(t),i=If(e,r)[Vp];uh();try{_p(o).forEach((function(e){i.extend_(e,o[e],!n||(!(e in n)||n[e]))}))}finally{ch()}return e}(!1===ih.useProxies||!1===(null==n?void 0:n.proxy)?If({},n):function(e,t){var n,r;return cp(),e=If(e,t),null!=(r=(n=e[Vp]).proxy_)?r:n.proxy_=new Proxy(e,Jh)}({},n),e,t)},ref:Gp(fd),shallow:Gp(gd),deep:yd,struct:Gp(vd)}),Rd=td("computed"),_d=td("computed.struct",{equals:jp.structural}),Sd=function(e,t){if(fp(t))return kp(e,t,Rd);if(vp(e))return Gp(td("computed",e));var n=vp(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new jd(n)};Object.assign(Sd,Rd),Sd.struct=Gp(_d);var Od,Pd=0,Td=1,Ad=null!=(wd=null==(Ed=rp((function(){}),"name"))?void 0:Ed.configurable)&&wd,Dd={value:"action",configurable:!0,writable:!1,enumerable:!1};function Nd(e,t,n,r){function o(){return Id(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,Ad&&(Dd.value=e,op(o,"name",Dd)),o}function Id(e,t,n,r,o){var i=function(e,t,n,r){var o=!1,i=0,s=ih.trackingDerivation,a=!t||!s;uh();var l=ih.allowStateChanges;a&&(Qd(),l=Fd(!0));var u=Jd(!0),c={runAsAction_:a,prevDerivation_:s,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:o,startTime_:i,actionId_:Td++,parentActionId_:Pd};return Pd=c.actionId_,c}(0,t);try{return n.apply(r,o)}catch(s){throw i.error_=s,s}finally{!function(e){Pd!==e.actionId_&&Jc(30);Pd=e.parentActionId_,void 0!==e.error_&&(ih.suppressReactionErrors=!0);xd(e.prevAllowStateChanges_),eh(e.prevAllowStateReads_),ch(),e.runAsAction_&&Zd(e.prevDerivation_);ih.suppressReactionErrors=!1}(i)}}function Md(e,t){var n=Fd(e);try{return t()}finally{xd(n)}}function Fd(e){var t=ih.allowStateChanges;return ih.allowStateChanges=e,t}function xd(e){ih.allowStateChanges=e}Od=Symbol.toPrimitive;var Ld,Gd=function(e){function t(t,n,r,o,i){var s;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=jp.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=i,s.value_=n(t,void 0,r),s}Np(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==ih.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(ef(this)){var t=nf(this,{object:this,type:lf,newValue:e});if(!t)return ih.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ih.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),rf(this)&&sf(this,{type:lf,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return tf(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:lf,newValue:this.value_,oldValue:void 0}),of(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Sp(this.get())},n[Od]=function(){return this.valueOf()},t}(Hp),kd=wp("ObservableValue",Gd);Ld=Symbol.toPrimitive;var Vd,Hd,Wd,Bd,jd=function(){function e(e){this.dependenciesState_=Vd.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Vd.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new zd(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Wd.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||Jc(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Nd("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?jp.structural:jp.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==Vd.UP_TO_DATE_)return;e.lowestObserverState_=Vd.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Vd.UP_TO_DATE_&&(e.dependenciesState_=Vd.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&Jc(32,this.name_,this.derivation),0!==ih.inBatch||0!==this.observers_.size||this.keepAlive_){if(ph(this),Yd(this)){var e=ih.trackingContext;this.keepAlive_&&!e&&(ih.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===Vd.STALE_)return;e.lowestObserverState_=Vd.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Vd.POSSIBLY_STALE_?t.dependenciesState_=Vd.STALE_:t.dependenciesState_===Vd.UP_TO_DATE_&&(e.lowestObserverState_=Vd.UP_TO_DATE_)}))}(this),ih.trackingContext=e}}else Yd(this)&&(this.warnAboutUntrackedRead_(),uh(),this.value_=this.computeValue_(!1),ch());var t=this.value_;if(Kd(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&Jc(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else Jc(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Vd.NOT_TRACKING_,n=this.computeValue_(!0),r=t||Kd(e)||Kd(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Fd(!1);if(e)t=qd(this,this.derivation,this.scope_);else if(!0===ih.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new zd(r)}return xd(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||($d(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return Ph((function(){var i=n.get();if(!r||t){var s=Qd();e({observableKind:"computed",debugObjectName:n.name_,type:lf,object:n,newValue:i,oldValue:o}),Zd(s)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Sp(this.get())},t[Ld]=function(){return this.valueOf()},e}(),Ud=wp("ComputedValue",jd);(Hd=Vd||(Vd={}))[Hd.NOT_TRACKING_=-1]="NOT_TRACKING_",Hd[Hd.UP_TO_DATE_=0]="UP_TO_DATE_",Hd[Hd.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",Hd[Hd.STALE_=2]="STALE_",(Bd=Wd||(Wd={}))[Bd.NONE=0]="NONE",Bd[Bd.LOG=1]="LOG",Bd[Bd.BREAK=2]="BREAK";var zd=function(e){this.cause=void 0,this.cause=e};function Kd(e){return e instanceof zd}function Yd(e){switch(e.dependenciesState_){case Vd.UP_TO_DATE_:return!1;case Vd.NOT_TRACKING_:case Vd.STALE_:return!0;case Vd.POSSIBLY_STALE_:for(var t=Jd(!0),n=Qd(),r=e.observing_,o=r.length,i=0;i<o;i++){var s=r[i];if(Ud(s)){if(ih.disableErrorBoundaries)s.get();else try{s.get()}catch(a){return Zd(n),eh(t),!0}if(e.dependenciesState_===Vd.STALE_)return Zd(n),eh(t),!0}}return th(e),Zd(n),eh(t),!1}}function qd(e,t,n){var r=Jd(!0);th(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++ih.runId;var o,i=ih.trackingDerivation;if(ih.trackingDerivation=e,ih.inBatch++,!0===ih.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(s){o=new zd(s)}return ih.inBatch--,ih.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Vd.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,s=0;s<i;s++){var a=n[s];0===a.diffValue_&&(a.diffValue_=1,o!==s&&(n[o]=a),o++),a.dependenciesState_>r&&(r=a.dependenciesState_)}n.length=o,e.newObserving_=null,i=t.length;for(;i--;){var l=t[i];0===l.diffValue_&&ah(l,e),l.diffValue_=0}for(;o--;){var u=n[o];1===u.diffValue_&&(u.diffValue_=0,sh(u,e))}r!==Vd.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),eh(r),o}function $d(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)ah(t[n],e);e.dependenciesState_=Vd.NOT_TRACKING_}function Xd(e){var t=Qd();try{return e()}finally{Zd(t)}}function Qd(){var e=ih.trackingDerivation;return ih.trackingDerivation=null,e}function Zd(e){ih.trackingDerivation=e}function Jd(e){var t=ih.allowStateReads;return ih.allowStateReads=e,t}function eh(e){ih.allowStateReads=e}function th(e){if(e.dependenciesState_!==Vd.UP_TO_DATE_){e.dependenciesState_=Vd.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Vd.UP_TO_DATE_}}var nh=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},rh=!0,oh=!1,ih=function(){var e=tp();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(rh=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new nh).version&&(rh=!1),rh?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new nh):(setTimeout((function(){oh||Jc(35)}),1),new nh)}();function sh(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function ah(e,t){e.observers_.delete(t),0===e.observers_.size&&lh(e)}function lh(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,ih.pendingUnobservations.push(e))}function uh(){ih.inBatch++}function ch(){if(0==--ih.inBatch){gh();for(var e=ih.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof jd&&n.suspend_())}ih.pendingUnobservations=[]}}function ph(e){var t=ih.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&ih.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(0===e.observers_.size&&ih.inBatch>0&&lh(e),!1)}function dh(e){e.lowestObserverState_!==Vd.STALE_&&(e.lowestObserverState_=Vd.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Vd.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Vd.STALE_})))}var hh=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Vd.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Wd.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,ih.pendingReactions.push(this),gh())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){uh(),this.isScheduled_=!1;var e=ih.trackingContext;if(ih.trackingContext=this,Yd(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}ih.trackingContext=e,ch()}},t.track=function(e){if(!this.isDisposed_){uh(),this.isRunning_=!0;var t=ih.trackingContext;ih.trackingContext=this;var n=qd(this,e,void 0);ih.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&$d(this),Kd(n)&&this.reportExceptionInDerivation_(n.cause),ch()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ih.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ih.suppressReactionErrors||console.error(n,e),ih.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(uh(),$d(this),ch()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[Vp]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){Jc("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=Yh(n);if(!o)return Jc("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Wd.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled");o.isTracing_=e?Wd.BREAK:Wd.LOG}(this,e)},e}(),fh=function(e){return e()};function gh(){ih.inBatch>0||ih.isRunningReactions||fh(vh)}function vh(){ih.isRunningReactions=!0;for(var e=ih.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}ih.isRunningReactions=!1}var yh=wp("Reaction",hh);var mh=Yp("action"),Ch=Yp("action.bound",{bound:!0}),wh=Yp("autoAction",{autoAction:!0}),Eh=Yp("autoAction.bound",{autoAction:!0,bound:!0});function bh(e){return function(t,n){return hp(t)?Nd(t.name||"<unnamed action>",t,e):hp(n)?Nd(t,n,e):fp(n)?kp(t,n,e?wh:mh):fp(t)?Gp(Yp(e?"autoAction":"action",{name:t,autoAction:e})):void 0}}var Rh=bh(!1);Object.assign(Rh,mh);var _h=bh(!0);function Sh(e){return Id(e.name,!1,e,this,void 0)}function Oh(e){return hp(e)&&!0===e.isMobxAction}function Ph(e,t){var n,r;void 0===t&&(t=ap);var o,i=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)o=new hh(i,(function(){this.track(l)}),t.onError,t.requiresObservable);else{var s=Ah(t),a=!1;o=new hh(i,(function(){a||(a=!0,s((function(){a=!1,o.isDisposed_||o.track(l)})))}),t.onError,t.requiresObservable)}function l(){e(o)}return o.schedule_(),o.getDisposer_()}Object.assign(_h,wh),Rh.bound=Gp(Ch),_h.bound=Gp(Eh);var Th=function(e){return e()};function Ah(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Th}function Dh(e,t,n){var r;void 0===n&&(n=ap);var o,i,s,a,l=null!=(r=n.name)?r:"Reaction",u=Rh(l,n.onError?(o=n.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){o.call(this,e)}}):t),c=!n.scheduler&&!n.delay,p=Ah(n),d=!0,h=!1,f=n.compareStructural?jp.structural:n.equals||jp.default,g=new hh(l,(function(){d||c?v():h||(h=!0,p(v))}),n.onError,n.requiresObservable);function v(){if(h=!1,!g.isDisposed_){var t=!1;g.track((function(){var n=Md(!1,(function(){return e(g)}));t=d||!f(s,n),a=s,s=n})),(d&&n.fireImmediately||!d&&t)&&u(s,a,g),d=!1}}return g.schedule_(),g.getDisposer_()}function Nh(e,t,n){return Ih("onBUO",e,t,n)}function Ih(e,t,n,r){var o="function"==typeof r?Yf(t,n):Yf(t),i=hp(r)?r:n,s=e+"L";return o[s]?o[s].add(i):o[s]=new Set([i]),function(){var e=o[s];e&&(e.delete(i),0===e.size&&delete o[s])}}function Mh(e){!0===e.isolateGlobalState&&function(){if((ih.pendingReactions.length||ih.inBatch||ih.isRunningReactions)&&Jc(36),oh=!0,rh){var e=tp();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ih=new nh}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&(ih.useProxies="always"===r||"never"!==r&&"undefined"!=typeof Proxy),"ifavailable"===r&&(ih.verifyProxies=!0),void 0!==o){var i="always"===o?"always":"observed"===o;ih.enforceActions=i,ih.allowStateChanges=!0!==i&&"always"!==i}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(ih[t]=!!e[t])})),ih.allowStateReads=!ih.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=fh,fh=function(e){return t((function(){return n(e)}))})}function Fh(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Fh)),n}var xh=0;function Lh(){this.message="FLOW_CANCELLED"}Lh.prototype=Object.create(Error.prototype);var Gh=Qp("flow"),kh=Qp("flow.bound",{bound:!0}),Vh=Object.assign((function(e,t){if(fp(t))return kp(e,t,Gh);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=this,o=arguments,i=++xh,s=Rh(r+" - runid: "+i+" - init",n).apply(t,o),a=void 0,l=new Promise((function(t,n){var o=0;function l(e){var t;a=void 0;try{t=Rh(r+" - runid: "+i+" - yield "+o++,s.next).call(s,e)}catch(l){return n(l)}c(t)}function u(e){var t;a=void 0;try{t=Rh(r+" - runid: "+i+" - yield "+o++,s.throw).call(s,e)}catch(l){return n(l)}c(t)}function c(e){if(!hp(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,u);e.then(c,n)}e=n,l(void 0)}));return l.cancel=Rh(r+" - runid: "+i+" - cancel",(function(){try{a&&Hh(a);var t=s.return(void 0),n=Promise.resolve(t.value);n.then(dp,dp),Hh(n),e(new Lh)}catch(r){e(r)}})),l};return o.isMobXFlow=!0,o}),Gh);function Hh(e){hp(e.cancel)&&e.cancel()}function Wh(e){return!0===(null==e?void 0:e.isMobXFlow)}function Bh(e){return function(e,t){return!!e&&(void 0!==t?!!xf(e)&&e[Vp].values_.has(t):xf(e)||!!e[Vp]||Wp(e)||yh(e)||Ud(e))}(e)}function jh(e,t,n,r){return hp(n)?function(e,t,n,r){return qf(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return qf(e).observe_(t,n)}(e,t,n)}function Uh(e,t,n){return e.set(t,n),n}function zh(e,t){if(null==e||"object"!=typeof e||e instanceof Date||!Bh(e))return e;if(kd(e)||Ud(e))return zh(e.get(),t);if(t.has(e))return t.get(e);if(wf(e)){var n=Uh(t,e,new Array(e.length));return e.forEach((function(e,r){n[r]=zh(e,t)})),n}if(Af(e)){var r=Uh(t,e,new Set);return e.forEach((function(e){r.add(zh(e,t))})),r}if(Of(e)){var o=Uh(t,e,new Map);return e.forEach((function(e,n){o.set(n,zh(e,t))})),o}var i=Uh(t,e,{});return function(e){if(xf(e))return e[Vp].ownKeys_();Jc(38)}(e).forEach((function(n){ip.propertyIsEnumerable.call(e,n)&&(i[n]=zh(e[n],t))})),i}function Kh(e,t){return zh(e,new Map)}function Yh(e){switch(e.length){case 0:return ih.trackingDerivation;case 1:return Yf(e[0]);case 2:return Yf(e[0],e[1])}}function qh(e,t){void 0===t&&(t=void 0),uh();try{return e.apply(t)}finally{ch()}}function $h(e,t,n){return 1===arguments.length||t&&"object"==typeof t?Qh(e,t):Xh(e,t,n||{})}function Xh(e,t,n){var r;if("number"==typeof n.timeout){var o=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!s[Vp].isDisposed_){if(s(),!n.onError)throw o;n.onError(o)}}),n.timeout)}n.name="When";var i=Nd("When-effect",t),s=Ph((function(t){Md(!1,e)&&(t.dispose(),r&&clearTimeout(r),i())}),n);return s}function Qh(e,t){var n,r,o;if(null!=t&&null!=(n=t.signal)&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var i=new Promise((function(n,i){var s,a=Xh(e,n,Dp({},t,{onError:i}));r=function(){a(),i(new Error("WHEN_CANCELLED"))},o=function(){a(),i(new Error("WHEN_ABORTED"))},null==t||null==(s=t.signal)||null==s.addEventListener||s.addEventListener("abort",o)})).finally((function(){var e;return null==t||null==(e=t.signal)||null==e.removeEventListener?void 0:e.removeEventListener("abort",o)}));return i.cancel=r,i}function Zh(e){return e[Vp]}Vh.bound=Gp(kh);var Jh={has:function(e,t){return Zh(e).has_(t)},get:function(e,t){return Zh(e).get_(t)},set:function(e,t,n){var r;return!!fp(t)&&(null==(r=Zh(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!fp(t)&&(null==(n=Zh(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=Zh(e).defineProperty_(t,n))||r},ownKeys:function(e){return Zh(e).ownKeys_()},preventExtensions:function(e){Jc(13)}};function ef(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function tf(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),pp((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function nf(e,t){var n=Qd();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o<i&&((t=r[o](t))&&!t.type&&Jc(14),t);o++);return t}finally{Zd(n)}}function rf(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function of(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),pp((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sf(e,t){var n=Qd(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);Zd(n)}}function af(e,t,n){var r=If(e,n)[Vp];uh();try{0,null!=t||(t=function(e){return Op(e,Lp)||mp(e,Lp,Dp({},e[Lp])),e[Lp]}(e)),_p(t).forEach((function(e){return r.make_(e,t[e])}))}finally{ch()}return e}var lf="update",uf={get:function(e,t){var n=e[Vp];return t===Vp?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?Op(df,t)?df[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[Vp];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){Jc(15)}},cf=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new Hp(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return tf(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),of(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&Jc("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&Jc(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&zf(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=sp),ef(this)){var i=nf(this,{object:this.proxy_,type:"splice",index:e,removedCount:t,added:n});if(!i)return sp;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var s=n.length-t;this.updateArrayLength_(o,s)}var a=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,a),this.dehanceValues_(a)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var s=0;s<n.length;s++)this.values_[e+s]=n[s];for(var a=0;a<i.length;a++)this.values_[e+n.length+a]=i[a];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=rf(this),i=o||r?{observableKind:"array",object:this.proxy_,type:lf,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&sf(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=rf(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&sf(this,i)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&Jc(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(ef(this)){var o=nf(this,{type:lf,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var i=new Array(e+1-n.length),s=0;s<i.length-1;s++)i[s]=void 0;i[i.length-1]=t,this.spliceWithArray_(n.length,0,i)}},e}();function pf(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),cp();var o=new cf(n,t,r,!1);Cp(o.values_,Vp,o);var i=new Proxy(o.values_,uf);if(o.proxy_=i,e&&e.length){var s=Fd(!0);o.spliceWithArray_(0,0,e),xd(s)}return i}var df={clear:function(){return this.splice(0)},replace:function(e){var t=this[Vp];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[Vp];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[Vp].spliceWithArray_(e,t,n)},push:function(){for(var e=this[Vp],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[Vp].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[Vp],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ih.trackingDerivation&&Jc(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ih.trackingDerivation&&Jc(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[Vp],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function hf(e,t){"function"==typeof Array.prototype[e]&&(df[e]=t(e))}function ff(e){return function(){var t=this[Vp];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function gf(e){return function(t,n){var r=this,o=this[Vp];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function vf(e){return function(){var t=this,n=this[Vp];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}hf("concat",ff),hf("flat",ff),hf("includes",ff),hf("indexOf",ff),hf("join",ff),hf("lastIndexOf",ff),hf("slice",ff),hf("toString",ff),hf("toLocaleString",ff),hf("every",gf),hf("filter",gf),hf("find",gf),hf("findIndex",gf),hf("flatMap",gf),hf("forEach",gf),hf("map",gf),hf("some",gf),hf("reduce",vf),hf("reduceRight",vf);var yf,mf,Cf=wp("ObservableArrayAdministration",cf);function wf(e){return gp(e)&&Cf(e[Vp])}var Ef={},bf="add";yf=Symbol.iterator,mf=Symbol.toStringTag;var Rf,_f,Sf=function(){function e(e,t,n){var r=this;void 0===t&&(t=Up),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Vp]=Ef,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,hp(Map)||Jc(18),this.keysAtom_=Bp("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Md(!0,(function(){r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ih.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Gd(this.has_(e),zp,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Nh(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(ef(this)){var r=nf(this,{type:n?lf:bf,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,ef(this))&&!nf(this,{type:"delete",object:this,name:e}))return!1;if(this.has_(e)){var n=rf(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:"delete",object:this,oldValue:this.data_.get(e).value_,name:e}:null;return qh((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&sf(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ih.UNCHANGED){var r=rf(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:lf,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&sf(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,qh((function(){var r,o=new Gd(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=rf(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:bf,object:this,name:e,newValue:t}:null;r&&sf(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return tg({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return tg({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[yf]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=xp(this);!(n=r()).done;){var o=n.value,i=o[0],s=o[1];e.call(t,s,i,this)}},t.merge=function(e){var t=this;return Of(e)&&(e=new Map(e)),qh((function(){vp(e)?function(e){var t=Object.keys(e);if(!Rp)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return ip.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):Ep(e)?(e.constructor!==Map&&Jc(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&Jc(20,e)})),this},t.clear=function(){var e=this;qh((function(){Xd((function(){for(var t,n=xp(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return qh((function(){for(var n,r=function(e){if(Ep(e)||Of(e))return e;if(Array.isArray(e))return new Map(e);if(vp(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return Jc(21,e)}(e),o=new Map,i=!1,s=xp(t.data_.keys());!(n=s()).done;){var a=n.value;if(!r.has(a))if(t.delete(a))i=!0;else{var l=t.data_.get(a);o.set(a,l)}}for(var u,c=xp(r.entries());!(u=c()).done;){var p=u.value,d=p[0],h=p[1],f=t.data_.has(d);if(t.set(d,h),t.data_.has(d)){var g=t.data_.get(d);o.set(d,g),f||(i=!0)}}if(!i)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var v=t.data_.keys(),y=o.keys(),m=v.next(),C=y.next();!m.done;){if(m.value!==C.value){t.keysAtom_.reportChanged();break}m=v.next(),C=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return of(this,e)},t.intercept_=function(e){return tf(this,e)},Ap(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:mf,get:function(){return"Map"}}]),e}(),Of=wp("ObservableMap",Sf);var Pf={};Rf=Symbol.iterator,_f=Symbol.toStringTag;var Tf=function(){function e(e,t,n){void 0===t&&(t=Up),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[Vp]=Pf,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,hp(Set)||Jc(22),this.atom_=Bp(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;qh((function(){Xd((function(){for(var t,n=xp(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=xp(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if((this.atom_,ef(this))&&!nf(this,{type:bf,object:this,newValue:e}))return this;if(!this.has(e)){qh((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=rf(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:bf,object:this,newValue:e}:null;n&&sf(this,r)}return this},t.delete=function(e){var t=this;if(ef(this)&&!nf(this,{type:"delete",object:this,oldValue:e}))return!1;if(this.has(e)){var n=rf(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:"delete",object:this,oldValue:e}:null;return qh((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&sf(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return tg({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return tg({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Af(e)&&(e=new Set(e)),qh((function(){Array.isArray(e)||bp(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&Jc("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return of(this,e)},t.intercept_=function(e){return tf(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Rf]=function(){return this.values()},Ap(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:_f,get:function(){return"Set"}}]),e}(),Af=wp("ObservableSet",Tf),Df=Object.create(null),Nf=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=ad),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new Hp("ObservableObject.keys"),this.isPlainObject_=vp(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof jd)return n.set(t),!0;if(ef(this)){var r=nf(this,{type:lf,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ih.UNCHANGED){var o=rf(this),i=o?{type:lf,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),o&&sf(this,i)}return!0},t.get_=function(e){return ih.trackingDerivation&&!Op(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),Op(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ih.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Gd(e in this.target_,zp,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[Lp])&&n[e])return;Jc(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==ip;){var o=rp(r,e);if(o){var i=t.make_(this,e,o,r);if(0===i)return;if(1===i)break}r=Object.getPrototypeOf(r)}Lf(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var o=n.extend_(this,e,t,r);return o&&Lf(this,n,e),o},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{uh();var r=this.delete_(e);if(!r)return r;if(ef(this)){var o=nf(this,{object:this.proxy_||this.target_,name:e,type:bf,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=Dp({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else op(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{ch()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{uh();var o=this.delete_(e);if(!o)return o;if(ef(this)){var i=nf(this,{object:this.proxy_||this.target_,name:e,type:bf,newValue:t});if(!i)return null;t=i.newValue}var s=Ff(e),a={configurable:!ih.safeDescriptors||this.isPlainObject_,enumerable:!0,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,e,a))return!1}else op(this.target_,e,a);var l=new Gd(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{ch()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{uh();var r=this.delete_(e);if(!r)return r;if(ef(this))if(!nf(this,{object:this.proxy_||this.target_,name:e,type:bf,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=Ff(e),i={configurable:!ih.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else op(this.target_,e,i);this.values_.set(e,new jd(t)),this.notifyPropertyAddition_(e,void 0)}finally{ch()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!Op(this.target_,e))return!0;if(ef(this)&&!nf(this,{object:this.proxy_||this.target_,name:e,type:"remove"}))return null;try{var n,r;uh();var o,i=rf(this),s=this.values_.get(e),a=void 0;if(!s&&i)a=null==(o=rp(this.target_,e))?void 0:o.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(s&&(this.values_.delete(e),s instanceof Gd&&(a=s.value_),dh(s)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),i){var l={type:"remove",observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};0,i&&sf(this,l)}}finally{ch()}return!0},t.observe_=function(e,t){return of(this,e)},t.intercept_=function(e){return tf(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,o=rf(this);if(o){var i=o?{type:bf,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;o&&sf(this,i)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),_p(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function If(e,t){var n;if(Op(e,Vp))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new Nf(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ld(e):void 0}(t));return mp(e,Vp,o),e}var Mf=wp("ObservableObjectAdministration",Nf);function Ff(e){return Df[e]||(Df[e]={get:function(){return this[Vp].getObservablePropValue_(e)},set:function(t){return this[Vp].setObservablePropValue_(e,t)}})}function xf(e){return!!gp(e)&&Mf(e[Vp])}function Lf(e,t,n){var r;null==(r=e.target_[Lp])||delete r[n]}var Gf,kf,Vf=jf(0),Hf=0,Wf=function(){};Gf=Wf,kf=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Gf.prototype,kf):void 0!==Gf.prototype.__proto__?Gf.prototype.__proto__=kf:Gf.prototype=kf;var Bf=function(e,t,n){function r(t,n,r,o){var i;void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this;var s=new cf(r,n,o,!0);if(s.proxy_=Mp(i),Cp(Mp(i),Vp,s),t&&t.length){var a=Fd(!0);i.spliceWithArray(0,0,t),xd(a)}return Object.defineProperty(Mp(i),"0",Vf),i}Np(r,e);var o=r.prototype;return o.concat=function(){this[Vp].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return wf(e)?e.slice():e})))},o[n]=function(){var e=this,t=0;return tg({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},Ap(r,[{key:"length",get:function(){return this[Vp].getArrayLength_()},set:function(e){this[Vp].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),r}(Wf,Symbol.toStringTag,Symbol.iterator);function jf(e){return{enumerable:!1,configurable:!0,get:function(){return this[Vp].get_(e)},set:function(t){this[Vp].set_(e,t)}}}function Uf(e){op(Bf.prototype,""+e,jf(e))}function zf(e){if(e>Hf){for(var t=Hf;t<e+100;t++)Uf(t);Hf=e}}function Kf(e,t,n){return new Bf(e,t,n)}function Yf(e,t){if("object"==typeof e&&null!==e){if(wf(e))return void 0!==t&&Jc(23),e[Vp].atom_;if(Af(e))return e.atom_;if(Of(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||Jc(25,t,$f(e)),n}if(xf(e)){if(!t)return Jc(26);var r=e[Vp].values_.get(t);return r||Jc(27,t,$f(e)),r}if(Wp(e)||Ud(e)||yh(e))return e}else if(hp(e)&&yh(e[Vp]))return e[Vp];Jc(28)}function qf(e,t){return e||Jc(29),void 0!==t?qf(Yf(e,t)):Wp(e)||Ud(e)||yh(e)||Of(e)||Af(e)?e:e[Vp]?e[Vp]:void Jc(24,e)}function $f(e,t){var n;if(void 0!==t)n=Yf(e,t);else{if(Oh(e))return e.name;n=xf(e)||Of(e)||Af(e)?qf(e):Yf(e)}return n.name_}Object.entries(df).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&mp(Bf.prototype,t,n)})),zf(1e3);var Xf,Qf=ip.toString;function Zf(e,t,n){return void 0===n&&(n=-1),Jf(e,t,n)}function Jf(e,t,n,r,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var s=Qf.call(e);if(s!==Qf.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=eg(e),t=eg(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(hp(l)&&l instanceof l&&hp(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return o[c]===t;if(r.push(e),o.push(t),a){if((c=e.length)!==t.length)return!1;for(;c--;)if(!Jf(e[c],t[c],n-1,r,o))return!1}else{var p,d=Object.keys(e);if(c=d.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!Op(t,p=d[c])||!Jf(e[p],t[p],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function eg(e){return wf(e)?e.slice():Ep(e)||Of(e)||bp(e)||Af(e)?Array.from(e.entries()):e}function tg(e){return e[Symbol.iterator]=ng,e}function ng(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===tp()[e]&&Jc("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:$f},$mobx:Vp});var rg=new Uint8Array(16);function og(){if(!Xf&&!(Xf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xf(rg)}var ig=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function sg(e){return"string"==typeof e&&ig.test(e)}for(var ag=[],lg=0;lg<256;++lg)ag.push((lg+256).toString(16).substr(1));function ug(e,t,n){var r=(e=e||{}).random||(e.rng||og)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ag[e[t+0]]+ag[e[t+1]]+ag[e[t+2]]+ag[e[t+3]]+"-"+ag[e[t+4]]+ag[e[t+5]]+"-"+ag[e[t+6]]+ag[e[t+7]]+"-"+ag[e[t+8]]+ag[e[t+9]]+"-"+ag[e[t+10]]+ag[e[t+11]]+ag[e[t+12]]+ag[e[t+13]]+ag[e[t+14]]+ag[e[t+15]]).toLowerCase();if(!sg(n))throw TypeError("Stringified UUID is invalid");return n}(r)}let cg,pg;const dg=new WeakMap,hg=new WeakMap,fg=new WeakMap,gg=new WeakMap,vg=new WeakMap;let yg={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return hg.get(e);if("objectStoreNames"===t)return e.objectStoreNames||fg.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return wg(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function mg(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(pg||(pg=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Eg(this),t),wg(dg.get(this))}:function(...t){return wg(e.apply(Eg(this),t))}:function(t,...n){const r=e.call(Eg(this),t,...n);return fg.set(r,t.sort?t.sort():[t]),wg(r)}}function Cg(e){return"function"==typeof e?mg(e):(e instanceof IDBTransaction&&function(e){if(hg.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));hg.set(e,t)}(e),t=e,(cg||(cg=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,yg):e);var t}function wg(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(wg(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&dg.set(t,e)})).catch((()=>{})),vg.set(t,e),t}(e);if(gg.has(e))return gg.get(e);const t=Cg(e);return t!==e&&(gg.set(e,t),vg.set(t,e)),t}const Eg=e=>vg.get(e);function bg(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=wg(s);return r&&s.addEventListener("upgradeneeded",(e=>{r(wg(s.result),e.oldVersion,e.newVersion,wg(s.transaction))})),n&&s.addEventListener("blocked",(()=>n())),a.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(()=>o()))})).catch((()=>{})),a}function Rg(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",(()=>t())),wg(n).then((()=>{}))}const _g=["get","getKey","getAll","getAllKeys","count"],Sg=["put","add","delete","clear"],Og=new Map;function Pg(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Og.get(t))return Og.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Sg.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!_g.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let s=i.store;return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),o&&i.done]))[0]};return Og.set(t,i),i}yg=(e=>((e,r)=>t(e,n(r)))(((e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(r)for(var n of r(t))i.call(t,n)&&s(e,n,t[n]);return e})({},e),{get:(t,n,r)=>Pg(t,n)||e.get(t,n,r),has:(t,n)=>!!Pg(t,n)||e.has(t,n)}))(yg);for(var Tg={},Ag={byteLength:function(e){var t=Lg(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=Lg(e),o=r[0],i=r[1],s=new Ig(function(e,t,n){return 3*(t+n)/4-n}(0,o,i)),a=0,l=i>0?o-4:o;for(n=0;n<l;n+=4)t=Ng[e.charCodeAt(n)]<<18|Ng[e.charCodeAt(n+1)]<<12|Ng[e.charCodeAt(n+2)]<<6|Ng[e.charCodeAt(n+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===i&&(t=Ng[e.charCodeAt(n)]<<2|Ng[e.charCodeAt(n+1)]>>4,s[a++]=255&t);1===i&&(t=Ng[e.charCodeAt(n)]<<10|Ng[e.charCodeAt(n+1)]<<4|Ng[e.charCodeAt(n+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},fromByteArray:function(e){for(var t,n=e.length,r=n%3,o=[],i=16383,s=0,a=n-r;s<a;s+=i)o.push(Gg(e,s,s+i>a?a:s+i));1===r?(t=e[n-1],o.push(Dg[t>>2]+Dg[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(Dg[t>>10]+Dg[t>>4&63]+Dg[t<<2&63]+"="));return o.join("")}},Dg=[],Ng=[],Ig="undefined"!=typeof Uint8Array?Uint8Array:Array,Mg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fg=0,xg=Mg.length;Fg<xg;++Fg)Dg[Fg]=Mg[Fg],Ng[Mg.charCodeAt(Fg)]=Fg;function Lg(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function Gg(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(Dg[(o=r)>>18&63]+Dg[o>>12&63]+Dg[o>>6&63]+Dg[63&o]);return i.join("")}Ng["-".charCodeAt(0)]=62,Ng["_".charCodeAt(0)]=63;var kg={
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
read:function(e,t,n,r,o){var i,s,a=8*o-r-1,l=(1<<a)-1,u=l>>1,c=-7,p=n?o-1:0,d=n?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+e[t+p],p+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=256*s+e[t+p],p+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=u}return(h?-1:1)*s*Math.pow(2,i-r)},write:function(e,t,n,r,o,i){var s,a,l,u=8*i-o-1,c=(1<<u)-1,p=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*l-1)*Math.pow(2,o),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&a,h+=f,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+h]=255&s,h+=f,s/=256,u-=8);e[n+h-f]|=128*g}};
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/
|
||
!function(e){const t=Ag,n=kg,r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|h(e,t);let r=i(n);const o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);const o=function(e){if(s.isBuffer(e)){const t=0|d(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?i(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),i(e<0?0:0|d(e))}function c(e){const t=e.length<0?0:0|d(e.length),n=i(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function d(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(o)return r?-1:U(e).length;t=(""+t).toLowerCase(),o=!0}}function f(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){let i,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let r=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(u(e,i+r)!==u(t,r)){n=!1;break}if(n)return i}return-1}function m(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(q(r))return s;e[n+s]=r}return s}function C(e,t,n,r){return K(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return K(z(t),e,n,r)}function b(e,t,n,r){return K(function(e,t){let n,r,o;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function R(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function _(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(o+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],a=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=S));return n}(r)}e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return a(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}(e,t,n)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=s.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))o+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):f.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const l=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n);for(let s=0;s<l;++s)if(u[s]!==c[s]){i=u[s],a=c[s];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return m(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let i=t;i<n;++i)o+=$[e[i]];return o}function A(e,t,n){const r=e.slice(t,n);let o="";for(let i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r,o){H(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function M(e,t,n,r,o){H(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function F(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function x(e,t,r,o,i){return t=+t,r>>>=0,i||F(e,0,r,4),n.write(e,t,r,o,23,4),r+4}function L(e,t,r,o,i){return t=+t,r>>>=0,i||F(e,0,r,8),n.write(e,t,r,o,52,8),r+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||B(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),s.prototype.readBigUInt64BE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||B(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||B(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||B(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=X((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=X((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=X((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=X((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,n){return x(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return x(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=s.isBuffer(e)?e:s.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const G={};function k(e,t,n){G[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function H(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new G.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||B(t,e.length-(n+1))}(r,o,i)}function W(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function B(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new G.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}k("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),k("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),k("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=V(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=V(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const j=/[^+/0-9A-Za-z-_]/g;function U(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}}(Tg);var Vg={exports:{}};
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&e.push(s)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var a in o)t.call(o,a)&&o[a]&&e.push(a);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Vg);var Hg=Vg.exports;if(!l.exports.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!af)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Wg(e){e()}function Bg(e){return Fh(Yf(e,t));var t}var jg=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach((function(r,o){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(o))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),Ug=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:jg)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),zg={exports:{}},Kg={},Yg=l.exports;var qg="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},$g=Yg.useState,Xg=Yg.useEffect,Qg=Yg.useLayoutEffect,Zg=Yg.useDebugValue;function Jg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qg(e,n)}catch(r){return!0}}var ev,tv,nv="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=$g({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Qg((function(){o.value=n,o.getSnapshot=t,Jg(o)&&i({inst:o})}),[e,n,t]),Xg((function(){return Jg(o)&&i({inst:o}),e((function(){Jg(o)&&i({inst:o})}))}),[e]),Zg(n),n};function rv(e){e.reaction=new hh("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}Kg.useSyncExternalStore=void 0!==Yg.useSyncExternalStore?Yg.useSyncExternalStore:nv,zg.exports=Kg;var ov="function"==typeof Symbol&&Symbol.for,iv=null!==(tv=null===(ev=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===ev?void 0:ev.configurable)&&void 0!==tv&&tv,sv=ov?Symbol.for("react.forward_ref"):"function"==typeof l.exports.forwardRef&&l.exports.forwardRef((function(e){return null})).$$typeof,av=ov?Symbol.for("react.memo"):"function"==typeof l.exports.memo&&l.exports.memo((function(e){return null})).$$typeof;function lv(e,t){var n;if(av&&e.$$typeof===av)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,i=e.displayName||e.name;if(sv&&e.$$typeof===sv&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,a,u=function(e,t){return function(e,t){void 0===t&&(t="observed");var n=U.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return Ug.unregister(r),r.onStoreChange=e,r.reaction||(rv(r),r.stateVersion=Symbol()),function(){var e;r.onStoreChange=null,null===(e=r.reaction)||void 0===e||e.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var o,i,s=n.current;if(s.reaction||(rv(s),Ug.register(n,s,s)),U.useDebugValue(s.reaction,Bg),zg.exports.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot),s.reaction.track((function(){try{o=e()}catch(t){i=t}})),i)throw i;return o}((function(){return o(e,t)}),i)};return u.displayName=e.displayName,iv&&Object.defineProperty(u,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(u.contextTypes=e.contextTypes),r&&(u=l.exports.forwardRef(u)),u=l.exports.memo(u),s=e,a=u,Object.keys(s).forEach((function(e){cv[e]||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(s,e))})),u}var uv,cv={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function pv(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(uv=z.exports.unstable_batchedUpdates)||(uv=Wg),Mh({reactionScheduler:uv}),Ug.finalizeAllImmediately;var dv=Symbol("patchMixins"),hv=Symbol("patchedDefinition");function fv(e,t){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.locks++;try{var s;return null!=e&&(s=e.apply(this,o)),s}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,o)}))}}function gv(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];fv.call.apply(fv,[this,e,t].concat(r))}}function vv(e,t,n){var r=function(e,t){var n=e[dv]=e[dv]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[hv]){var i=e[t],s=yv(e,t,o?o.enumerable:void 0,r,i);Object.defineProperty(e,t,s)}}function yv(e,t,n,r,o){var i,s=gv(o,r);return(i={})[hv]=!0,i.get=function(){return s},i.set=function(o){if(this===e)s=gv(o,r);else{var i=yv(this,t,n,r,o);Object.defineProperty(this,t,i)}},i.configurable=!0,i.enumerable=n,i}var mv=Symbol("ObserverAdministration"),Cv=Symbol("isMobXReactObserver");function wv(e){var t;return null!=(t=e[mv])?t:e[mv]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:Ev(e.constructor),state:void 0,props:void 0,context:void 0}}function Ev(e){return e.displayName||e.name||"<component>"}function bv(e){var t=e.bind(this),n=wv(this);return function(){n.reaction||(n.reaction=function(t){return new hh(t.name+".render()",(function(){if(t.mounted)try{null==t.forceUpdate||t.forceUpdate()}catch(e){var n;null==(n=t.reaction)||n.dispose(),t.reaction=null}else t.reactionInvalidatedBeforeMount=!0}))}(n),n.mounted||Ug.register(this,n,this));var e=void 0,r=void 0;if(n.reaction.track((function(){try{r=Md(!1,t)}catch(n){e=n}})),e)throw e;return r}}function Rv(e,t){return this.state!==t||!function(e,t){if(pv(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<n.length;o++)if(!Object.hasOwnProperty.call(t,n[o])||!pv(e[n[o]],t[n[o]]))return!1;return!0}(this.props,e)}function _v(e,t){if(t&&"class"!==t.kind)throw new Error("The @observer decorator can be used on classes only");return!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(l.exports.Component,e)||Object.prototype.isPrototypeOf.call(l.exports.PureComponent,e)?function(e){var t=e.prototype;if(e[Cv]){var n=Ev(e);throw new Error("The provided component class ("+n+") has already been declared as an observer component.")}if(e[Cv]=!0,t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==l.exports.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==Rv)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=Rv;var r=t.render;if("function"!=typeof r){var o=Ev(e);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}t.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:bv.call(this,r)}),this.render()};var i=t.componentDidMount;return t.componentDidMount=function(){var e=this,t=wv(this);return t.mounted=!0,Ug.unregister(this),t.forceUpdate=function(){return e.forceUpdate()},t.reaction&&!t.reactionInvalidatedBeforeMount||t.forceUpdate(),null==i?void 0:i.apply(this,arguments)},vv(t,"componentWillUnmount",(function(){var e,t=wv(this);null==(e=t.reaction)||e.dispose(),t.reaction=null,t.forceUpdate=null,t.mounted=!1,t.reactionInvalidatedBeforeMount=!1})),e}(e):lv(e)}if(U.version.split(".")[0],!l.exports.Component)throw new Error("mobx-react requires React to be available");if(!bd)throw new Error("mobx-react requires mobx to be available");var Sv={exports:{}};!function(e){!function(t,n,r){if(t){for(var o,i={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},s={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},u=1;u<20;++u)i[111+u]="f"+u;for(u=0;u<=9;++u)i[u+96]=u.toString();v.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},v.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},v.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(g(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);o=null},v.init=function(){var e=v(n);for(var t in e)"_"!==t.charAt(0)&&(v[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},v.init(),t.Mousetrap=v,e.exports&&(e.exports=v)}function c(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return i[e.which]?i[e.which]:s[e.which]?s[e.which]:String.fromCharCode(e.which).toLowerCase()}function d(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function h(e,t,n){return n||(n=function(){if(!o)for(var e in o={},i)e>95&&e<112||i.hasOwnProperty(e)&&(o[i[e]]=e);return o}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function f(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],l[r]&&(r=l[r]),t&&"keypress"!=t&&a[r]&&(r=a[r],i.push("shift")),d(r)&&i.push(r);return{key:r,modifiers:i,action:t=h(r,i,t)}}function g(e,t){return null!==e&&e!==n&&(e===t||g(e.parentNode,t))}function v(e){var t=this;if(e=e||n,!(t instanceof v))return new v(e);t.target=e,t._callbacks={},t._directMap={};var r,o={},i=!1,s=!1,a=!1;function l(e){e=e||{};var t,n=!1;for(t in o)e[t]?n=!0:o[t]=0;n||(a=!1)}function u(e,n,r,i,s,a){var l,u,c,p,h=[],f=r.type;if(!t._callbacks[e])return[];for("keyup"==f&&d(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(u=t._callbacks[e][l],(i||!u.seq||o[u.seq]==u.level)&&f==u.action&&("keypress"==f&&!r.metaKey&&!r.ctrlKey||(c=n,p=u.modifiers,c.sort().join(",")===p.sort().join(",")))){var g=!i&&u.combo==s,v=i&&u.seq==i&&u.level==a;(g||v)&&t._callbacks[e].splice(l,1),h.push(u)}return h}function h(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function g(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=p(e);n&&("keyup"!=e.type||i!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):i=!1)}function y(e,t,n,s){function u(t){return function(){a=t,++o[e],clearTimeout(r),r=setTimeout(l,1e3)}}function c(t){h(n,t,e),"keyup"!==s&&(i=p(t)),setTimeout(l,10)}o[e]=0;for(var d=0;d<t.length;++d){var g=d+1===t.length?c:u(s||f(t[d+1]).action);m(t[d],g,s,e,d)}}function m(e,n,r,o,i){t._directMap[e+":"+r]=n;var s,a=(e=e.replace(/\s+/g," ")).split(" ");a.length>1?y(e,a,n,r):(s=f(e,r),t._callbacks[s.key]=t._callbacks[s.key]||[],u(s.key,s.modifiers,{type:s.action},o,e,i),t._callbacks[s.key][o?"unshift":"push"]({callback:n,modifiers:s.modifiers,action:s.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=u(e,t,n),i={},c=0,p=!1;for(r=0;r<o.length;++r)o[r].seq&&(c=Math.max(c,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=c)continue;p=!0,i[o[r].seq]=1,h(o[r].callback,n,o[r].combo,o[r].seq)}else p||h(o[r].callback,n,o[r].combo);var f="keypress"==n.type&&s;n.type!=a||d(e)||f||l(i),s=p&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)m(e[r],t,n)},c(e,"keypress",g),c(e,"keydown",g),c(e,"keyup",g)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)}(Sv);var Ov=Sv.exports,Pv={},Tv={},Av={};
|
||
/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
' * @license MIT
|
||
*/
|
||
!function(e){
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function t(e){return null==e||""===e?null:e}function n(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function r(e){return!n(e)}function o(e){return null==e||0===e.length}function i(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function s(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 l(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<t?-1:0}if("string"!=typeof e)return i(e,t);if(!n)return i(e,t);try{return e.localeCompare(t)}catch(s){return i(e,t)}}function c(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.values(e)}Object.defineProperty(e,"__esModule",{value:!0});var p=Object.freeze({makeNull:t,exists:n,missing:r,missingOrEmpty:o,toStringOrNull:i,attrToNumber:s,attrToBoolean:l,attrToString:function(e){if(null!=e&&""!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:u,values:c}),d=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=i(e);for(var n=0;;){var r=void 0;if(e?(r=e,0!==n&&(r+="_"+n)):t?(r=t,0!==n&&(r+="_"+n)):r=""+n,!this.existingKeys[r])return this.existingKeys[r]=!0,r;n++}},e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function h(e,t){null!=e&&(Array.isArray(e)?e.forEach((function(e,n){return t(""+n,e)})):Object.keys(e).forEach((function(n){return t(n,e[n])})))}function f(e){for(var t={},n=Object.keys(e),r=0;r<n.length;r++){var o=n[r],i=e[o];t[o]=i}return t}function g(e,t){if(e){var n=e,r={};return Object.keys(n).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var o=n[e],i=_(o)&&o.constructor===Object;r[e]=i?g(o):o}})),r}}function v(e,t){return e[t]}function y(e,t,n){e[t]=n}function m(e,t,n,r){var o=v(e,n);void 0!==o&&y(t,n,r?r(o):o)}function C(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)}function w(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 E(e,t,r,o){void 0===r&&(r=!0),void 0===o&&(o=!1),n(t)&&h(t,(function(t,n){var i=e[t];if(i!==n){if(o)if(null==i&&null!=n)"object"==typeof n&&n.constructor===Object&&(i={},e[t]=i);_(n)&&_(i)&&!Array.isArray(i)?E(i,n,r,o):(r||void 0!==n)&&(e[t]=n)}}))}function b(e,t,n){if(t&&e){if(!n)return e[t];for(var r=t.split("."),o=e,i=0;i<r.length;i++){if(null==o)return;o=o[r[i]]}return o}}function R(e,t){Object.keys(e).forEach((function(t){"object"==typeof e[t]&&(e[t]=void 0)}));var n=Object.getPrototypeOf(e),r={};Object.keys(n).forEach((function(e){if("function"==typeof n[e]){r[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(e,r)}function _(e){return"object"==typeof e&&null!==e}var S=Object.freeze({iterateObject:h,cloneObject:f,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:g,getProperty:v,setProperty:y,copyPropertiesIfPresent:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];n.forEach((function(n){return m(e,t,n)}))},copyPropertyIfPresent:m,getAllKeysInObjects:C,getAllValuesInObject:w,mergeDeep:E,missingOrEmptyObject:function(e){return r(e)||0===Object.keys(e).length},get:function(e,t,n){if(null==e)return n;for(var r=t.split("."),o=e;r.length>1;)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),c(t).forEach((function(t){(_(t)||"function"==typeof t)&&e(t)})),t},getValueUsingField:b,removeAllReferences:R,isNonNullObject:_}),O=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,P=/([^\s,]+)/g,T={};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function A(e,t){T[t]||(e(),T[t]=!0)}function D(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function N(e){return!!(e&&e.constructor&&e.call&&e.apply)}function I(e){L(e,400)}var M=[],F=!1;function x(e){M.push(e),F||(F=!0,window.setTimeout((function(){var e=M.slice();M.length=0,F=!1,e.forEach((function(e){return e()}))}),0))}function L(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function G(e,t,n){var r;return void 0===n&&(n=!1),function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=this,a=n&&!r;window.clearTimeout(r),r=window.setTimeout((function(){r=null,n||e.apply(s,o)}),t),a&&e.apply(s,o)}}function k(e,t){var n=0;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,s=(new Date).getTime();s-n<t||(n=s,e.apply(i,r))}}function V(e,t,n,r){void 0===n&&(n=100);var o=(new Date).getTime(),i=null,s=!1,a=function(){var a=(new Date).getTime()-o>n;(e()||a)&&(t(),s=!0,null!=i&&(window.clearInterval(i),i=null),a&&r&&console.warn(r))};a(),s||(i=window.setInterval(a,10))}function H(e){e&&e()}var W=Object.freeze({doOnce:A,getFunctionName:D,getFunctionParameters:function(e){var t=e.toString().replace(O,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(P)||[]},isFunction:N,executeInAWhile:I,executeNextVMTurn:x,executeAfter:L,debounce:G,throttle:k,waitUntil:V,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},callIfPresent:H}),B=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> 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 c(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"),n(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),h(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,i,s=e.getBeansForParameters(r,n.bean.name),a=(o=n.bean,i=[null].concat(s),new(o.bind.apply(o,i)));n.beanInstance=a}));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?D(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){h(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&&h(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}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function j(e,t,n){var r=Q(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function U(e,t,n){var r=Q(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function z(e,t,n){var r=Q(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function K(e){return function(t){Q(t).beanName=e}}function Y(e){return function(t,n,r){$(t,e,!1,t,n,null)}}function q(e){return function(t,n,r){$(t,e,!0,t,n,null)}}function $(e,t,n,r,o,i){if(null!==t)if("number"!=typeof i){var s=Q(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.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 X(e){return function(t,n,r){var o,i="function"==typeof t?t:t.constructor;if("number"==typeof r){var s=void 0;n?(o=Q(i),s=n):(o=Q(i),s="agConstructor"),o.autowireMethods||(o.autowireMethods={}),o.autowireMethods[s]||(o.autowireMethods[s]={}),o.autowireMethods[s][r]=e}}}function Q(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var Z,J=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ee=function(e,t){return function(n,r){t(n,r,e)}},te=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&&o.forEach((function(r){t?n.dispatchAsync((function(){return r(e)})):r(e)})),(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()}))},J([ee(0,X("loggerFactory")),ee(1,X("gridOptionsWrapper")),ee(2,X("frameworkOverrides")),ee(3,X("globalEventListener"))],e.prototype,"setBeans",null),e=J([K("eventService")],e)}(),ne=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}();(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
Z=e.ModuleNames||(e.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",Z.CommunityAllModules="@ag-grid-community/all",Z.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",Z.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",Z.CsvExportModule="@ag-grid-community/csv-export",Z.EnterpriseCoreModule="@ag-grid-enterprise/core",Z.EnterpriseAllModules="@ag-grid-enterprise/all",Z.RowGroupingModule="@ag-grid-enterprise/row-grouping",Z.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",Z.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",Z.MenuModule="@ag-grid-enterprise/menu",Z.SetFilterModule="@ag-grid-enterprise/set-filter",Z.MultiFilterModule="@ag-grid-enterprise/multi-filter",Z.StatusBarModule="@ag-grid-enterprise/status-bar",Z.SideBarModule="@ag-grid-enterprise/side-bar",Z.RangeSelectionModule="@ag-grid-enterprise/range-selection",Z.MasterDetailModule="@ag-grid-enterprise/master-detail",Z.RichSelectModule="@ag-grid-enterprise/rich-select",Z.GridChartsModule="@ag-grid-enterprise/charts",Z.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",Z.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",Z.ExcelExportModule="@ag-grid-enterprise/excel-export",Z.ClipboardModule="@ag-grid-enterprise/clipboard",Z.SparklinesModule="@ag-grid-enterprise/sparklines",Z.AngularModule="@ag-grid-community/angular",Z.ReactModule="@ag-grid-community/react",Z.VueModule="@ag-grid-community/vue",Z.PolymerModule="@ag-grid-community/polymer";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var re=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&&A((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(t,n){if(this.isRegistered(t))return!0;var r,o=n+t;return r=e.moduleBased?"AG Grid: unable to use "+n+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",A((function(){console.warn(r)}),o),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return c(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),oe=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ie=0,se=function(){function t(e,t,n,r){this.instanceId=ie++,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new te,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 t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setState=function(e){void 0!==e.sort?e.sort!==ne.SORT_ASC&&e.sort!==ne.SORT_DESC||(this.sort=e.sort):e.initialSort!==ne.SORT_ASC&&e.initialSort!==ne.SORT_DESC||(this.sort=e.initialSort);var t=s(e.sortIndex),n=s(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var r=l(e.hide),o=l(e.initialHide);this.visible=void 0!==r?!r:!o,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=s(e.flex),a=s(e.initialFlex);void 0!==i?this.flex=i:void 0!==a&&(this.flex=a)},t.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation()},t.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},t.prototype.setParent=function(e){this.parent=e},t.prototype.getParent=function(){return this.parent},t.prototype.setOriginalParent=function(e){this.originalParent=e},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},t.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=n(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=n(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},t.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},t.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(e){if(r(this.colDef)||r(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function r(e,t,n){A((function(){n?console.warn(e,n):A((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!re.isRegistered(e.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){n(t[o])&&(re.isPackageBased()?r("AG Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):r("AG Grid: "+o+" is only valid with AG Grid Enterprise Module "+e.ModuleNames.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(re.isRegistered(e.ModuleNames.RichSelectModule)||"agRichSelect"===this.colDef.cellEditor&&(re.isPackageBased()?r("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):r("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+e.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(e){n(t[e])&&r("AG Grid: "+e+" is not possible when doing tree data, your column definition should not have "+e,"TreeDataCannotRowGroup")}))}n(this.colDef.width)&&"number"!=typeof this.colDef.width&&r("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),t.pinnedRowCellRenderer&&r("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"),t.pinnedRowCellRendererParams&&r("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"),t.pinnedRowCellRendererFramework&&r("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"),t.pinnedRowValueGetter&&r("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")},t.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},t.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},t.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()}},t.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},t.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},t.prototype.isSuppressFillHandle=function(){return!!l(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!l(this.colDef.autoHeight)},t.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},t.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!!l(this.colDef.resizable)},t.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createColumnFunctionCallbackParams(e))},t.prototype.setMoving=function(e,n){void 0===n&&(n="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MOVING_CHANGED,n))},t.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(e,n){void 0===n&&(n="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_SORT_CHANGED,n)))},t.prototype.setMenuVisible=function(e,n){void 0===n&&(n="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MENU_VISIBLE_CHANGED,n)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return this.sort===ne.SORT_ASC},t.prototype.isSortDescending=function(){return this.sort===ne.SORT_DESC},t.prototype.isSortNone=function(){return r(this.sort)},t.prototype.isSorting=function(){return n(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(e){this.sortIndex=e},t.prototype.setAggFunc=function(e){this.aggFunc=e},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(e,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LEFT_CHANGED,n)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(e,n,r){void 0===n&&(n="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FILTER_ACTIVE_CHANGED,n)));var o=this.createColumnEvent(t.EVENT_FILTER_CHANGED,n);r&&E(o,r),this.eventService.dispatchEvent(o)},t.prototype.setPinned=function(e){!0===e||e===ne.PINNED_LEFT?this.pinned=ne.PINNED_LEFT:e===ne.PINNED_RIGHT?this.pinned=ne.PINNED_RIGHT:this.pinned=null},t.prototype.setFirstRightPinned=function(e,n){void 0===n&&(n="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},t.prototype.setLastLeftPinned=function(e,n){void 0===n&&(n="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return this.pinned===ne.PINNED_LEFT||this.pinned===ne.PINNED_RIGHT},t.prototype.isPinnedLeft=function(){return this.pinned===ne.PINNED_LEFT},t.prototype.isPinnedRight=function(){return this.pinned===ne.PINNED_RIGHT},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(e,n){void 0===n&&(n="api");var r=!0===e;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VISIBLE_CHANGED,n)))},t.prototype.isVisible=function(){return this.visible},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.getColId()},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.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()}},t.prototype.getColSpan=function(e){if(r(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},t.prototype.getRowSpan=function(e){if(r(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},t.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))},t.prototype.fireColumnWidthChangedEvent=function(e){this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_WIDTH_CHANGED,e))},t.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},t.prototype.setMinimum=function(e){void 0===e&&(e="api"),n(this.minWidth)&&this.setActualWidth(this.minWidth,e)},t.prototype.setRowGroupActive=function(e,n){void 0===n&&(n="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_ROW_GROUP_CHANGED,n)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(e,n){void 0===n&&(n="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_PIVOT_CHANGED,n)))},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(e,n){void 0===n&&(n="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VALUE_CHANGED,n)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},t.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},t.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},t.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},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",oe([Y("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),oe([Y("columnUtils")],t.prototype,"columnUtils",void 0),oe([Y("columnApi")],t.prototype,"columnApi",void 0),oe([Y("gridApi")],t.prototype,"gridApi",void 0),oe([Y("context")],t.prototype,"context",void 0),oe([U],t.prototype,"initialise",null),t}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++){var o=e[r];if(n(o))return o}return null}function le(e){if(e&&e.length)return e[e.length-1]}function ue(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,r){return n?n(e,t[r]):t[r]===e}))}function ce(e){return e.sort((function(e,t){return e-t}))}function pe(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function de(e,t){t.forEach((function(t){return pe(e,t)}))}function he(e,t,n){e.splice(n,0,t)}function fe(e,t,n){de(e,t),t.slice().reverse().forEach((function(t){return he(e,t,n)}))}function ge(e,t){return e.indexOf(t)>-1}function ve(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}var ye=Object.freeze({firstExistingValue:ae,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:le,areEqual:ue,compareArrays:function(e,t){return ue(e,t)},shallowCompare:function(e,t){return ue(e,t)},sortNumerically:ce,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:pe,removeAllFromArray:de,insertIntoArray:he,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var r=t.length-1;r>=0;r--){he(e,t[r],n)}},moveInArray:fe,includes:ge,flatten:function(e){return[].concat.apply([],e)},pushAll:ve,toStrings:function(e){return e.map(i)},forEachReverse:function(e,t){if(null!=e)for(var n=e.length-1;n>=0;n--)t(e[n],n)}}),me=function(){function e(e,t,n,r){this.displayedChildren=[],this.localEventService=new te,this.groupId=t,this.instanceId=n,this.providedColumnGroup=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.getProvidedColumnGroup().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=le(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.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof se?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof se?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},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.providedColumnGroup.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.providedColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case e.HEADER_GROUP_SHOW_CLOSED:n.providedColumnGroup.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",function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),Ce=function(){function e(e,t,n,r){this.localEventService=new te,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 se?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(se.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,s=o.length;i<s;i++){var a=o[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===me.HEADER_GROUP_SHOW_OPEN?(t=!0,r=!0):l===me.HEADER_GROUP_SHOW_CLOSED?(n=!0,r=!0):(t=!0,n=!0)}}var u=t&&n&&r;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[],n=function(r){r.forEach((function(r){r instanceof e&&r.isPadding()?n(r.children):t.push(r)}))};return n(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),we={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Ee="__ag_Grid_Stop_Propagation",be=["touchstart","touchend","touchmove","touchcancel"],Re={};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function _e(e){e[Ee]=!0}function Se(e){return!0===e[Ee]}var Oe,Pe=(Oe={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof Re[e])return Re[e];var t=document.createElement(Oe[e]||"div");return Re[e="on"+e]=e in t});function Te(e,t,n){for(var r=t.target;r;){var o=e.getDomData(r,n);if(o)return o;r=r.parentElement}return null}function Ae(e,t){return!(!t||!e)&&Ne(t).indexOf(e)>=0}function De(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function Ne(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:De(e)}function Ie(e,t,n,r){var o=ge(be,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,r,o)}var Me,Fe=Object.freeze({stopPropagationForAgGrid:_e,isStopPropagationForAgGrid:Se,isEventSupported:Pe,getCtrlForEvent:Te,addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t)},isElementInEventPath:Ae,createEventPath:De,addAgGridEventPath:function(e){e.__agGridEventPath=Ne(e)},getEventPath:Ne,addSafePassiveEventListener:Ie}),xe=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Le=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 te),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?Ie(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var o=function(){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&&e.forEach((function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",xe([Y("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),xe([Y("context")],e.prototype,"context",void 0),xe([Y("eventService")],e.prototype,"eventService",void 0),xe([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),xe([z],e.prototype,"destroy",null),e}(),Ge=(Me=function(e,t){return(Me=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])})(e,t)},function(e,t){function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ke=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n,r;return Ge(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var r=new d,o=this.extractExistingTreeData(n),i=o.existingCols,s=o.existingGroups,a=o.existingColKeys;r.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,i,r,s),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var c=this.balanceColumnTree(l,0,u,r);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(e,t){e instanceof Ce&&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 Ce){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;return e.map((function(e){return n.createAutoGroupTreeItem(t,e)}))},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,r=this.findDepth(e)-1;r>=0;r--){var o=new Ce(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 Ce;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,r){for(var o=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof Ce){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,r);a.setChildren(l),o.push(a)}else{for(var u=void 0,c=void 0,p=n-1;p>=t;p--){var d=r.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new Ce(h,d,!0,t);this.context.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(o.push(u),e.some((function(e){return e instanceof Ce}))){c.setChildren([s]);continue}c.setChildren(e);break}o.push(s)}}return o},t.prototype.findMaxDept=function(e,t){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(o instanceof Ce){var i=o,s=this.findMaxDept(i.getChildren(),t+1);n<s&&(n=s)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,r,o,i){var s=this;return(e||[]).map((function(e){return s.isColumnGroup(e)?s.createColumnGroup(n,e,t,r,o,i):s.createColumn(n,e,r,o)}))},t.prototype.createColumnGroup=function(e,t,n,r,o,i){var s=this.createMergedColGroupDef(t),a=o.getUniqueKey(s.groupId||null,null),l=new Ce(s,a,!1,n);this.context.createBean(l);var u=this.findExistingGroup(t,i);u&&pe(i,u),u&&u.isExpanded()&&l.setExpanded(!0);var c=this.recursivelyCreateColumns(s.children,n+1,e,r,o,i);return l.setChildren(c),l},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(t,e),this.checkForDeprecatedItems(t),t},t.prototype.createColumn=function(e,t,n,r){var o=this.mergeColDefs(t);this.checkForDeprecatedItems(o);var i=this.findExistingColumn(t,n);if(n&&i&&pe(n,i),i)i.setColDef(o,t),this.applyColumnState(i,o);else{var s=r.getUniqueKey(o.colId,o.field);i=new se(o,t,s,e),this.context.createBean(i)}return i},t.prototype.applyColumnState=function(e,t){var n=s(t.flex);if(void 0!==n&&e.setFlex(n),e.getFlex()<=0){var r=s(t.width);if(null!=r)e.setActualWidth(r);else{var o=e.getActualWidth();e.setActualWidth(o)}}void 0!==t.sort&&(t.sort==ne.SORT_ASC||t.sort==ne.SORT_DESC?e.setSort(t.sort):e.setSort(void 0));var i=s(t.sortIndex);void 0!==i&&e.setSortIndex(i);var a=l(t.hide);void 0!==a&&e.setVisible(!a),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find((function(t){var n=t.getUserProvidedColDef();if(!n)return!1;var r=null!=e.colId,o=null!=e.field;return r?t.getId()===e.colId:o?n.field===e.field:n===e}))},t.prototype.findExistingGroup=function(e,t){return t.find((function(t){return!!t.getColGroupDef()&&(!(null==e.groupId)&&t.getId()===e.groupId)}))},t.prototype.mergeColDefs=function(e){var t={},n=this.gridOptionsWrapper.getDefaultColDef();E(t,n,!1,!0);var r=e.type;return r||(r=n&&n.type),r&&this.assignColumnTypes(r,t),E(t,e,!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var n=[];if(e instanceof Array){e.some((function(e){return"string"!=typeof e}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e}else{if("string"!=typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=e.split(",")}var r=Object.assign({},we);h(this.gridOptionsWrapper.getColumnTypes()||{},(function(e,t){e in r?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):r[e]=t})),n.forEach((function(e){var n=r[e.trim()];n?E(t,n,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("AG Grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},ke([Y("columnUtils")],t.prototype,"columnUtils",void 0),ke([(n=0,r=X("loggerFactory"),function(e,t){r(e,t,n)})],t.prototype,"setBeans",null),t=ke([K("columnFactory")],t)}(Le),He=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e}(),We=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t="number"!=typeof n?0:n+1,this.existingIds[e]=t,t},e}(),Be=/[&<>"']/g,je={"&":"&","<":"<",">":">",'"':""","'":"'"};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Ue(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function ze(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function Ke(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function Ye(e){return null==e?null:e.toString().toString().replace(Be,(function(e){return je[e]}))}function qe(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(" ")}var $e=Object.freeze({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"+e.toString(16).toUpperCase().padStart(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<o;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),i--):t.push(n);return t}(e),i=o.length,s=-1,a="";++s<i;)a+=r(o[s]);return a},camelCaseToHyphen:Ue,hyphenToCamelCase:ze,capitalise:Ke,escapeString:Ye,camelCaseToHumanText:qe});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Xe(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}var Qe=Object.freeze({convertToMap:Xe,mapById:function(e,t){var n=new Map;return e.forEach((function(e){return n.set(t(e),e)})),n},keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}}),Ze=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)}}(),Je=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},et=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},tt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},nt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(tt(arguments[t]));return e},rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.colDefVersion=0,t.flexColsCalculatedAtLestOnce=!1,t}var i,a;return Ze(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var t=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,"defaultColDef",(function(){return e.onDefaultColDefChanged()}))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.onDefaultColDefChanged=function(){this.colDefVersion++,this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},t.prototype.getColDefVersion=function(){return this.colDefVersion},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.colDefVersion++,this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)},t.prototype.createColumnsFromColumnDefs=function(e,t){var n=this;void 0===t&&(t="api");var r=e?this.compareColumnStatesAndRaiseEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns,i=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,i);this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return n.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,o),this.extractPivotColumns(t,o),this.extractValueColumns(t,o),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a)&&(this.updateGridColumns(),e&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),r&&r(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:He.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:He.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&this.gridColumns.sort((function(n,r){var o=t.indexOf(n),i=t.indexOf(r),s=o>=0,a=i>=0;return s&&a?o-i:s?1:a?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(r)}))},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:He.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:He.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(r(this.secondaryColumns))return null;var n=this.getPrimaryColumn(t),o=null;return this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;ue(r,e)&&i===n&&(o=t)})),o},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?le(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?le(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){var t=this,n=e.columns,r=e.skipHeader,o=e.skipHeaderGroups,i=e.stopAtGroup,s=e.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=r?r:this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),p=null!=o?o:c;0!==u;)u=0,this.actionOnGridColumns(n,(function(e){if(l.indexOf(e)>=0)return!1;var n=t.autoWidthCalculator.getPreferredWidthForColumn(e,c);if(n>0){var r=t.normaliseColumnWidth(e,n);e.setActualWidth(r,a),l.push(e),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(n,i),this.fireColumnResizedEvent(l,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,n,r){if(void 0===r&&(r=null),e&&e.length){var o={type:He.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({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:n})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t){var n,r,o,i,s,a=new Set;this.getGridColumns(e).forEach((function(e){for(var n=e.getParent();n&&n!=t;)n.isPadding()||a.add(n),n=n.getParent()}));try{for(var l=et(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(o=void 0,et(this.ctrlsService.getHeaderRowContainerCtrls())),d=p.next();!d.done;d=p.next()){if(s=d.value.getHeaderCtrlForColumn(c))break}}catch(h){o={error:h}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}s&&s.resizeLeafColumnsToFit()}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[],n=function(e){for(var r=0;r<e.length;r++){var o=e[r];o instanceof se?t.push(o):o instanceof Ce&&n(o.getChildren())}};return n(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=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=[],s=null,a=function(a){var l,u=t[a],c=t.length-a,p=Math.min(u.getColSpan(e),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(n?(l=!1,d.forEach((function(e){n(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&s)!!r&&r(u)&&i.push(s);i.push(u)}s=u,o=a},l=0;l<t.length;l++)a(l),l=o;return i},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var r=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,r,(function(e){var r=e.getLeft();return n(r)&&r>t.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,o=this.viewportRight+200;return!(t<r&&n<r)&&!(t>o&&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,i,s){var a=this;if(void 0===s&&(s="api"),e&&!o(e)){var l=!1;if(e.forEach((function(e){var o=a.getPrimaryColumn(e);if(o){if(n){if(t.indexOf(o)>=0)return;t.push(o)}else{if(t.indexOf(o)<0)return;pe(t,o)}r(o),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s);var u={type:i,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:s};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,He.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),He.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),He.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)}),He.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,He.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)}),He.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,r,o,i){var s=this;t.length=0,n(e)&&e.forEach((function(e){var n=s.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(r,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,He.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),He.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),He.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var r=e.getMinWidth();n(r)&&t<r&&(t=r);var o=e.getMaxWidth();return n(o)&&e.isGreaterThanMax(t)&&(t=o),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,r){var o=this;void 0===r&&(r="api");var i=[];e.forEach((function(e){var n=o.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),"shift"===o.gridOptionsWrapper.getColResizeDefault()&&(t=!t),t)){var r=o.getDisplayedColAfter(n);if(!r)return;var s=n.getActualWidth()-e.newWidth,a=r.getActualWidth()+s;i.push({width:a,ratios:[1],columns:[r]})}})),0!==i.length&&this.resizeColumnSets({resizeSets:i,finished:n,source:r})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,r=e.width,o=0,i=0,s=!0;return t.forEach((function(e){var t=e.getMinWidth();o+=t||0;var r=e.getMaxWidth();n(r)&&r>0?i+=r:s=!1})),r>=o&&(!s||r<=i)},t.prototype.resizeColumnSets=function(e){var t=this,r=e.resizeSets,o=e.finished,i=e.source;if(!r||r.every((function(e){return t.checkMinAndMaxWidthsForSet(e)}))){var s=[],a=[];r.forEach((function(e){var t=e.width,r=e.columns,o=e.ratios,l={},u={};r.forEach((function(e){return a.push(e)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],i=0,s=t;r.forEach((function(t,n){if(u[t.getId()])s-=l[t.getId()];else{e.push(t);var r=o[n];i+=r}}));var a=1/i;e.forEach((function(r,i){var p;i===e.length-1?p=s:(p=Math.round(o[i]*t*a),s-=p);var d=r.getMinWidth(),h=r.getMaxWidth();n(d)&&p<d?(p=d,u[r.getId()]=!0,c=!0):n(h)&&h>0&&p>h&&(p=h,u[r.getId()]=!0,c=!0),l[r.getId()]=p}))};c;){if("break"===d())break}r.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,i),s.push(e))}))}));var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||o)&&this.fireColumnResizedEvent(c,o,i,u)}else if(o){var p=r&&r.length>0?r[0].columns:null;this.fireColumnResizedEvent(p,o,i)}},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(He.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:He.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)){fe(this.gridColumns,r,t),this.updateDisplayedColumns(n);var o={type:He.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 fe(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=0,n=!0;return e.forEach((function(e){var r,o=(r=e.getColDef().lockPosition)?!0===r||"left"===r?0:2:1;o<t&&(n=!1),t=o})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof Ce){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;if(this.primaryColumns){var 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 ne.PINNED_LEFT:return this.leftWidth;case ne.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:He.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 ne.PINNED_LEFT:return this.getDisplayedLeftColumns();case ne.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 o(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return o(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:He.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===ne.PINNED_LEFT?ne.PINNED_LEFT:t===ne.PINNED_RIGHT?ne.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==r&&(e.setPinned(r),!0)}),n,(function(){return{type:He.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,r,i){var s=this;if(!o(e)){var a=[];if(e.forEach((function(e){var n=s.getGridColumn(e);n&&(!1!==t(n)&&a.push(n))})),a.length&&(this.updateDisplayedColumns(r),n(i)&&i)){var l=i();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},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 n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),o="After"===t?le(r):r[0],i="getDisplayedCol"+t;;){var s=this[i](o);if(!s)return null;var a=this.getColumnGroupAtLevel(s,n);if(a!==e)return a}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();;){if(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=t)break;n=n.getParent()}return n},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,nt([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,nt([this.primaryColumns||[],this.groupAutoColumns||[]]))},t.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,nt([this.primaryColumns||[],this.secondaryColumns||[]]))},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,s=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:s}},t.prototype.getColumnState=function(){if(r(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},t.prototype.orderColumnStateList=function(e){var t=Xe(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=[],o=1e3,i=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},s=e.getColDef(),a=t(s.sort,s.initialSort),l=t(s.sortIndex,s.initialSortIndex),u=t(s.hide,s.initialHide),c=t(s.pinned,s.initialPinned),p=t(s.width,s.initialWidth),d=t(s.flex,s.initialFlex),h=t(s.rowGroupIndex,s.initialRowGroupIndex),f=t(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(s.pivotIndex,s.initialPivotIndex),v=t(s.pivot,s.initialPivot);null!=g||null!=v&&0!=v||(g=null,v=null);var y=t(s.aggFunc,s.initialAggFunc),m={colId:e.getColId(),sort:a,sortIndex:l,hide:u,pinned:c,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:v,pivotIndex:g,aggFunc:y};r(h)&&f&&(m.rowGroupIndex=o++),r(g)&&v&&(m.pivotIndex=i++),n.push(m)})),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var r=this;if(void 0===t&&(t="api"),o(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;var i=function(n,o,i){var s=r.compareColumnStatesAndRaiseEvents(t);r.autoGroupsNeedBuilding=!0;var a=o.slice(),l={},u={},c=[],p=[],d=0,h=r.rowGroupColumns.slice(),f=r.pivotColumns.slice();n.forEach((function(n){var o=n.colId||"";if(o.startsWith(ne.GROUP_AUTO_COLUMN_ID))return c.push(n),void p.push(n);var s=i(o);s?(r.syncColumnWithStateItem(s,n,e.defaultState,l,u,!1,t),pe(a,s)):(p.push(n),d+=1)}));var g=function(n){return r.syncColumnWithStateItem(n,null,e.defaultState,l,u,!1,t)};a.forEach(g);var v=function(e,t,n,r){var o=e[n.getId()],i=e[r.getId()],s=null!=o,a=null!=i;if(s&&a)return o-i;if(s)return-1;if(a)return 1;var l=t.indexOf(n),u=t.indexOf(r),c=l>=0;return c&&u>=0?l-u:c?-1:1};r.rowGroupColumns.sort(v.bind(r,l,h)),r.pivotColumns.sort(v.bind(r,u,f)),r.updateGridColumns();var y=r.groupAutoColumns?r.groupAutoColumns.slice():[];return c.forEach((function(n){var o=r.getAutoColumn(n.colId);pe(y,o),r.syncColumnWithStateItem(o,n,e.defaultState,null,null,!0,t)})),y.forEach(g),r.applyOrderAfterApplyState(e),r.updateDisplayedColumns(t),r.dispatchEverythingChanged(t),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var s=i(e.state||[],this.primaryColumns||[],(function(e){return r.getPrimaryColumn(e)})),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||n(e.defaultState))&&(l=i(a,this.secondaryColumns||[],(function(e){return r.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===l},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var n=[],r={};e.state.forEach((function(e){if(e.colId&&!r[e.colId]){var o=t.gridColumnsMap[e.colId];o&&(n.push(o),r[e.colId]=!0)}}));var o=0;this.gridColumns.forEach((function(e){var t=e.getColId();null!=r[t]||(t.startsWith(ne.GROUP_AUTO_COLUMN_ID)?he(n,e,o++):n.push(e))})),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n: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,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.getPrimaryAndSecondaryAndAutoColumns(),s=function(n,r,o,i){if(!ue(r.map(i),o.map(i))){var s={type:n,columns:o,column:1===o.length?o[0]:null,api:t.gridApi,columnApi:t.columnApi,source:e};t.eventService.dispatchEvent(s)}},a=function(e){var t=[];return i.forEach((function(n){var r=o[n.getColId()];r&&e(r,n)&&t.push(n)})),t},l=function(e){return e.getColId()};s(He.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,l),s(He.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,l);a((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(He.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.fireColumnResizedEvent(a((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.raiseColumnPinnedEvent(a((function(e,t){return e.pinned!=t.getPinned()})),e);t.raiseColumnVisibleEvent(a((function(e,t){return e.hide==t.isVisible()})),e);a((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(e),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:He.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<e.length;r++)if(n!==t(e[r]))return;return n}},t.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,r=this.getCommonValue(e,(function(e){return e.isVisible()})),o={type:He.EVENT_COLUMN_VISIBLE,visible:r,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},t.prototype.raiseColumnMovedEvent=function(e,t){var n=this,r=this.getColumnState(),o={};r.forEach((function(e){return o[e.colId]=e}));var i={};e.forEach((function(e){o[e.colId]&&(i[e.colId]=!0)}));var s=e.filter((function(e){return i[e.colId]})),a=r.filter((function(e){return i[e.colId]})),l=[];if(a.forEach((function(e,t){var r=s&&s[t];if(r&&r.colId!==e.colId){var o=n.getGridColumn(r.colId);o&&l.push(o)}})),l.length){var u={type:He.EVENT_COLUMN_MOVED,columns:l,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(u)}},t.prototype.syncColumnWithStateItem=function(e,t,r,o,i,s,a){if(e){var l=function(e,o){var i={value1:void 0,value2:void 0},s=!1;return t&&(void 0!==t[e]&&(i.value1=t[e],s=!0),n(o)&&void 0!==t[o]&&(i.value2=t[o],s=!0)),!s&&r&&(void 0!==r[e]&&(i.value1=r[e]),n(o)&&void 0!==r[o]&&(i.value2=r[o])),i},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&e.setPinned(c);var p=this.columnUtils.calculateColMinWidth(e.getColDef()),d=l("flex").value1;if(void 0!==d&&e.setFlex(d),e.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&(f===ne.SORT_DESC||f===ne.SORT_ASC?e.setSort(f,a):e.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!s&&e.isPrimary()){var v=l("aggFunc").value1;void 0!==v&&("string"==typeof v?(e.setAggFunc(v),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(n(v)&&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.isValueActive()&&(e.setValueActive(!1,a),pe(this.valueColumns,e))));var y=l("rowGroup","rowGroupIndex"),m=y.value1,C=y.value2;void 0===m&&void 0===C||("number"==typeof C||m?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),o&&"number"==typeof C&&(o[e.getId()]=C)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),pe(this.rowGroupColumns,e)));var w=l("pivot","pivotIndex"),E=w.value1,b=w.value2;void 0===E&&void 0===b||("number"==typeof b||E?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),i&&"number"==typeof b&&(i[e.getId()]=b)):e.isPivotActive()&&(e.setPivotActive(!1,a),pe(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.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},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<t.length;r++)if(this.columnsMatch(t[r],e))return t[r];return this.getAutoColumn(e)},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&n(this.groupAutoColumns)&&!r(this.groupAutoColumns)&&this.groupAutoColumns.find((function(n){return t.columnsMatch(n,e)}))||null},t.prototype.columnsMatch=function(e,t){var n=e===t,r=e.getColDef()===t,o=e.getColId()==t;return n||r||o},t.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var r=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,r):r},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,n){var r=t?t.getColGroupDef():null;return r?this.getHeaderName(r,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,r,o){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:n,providedColumnGroup:r,location:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof i?i(s):"string"==typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?qe(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var r,o=e.getColDef().pivotValueColumn,i=null;if(n(o)){var s=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(s&&!a)return t;i=o?o.getAggFunc():null,r=!0}else{var l=e.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(i=e.getAggFunc(),r=!0):r=!1}if(r){var c="string"==typeof i?i:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(c,c)+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof me)return e;var n=this.getAllDisplayedTrees(),r="number"==typeof t,o=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof me){var i=n;(r?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(o=i)}})),o},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){}),(function(){}),(function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc})),this.valueColumns.forEach((function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.initialRowGroupIndex}),(function(e){return e.rowGroup}),(function(e){return e.initialRowGroup}))},t.prototype.extractColumns=function(e,t,n,r,o,i,a){void 0===e&&(e=[]),void 0===t&&(t=[]);var u=[],c=[];(this.primaryColumns||[]).forEach((function(n){var p=e.indexOf(n)<0,d=n.getColDef(),h=l(i(d)),f=l(a(d)),g=s(r(d)),v=s(o(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==v)&&(null!=v&&v>=0):t.indexOf(n)>=0)&&((p?null!=g||null!=v:null!=g)?u.push(n):c.push(n))}));var p=function(e){var t=r(e.getColDef()),n=o(e.getColDef());return null!=t?t:n};u.sort((function(e,t){var n=p(e),r=p(t);return n===r?0:n<r?-1:1}));var d=[].concat(u);return t.forEach((function(e){c.indexOf(e)>=0&&d.push(e)})),c.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&n(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&n(e,!0)})),d},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 Ce){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){t instanceof Ce&&e.push({groupId:t.getGroupId(),open:t.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.getProvidedColumnGroup(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:He.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 Ce?e.getId():e||"",this.setColumnGroupState([{groupId:r,open:t}],n)},t.prototype.getProvidedColumnGroup=function(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){n instanceof Ce&&n.getId()===e&&(t=n)})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&r(this.secondaryColumns)?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&ge(e.groupAutoColumns,t),r=e.valueColumns&&ge(e.valueColumns,t);return n||r})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&ge(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){n(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var r=t.getColDef();r&&n(r.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 n(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var n=this;void 0===t&&(t="api");var o=e&&e.length>0;if(o||!r(this.secondaryColumns)){if(o){this.processSecondaryColumnDefinitions(e);var i=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=i.columnTree,this.secondaryHeaderRowCount=i.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return n.secondaryColumnsMap[e.getId()]=e})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),r=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||r){var o=function(e){e.forEach((function(e){if(n(e.children)){var i=e;r&&r(i),o(i.children)}else{t&&t(e)}}))};e&&o(e)}},t.prototype.updateGridColumns=function(){var e=this;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var t=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,t&&this.orderGridColsLike(this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLike(this.lastPrimaryOrder));this.addAutoGroupToGridColumns(),this.gridColumns=this.placeLockedColumns(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 n={type:He.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();if(!(e===ne.ROW_MODEL_TYPE_CLIENT_SIDE||e===ne.ROW_MODEL_TYPE_SERVER_SIDE)){A((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLike=function(e){if(!r(e)){var t=Xe(e.map((function(e,t){return[e,t]}))),n=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(n=!1)})),!n){var o=Xe(this.gridColumns.map((function(e){return[e,!0]}))),i=e.filter((function(e){return o.has(e)})),s=Xe(i.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!s.has(e)})),l=i.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,nt(r));he(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.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.placeLockedColumns=function(e){var t=[],n=[],r=[];return e.forEach((function(e){var o=e.getColDef().lockPosition;"right"===o?r.push(e):"left"===o||!0===o?t.push(e):n.push(e)})),nt(t,n,r)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!r(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:He.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.isAutoHeight()}))},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;if(this.primaryColumns){var 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 s=0;o.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}de(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 me&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof se&&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 ne.PINNED_LEFT:n=this.viewportRowLeft[t];break;case ne.PINNED_RIGHT:n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return r(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(n,r,o){for(var i=!1,s=0;s<n.length;s++){var a=n[s],l=!1;if(a instanceof se)l=!0===e[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=t(u,r,o+1))}l&&(i=!0,r[o]||(r[o]=[]),r[o].push(a))}return i};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns(),this.extractViewportRows()},t.prototype.filterOutColumnsWithinViewport=function(){return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this))},t.prototype.refreshFlexedColumns=function(e){var t=this;void 0===e&&(e={});var r=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var o=-1;e.resizingCols&&e.resizingCols.forEach((function(e){var n=t.displayedColumnsCenter.indexOf(e);o<n&&(o=n)}));var i=function(e){var n=t.displayedColumnsCenter.indexOf(e)>o;return e.getFlex()&&n},s=this.displayedColumnsCenter.filter((function(e){return!i(e)})),a=this.displayedColumnsCenter.filter((function(e){return i(e)})),l=[];if(!a.length)return[];var u,c=[];e:for(;;){var p=a.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,v=h.getMinWidth(),y=h.getMaxWidth();if(n(v)&&f<v?g=v:n(y)&&f>y&&(g=y),g){h.setActualWidth(g,r),pe(a,h),l.push(h),s.push(h);continue e}c[d]=Math.round(f)}break}var m=u;return a.forEach((function(e,t){e.setActualWidth(Math.min(c[t],m),r),l.push(e),m-=c[t]})),e.skipSetLeft||this.setLeftValues(r),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,r,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},t.prototype.sizeColumnsToFit=function(e,t,r){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var i=[],s=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?s.push(e):i.push(e)}));var a=i.slice(0),l=!1,u=function(e){pe(i,e),s.push(e)};for(i.forEach((function(e){return e.resetActualWidth(t)}));!l;){l=!0;var c=e-this.getWidthOfColsInList(s);if(c<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var p=c/this.getWidthOfColsInList(i),d=c,h=i.length-1;h>=0;h--){var f=i[h],g=f.getMinWidth(),v=f.getMaxWidth(),y=Math.round(f.getActualWidth()*p);n(g)&&y<g?(y=g,u(f),l=!1):n(v)&&f.isGreaterThanMax(y)?(y=v,u(f),l=!1):0===h&&(y=d),f.setActualWidth(y,t,!0),d-=y}}a.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),r||this.fireColumnResizedEvent(a,!0,t)}},t.prototype.buildDisplayedTrees=function(e){var t=[],n=[],r=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:r.push(e)}}));var o=new We;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,o,ne.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,o,ne.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,o,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof me&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e){var n=this.groupAutoColumns||[],r=this.autoGroupColService.createAutoGroupColumns(n,this.rowGroupColumns);(!this.autoColsEqual(r,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=r)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return ue(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<t.length;n++){var r=this[t[n]]();if(r.length)return e?le(r):r[0]}return null},Je([Y("expressionService")],t.prototype,"expressionService",void 0),Je([Y("columnFactory")],t.prototype,"columnFactory",void 0),Je([Y("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Je([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Je([Y("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Je([Y("columnUtils")],t.prototype,"columnUtils",void 0),Je([Y("columnAnimationService")],t.prototype,"columnAnimationService",void 0),Je([Y("autoGroupColService")],t.prototype,"autoGroupColService",void 0),Je([q("aggFuncService")],t.prototype,"aggFuncService",void 0),Je([q("valueCache")],t.prototype,"valueCache",void 0),Je([q("animationFrameService")],t.prototype,"animationFrameService",void 0),Je([Y("rowModel")],t.prototype,"rowModel",void 0),Je([Y("columnApi")],t.prototype,"columnApi",void 0),Je([Y("gridApi")],t.prototype,"gridApi",void 0),Je([Y("sortController")],t.prototype,"sortController",void 0),Je([Y("columnDefFactory")],t.prototype,"columnDefFactory",void 0),Je([U],t.prototype,"init",null),Je([(i=0,a=X("loggerFactory"),function(e,t){a(e,t,i)})],t.prototype,"setBeans",null),t=Je([K("columnModel")],t)}(Le),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)}}(),it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ot(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,n=this.calculateColMinWidth(e),r=this.calculateColMaxWidth(e),o=s(e.width),i=s(e.initialWidth);return t=null!=o?o:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(t,r),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],r=!1,o=function(t,i){for(var s=0;s<t.length;s++){if(r)return;var a=t[s];if(a instanceof Ce)o(a.getChildren(),i+1),n[i]=a;else a===e&&(r=!0)}};return o(t,0),r?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var r=this;t&&t.forEach((function(t){t instanceof Ce&&r.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof me&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof me&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},t=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K("columnUtils")],t)}(Le),st=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)}}(),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return st(t,e),t.prototype.createDisplayedGroups=function(e,t,n,r,o){var i,s,a=this,l=[],u=this.mapOldGroupsById(o);return e.forEach((function(e){for(var o=a.getOriginalPathForColumn(t,e),c=[],p=!s,d=0;d<o.length;d++)if(p||o[d]!==s[d]){var h=a.createColumnGroup(o[d],n,u,r);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=i[d];0===c.length?l.push(e):le(c).addChild(e);i=c,s=o})),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,r,o){var i=e.getGroupId(),s=t.getInstanceIdForKey(i),a=r[me.createUniqueId(i,s)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),n(a)?a.reset():(a=new me(e,i,s,o),this.context.createBean(a)),a},t.prototype.mapOldGroupsById=function(e){var t={},n=function(e){e.forEach((function(e){if(e instanceof me){var r=e;t[e.getUniqueId()]=r,n(r.getChildren())}}))};return e&&n(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof me){var r=e;n.setupParentsIntoColumns(r.getChildren(),r)}}))},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],r=!1,o=function(e,i){for(var s=0;s<e.length;s++){if(r)return;var a=e[s];a instanceof Ce?(o(a.getChildren(),i+1),n[i]=a):a===t&&(r=!0)}};return o(e,0),r?n:(console.warn("AG Grid: could not get path"),null)},t=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K("displayedGroupCreator")],t)}(Le),lt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},ut=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","statusBar","sideBar","chartThemeOverrides","customChartThemes"],e.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges"],e.FUNCTION_PROPERTIES=["localeTextFunc","getLocaleText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getGroupRowAgg","getRowNodeId","isFullWidthCell","isFullWidthRow","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","isRowMaster","isRowSelectable","postSort","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","defaultGroupSortComparator","defaultGroupOrderComparator","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.ALL_PROPERTIES=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(lt(arguments[t]));return e}(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),ct=function(){return(ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},pt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},dt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(pt(arguments[t]));return e},ht=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,n,r){"object"!=typeof t&&(t={});var o=t,i=function(e){return void 0!==n[e]};return i("groupAggFiltering")&&"function"!=typeof n.groupAggFiltering&&(o.groupAggFiltering=e.toBoolean(n.groupAggFiltering),delete n.groupAggFiltering),dt(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEach((function(e){return o[e]=n[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return o[t]=e.toBoolean(n[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return o[t]=e.toNumber(n[t])})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,n,r,o){if(t){var i=ct({},t),s=n,a=function(e){return i[e]};a("groupAggFiltering")&&("function"==typeof i.groupAggFiltering?s.groupAggFiltering=i.groupAggFiltering:s.groupAggFiltering=e.toBoolean(i.groupAggFiltering),delete i.groupAggFiltering),i.rowClass&&(r.setRowClass(i.rowClass.currentValue),delete i.rowClass),dt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(a).forEach((function(e){return s[e]=i[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toBoolean(i[t].currentValue)})),e.NUMBER_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toNumber(i[t].currentValue)})),i.enableCellTextSelection&&(r.setEnableCellTextSelection(e.toBoolean(i.enableCellTextSelection.currentValue)),delete i.enableCellTextSelection),i.quickFilterText&&(r.setQuickFilter(i.quickFilterText.currentValue),delete i.quickFilterText),i.autoGroupColumnDef&&(r.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.columnDefs&&(r.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),i.defaultColDef&&(r.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.paginationPageSize&&(r.paginationSetPageSize(e.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.pivotMode&&(o.setPivotMode(e.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode),i.groupRemoveSingleChildren&&(r.setGroupRemoveSingleChildren(e.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.suppressRowDrag&&(r.setSuppressRowDrag(e.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(r.setSuppressMoveWhenRowDragging(e.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(r.setSuppressRowClickSelection(e.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(r.setSuppressClipboardPaste(e.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(r.setHeaderHeight(e.toNumber(i.headerHeight.currentValue)),delete i.headerHeight);var l=r;Object.keys(i).forEach((function(e){var n="set"+e.charAt(0).toUpperCase()+e.substring(1);l[n]&&l[n](t[e].currentValue)}));var u={type:He.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};h(t,(function(e,t){u[e]=t})),r.dispatchEvent(u)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.PUBLIC_EVENTS=[],e.EXCLUDED_INTERNAL_EVENTS=[],e.STRING_PROPERTIES=ut.STRING_PROPERTIES,e.OBJECT_PROPERTIES=ut.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=ut.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=ut.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=ut.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=ut.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=ut.ALL_PROPERTIES,e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/ht.EVENTS=c(He),ht.EXCLUDED_INTERNAL_EVENTS=[He.EVENT_SCROLLBAR_WIDTH_CHANGED,He.EVENT_CHECKBOX_CHANGED,He.EVENT_HEIGHT_SCALE_CHANGED,He.EVENT_BODY_HEIGHT_CHANGED,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,He.EVENT_SCROLL_VISIBILITY_CHANGED,He.EVENT_COLUMN_HOVER_CHANGED,He.EVENT_FLASH_CELLS,He.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,He.EVENT_DISPLAYED_ROWS_CHANGED,He.EVENT_LEFT_PINNED_WIDTH_CHANGED,He.EVENT_RIGHT_PINNED_WIDTH_CHANGED,He.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,He.EVENT_POPUP_TO_FRONT,He.EVENT_KEYBOARD_FOCUS,He.EVENT_MOUSE_FOCUS,He.EVENT_STORE_UPDATED,He.EVENT_COLUMN_PANEL_ITEM_DRAG_START,He.EVENT_COLUMN_PANEL_ITEM_DRAG_END,He.EVENT_FILL_START,He.EVENT_FILL_END,He.EVENT_FULL_WIDTH_ROW_FOCUSED],ht.PUBLIC_EVENTS=ht.EVENTS.filter((function(e){return!ge(ht.EXCLUDED_INTERNAL_EVENTS,e)}));
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var ft=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)}}(),gt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return ft(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=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K("agStackComponentsRegistry")],t)}(Le),vt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},yt=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","floatingFilterFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(vt(arguments[t]));return e}(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),mt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ct=function(){function e(e,t,n,r){void 0===r&&(r=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,r||0))}return e.fromString=function(t){if(t.indexOf("#")>=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.parseHex=function(e){var t;switch((e=e.replace(/ /g,"").slice(1)).length){case 6:case 8:t=[];for(var n=0;n<e.length;n+=2)t.push(parseInt(""+e[n]+e[n+1],16));break;case 3:case 4:t=e.split("").map((function(e){return parseInt(e,16)})).map((function(e){return e+16*e}))}if(t.length>=3&&t.every((function(e){return e>=0})))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var n=e.parseHex(t);if(n){var r=mt(n,4);return new e(r[0]/255,r[1]/255,r[2]/255,r[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=mt([NaN,NaN],2),n=t[0],r=t[1],o=0;o<e.length;o++){var i=e[o];if(n||"("!==i){if(")"===i){r=o;break}}else n=o}var s=n&&r&&e.substring(n+1,r);if(s){var a=s.split(","),l=[];for(o=0;o<a.length;o++){var u=a[o],c=parseFloat(u);if(isNaN(c))return;u.indexOf("%")>=0?(c=Math.max(0,Math.min(100,c)),c/=100):3===o?c=Math.max(0,Math.min(1,c)):(c=Math.max(0,Math.min(255,c)),c/=255),l.push(c)}return l}},e.fromRgbaString=function(t){var n=e.stringToRgba(t);if(n){if(3===n.length)return new e(n[0],n[1],n[2]);if(4===n.length)return new e(n[0],n[1],n[2],n[3])}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 s=o-r,a=(o-e)/s,l=(o-t)/s,u=(o-n)/s;i=e===o?u-l:t===o?2+a-u:4+l-a,(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 s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=n*(1-t),u=n*(1-t*a),c=n*(1-t*(1-a));switch(s>>0){case 0:r=n,o=c,i=l;break;case 1:r=u,o=n,i=l;break;case 2:r=l,o=n,i=c;break;case 3:r=l,o=u,i=n;break;case 4:r=c,o=l,i=n;break;case 5:r=n,o=l,i=u}}return[r,o,i]},e.prototype.derive=function(t,n,r,o){var i=e.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&r>1&&(s=.05);var a=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);s=Math.max(Math.min(s*r,1),0);var u=Math.max(Math.min(this.a*o,1),0),c=e.HSBtoRGB(a,l,s);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.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}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function wt(e,t){void 0===t&&(t=",");var n=[],r=function(e){return"\r"===e||"\n"===e},o=!1;if(""===e)return[[""]];for(var i,s,a,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){n[l]||(n[l]=[]),n[l][u]||(n[l][u]="")};if(f(),'"'===d){if(o)return'"'===h?(n[l][u]+='"',c++):o=!1,i=l,s=u,a=c,"continue";if(void 0===p||p===t||r(p))return o=!0,i=l,s=u,a=c,"continue"}if(!o){if(d===t)return u++,f(),i=l,s=u,a=c,"continue";if(r(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,i=l,s=u,a=c,"continue"}n[l][u]+=d,i=l,s=u,a=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=i,c=s,p=a;return n}var Et,bt,Rt,_t,St,Ot,Pt,Tt,At=Object.freeze({stringToArray:wt});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Dt(){return void 0===Rt&&(Rt=!(void 0===bt&&(bt=!!document.documentMode),bt||!window.StyleMedia)),Rt}function Nt(){return void 0===Et&&(Et=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Et}function It(){if(void 0===_t){var e=window;_t=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return _t}function Mt(){if(void 0===St){var e=window;St=void 0!==e.InstallTrigger}return St}function Ft(){return void 0===Ot&&(Ot=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Ot}function xt(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");return-1!==t||null!==n&&(""!==n||Mt())?t.toString():null}function Lt(){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 Gt(){return null==Tt&&kt(),Tt}function kt(){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&&(Tt=n,Pt=0===n)}function Vt(){return null==Pt&&kt(),Pt}function Ht(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Wt(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var Bt,jt=Object.freeze({isBrowserEdge:Dt,isBrowserSafari:Nt,isBrowserChrome:It,isBrowserFirefox:Mt,isIOSUserAgent:Ft,getTabIndex:xt,getMaxDivHeight:Lt,getScrollbarWidth:Gt,isInvisibleScrollbar:Vt,hasOverflowScrolling:function(){var e,t,n=["webkit","moz","o","ms"],r=document.createElement("div"),o=!1;document.getElementsByTagName("body")[0].appendChild(r),r.setAttribute("style",n.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(r);if("touch"===i.overflowScrolling&&(o=!0),!o)try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),a=s.next();!a.done;a=s.next())if("touch"===i[a.value+"OverflowScrolling"]){o=!0;break}}catch(l){e={error:l}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return r.parentNode&&r.parentNode.removeChild(r),o},getBodyWidth:Ht,getBodyHeight:Wt});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Ut(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,ne.INPUT_SELECTOR),r=t.call(e,ne.FOCUSABLE_EXCLUDE),o=sn(e);return n&&!r&&o}function zt(e,t){e.classList.toggle("ag-hidden",!t)}function Kt(e,t){e.classList.toggle("ag-invisible",!t)}function Yt(e,t){var n="disabled",r=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};r(e),On(e.querySelectorAll("input"),(function(e){return r(e)}))}function qt(e,t,n){for(var r=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,n&&++r>n)break}return!1}function $t(e){var t=window.getComputedStyle(e),n=t.height,r=t.width,o=t.paddingTop,i=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,u=t.marginRight,c=t.marginBottom,p=t.marginLeft,d=t.boxSizing;return{height:parseFloat(n),width:parseFloat(r),paddingTop:parseFloat(o),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(c),marginLeft:parseFloat(p),boxSizing:d}}function Xt(e){var t=$t(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function Qt(e){var t=$t(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function Zt(e){var t=$t(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function Jt(e){var t=$t(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function en(){if("boolean"==typeof Bt)return Bt;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='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(e),e.scrollLeft=1,Bt=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Bt}function tn(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),It()&&!en()&&(n=e.scrollWidth-e.clientWidth-n)),n}function nn(e,t,n){n&&(en()?t*=-1:(Nt()||It())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function rn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function on(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function sn(e){return null!==e.offsetParent}function an(e){if(null!==DOMParser)return(new DOMParser).parseFromString(e,"text/html").body.firstChild;var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function ln(e){return e&&e.clientHeight?e.clientHeight:0}function un(e){return e&&e.clientWidth?e.clientWidth:0}function cn(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 pn(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=e.children[n];o!==r&&e.insertBefore(r,o)}}function dn(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function hn(e,t){t&&Object.keys(t).forEach((function(n){var r=ze(n);r&&(e.style[r]=t[n])}))}function fn(e){return e.clientWidth<e.scrollWidth}function gn(e){return e.clientHeight<e.scrollHeight}function vn(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):yn(e,t)}function yn(e,t){t=Cn(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function mn(e,t){t=Cn(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Cn(e){return"number"==typeof e?e+"px":e}function wn(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function En(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&_(e)&&1===e.nodeType&&"string"==typeof e.nodeName}function bn(e){return wn(e)||En(e)}function Rn(e){if(null==e)return[];var t=[];return On(e,(function(e){return t.push(e)})),t}function _n(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];t(r.name,r.value)}}function Sn(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function On(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n])}var Pn=Object.freeze({radioCssClass:function(e,t,n){for(var r=e.parentElement,o=r&&r.firstChild;o;)t&&o.classList.toggle(t,o===e),n&&o.classList.toggle(n,o!==e),o=o.nextSibling},isFocusableFormField:Ut,setDisplayed:zt,setVisible:Kt,setDisabled:Yt,isElementChildOfClass:qt,getElementSize:$t,getInnerHeight:Xt,getInnerWidth:Qt,getAbsoluteHeight:Zt,getAbsoluteWidth:Jt,isRtlNegativeScroll:en,getScrollLeft:tn,setScrollLeft:nn,clearElement:rn,removeElement:function(e,t){on(e.querySelector(t))},removeFromParent:on,isVisible:sn,loadTemplate:an,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:ln,offsetWidth:un,ensureDomOrder:cn,setDomChildOrder:pn,insertWithDomOrder:dn,prependDC:function(e,t){n(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:hn,isHorizontalScrollShowing:fn,isVerticalScrollShowing:gn,setElementWidth:vn,setFixedWidth:yn,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):mn(e,t)},setFixedHeight:mn,formatSize:Cn,isNode:wn,isElement:En,isNodeOrElement:bn,copyNodeList:Rn,iterateNamedNodeMap:_n,setCheckboxState:function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},addOrRemoveAttribute:Sn,nodeListForEach:On});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var Tn=Object.freeze({getNameOfClass:function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var r=0;r<e.length;r++){var o=e[r],i=o.toString().split("e-");i.length>1?n=Math.max(n,parseInt(i[1],10)):Math.floor(o)!==o&&(n=Math.max(n,o.toString().split(".")[1].length))}for(var s=0,a=0,l=0,u=0,c=0,p=0;p<t;p++)s+=p,a+=c=e[p],u+=p*p,l+=p*c;var d=(t*l-s*a)/(t*u-s*s),h=a/t-d*s/t,f=[];for(p=0;p<=t;p++)f.push(parseFloat((p*d+h).toFixed(n)));return f},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return h(e,(function(e,n){var r=Ue(e);t.push(r+": "+n+";")})),t.join(" ")},message:function(e){var t=document.createElement("div"),n=document.querySelector("#__ag__message");if(t.innerHTML=e,!n){n=an('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(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)}))}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function An(e,t,n){e.setAttribute(Nn(t),n.toString())}function Dn(e,t){e.removeAttribute(Nn(t))}function Nn(e){return"aria-"+e}function In(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Mn(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function Fn(e){return parseInt(e.getAttribute("aria-level"),10)}function xn(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Ln(e,t){var n="label";t?An(e,n,t):Dn(e,n)}function Gn(e,t){var n="labelledby";t?An(e,n,t):Dn(e,n)}function kn(e,t){var n="description";t?An(e,n,t):Dn(e,n)}function Vn(e,t){var n="describedby";t?An(e,n,t):Dn(e,n)}function Hn(e,t){An(e,"level",t)}function Wn(e,t){An(e,"disabled",t)}function Bn(e,t){An(e,"expanded",t)}function jn(e){Dn(e,"expanded")}function Un(e,t){An(e,"setsize",t)}function zn(e,t){An(e,"posinset",t)}function Kn(e,t){An(e,"multiselectable",t)}function Yn(e,t){An(e,"rowcount",t)}function qn(e,t){An(e,"rowindex",t)}function $n(e,t){An(e,"colcount",t)}function Xn(e,t){An(e,"colindex",t)}function Qn(e,t){An(e,"colspan",t)}function Zn(e,t){An(e,"sort",t)}function Jn(e){Dn(e,"sort")}function er(e,t){var n="selected";t?An(e,n,t):Dn(e,n)}function tr(e,t){An(e,"checked",void 0===t?"mixed":t)}var nr=Object.freeze({setAriaRole:In,getAriaSortState:Mn,getAriaLevel:Fn,getAriaPosInSet:xn,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:Ln,setAriaLabelledBy:Gn,setAriaDescription:kn,setAriaDescribedBy:Vn,setAriaLevel:Hn,setAriaDisabled:Wn,setAriaExpanded:Bn,removeAriaExpanded:jn,setAriaSetSize:Un,setAriaPosInSet:zn,setAriaMultiSelectable:Kn,setAriaRowCount:Yn,setAriaRowIndex:qn,setAriaColCount:$n,setAriaColIndex:Xn,setAriaColSpan:Qn,setAriaSort:Zn,removeAriaSort:Jn,setAriaSelected:er,setAriaChecked:tr});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function rr(e,t){return e.toString().padStart(t,"0")}function or(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function ir(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function sr(e,t,n){return"number"!=typeof e?"":e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var ar=Object.freeze({padStartWidthZeros:rr,createArrayOfNumbers:or,isNumeric:ir,cleanNumber:function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},decToHex:function(e,t){for(var n="",r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e,t,n){return"number"!=typeof e?"":sr(Math.round(100*e)/100,t,n)},formatNumberCommas:sr,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),lr=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function ur(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 rr(e,2)})).join(n);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return rr(e,2)})).join(":")),r}function cr(e){if(!e)return null;var t=lr(e.split(" "),2),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=lr(o,3),s=i[0],a=i[1],l=i[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!r||"00:00:00"===r)return u;var c=lr(r.split(":").map((function(e){return parseInt(e,10)})),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var pr=Object.freeze({serialiseDate:ur,parseDateTimeFromString:cr});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function dr(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]=hr(e,n)})),r}function hr(e,t,n,r){var o=r?vr:gr,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 fr(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 gr(e,t){if(0===e.length&&0===t.length)return 0;var n,r,o=fr(e),i=fr(t),s=o.length+i.length,a=0;for(n=0,r=o.length;n<r;n++){var l,u=o[n],c=void 0;for(c=0,l=i.length;c<l;c++){u===i[c]&&a++}}return a>0?2*a/s:0}function vr(e,t){for(var n=e.replace(/\s/g,""),r=t.replace(/\s/g,""),o=0,i=0,s=0;s<n.length;s++){var a=r.indexOf(n[s],i);-1!==a&&(o+=100-100*(i=a)/1e4*100)}return o}var yr=Object.freeze({fuzzyCheckStrings:dr,fuzzySuggestions:hr,get_bigrams:fr,string_distances:gr,string_weighted_distances:vr}),mr={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Cr(e,t,n){var r=wr(e,t,n);if(r&&r.className.indexOf("ag-icon")>-1)return r;var o=document.createElement("span");return o.appendChild(r),o}function wr(e,t,n,r){var o=null,i=n&&n.getColDef().icons;if(i&&(o=i[e]),t&&!o){var s=t.getIcons();s&&(o=s[e])}if(!o){var a=document.createElement("span"),l=mr[e];return l||(r?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),In(a,"presentation"),a}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?an(u):bn(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Er=Object.freeze({iconNameClassMap:mr,createIcon:Cr,createIconNoSpan:wr});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function br(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,n=function(e){return Dt()&&"Del"===e.key&&46===e.charCode}(e);return t||n}function Rr(e,t,n,r,o){var i=e.getSuppressKeyboardEventFunc(),s=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i&&!s)return!1;var a={event:t,editing:o,column:r,api:e.getApi(),node:n,data:n.data,colDef:r.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(s&&s(a))return!0;return!!i&&i(a)}function _r(e,t,r,o){var i=o.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;return!!n(s)&&!!s({api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:o,headerRowIndex:r,event:t})}var Sr=Object.freeze({isEventFromPrintableCharacter:br,isUserSuppressingKeyboardEvent:Rr,isUserSuppressingHeaderKeyboardEvent:_r});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Or(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 Pr=Object.freeze({areEventsNear:Or});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var Tr=Object.freeze({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,s=void 0!==o;return i&&s?r-o:!i&&!s?e.__objectId-n.__objectId:i?1:-1},r=!1,o=0;o<e.length-1;o++)if(n(e[o],e[o+1])>0){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)}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Ar(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Dr,Nr=Object.freeze({convertToSet:Ar}),Ir=function(){return(Ir=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Mr=Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir(Ir({},Tn),nr),ye),jt),At),pr),Pn),Fe),W),yr),p),Er),Sr),Qe),Pr),ar),S),Tr),Nr),$e),Fr=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
Dr=e.AgPromiseStatus||(e.AgPromiseStatus={}))[Dr.IN_PROGRESS=0]="IN_PROGRESS",Dr[Dr.RESOLVED=1]="RESOLVED";var xr,Lr,Gr=function(){function t(t){var n=this;this.status=e.AgPromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],t((function(e){return n.onDone(e)}),(function(e){return n.onReject(e)}))}return t.all=function(e){return new t((function(t){var n=e.length,r=new Array(n);e.forEach((function(e,o){e.then((function(e){r[o]=e,0===--n&&t(r)}))}))}))},t.resolve=function(e){return void 0===e&&(e=null),new t((function(t){return t(e)}))},t.prototype.then=function(n){var r=this;return new t((function(t){r.status===e.AgPromiseStatus.RESOLVED?t(n(r.resolution)):r.waiters.push((function(e){return t(n(e))}))}))},t.prototype.resolveNow=function(t,n){return this.status===e.AgPromiseStatus.RESOLVED?n(this.resolution):t},t.prototype.onDone=function(t){this.status=e.AgPromiseStatus.RESOLVED,this.resolution=t,this.waiters.forEach((function(e){return e(t)}))},t.prototype.onReject=function(e){console.warn("TBI")},t}(),kr=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),Vr=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)}}(),Hr=function(){return(Hr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Wr=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(Lr=xr||(xr={}))[Lr.NOTHING=0]="NOTHING",Lr[Lr.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",Lr[Lr.SHOWING=2]="SHOWING";var Br=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=xr.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return Vr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,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(!Ft()&&this.state==xr.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=xr.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===xr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=xr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===xr.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=xr.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("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<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=Hr({},this.parentComp.getTooltipParams());if(n(e.value)){this.state=xr.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(t)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==xr.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var r=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.popupService.addPopup({eChild:n,ariaLabel:r("ariaLabelTooltip","Tooltip")});o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Wr([Y("popupService")],t.prototype,"popupService",void 0),Wr([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Wr([Y("columnApi")],t.prototype,"columnApi",void 0),Wr([Y("gridApi")],t.prototype,"gridApi",void 0),Wr([U],t.prototype,"postConstruct",null),t}(Le),jr=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)}}(),Ur=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zr=new Fr,Kr=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.addCssClass(e)})):!0!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.add(e),this.cssClassStates[e]=!0)},e.prototype.removeCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.removeCssClass(e)})):!1!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.remove(e),this.cssClassStates[e]=!1)},e.prototype.containsCssClass=function(e){return this.getGui().classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var n=this,r=(e||"").split(" ");r.length>1?r.forEach((function(e){return n.addOrRemoveCssClass(e,t)})):this.cssClassStates[e]!==t&&e.length&&(this.getGui().classList.toggle(e,t),this.cssClassStates[e]=t)},e}(),Yr=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=zr.next(),n.cssClassManager=new Kr((function(){return n.eGui})),t&&n.setTemplate(t),n}return jr(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 Br(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;Rn(e.childNodes).forEach((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,s=this.agStackComponentsRegistry.getComponentClass(o);if(s){t.elementGettingCreated=e;var a=new s(i);return a.setParentComponent(this),this.createBean(a,null,n),a}return null},t.prototype.copyAttributesFromNode=function(e,t){_n(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=D(t.constructor);n&&n[r]&&n[r].querySelectors&&n[r].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=an(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(bn(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,Kt(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,zt(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){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(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",Ur([Y("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Ur([j],t.prototype,"preConstructOnComponent",null),Ur([j],t.prototype,"createChildComponentsPreConstruct",null),t}(Le);
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function qr(e){return $r.bind(this,"[ref="+e+"]",e)}function $r(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]}
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(e,D(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 Xr,Qr,Zr=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)}}(),Jr=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},eo=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return Zr(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("")},Jr([qr("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Jr([Y("columnModel")],t.prototype,"columnModel",void 0),t}(Yr),to=function(){function e(e,t,n,r){var o=this;this.alive=!0,this.context=e,this.eParent=r,t.getDateCompDetails(n).newAgStackInstance().then((function(t){o.alive?(o.dateComp=t,t&&(r.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),o.tempValue&&t.setDate(o.tempValue),null!=o.disabled&&o.setDateCompDisabled(o.disabled))):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.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){zt(this.eParent,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.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),no=function(){return(no=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ro=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},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){if([["displayKey"],["displayName"],["predicate","test"]].every((function(e){return!!e.some((function(e){return null!=t[e]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)}))){var n=t.test,r=no({},t);null!=n&&null==t.predicate&&(r.predicate=function(e,t){return n(e[0],t)},delete r.test),r.hideFilterInput&&null==r.numberOfInputs&&(r.numberOfInputs=0,delete r.hideFilterInput),e.customFilterOptions[t.displayKey]=r}else e.filterOptions=e.filterOptions.filter((function(e){return e===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}(),oo={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",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},io=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.V="KeyV",e.D="KeyD",e.Z="KeyZ",e.Y="KeyY",e}(),so=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(){return(ao=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lo=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},uo=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=ao({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 so(t,e),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(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||Se(e)||(t.callbacks.shouldStopEventPropagation(e)?_e(e):e.key===io.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",lo([Y("focusService")],t.prototype,"focusService",void 0),lo([U],t.prototype,"postConstruct",null),t}(Le),co=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ho=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 co(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new uo(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var t='\n <div class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n '+this.createBodyTemplate()+"\n </div>\n </div>";this.setTemplate(t,e)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},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){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel");Ar(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("AG Grid: Unknown button type specified")}var i=an('<button\n type="button"\n ref="'+t+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+r+"\n </button>");n.appendChild(i),e.addManagedListener(i,"click",o)}(t)})),this.getGui().appendChild(n)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=G(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=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(){},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.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());Yt(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!!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,oo[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,n=t.api,r=t.colDef,o=t.column,i=t.columnApi,s=t.context;return this.providedFilterParams.valueGetter({api:n,colDef:r,column:o,columnApi:i,context:s,data:e.data,getValue:function(t){return e.data[t]},node:e})},po([Y("rowModel")],t.prototype,"rowModel",void 0),po([Y("valueService")],t.prototype,"valueService",void 0),po([U],t.prototype,"postConstruct",null),t}(Yr),fo=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)}}(),go=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 fo(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("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(){rn(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),In(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),In(this.eLabel,null))},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().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||vn(this.eLabel,e),this},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([U],t.prototype,"postConstruct",null),t}(Yr),vo=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)}}(),yo=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.className=r,o.disabled=!1,o}return vo(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(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 yn(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 Yt(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(go),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)}}(),Co=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wo=function(e){function t(t,n,r,o){var i=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(o?'role="'+o+'"':"")+'\n >\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',n)||this;return i.pickerIcon=r,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return mo(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),Vn(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.key){case io.UP:case io.DOWN:case io.ENTER:case io.SPACE:r();case io.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",r),this.addManagedListener(this.eLabel,"click",r),this.pickerIcon){var i=wr(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){n(this.getLabel())?Gn(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return Ln(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return vn(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Co([qr("eLabel")],t.prototype,"eLabel",void 0),Co([qr("eWrapper")],t.prototype,"eWrapper",void 0),Co([qr("eDisplayField")],t.prototype,"eDisplayField",void 0),Co([qr("eIcon")],t.prototype,"eIcon",void 0),t}(yo),Eo=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(e){function t(t){void 0===t&&(t="default");var n=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return Eo(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case io.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case io.DOWN:case io.UP:var r=t===io.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=Ye(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,n){zn(t,n+1),Un(t,e.length)}))},t.prototype.renderOption=function(e,t){var n=this,r=document.createElement("div");In(r,"option"),r.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),r.innerHTML="<span>"+t+"</span>",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=this.options.findIndex((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=this.options.findIndex((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,this.highlightedEl.classList.add(t.ACTIVE_CLASS),er(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),er(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:yo.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",function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([U],t.prototype,"init",null),t}(Yr),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)}}(),_o=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},So=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return Ro(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new bo("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,bo.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,yo.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.gridOptionsWrapper.getDocument(),r=this.addManagedListener(n.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),o=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()})),i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,o(),r(),e.isAlive()&&(Bn(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,vn(t,Jt(this.eWrapper)),Bn(this.eWrapper,!0),t.style.maxHeight=Xt(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)},_o([Y("popupService")],t.prototype,"popupService",void 0),_o([U],t.prototype,"init",null),t}(wo),Oo=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},To=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 <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <'+o+' ref="eInput" class="ag-input-field-input"></'+o+">\n </div>\n </div>",n)||this;return i.inputType=r,i.displayFieldTag=o,i}return Oo(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("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(){n(this.getLabel())?Gn(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 vn(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 Sn(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Ln(this.eInput,e),this},t.prototype.setDisabled=function(t){return Yt(this.eInput,t),e.prototype.setDisabled.call(this,t)},Po([qr("eLabel")],t.prototype,"eLabel",void 0),Po([qr("eWrapper")],t.prototype,"eWrapper",void 0),Po([qr("eInput")],t.prototype,"eInput",void 0),t}(yo),Ao=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)}}(),Do=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(Qr=Xr||(Xr={}))[Qr.One=0]="One",Qr[Qr.Two=1]="Two";var No,Io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ao(t,e),t.prototype.getNumberOfInputs=function(e){var n=this.optionsFactory.getCustomOption(e);if(n){var r=n.numberOfInputs;return null!=r?r:1}var o=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&o.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},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(Xr.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(Xr.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(Xr.One),condition2:this.createCondition(Xr.Two)}:this.createCondition(Xr.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),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,s=t;n=this.areSimpleModelsEqual(i,s)}else{var a=e,l=t;n=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.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,Xr.One),this.setConditionIntoUi(t.condition2,Xr.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,Xr.One),this.setConditionIntoUi(null,Xr.Two)}return Gr.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 o[r&&"OR"===r?"some":"every"]((function(n){return t.individualConditionPasses(e,n)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new ro,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 ge(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];t.forEach((function(t){var r="string"==typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t);n.forEach((function(e){return e.addOption(r)}))})),n.forEach((function(e){return e.setDisabled(t.length<=1)}))},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(Xr.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(Xr.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,t=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],n=[this.eCondition1Body,this.eCondition2Body];t.forEach((function(t,n){var r=e.isConditionVisible(n),o=e.isConditionDisabled(n);t.forEach((function(e){e instanceof To||e instanceof So?(e.setDisabled(o),e.setDisplayed(r)):(Yt(e,o),zt(e,r))}))})),n.forEach((function(t,n){zt(t,e.isConditionBodyVisible(n))})),this.forEachInput((function(t,n,r,o){e.setElementDisplayed(t,n<o),e.setElementDisabled(t,e.isConditionDisabled(r))})),this.resetPlaceholder()},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var n=this.getInputs()[0][0];if(!n)return;n instanceof To&&n.getInputElement().focus()}},t.prototype.resetPlaceholder=function(){var e=this,t=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput((function(n,r,o,i){if(n instanceof To){var s=0===r&&i>1?"inRangeStart":0===r?"filterOoo":"inRangeEnd",a=0===r&&i>1?t("ariaFilterFromValue","Filter from value"):0===r?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(e.translate(s)),n.setInputAriaLabel(a)}}))},t.prototype.setElementValue=function(e,t,n){e instanceof To&&e.setValue(null!=t?String(t):null,n)},t.prototype.setElementDisplayed=function(e,t){e instanceof Yr&&zt(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof Yr&&Yt(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof To&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this,n=this.getInputs();this.getConditionTypes().forEach((function(r,o){for(var i=t.getNumberOfInputs(r),s=0;s<n[o].length;s++){var a=n[o][s];null!=a&&e(a,s,o,i)}}))},t.prototype.isConditionVisible=function(e){return 0===e||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(e):!!this.alwaysShowBothConditions||this.isConditionUiComplete(e-1))},t.prototype.isConditionDisabled=function(e){return!!this.isReadOnly()||(!this.isConditionVisible(e)||0!==e&&!this.isConditionUiComplete(e-1))},t.prototype.isConditionBodyVisible=function(e){if(!this.isConditionVisible(e))return!1;var t=this.getConditionTypes()[e];return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return this.getConditionTypes()[e]!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e}))},t.prototype.resetUiToDefaults=function(e){var t=this,n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),r="ag-simple-filter-and-or-"+this.getCompId(),o=this.optionsFactory.getDefaultOption();return this.eType1.setValue(o,e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(r).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(r).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){t.setElementValue(n,null,e),t.setElementDisabled(n,t.isReadOnly())})),this.resetPlaceholder(),Gr.resolve()},t.prototype.setConditionIntoUi=function(e,t){var n=this,r=this.mapValuesFromModel(e);this.forEachInput((function(e,o,i,s){i===t&&n.setElementValue(e,null!=r[o]?r[o]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(n,r,o,i){t.setElementValue(n,0===r&&0===o?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t),this.forEachInput((function(n){e.attachElementOnChange(n,t)}))}},t.prototype.individualConditionPasses=function(e,t){var n=this.getCellValue(e.node),r=this.mapValuesFromModel(t),o=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(o,r,n);return null!=i?i:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,n,t,e)},t.prototype.evaluateCustomFilter=function(e,t,n){if(null!=e){var r=e.predicate;return null==r||t.some((function(e){return null==e}))?void 0:r(t,n)}},t.prototype.isBlank=function(e){return null==e||"string"==typeof e&&0===e.trim().length},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",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",Do([qr("eOptions1")],t.prototype,"eType1",void 0),Do([qr("eOptions2")],t.prototype,"eType2",void 0),Do([qr("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),Do([qr("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Do([qr("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Do([qr("eCondition1Body")],t.prototype,"eCondition1Body",void 0),Do([qr("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(ho),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)}}(),Fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mo(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},t.prototype.evaluateNullValue=function(e){switch(e){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;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,n,r){var o=this.comparator(),i=null!=e[0]?o(e[0],n):0;switch(r.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var s=o(e[1],n);return this.scalarFilterParams.inRangeInclusive?i>=0&&s<=0:i>0&&s<0;case t.BLANK:return this.isBlank(n);case t.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter "'+r.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Io),xo=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)}}(),Lo=function(){return(Lo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Go=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ko=1/0,Vo=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.minValidYear=1e3,t.maxValidYear=ko,t}return xo(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.dateFrom,r=t.dateTo,o=t.type;return[n&&cr(n)||null,r&&cr(r)||null].slice(0,this.getNumberOfInputs(o))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t;var n=function(e,n){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?n:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",ko),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new to(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.forEachInput((function(e){return e.destroy()}))}))},t.prototype.setElementValue=function(e,t,n){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===Xr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo"></div>\n </div>'},t.prototype.isConditionUiComplete=function(t){var n=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var r=!0;return this.forEachInput((function(e,o,i,s){var a;i!==t||!r||o>=s||(r=r&&(null!=(a=e.getDate())&&a.getUTCFullYear()>=n.minValidYear&&a.getUTCFullYear()<=n.maxValidYear))})),r},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={},r=this.getValues(e);return r.length>0&&(n.dateFrom=ur(r[0])),r.length>1&&(n.dateTo=ur(r[1])),Lo({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(n)}))},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var t=[];return this.forEachInput((function(n,r,o,i){e===o&&r<i&&t.push(n.getDate())})),t},t.DEFAULT_FILTER_OPTIONS=[Fo.EQUALS,Fo.GREATER_THAN,Fo.LESS_THAN,Fo.NOT_EQUAL,Fo.IN_RANGE,Fo.BLANK,Fo.NOT_BLANK],Go([qr("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),Go([qr("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),Go([qr("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),Go([qr("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),Go([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Fo),Ho=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)}}(),Wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ho(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(null!=e.operator){var t=e,n=t||{},r=n.condition1,o=n.condition2,i=this.optionsFactory.getCustomOption(r.type),s=this.optionsFactory.getCustomOption(o.type);return[this.conditionToString(r,i),t.operator,this.conditionToString(o,s)].join(" ")}var a=e,l=this.optionsFactory.getCustomOption(a.type),u=l||{},c=u.displayKey,p=u.displayName,d=u.numberOfInputs;return c&&p&&0===d?(this.gridOptionsWrapper.getLocaleTextFunc()(c,p),p):this.conditionToString(a,l)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},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 ro,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==t||1==t},t.prototype.isTypeEditable=function(e){var t=[Io.IN_RANGE,Io.EMPTY,Io.BLANK,Io.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(Yr),Bo=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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Uo=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')||this}return Bo(t,e),t.prototype.getDefaultFilterOptions=function(){return Vo.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,t){var n=e.type,r=(t||{}).numberOfInputs,o=n==Io.IN_RANGE||2===r,i=cr(e.dateFrom),s=cr(e.dateTo);return o?ur(i,!1)+"-"+ur(s,!1):null!=i?""+ur(i,!1):""+n},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){zt(this.eDateWrapper,e),zt(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(r),r){if(t){var o=t;this.dateComp.setDate(cr(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=ur(this.dateComp.getDate());this.params.parentFilterInstance((function(n){if(n){var r=cr(t);n.onFloatingFilterChanged(e.getLastType()||null,r)}}))},t.prototype.createDateComponent=function(){var e=this,t=ho.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:G(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new to(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},jo([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),jo([qr("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),jo([qr("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Wo),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){function t(){return e.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return zo(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,n=this.gridOptionsWrapper.getDocument(),r=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(r.type="date"),this.addManagedListener(r,"mousedown",(function(){t.eDateInput.isDisabled()||r.focus()})),this.addManagedListener(r,"input",(function(r){r.target===n.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())}));var o=e.filterParams||{},i=o.minValidYear,s=o.maxValidYear;i&&(r.min=i+"-01-01"),s&&(r.max=s+"-12-31")},t.prototype.getDate=function(){return cr(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(ur(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(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:It()||Mt()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([qr("eDateInput")],t.prototype,"eDateInput",void 0),t}(Yr),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)}}(),qo=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$o=function(e){function n(){return e.call(this,"numberFilter")||this}return Yo(n,e),n.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,r=t.filterTo,o=t.type;return[null==n?null:n,null==r?null:r].slice(0,this.getNumberOfInputs(o))},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},n.prototype.setParams=function(t){this.numberFilterParams=t;var n=this.getAllowedCharPattern();if(n){var r={allowedCharPattern:n};this.resetTemplate({"eValue-index0-1":r,"eValue-index1-1":r,"eValue-index0-2":r,"eValue-index1-2":r})}e.prototype.setParams.call(this,t)},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.createValueTemplate=function(e){var t=e===Xr.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></'+n+">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></'+n+">\n </div>"},n.prototype.getValues=function(e){var t=this,n=[];return this.forEachInput((function(r,o,i,s){e===i&&o<s&&n.push(t.stringToFloat(r.getValue()))})),n},n.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},n.prototype.getFilterType=function(){return"number"},n.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var n=t(e);return null!=n&&""===n.trim()&&(n=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(n):null==n||"-"===n.trim()?null:parseFloat(n)},n.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},n.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},n.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(It()||Dt()?null:"\\d\\-\\.")},n.DEFAULT_FILTER_OPTIONS=[Fo.EQUALS,Fo.NOT_EQUAL,Fo.LESS_THAN,Fo.LESS_THAN_OR_EQUAL,Fo.GREATER_THAN,Fo.GREATER_THAN_OR_EQUAL,Fo.IN_RANGE,Fo.BLANK,Fo.NOT_BLANK],qo([qr("eValue-index0-1")],n.prototype,"eValueFrom1",void 0),qo([qr("eValue-index1-1")],n.prototype,"eValueTo1",void 0),qo([qr("eValue-index0-2")],n.prototype,"eValueFrom2",void 0),qo([qr("eValue-index1-2")],n.prototype,"eValueTo2",void 0),n}(Fo),Xo=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(){return(Qo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Zo=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Jo=function(e){function n(){return e.call(this,"textFilter")||this}return Xo(n,e),n.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},n.prototype.getDefaultDebounceMs=function(){return 500},n.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.textFilterParams=t,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?n.DEFAULT_FORMATTER:n.DEFAULT_LOWERCASE_FORMATTER)},n.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Mr.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(t){var n=t.filterOption,r=t.value,o=t.filterText;return e(n,r,o)}):this.textFilterParams.textMatcher||n.DEFAULT_MATCHER},n.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},n.prototype.getFilterType=function(){return"text"},n.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},n.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},n.prototype.getValues=function(e){var r=this,o=[];return this.forEachInput((function(i,s,a,l){if(e===a&&s<l){var u=t(i.getValue()),c=(r.textFilterParams.trimInput?n.trimInput(u):u)||null;o.push(c),i.setValue(c,!0)}})),o},n.prototype.getDefaultFilterOptions=function(){return n.DEFAULT_FILTER_OPTIONS},n.prototype.createValueTemplate=function(e){var t=e===Xr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></ag-input-text-field>\n <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></ag-input-text-field>\n </div>'},n.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,r=t.filterTo,o=t.type;return[n||null,r||null].slice(0,this.getNumberOfInputs(o))},n.prototype.evaluateNullValue=function(e){var t=[Io.NOT_EQUAL,Io.NOT_CONTAINS,Io.BLANK];return!!e&&t.indexOf(e)>=0},n.prototype.evaluateNonNullValue=function(e,t,n,r){var o=this,i=e.map((function(e){return o.formatter(e)}))||[],s=this.formatter(t),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(n.type===Io.BLANK)return this.isBlank(t);if(n.type===Io.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:r.node,data:r.data,filterOption:n.type,value:s,textFormatter:h};return i.some((function(e){return o.matcher(Qo(Qo({},f),{filterText:e}))}))},n.DEFAULT_FILTER_OPTIONS=[Io.CONTAINS,Io.NOT_CONTAINS,Io.EQUALS,Io.NOT_EQUAL,Io.STARTS_WITH,Io.ENDS_WITH,Io.BLANK,Io.NOT_BLANK],n.DEFAULT_FORMATTER=function(e){return e},n.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},n.DEFAULT_MATCHER=function(e){var t=e.filterOption,r=e.value,o=e.filterText;if(null==o)return!1;switch(t){case n.CONTAINS:return r.indexOf(o)>=0;case n.NOT_CONTAINS:return r.indexOf(o)<0;case n.EQUALS:return r===o;case n.NOT_EQUAL:return r!=o;case n.STARTS_WITH:return 0===r.indexOf(o);case n.ENDS_WITH:var i=r.lastIndexOf(o);return i>=0&&i===r.length-o.length;default:return!1}},Zo([qr("eValue-index0-1")],n.prototype,"eValueFrom1",void 0),Zo([qr("eValue-index1-1")],n.prototype,"eValueTo1",void 0),Zo([qr("eValue-index0-2")],n.prototype,"eValueFrom2",void 0),Zo([qr("eValue-index1-2")],n.prototype,"eValueTo2",void 0),n}(Io),ei=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ei(t,e),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>\n ',e)},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=ho.isUseApplyButton(this.params.filterParams);var n=this.params.filterParams.allowedCharPattern;if(null!=n&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:n}}),!this.isReadOnly()){var r=ho.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o=G(this.syncUpWithParentFilter.bind(this),r),i=this.eFloatingFilterInput.getGui();this.addManagedListener(i,"input",o),this.addManagedListener(i,"keypress",o),this.addManagedListener(i,"keydown",o)}var s=t.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.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=e.key===io.ENTER;if(!this.applyActive||n){var r=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(r=Jo.trimInput(r),this.eFloatingFilterInput.setValue(r,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,r||null)}))}},t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Io.IN_RANGE||2===n?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},ti([Y("columnModel")],t.prototype,"columnModel",void 0),ti([qr("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),ti([U],t.prototype,"postConstruct",null),t}(Wo),ri=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)}}(),oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ri(t,e),t.prototype.getDefaultFilterOptions=function(){return $o.DEFAULT_FILTER_OPTIONS},t}(ni),ii=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(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ii(t,e),t.prototype.getDefaultFilterOptions=function(){return Jo.DEFAULT_FILTER_OPTIONS},t}(ni),ai=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new te,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;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var r=this.touchStart;window.setTimeout((function(){var o=n.touchStart===r;if(n.touching&&o&&!n.moved){n.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t};n.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!Or(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var n={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var 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}(),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)}}(),ui=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return li(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=ae(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=Ye(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=wr(e,this.gridOptionsWrapper,n);r&&t.appendChild(r)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var r=new ai(this.getGui(),!0),o=t.isSuppressMenuHide(),i=o&&n(this.eMenu),s=i?new ai(this.eMenu,!0):r;if(this.params.enableMenu){var a=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,ai[a],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(r,ai.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 r.destroy()})),i&&this.addDestroyFunc((function(){return s.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=Ft()&&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)})),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else on(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.removeSortIcons=function(){on(this.eSortAsc),on(this.eSortDesc),on(this.eSortNone),on(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,se.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,se.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(this.addOrRemoveCssClass("ag-header-cell-sorted-asc",this.params.column.isSortAscending()),this.addOrRemoveCssClass("ag-header-cell-sorted-desc",this.params.column.isSortDescending()),this.addOrRemoveCssClass("ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("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;zt(this.eSortOrder,o),n>=0?this.eSortOrder.innerHTML=(n+1).toString():rn(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,se.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>\n </div>\n </div>',ui([Y("sortController")],t.prototype,"sortController",void 0),ui([Y("menuFactory")],t.prototype,"menuFactory",void 0),ui([qr("eFilter")],t.prototype,"eFilter",void 0),ui([qr("eSortAsc")],t.prototype,"eSortAsc",void 0),ui([qr("eSortDesc")],t.prototype,"eSortDesc",void 0),ui([qr("eSortNone")],t.prototype,"eSortNone",void 0),ui([qr("eSortOrder")],t.prototype,"eSortOrder",void 0),ui([qr("eMenu")],t.prototype,"eMenu",void 0),ui([qr("eLabel")],t.prototype,"eLabel",void 0),ui([qr("eText")],t.prototype,"eText",void 0),t}(Yr),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)}}(),di=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return pi(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){A((function(){return console.warn("AG Grid: 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(!Se(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){_e(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.getProvidedColumnGroup();this.addManagedListener(r,Ce.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,Ce.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new ai(e,!0);this.addManagedListener(n,ai.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();zt(this.eOpenIcon,e),zt(this.eCloseIcon,!e)}else zt(this.eOpenIcon,!1),zt(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=wr(e,this.gridOptionsWrapper,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return zt(this.eOpenIcon,!1),void zt(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(n(e)){var t=Ye(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',di([Y("columnModel")],t.prototype,"columnModel",void 0),di([qr("agOpened")],t.prototype,"eOpenIcon",void 0),di([qr("agClosed")],t.prototype,"eCloseIcon",void 0),t}(Yr),fi=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)}}(),gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}(Yr),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)}}(),yi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return vi(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),n(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===io.LEFT||t===io.UP||t===io.RIGHT||t===io.DOWN||e.shiftKey&&t===io.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='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([qr("eTextArea")],t.prototype,"eTextArea",void 0),t}(gi),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)}}(),Ci=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wi=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return mi(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,r(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===io.ENTER;var n=!1;e.values.forEach((function(r){var o={value:r},i=t.valueFormatterService.formatValue(e.column,null,null,r),s=null!=i;o.text=s?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},Ci([Y("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ci([qr("eSelect")],t.prototype,"eSelect",void 0),t}(gi),Ei=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(){var t=e.call(this)||this;return A((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),t}return Ei(t,e),t.prototype.isPopup=function(){return!0},t}(wi),Ri=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)}}(),_i=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ri(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===io.BACKSPACE||e.eventKey===io.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==io.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.key;t!==io.PAGE_UP&&t!==io.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){Nt()||t.getFocusableElement().focus();var r=t.getInputElement();if(this.highlightAllOnFocus)r.select();else{var o=t.getValue(),i=n(o)&&o.length||0;i&&r.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},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='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([qr("eInput")],t.prototype,"eInput",void 0),t}(gi),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)}}(),Oi=function(e){function t(){var t=e.call(this)||this;return A((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),t}return Si(t,e),t.prototype.isPopup=function(){return!0},t}(_i),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)}}(),Ti=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Pi(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 r=Math.abs(t),o=e.formatValue(r),i=n(o)?o:r,s=t>=0;this.eDelta.innerHTML=s?"↑"+i:"↓"+i,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},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(){this.eValue.classList.remove("ag-value-change-value-highlight"),rn(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(n(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:n(e.value)?this.eValue.innerHTML=t:rn(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof t&&"number"==typeof this.lastValue){var r=t-this.lastValue;this.showDelta(e,r)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Y("filterManager")],t.prototype,"filterManager",void 0),t}(Yr),Ai=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)}}(),Di=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 Ai(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=an('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&e.ePrevious.classList.add("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 r(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,n(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:n(e.value)?this.eCurrent.innerHTML=t:rn(this.eCurrent),!0))},t.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Y("filterManager")],t.prototype,"filterManager",void 0),t}(Yr);
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
No=e.RowHighlightPosition||(e.RowHighlightPosition={}))[No.Above=0]="Above",No[No.Below=1]="Below";var Ni,Ii,Mi,Fi=function(){function e(t){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,this.onRowHeightChangedDebounced=G(this.onRowHeightChanged.bind(this),100),this.beans=t}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.beans.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===ne.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===ne.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return 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 r=n(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,r),this.checkRowSelectable();var i=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.beans.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.beans.gridOptionsWrapper.getRowIdFunc();if(n)if(this.data){var r=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:r.length>0?r:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!n(this.rowTop)||!n(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=G(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=!1,t=!0,n=0,r=this.__autoHeights;null!=r&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(o){var i=r[o.getId()];null!=i?(t=!1,i>n&&(n=i)):e=!0})),e||((t||n<10)&&(n=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),n!=this.rowHeight&&(this.setRowHeight(n),this.onRowHeightChangedDebounced())))},e.prototype.onRowHeightChanged=function(){var e=this.beans.rowModel;e.onRowHeightChanged&&e.onRowHeightChanged()},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,n){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(He.EVENT_ROW_GROUP_OPENED),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.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.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,n){var r=this.beans.columnModel.getPrimaryColumn(e),o=this.beans.valueService.getValue(r,this),i=this.beans.valueService.setValue(this,r,t,n);return this.dispatchCellChangedEvent(r,t,o),i},e.prototype.setGroupValue=function(e,t){var n=this.beans.columnModel.getGridColumn(e);r(this.groupData)&&(this.groupData={});var o=n.getColId(),i=this.groupData[o];i!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(n,t,i))},e.prototype.setAggData=function(e){var t=this,n=C([this.aggData,e]),r=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.beans.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&&o(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,n=!1,r=!1,o=!1;if(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length){for(var i=0;i<this.childrenAfterGroup.length;i++){var s=this.childrenAfterGroup[i];if(s.selectable)switch(s.isSelected()){case!0:n=!0;break;case!1:r=!0;break;default:o=!0}}t=o?void 0:!(!n||r)||!(!n&&r)&&void 0,this.selectThisNode(t)}},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===ne.PINNED_TOP||this.rowPinned===ne.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t,n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),r=!0===e.newValue,o=!0===e.clearSelection,i=!0===e.suppressFinishActions,s=!0===e.rangeSelect,a=n&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(s&&this.beans.selectionService.getLastSelectedNode()){var l=this.beans.selectionService.getLastSelectedNode()!==this,u=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(l&&u){var c=this.doRowRangeSelection(e.newValue);return this.beans.selectionService.setLastSelectedNode(this),c}}var p=0;a&&this.group||this.selectThisNode(r)&&p++;if(n&&(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length)&&(p+=this.selectChildNodes(r,a)),!i){if(r&&(o||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(p+=this.beans.selectionService.clearOtherNodes(this)),p>0){this.beans.selectionService.updateGroupsFromChildrenSelections();var d={type:He.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};this.beans.eventService.dispatchEvent(d)}r&&this.beans.selectionService.setLastSelectedNode(this)}return p},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),r=this.beans.selectionService.getLastSelectedNode(),o=this.beans.rowModel.getNodesInRangeForSelection(this,r),i=0;o.forEach((function(r){r.group&&n||!1===e&&t===r||r.selectThisNode(e)&&i++})),this.beans.selectionService.updateGroupsFromChildrenSelections();var s={type:He.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};return this.beans.eventService.dispatchEvent(s),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(He.EVENT_ROW_SELECTED);return this.beans.eventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterAggFilter:this.childrenAfterGroup;if(r(n))return 0;for(var o=0,i=0;i<n.length;i++)o+=n[i].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return o},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new te),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t=this,r=!0,o=!1,i=null;r&&!o;){var s=t.parent;n(s)&&t.firstChild?s.rowGroupColumn===e&&(o=!0,i=s):r=!1,t=s}return o?i:null},e.prototype.isFullWidthCell=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_GROUP_CHANGED="groupChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",e}(),xi=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)}}(),Li=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gi=function(e){function t(){return e.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return xi(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 _e(e)})),this.addGuiEventListener("dblclick",(function(e){return _e(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){var n=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()||void 0===n?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):n?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,Fi.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Fi.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Fi.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},Li([qr("eCheckbox")],t.prototype,"eCheckbox",void 0),Li([U],t.prototype,"postConstruct",null),t}(Yr),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)}}(),Vi=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hi=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(Ni=e.DragSourceType||(e.DragSourceType={}))[Ni.ToolPanel=0]="ToolPanel",Ni[Ni.HeaderCell=1]="HeaderCell",Ni[Ni.RowDrag=2]="RowDrag",Ni[Ni.ChartPanel=3]="ChartPanel",(Ii=e.VerticalDirection||(e.VerticalDirection={}))[Ii.Up=0]="Up",Ii[Ii.Down=1]="Down",(Mi=e.HorizontalDirection||(e.HorizontalDirection={}))[Mi.Left=0]="Left",Mi[Mi.Right=1]="Right";var Wi,Bi=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragSourceAndParamsList=[],e.dropTargets=[],e}var r;return ki(n,t),r=n,n.prototype.init=function(){this.ePinnedIcon=Cr("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Cr("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Cr("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Cr("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Cr("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Cr("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Cr("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Cr("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Cr("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=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),pe(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)})),s=i.length,a=null;if(s>0&&(a=1===s?i[0]:i.reduce((function(e,t){if(!e)return t;var n=e.getContainer(),r=t.getContainer();return n.contains(r)?t:e}))),a!==this.lastDropTarget)this.leaveLastTargetIfExists(e,r,o,t),this.enterDragTargetIfExists(a,e,r,o,t),this.lastDropTarget=a;else if(a&&a.onDragging){var l=this.createDropTargetEvent(a,e,r,o,t);a.onDragging(l)}},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){var n,r;try{for(var o=Hi(t),i=o.next();!i.done;i=o.next()){var s=i.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=e.clientX>=s.left&&e.clientX<s.right,l=e.clientY>=s.top&&e.clientY<s.bottom;if(!a||!l)return!1}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0},n.prototype.isMouseOnDropTarget=function(e,t){var n,r,o=this.getAllContainersFromDropTarget(t),i=!1;try{for(var s=Hi(o),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(e,l)){i=!0;break}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(i&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},n.prototype.addDropTarget=function(e){this.dropTargets.push(e)},n.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},n.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},n.prototype.findExternalZone=function(e){return this.dropTargets.filter((function(e){return e.external})).find((function(t){return t.getContainer()===e.getContainer()}))||null},n.prototype.getHorizontalDirection=function(t){var n=this.eventLastTime&&this.eventLastTime.clientX,r=t.clientX;return n===r?null:n>r?e.HorizontalDirection.Left:e.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(t){var n=this.eventLastTime&&this.eventLastTime.clientY,r=t.clientY;return n===r?null:n>r?e.VerticalDirection.Up:e.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,r,o){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,c=a.dragItem,p=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:r,hDirection:n,dragSource:p,fromNudge:o,dragItem:c,api:l,columnApi:u,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,r=Ht()-2,o=Wt()-2,i=e.pageY-n/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=a.defaultView||window,u=l.pageYOffset||a.documentElement.scrollTop,c=l.pageXOffset||a.documentElement.scrollLeft;r>0&&s+t.clientWidth>r+c&&(s=r+c-t.clientWidth),s<0&&(s=0),o>0&&i+t.clientHeight>o+u&&(i=o+u-t.clientHeight),i<0&&(i=0),t.style.left=s+"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=an(r.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(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;N(n)&&(n=n()),t.innerHTML=Ye(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsWrapper.getDocument(),i=null;try{i=o.fullscreenElement}catch(s){}finally{i||(i=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),rn(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}this.eGhostIcon.classList.toggle("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='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',Vi([Y("dragService")],n.prototype,"dragService",void 0),Vi([Y("environment")],n.prototype,"environment",void 0),Vi([Y("columnApi")],n.prototype,"columnApi",void 0),Vi([Y("gridApi")],n.prototype,"gridApi",void 0),Vi([U],n.prototype,"init",null),Vi([z],n.prototype,"clearDragSourceParamsList",null),n=r=Vi([K("dragAndDropService")],n)}(Le),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)}}(),Ui=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zi=function(t){function n(e,n,r,o,i,s){var a=t.call(this)||this;return a.cellValueFn=e,a.rowNode=n,a.column=r,a.customGui=o,a.dragStartPixels=i,a.suppressVisibilityChange=s,a.dragSource=null,a}return ji(n,t),n.prototype.isCustomGui=function(){return null!=this.customGui},n.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(wr("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new qi(this,this.beans,this.rowNode,this.column):new Yi(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.isRowDragMultiRow())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&&A((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(t){var n=this;void 0===t&&(t=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,i=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:e.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=n.getSelectedCount();return o?o(r,e):1===e?n.cellValueFn():e+" "+i("rowDragRows","rows")},getDragItem:function(){return r},dragStartPixels:t,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},Ui([Y("beans")],n.prototype,"beans",void 0),Ui([U],n.prototype,"postConstruct",null),Ui([z],n.prototype,"removeDragSource",null),n}(Yr),Ki=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.rowNode=n,o.column=r,o}return ji(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=N(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):(this.parent.setDisplayed(t),this.parent.setVisible(!0))}},t}(Le),Yi=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return ji(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_NEW_COLUMNS_LOADED,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)},Ui([U],t.prototype,"postConstruct",null),t}(Ki),qi=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return ji(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,He.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Fi.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)},Ui([U],t.prototype,"postConstruct",null),t}(Ki),$i=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(){return(Xi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Qi=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $i(t,e),t.prototype.init=function(e,t,n,r,o,i,s){this.params=s,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=o,this.comp=e,this.compClass=i;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value,c=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){Bn(n,!!t.expanded)};this.expandListener=this.addManagedListener(t,Fi.EVENT_EXPANDED_CHANGED,r)||null,r()}else jn(n)},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===ne.PINNED_LEFT,t=this.params.pinned===ne.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}r(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(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,r=this.params,o=r.value,i=r.node,s=this.valueFormatterService.formatValue(e,i,o);return Xi(Xi({},n),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var n=f(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 s=this.userComponentFactory.getCellRendererDetails(i,e);if(s&&!r(s))return s;if(r(s)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Fi.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=wr("groupExpanded",this.gridOptionsWrapper,null),n=wr("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,Fi.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var o=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Fi.EVENT_ALL_CHILDREN_COUNT_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Fi.EVENT_MASTER_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Fi.EVENT_GROUP_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Fi.EVENT_HAS_CHILDREN_CHANGED,o)},t.prototype.onExpandClicked=function(e){Se(e)||(_e(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,n=!t.expanded;t.setExpanded(n,e)},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 s=!!this.showingValueForOpenedParent||o.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=r.isPivotMode(),l=a&&n.leafGroup,u=i&&!l,c=o.footer&&-1===o.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),a?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,Fi.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&&A((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 zi((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 Gi;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){e.key!==io.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Se(e)||(Ae(this.eExpanded,e)||Ae(this.eContracted,e)||this.onExpandOrContract(e))},Qi([Y("expressionService")],t.prototype,"expressionService",void 0),Qi([Y("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Qi([Y("columnModel")],t.prototype,"columnModel",void 0),Qi([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Qi([Y("gridOptions")],t.prototype,"gridOptions",void 0),t}(Le),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)}}(),es=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ts=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ji(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 zt(t.eContracted,e)},setExpandedDisplayed:function(e){return zt(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},r=this.createManagedBean(new Zi),o=!e.colDef,i=this.getGui();r.init(n,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),o&&In(i,"gridcell")},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var r=e.newAgStackInstance();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='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',es([qr("eExpanded")],t.prototype,"eExpanded",void 0),es([qr("eContracted")],t.prototype,"eContracted",void 0),es([qr("eCheckbox")],t.prototype,"eCheckbox",void 0),es([qr("eValue")],t.prototype,"eValue",void 0),es([qr("eChildCount")],t.prototype,"eChildCount",void 0),t}(Yr),ns=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)}}(),rs=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},os=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ns(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=wr("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.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',rs([qr("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),rs([qr("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(Yr),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)}}(),ss=function(e){function t(){return e.call(this)||this}return is(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='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(Yr),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)}}(),ls=function(e){function t(){return e.call(this)||this}return as(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='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(Yr),us=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)}}(),cs=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return us(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=Ye(t)},t}(gi),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)}}(),ds=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:Ko,agColumnHeader:ci,agColumnGroupHeader:hi,agTextColumnFloatingFilter:si,agNumberColumnFloatingFilter:oi,agDateColumnFloatingFilter:Uo,agReadOnlyFloatingFilter:eo,agAnimateShowChangeCellRenderer:Ti,agAnimateSlideCellRenderer:Di,agGroupCellRenderer:ts,agGroupRowRenderer:ts,agLoadingCellRenderer:os,agCellEditor:_i,agTextCellEditor:_i,agSelectCellEditor:wi,agPopupTextCellEditor:Oi,agPopupSelectCellEditor:bi,agLargeTextCellEditor:yi,agTextColumnFilter:Jo,agNumberColumnFilter:$o,agDateColumnFilter:Vo,agLoadingOverlay:ss,agNoRowsOverlay:ls,agTooltipComponent:cs},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.jsComps={},t.fwComps={},t}return ps(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&h(this.gridOptions.components,(function(t,n){return e.registerJsComponent(t,n)})),null!=this.gridOptions.frameworkComponents&&h(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.registerJsComponent=function(e,t){var n=this.translateIfDeprecated(e);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=t},t.prototype.registerFwComponent=function(e,t){A((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated");var n=this.translateIfDeprecated(e);this.fwComps[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),n=function(e,t){return{componentFromFramework:t,component:e}},r=this.getFrameworkOverrides().frameworkComponent(t);if(null!=r)return n(r,!0);var o=this.fwComps[t];if(o)return n(o,!0);var i=this.jsComps[t];if(i)return n(i,this.getFrameworkOverrides().isFrameworkComponent(i));var s=this.agGridDefaults[t];return s?n(s,!1):(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?(A((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},ds([Y("gridOptions")],t.prototype,"gridOptions",void 0),ds([Y("agComponentUtils")],t.prototype,"agComponentUtils",void 0),ds([U],t.prototype,"init",null),t=ds([K("userComponentRegistry")],t)}(Le),fs={propertyName:"dateComponent",cellRenderer:!1},gs={propertyName:"headerComponent",cellRenderer:!1},vs={propertyName:"headerGroupComponent",cellRenderer:!1},ys={propertyName:"cellRenderer",cellRenderer:!0},ms={propertyName:"cellEditor",cellRenderer:!1},Cs={propertyName:"innerRenderer",cellRenderer:!0},ws={propertyName:"loadingOverlayComponent",cellRenderer:!1},Es={propertyName:"noRowsOverlayComponent",cellRenderer:!1},bs={propertyName:"tooltipComponent",cellRenderer:!1},Rs={propertyName:"filter",cellRenderer:!1},_s={propertyName:"floatingFilterComponent",cellRenderer:!1},Ss={propertyName:"toolPanel",cellRenderer:!1},Os={propertyName:"statusPanel",cellRenderer:!1},Ps={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Ts={propertyName:"loadingCellRenderer",cellRenderer:!0},As={propertyName:"groupRowRenderer",cellRenderer:!0},Ds={propertyName:"detailCellRenderer",cellRenderer:!0},Ns=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)}}(),Ms=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fs=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Is(n,t),n.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,gs,"agColumnHeader",t)},n.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,vs,"agColumnGroupHeader",e)},n.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ps,null,e,!0)},n.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ts,"agLoadingCellRenderer",e,!0)},n.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,As,"agGroupRowRenderer",e,!0)},n.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ds,"agDetailCellRenderer",e,!0)},n.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,Cs,null,t)},n.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,Cs,null,t)},n.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,ys,null,t)},n.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,ms,"agCellEditor",t,!0)},n.prototype.getFilterDetails=function(e,t,n){return this.getCompDetails(e,Rs,n,t,!0)},n.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,fs,"agDateInput",e,!0)},n.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,ws,"agLoadingOverlay",e,!0)},n.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Es,"agNoRowsOverlay",e,!0)},n.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,bs,"agTooltipComponent",e,!0)},n.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,ys,null,t)},n.prototype.getFloatingFilterCompDetails=function(e,t,n){return this.getCompDetails(e,_s,n,t)},n.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,Ss,null,t,!0)},n.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Os,null,t,!0)},n.prototype.getCompDetails=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1);var s=t.propertyName,a=t.cellRenderer,l=this.getCompKeys(e,t,r),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=i.userComponentRegistry.retrieve(e);t&&(c=t.componentFromFramework?void 0:t.component,p=t.componentFromFramework?t.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=n&&g(n),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var v=this.mergeParamsWithApplicationProvidedParams(e,t,r,d),y=null==c,m=c||p;return{componentFromFramework:y,componentClass:m,params:v,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return i.newAgStackInstance(m,y,v,t)}}}o&&console.error("Could not find component "+u+", did you forget to configure this component?")},n.prototype.getCompKeys=function(e,t,n){var r,o,i,s,a,l,u=this,c=t.propertyName;if(e){var p=e,d=p[c+"Selector"],h=d?d(n):null,f=function(e,t){var n=function(){var e="AG Grid: As of v27, the property "+c+"Framework is deprecated. The property "+c+" can now be used for JavaScript AND Framework Components.";A((function(){return console.warn(e)}),"UserComponentFactory."+c+"FrameworkDeprecated")};if("string"==typeof e)r=e;else if("string"==typeof t)n(),r=t;else if(null!=e&&!0!==e){u.getFrameworkOverrides().isFrameworkComponent(e)?i=e:o=e}else null!=t&&(n(),i=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+c+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";A((function(){return console.warn(g)}),"UserComponentFactory."+c+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(p[c],p[c+"Framework"])}return{compName:r,jsComp:o,fwComp:i,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},n.prototype.newAgStackInstance=function(e,t,n,r){var o,i=r.propertyName;if(!t)o=new e;else{var s=this.componentMetadataProvider.retrieve(i);o=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,r)}var a=this.initComponent(o,n);return null==a?Gr.resolve(o):a.then((function(){return o}))},n.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,r){void 0===r&&(r=null);var o={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};E(o,n);var i=e&&e[t.propertyName+"Params"];"function"==typeof i?E(o,i(n)):"object"==typeof i&&E(o,i);return E(o,r),o},n.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},n.prototype.getDefaultFloatingFilterType=function(t){if(null==t)return null;var n=null,r=this.getCompKeys(t,Rs),o=r.compName,i=r.jsComp,s=r.fwComp;o?n=Ns.getFloatingFilterType(o):null==i&&null==s&&!0===t.filter&&(n=re.isRegistered(e.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");return n},Ms([Y("gridOptions")],n.prototype,"gridOptions",void 0),Ms([Y("agComponentUtils")],n.prototype,"agComponentUtils",void 0),Ms([Y("componentMetadataProvider")],n.prototype,"componentMetadataProvider",void 0),Ms([Y("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),Ms([q("frameworkComponentWrapper")],n.prototype,"frameworkComponentWrapper",void 0),n=Ms([K("userComponentFactory")],n)}(Le);
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
Wi=e.ExcelFactoryMode||(e.ExcelFactoryMode={}))[Wi.SINGLE_SHEET=0]="SINGLE_SHEET",Wi[Wi.MULTI_SHEET=1]="MULTI_SHEET";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var 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)}}(),Ls=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return xs(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=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),pe(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var n=this;void 0===t&&(t=!1);var r=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",r);var o=null,i=this.gridOptionsWrapper.isSuppressTouch();t&&!i&&(o=function(t){t.cancelable&&t.preventDefault(),n.onTouchStart(e,t)},e.eElement.addEventListener("touchstart",o,{passive:!0})),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:o,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,s=[{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(s),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(),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 r=this.currentDragParams.dragStartPixels;return Or(e,t,n(r)?r:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var r={type:He.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(r),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){Nt()&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.isOverFormFieldElement=function(e){var t,n;return!!(null===(n=null===(t=e.target)||void 0===t?void 0:t.tagName.toLocaleLowerCase())||void 0===n?void 0:n.match("^a$|textarea|input|select|button"))},t.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:He.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},Ls([Y("loggerFactory")],t.prototype,"loggerFactory",void 0),Ls([Y("columnApi")],t.prototype,"columnApi",void 0),Ls([Y("gridApi")],t.prototype,"gridApi",void 0),Ls([Y("mouseEventService")],t.prototype,"mouseEventService",void 0),Ls([U],t.prototype,"init",null),Ls([z],t.prototype,"removeAllListeners",null),t=Ls([K("dragService")],t)}(Le),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)}}(),Vs=function(){return(Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Hs=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ws=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.quickFilter=null,e.quickFilterParts=null,e.processingFilterChange=!1,e}var o;return ks(r,t),o=r,r.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},r.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},r.prototype.setFilterModel=function(e){var t=this,n=[],r=this.getFilterModel();if(e){var o=Ar(Object.keys(e));this.allColumnFilters.forEach((function(r,i){var s=e[i];n.push(t.setModelOnFilterWrapper(r.filterPromise,s)),o.delete(i)})),o.forEach((function(r){var o=t.columnModel.getPrimaryColumn(r)||t.columnModel.getGridColumn(r);if(o)if(o.isFilterAllowed()){var i=t.getOrCreateFilterWrapper(o,"NO_UI");i?n.push(t.setModelOnFilterWrapper(i.filterPromise,e[r])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+r)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+r);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+r)}))}else this.allColumnFilters.forEach((function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));Gr.all(n).then((function(){var e=t.getFilterModel(),n=[];t.allColumnFilters.forEach((function(t,o){var i=r?r[o]:null,s=e?e[o]:null;Mr.jsonEquals(i,s)||n.push(t.column)})),n.length>0&&t.onFilterChanged({columns:n})}))},r.prototype.setModelOnFilterWrapper=function(e,t){return new Gr((function(n){e.then((function(e){"function"!=typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(e.setModel(t)||Gr.resolve()).then((function(){return n()}))}))}))},r.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(t,r){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"==typeof o.getModel){var i=o.getModel();n(i)&&(e[r]=i)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},r.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},r.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},r.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},r.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},n=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach((function(r){if(r.filterPromise.resolveNow(!1,t)){var o=r.filterPromise.resolveNow(null,(function(e){return e}));!function(t){if(!t.isPrimary())return!0;var r=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!r)&&(!!e.columnModel.isPivotMode()||n)}(r.column)?e.activeColumnFilters.push(o):e.activeAggregateFilters.push(o)}}))},r.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(n){var r=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(r,e,t)}))},r.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},r.prototype.doColumnFiltersPass=function(e,t,n){for(var r=e.data,o=e.aggData,i=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?o:r,a=0;a<i.length;a++){var l=i[a];if(null!=l&&l!==t){if("function"!=typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0},r.prototype.parseQuickFilter=function(e){return n(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},r.prototype.setQuickFilter=function(e){if(null==e||"string"==typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof e)},r.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},r.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var n=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},r.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,n=e.additionalEventAttributes,r=e.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.allColumnFilters.forEach((function(e){e.filterPromise&&e.filterPromise.then((function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var o={type:He.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi,columns:r||[]};n&&E(o,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(o),this.processingFilterChange=!1},r.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},r.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},r.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},r.prototype.doesRowPassQuickFilterNoCache=function(e,t){var r=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(o){var i=r.getQuickFilterTextForColumn(o,e);return n(i)&&i.indexOf(t)>=0}))},r.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},r.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(r){return n?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r)}))},r.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},r.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},r.prototype.getQuickFilterTextForColumn=function(e,t){var r=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var i={value:r,node:t,data:t.data,column:e,colDef:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};r=o.getQuickFilterText(i)}return n(r)?r.toString().toUpperCase():null},r.prototype.aggregateRowForQuickFilter=function(e){var t=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(o){var i=t.getQuickFilterTextForColumn(o,e);n(i)&&r.push(i)})),e.quickFilterAggregateText=r.join(o.QUICK_FILTER_SEPARATOR)},r.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.updateActiveFilters()},r.prototype.createValueGetter=function(e){var t=this;return function(n){var r=n.node;return t.valueService.getValue(e,r,!0)}},r.prototype.getFilterComponent=function(e,t,n){var r;if(void 0===n&&(n=!0),n)return(null===(r=this.getOrCreateFilterWrapper(e,t))||void 0===r?void 0:r.filterPromise)||null;var o=this.cachedFilter(e);return o?o.filterPromise:null},r.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},r.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),n)),n},r.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},r.prototype.createFilterInstance=function(t){var n,r=this,o=re.isRegistered(e.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",i=t.getColDef(),s=Vs(Vs({},this.createFilterParams(t,i)),{filterModifiedCallback:function(){var e={type:He.EVENT_FILTER_MODIFIED,api:r.gridApi,columnApi:r.columnApi,column:t,filterInstance:n};r.eventService.dispatchEvent(e)},filterChangedCallback:function(e){var o={filterInstance:n,additionalEventAttributes:e,columns:[t]};r.callOnFilterChangedOutsideRenderCycle(o)},doesRowPassOtherFilter:function(e){return r.doesRowPassOtherFilters(n,e)}}),a=this.userComponentFactory.getFilterDetails(i,s,o);if(!a)return null;var l=a.newAgStackInstance();return l&&l.then((function(e){return n=e})),l},r.prototype.createFilterParams=function(e,t){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:e,colDef:f(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},r.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,compiledElement:null,guiPromise:Gr.resolve(null)};return n.filterPromise=this.createFilterInstance(e),n.filterPromise&&this.putIntoGui(n,t),n},r.prototype.putIntoGui=function(e,t){var r=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new Gr((function(i){e.filterPromise.then((function(s){var a=s.getGui();n(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=an(a)),o.appendChild(a),i(o),r.eventService.dispatchEvent({type:He.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:r.gridApi,columnApi:r.columnApi})}))}))},r.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach((function(n,r){(n.column.isPrimary()?e.columnModel.getPrimaryColumn(r):e.columnModel.getGridColumn(r))||(t.push(n.column),e.disposeFilterWrapper(n,"filterDestroyed"))})),t.length>0&&this.onFilterChanged({columns:t})},r.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allColumnFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged({columns:[e]}))},r.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(r){(r.setModel(null)||Gr.resolve()).then((function(){n.getContext().destroyBean(r),e.column.setFilterActive(!1,t),n.allColumnFilters.delete(e.column.getColId())}))}))},r.prototype.destroy=function(){var e=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach((function(t){return e.disposeFilterWrapper(t,"filterDestroyed")}))},r.QUICK_FILTER_SEPARATOR="\n",Hs([Y("valueService")],r.prototype,"valueService",void 0),Hs([Y("columnModel")],r.prototype,"columnModel",void 0),Hs([Y("rowModel")],r.prototype,"rowModel",void 0),Hs([Y("columnApi")],r.prototype,"columnApi",void 0),Hs([Y("gridApi")],r.prototype,"gridApi",void 0),Hs([Y("userComponentFactory")],r.prototype,"userComponentFactory",void 0),Hs([Y("rowRenderer")],r.prototype,"rowRenderer",void 0),Hs([U],r.prototype,"init",null),Hs([z],r.prototype,"destroy",null),r=o=Hs([K("filterManager")],r)}(Le),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)}}(),js=function(e){function t(t,n){var r=e.call(this,t)||this;return r.ctrl=n,r}return Bs(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(Yr),Us=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ks=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return Us(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveBodyCssClass:function(t,n){return e.eFloatingFilterBody.classList.toggle(t,n)},addOrRemoveButtonWrapperCssClass:function(t,n){return e.eButtonWrapper.classList.toggle(t,n)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc((function(){return t.context.destroyBean(e)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',zs([qr("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),zs([qr("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),zs([qr("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),zs([U],t.prototype,"postConstruct",null),t}(js),Ys=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}(),qs=function(){return(qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},$s=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xs=function(e,t){return function(n,r){t(n,r,e)}},Qs=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Zs=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Qs(arguments[t]));return e};function Js(e){return!0===e||"true"===e}function ea(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function ta(e,t){var n=parseInt(e,10);return ir(n)&&n>0?n:t}var na,ra=function(){function t(){this.propertyEventService=new te,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var o;return o=t,t.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},t.prototype.init=function(){var t=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=Ys.parse(this.gridOptions.sideBar));var r=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),r),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"};n(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),n(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),n(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&re.assertRegistered(e.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(e){t.gridOptions.icons&&t.gridOptions.icons[e]&&console.warn("gridOptions.icons."+e+" 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()},t.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),r=Zs(yt.ALL_PROPERTIES,yt.FRAMEWORK_PROPERTIES);e.checkProperties(n,r,r,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},t.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=Zs(ut.ALL_PROPERTIES,ut.FRAMEWORK_PROPERTIES,c(He).map((function(e){return ht.getCallbackForEvent(e)}))),n=Zs(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},t.prototype.checkProperties=function(e,t,n,r,o){var i=dr(e,t,n);h(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)},t.prototype.mergeGridCommonParams=function(e){var t=this;if(e){return function(n){var r=qs(qs({},n),{api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()});return e(r)}}return e},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},t.prototype.setDomData=function(e,t,n){var o=this.getDomDataKey(),i=e[o];r(i)&&(i={},e[o]=i),i[t]=n},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.isSuppressRowDeselection=function(){return Js(this.gridOptions.suppressRowDeselection)},t.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},t.prototype.isRowMultiSelectWithClick=function(){return Js(this.gridOptions.rowMultiSelectWithClick)},t.prototype.getContext=function(){return this.gridOptions.context},t.prototype.isPivotMode=function(){return Js(this.gridOptions.pivotMode)},t.prototype.isSuppressExpandablePivotGroups=function(){return Js(this.gridOptions.suppressExpandablePivotGroups)},t.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},t.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},t.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===ne.ROW_MODEL_TYPE_INFINITE},t.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===ne.ROW_MODEL_TYPE_VIEWPORT},t.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===ne.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.isRowModelDefault=function(){return r(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===ne.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},t.prototype.isSuppressFocusAfterRefresh=function(){return Js(this.gridOptions.suppressFocusAfterRefresh)},t.prototype.isSuppressBrowserResizeObserver=function(){return Js(this.gridOptions.suppressBrowserResizeObserver)},t.prototype.isSuppressMaintainUnsortedOrder=function(){return Js(this.gridOptions.suppressMaintainUnsortedOrder)},t.prototype.isSuppressClearOnFillReduction=function(){return Js(this.gridOptions.suppressClearOnFillReduction)},t.prototype.isShowToolPanel=function(){return Js(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.isSuppressTouch=function(){return Js(this.gridOptions.suppressTouch)},t.prototype.isMaintainColumnOrder=function(){return Js(this.gridOptions.maintainColumnOrder)},t.prototype.isSuppressRowTransform=function(){return Js(this.gridOptions.suppressRowTransform)},t.prototype.isSuppressColumnStateEvents=function(){return Js(this.gridOptions.suppressColumnStateEvents)},t.prototype.isAllowDragFromColumnsToolPanel=function(){return Js(this.gridOptions.allowDragFromColumnsToolPanel)},t.prototype.useAsyncEvents=function(){return!Js(this.gridOptions.suppressAsyncEvents)},t.prototype.isEnableCellChangeFlash=function(){return Js(this.gridOptions.enableCellChangeFlash)},t.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},t.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},t.prototype.isGroupSelectsChildren=function(){return Js(this.gridOptions.groupSelectsChildren)},t.prototype.isSuppressRowHoverHighlight=function(){return Js(this.gridOptions.suppressRowHoverHighlight)},t.prototype.isColumnHoverHighlight=function(){return Js(this.gridOptions.columnHoverHighlight)},t.prototype.isGroupSelectsFiltered=function(){return Js(this.gridOptions.groupSelectsFiltered)},t.prototype.isGroupHideOpenParents=function(){return Js(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupMaintainOrder=function(){return Js(this.gridOptions.groupMaintainOrder)},t.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):Js(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},t.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},t.prototype.isGroupRemoveSingleChildren=function(){return Js(this.gridOptions.groupRemoveSingleChildren)},t.prototype.isGroupRemoveLowestSingleChildren=function(){return Js(this.gridOptions.groupRemoveLowestSingleChildren)},t.prototype.isGroupIncludeFooter=function(){return Js(this.gridOptions.groupIncludeFooter)},t.prototype.isGroupIncludeTotalFooter=function(){return Js(this.gridOptions.groupIncludeTotalFooter)},t.prototype.isGroupSuppressBlankHeader=function(){return Js(this.gridOptions.groupSuppressBlankHeader)},t.prototype.isSuppressRowClickSelection=function(){return Js(this.gridOptions.suppressRowClickSelection)},t.prototype.isSuppressCellFocus=function(){return Js(this.gridOptions.suppressCellFocus)},t.prototype.isSuppressMultiSort=function(){return Js(this.gridOptions.suppressMultiSort)},t.prototype.isAlwaysMultiSort=function(){return Js(this.gridOptions.alwaysMultiSort)},t.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},t.prototype.isPivotSuppressAutoColumn=function(){return Js(this.gridOptions.pivotSuppressAutoColumn)},t.prototype.isSuppressDragLeaveHidesColumns=function(){return Js(this.gridOptions.suppressDragLeaveHidesColumns)},t.prototype.isSuppressScrollOnNewData=function(){return Js(this.gridOptions.suppressScrollOnNewData)},t.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return Js(this.gridOptions.suppressScrollWhenPopupsAreOpen)},t.prototype.isRowDragEntireRow=function(){return Js(this.gridOptions.rowDragEntireRow)},t.prototype.isSuppressRowDrag=function(){return Js(this.gridOptions.suppressRowDrag)},t.prototype.isRowDragManaged=function(){return Js(this.gridOptions.rowDragManaged)},t.prototype.isSuppressMoveWhenRowDragging=function(){return Js(this.gridOptions.suppressMoveWhenRowDragging)},t.prototype.isRowDragMultiRow=function(){return Js(this.gridOptions.rowDragMultiRow)},t.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||ne.DOM_LAYOUT_NORMAL;return-1===[ne.DOM_LAYOUT_PRINT,ne.DOM_LAYOUT_AUTO_HEIGHT,ne.DOM_LAYOUT_NORMAL].indexOf(e)?(A((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+ne.DOM_LAYOUT_NORMAL+", "+ne.DOM_LAYOUT_AUTO_HEIGHT+" and "+ne.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),ne.DOM_LAYOUT_NORMAL):e},t.prototype.isSuppressHorizontalScroll=function(){return Js(this.gridOptions.suppressHorizontalScroll)},t.prototype.isSuppressMaxRenderedRowRestriction=function(){return Js(this.gridOptions.suppressMaxRenderedRowRestriction)},t.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Js(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},t.prototype.isAlwaysShowHorizontalScroll=function(){return Js(this.gridOptions.alwaysShowHorizontalScroll)},t.prototype.isAlwaysShowVerticalScroll=function(){return Js(this.gridOptions.alwaysShowVerticalScroll)},t.prototype.isDebounceVerticalScrollbar=function(){return Js(this.gridOptions.debounceVerticalScrollbar)},t.prototype.isSuppressLoadingOverlay=function(){return Js(this.gridOptions.suppressLoadingOverlay)},t.prototype.isSuppressNoRowsOverlay=function(){return Js(this.gridOptions.suppressNoRowsOverlay)},t.prototype.isSuppressFieldDotNotation=function(){return Js(this.gridOptions.suppressFieldDotNotation)},t.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},t.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},t.prototype.isFunctionsPassive=function(){return Js(this.gridOptions.functionsPassive)},t.prototype.isSuppressChangeDetection=function(){return Js(this.gridOptions.suppressChangeDetection)},t.prototype.isSuppressAnimationFrame=function(){return Js(this.gridOptions.suppressAnimationFrame)},t.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},t.prototype.isCacheQuickFilter=function(){return Js(this.gridOptions.cacheQuickFilter)},t.prototype.isUnSortIcon=function(){return Js(this.gridOptions.unSortIcon)},t.prototype.isSuppressMenuHide=function(){return Js(this.gridOptions.suppressMenuHide)},t.prototype.isEnterMovesDownAfterEdit=function(){return Js(this.gridOptions.enterMovesDownAfterEdit)},t.prototype.isEnterMovesDown=function(){return Js(this.gridOptions.enterMovesDown)},t.prototype.isUndoRedoCellEditing=function(){return Js(this.gridOptions.undoRedoCellEditing)},t.prototype.getUndoRedoCellEditingLimit=function(){return ea(this.gridOptions.undoRedoCellEditingLimit)},t.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},t.prototype.getRowClass=function(){return this.gridOptions.rowClass},t.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},t.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},t.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},t.prototype.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},t.prototype.getServerSideStoreParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideStoreParams)},t.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},t.prototype.getPopupParent=function(){return this.gridOptions.popupParent},t.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},t.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},t.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},t.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},t.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},t.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,t=e.initialGroupOrderComparator,n=e.defaultGroupOrderComparator;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodeA,e.nodeB)}:void 0},t.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,t=e.isFullWidthRow,n=e.isFullWidthCell;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.rowNode)}:void 0},t.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},t.prototype.isEmbedFullWidthRows=function(){return Js(this.gridOptions.embedFullWidthRows)||Js(this.gridOptions.deprecatedEmbedFullWidthRows)},t.prototype.isDetailRowAutoHeight=function(){return Js(this.gridOptions.detailRowAutoHeight)},t.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},t.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},t.prototype.getApi=function(){return this.gridOptions.api},t.prototype.getColumnApi=function(){return this.gridOptions.columnApi},t.prototype.isReadOnlyEdit=function(){return Js(this.gridOptions.readOnlyEdit)},t.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,t=Js(this.gridOptions.immutableData);return!Js(this.gridOptions.resetRowDataOnUpdate)&&(e||t)},t.prototype.isEnsureDomOrder=function(){return Js(this.gridOptions.ensureDomOrder)},t.prototype.isEnableCharts=function(){return!!Js(this.gridOptions.enableCharts)&&re.assertRegistered(e.ModuleNames.GridChartsModule,"enableCharts")},t.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},t.prototype.isSingleClickEdit=function(){return Js(this.gridOptions.singleClickEdit)},t.prototype.isSuppressClickEdit=function(){return Js(this.gridOptions.suppressClickEdit)},t.prototype.isStopEditingWhenCellsLoseFocus=function(){return Js(this.gridOptions.stopEditingWhenCellsLoseFocus)},t.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},t.prototype.getMaxConcurrentDatasourceRequests=function(){var e=ea(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},t.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},t.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},t.prototype.getPaginationPageSize=function(){return ea(this.gridOptions.paginationPageSize)},t.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||Js(this.gridOptions.paginateChildRows)},t.prototype.getCacheBlockSize=function(){return ta(this.gridOptions.cacheBlockSize)},t.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},t.prototype.isPurgeClosedRowNodes=function(){return Js(this.gridOptions.purgeClosedRowNodes)},t.prototype.isSuppressPaginationPanel=function(){return Js(this.gridOptions.suppressPaginationPanel)},t.prototype.getRowData=function(){return this.gridOptions.rowData},t.prototype.isEnableRtl=function(){return Js(this.gridOptions.enableRtl)},t.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},t.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},t.prototype.isAngularCompileRows=function(){return Js(this.gridOptions.angularCompileRows)},t.prototype.isAngularCompileFilters=function(){return Js(this.gridOptions.angularCompileFilters)},t.prototype.isDebug=function(){return Js(this.gridOptions.debug)},t.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},t.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},t.prototype.getDatasource=function(){return this.gridOptions.datasource},t.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},t.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},t.prototype.isAccentedSort=function(){return Js(this.gridOptions.accentedSort)},t.prototype.isEnableBrowserTooltips=function(){return Js(this.gridOptions.enableBrowserTooltips)},t.prototype.isEnableCellExpressions=function(){return Js(this.gridOptions.enableCellExpressions)},t.prototype.isEnableGroupEdit=function(){return Js(this.gridOptions.enableGroupEdit)},t.prototype.isSuppressMiddleClickScrolls=function(){return Js(this.gridOptions.suppressMiddleClickScrolls)},t.prototype.isPreventDefaultOnContextMenu=function(){return Js(this.gridOptions.preventDefaultOnContextMenu)},t.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Js(this.gridOptions.suppressPreventDefaultOnMouseWheel)},t.prototype.isSuppressColumnVirtualisation=function(){return Js(this.gridOptions.suppressColumnVirtualisation)},t.prototype.isSuppressRowVirtualisation=function(){return Js(this.gridOptions.suppressRowVirtualisation)},t.prototype.isSuppressContextMenu=function(){return Js(this.gridOptions.suppressContextMenu)},t.prototype.isAllowContextMenuWithControlKey=function(){return Js(this.gridOptions.allowContextMenuWithControlKey)},t.prototype.isSuppressCopyRowsToClipboard=function(){return Js(this.gridOptions.suppressCopyRowsToClipboard)},t.prototype.isSuppressCopySingleCellRanges=function(){return Js(this.gridOptions.suppressCopySingleCellRanges)},t.prototype.isCopyHeadersToClipboard=function(){return Js(this.gridOptions.copyHeadersToClipboard)},t.prototype.isCopyGroupHeadersToClipboard=function(){return Js(this.gridOptions.copyGroupHeadersToClipboard)},t.prototype.isSuppressClipboardPaste=function(){return Js(this.gridOptions.suppressClipboardPaste)},t.prototype.isSuppressLastEmptyLineOnPaste=function(){return Js(this.gridOptions.suppressLastEmptyLineOnPaste)},t.prototype.isPagination=function(){return Js(this.gridOptions.pagination)},t.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Js(this.gridOptions.suppressEnterpriseResetOnNewColumns)},t.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},t.prototype.getAsyncTransactionWaitMillis=function(){return n(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:ne.BATCH_WAIT_MILLIS},t.prototype.isSuppressMovableColumns=function(){return Js(this.gridOptions.suppressMovableColumns)},t.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Js(this.gridOptions.animateRows)},t.prototype.isSuppressColumnMoveAnimation=function(){return Js(this.gridOptions.suppressColumnMoveAnimation)},t.prototype.isSuppressAggFuncInHeader=function(){return Js(this.gridOptions.suppressAggFuncInHeader)},t.prototype.isSuppressAggAtRootLevel=function(){return Js(this.gridOptions.suppressAggAtRootLevel)},t.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||Js(this.gridOptions.suppressAggFilteredOnly)},t.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return Js(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},t.prototype.isShowOpenedGroup=function(){return Js(this.gridOptions.showOpenedGroup)},t.prototype.isReactUi=function(){return Js(this.gridOptions.reactUi)},t.prototype.isSuppressReactUi=function(){return Js(this.gridOptions.suppressReactUi)},t.prototype.isEnableRangeSelection=function(){return re.isRegistered(e.ModuleNames.RangeSelectionModule)&&Js(this.gridOptions.enableRangeSelection)},t.prototype.isEnableRangeHandle=function(){return Js(this.gridOptions.enableRangeHandle)},t.prototype.isEnableFillHandle=function(){return Js(this.gridOptions.enableFillHandle)},t.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(A((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"},t.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},t.prototype.isSuppressMultiRangeSelection=function(){return Js(this.gridOptions.suppressMultiRangeSelection)},t.prototype.isPaginationAutoPageSize=function(){return Js(this.gridOptions.paginationAutoPageSize)},t.prototype.isRememberGroupStateWhenNewData=function(){return Js(this.gridOptions.rememberGroupStateWhenNewData)},t.prototype.getIcons=function(){return this.gridOptions.icons},t.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.mergeGridCommonParams(e):Js(e)?function(){return!0}:void 0},t.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},t.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},t.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},t.prototype.isMasterDetail=function(){return!!Js(this.gridOptions.masterDetail)&&re.assertRegistered(e.ModuleNames.MasterDetailModule,"masterDetail")},t.prototype.isKeepDetailRows=function(){return Js(this.gridOptions.keepDetailRows)},t.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return n(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},t.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},t.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},t.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},t.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},t.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},t.prototype.isSuppressAutoSize=function(){return Js(this.gridOptions.suppressAutoSize)},t.prototype.isEnableCellTextSelection=function(){return Js(this.gridOptions.enableCellTextSelection)},t.prototype.isSuppressParentsInRowNodes=function(){return Js(this.gridOptions.suppressParentsInRowNodes)},t.prototype.isSuppressClipboardApi=function(){return Js(this.gridOptions.suppressClipboardApi)},t.prototype.isFunctionsReadOnly=function(){return Js(this.gridOptions.functionsReadOnly)},t.prototype.isEnableCellTextSelect=function(){return Js(this.gridOptions.enableCellTextSelection)},t.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},t.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},t.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+Ke(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},t.prototype.isSuppressCsvExport=function(){return Js(this.gridOptions.suppressCsvExport)},t.prototype.isAllowShowChangeAfterFilter=function(){return Js(this.gridOptions.allowShowChangeAfterFilter)},t.prototype.isSuppressExcelExport=function(){return Js(this.gridOptions.suppressExcelExport)},t.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Js(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},t.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},t.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},t.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},t.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},t.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},t.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,t=e.getGroupRowAgg,n=e.groupRowAggNodes;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},t.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},t.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},t.prototype.getRowIdFunc=function(){var e=this.gridOptions,t=e.getRowId,n=e.getRowNodeId;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.data)}:void 0},t.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},t.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},t.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},t.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},t.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},t.prototype.isTreeData=function(){return!!Js(this.gridOptions.treeData)&&re.assertRegistered(e.ModuleNames.RowGroupingModule,"Tree Data")},t.prototype.isValueCache=function(){return Js(this.gridOptions.valueCache)},t.prototype.isValueCacheNeverExpires=function(){return Js(this.gridOptions.valueCacheNeverExpires)},t.prototype.isDeltaSort=function(){return Js(this.gridOptions.deltaSort)},t.prototype.isAggregateOnlyChangedColumns=function(){return Js(this.gridOptions.aggregateOnlyChangedColumns)},t.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},t.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},t.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},t.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},t.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},t.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},t.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},t.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},t.prototype.getViewportRowModelPageSize=function(){return ta(this.gridOptions.viewportRowModelPageSize,5)},t.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},t.prototype.isServerSideSortingAlwaysResets=function(){return Js(this.gridOptions.serverSideSortingAlwaysResets)},t.prototype.isServerSideFilteringAlwaysResets=function(){return Js(this.gridOptions.serverSideFilteringAlwaysResets)},t.prototype.getPostSortFunc=function(){var e=this.gridOptions,t=e.postSortRows,n=e.postSort;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},t.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},t.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},t.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},t.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},t.prototype.getClipboardDelimiter=function(){return n(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},t.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)}},t.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},t.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},t.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},t.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},t.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},t.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},t.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},t.prototype.getTooltipDelay=function(e){var t=this.gridOptions,r=t.tooltipShowDelay,o=t.tooltipHideDelay,i="show"===e?r:o,s=Ke(e);return n(i)?(i<0&&A((function(){return console.warn("ag-grid: tooltip"+s+"Delay should not be lower than 0")}),"tooltip"+s+"DelayWarn"),Math.max(200,i)):null},t.prototype.isTooltipMouseTrack=function(){return Js(this.gridOptions.tooltipMouseTrack)},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return Js(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},t.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&n(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&n(e)?e:document},t.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(n(e)&&e>o.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return n(t)?Math.max(t,o.MIN_COL_WIDTH):o.MIN_COL_WIDTH},t.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>o.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},t.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<o.MIN_COL_WIDTH?200:this.gridOptions.colWidth},t.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(A((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=ne.ROW_BUFFER_SIZE,e},t.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Gt();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:He.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),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."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var t=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(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("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"),t("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 n=e.groupRowRendererParams;e.groupRowInnerRenderer&&(n.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(n.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(n.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.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.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="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var r=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+r+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator)},t.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.isRowModelDefault()&&r(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()&&(r(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."),r(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."))},t.prototype.getLocaleTextFunc=function(){var e=this,t=this.gridOptions,n=t.localeText,r=t.getLocaleText,o=t.localeTextFunc;return r?function(t,n,o){var i={key:t,defaultValue:n,variableValues:o,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return r(i)}:o||function(e,t,r){var o=n&&n[e];if(o&&r&&r.length)for(var i=0;!(i>=r.length);){if(-1===o.indexOf("${variable}"))break;o=o.replace("${variable}",r[i++])}return null!=o?o:t}},t.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=ht.getCallbackForEvent(e);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](t)}},t.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||r(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},t.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(e,t,n){if(void 0===t&&(t=!1),null==n&&(n=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};var r={node:e,data:e.data},o=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(r);if(this.isNumeric(o))return 0===o&&A((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,o),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},t.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},t.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)},t.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},t.prototype.matchesGroupDisplayType=function(e,t){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},t.prototype.matchesTreeDataDisplayType=function(e,t){var n=["auto","custom"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},t.MIN_COL_WIDTH=10,t.PROP_HEADER_HEIGHT="headerHeight",t.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",t.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",t.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",t.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",t.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",t.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",t.PROP_TAB_TO_NEXT_CELL="tabToNextCell",t.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",t.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",t.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",t.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",t.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",t.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",t.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",t.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",t.PROP_GET_ROW_CLASS="getRowClass",t.PROP_GET_ROW_STYLE="getRowStyle",t.PROP_GET_ROW_HEIGHT="getRowHeight",t.PROP_POPUP_PARENT="popupParent",t.PROP_DOM_LAYOUT="domLayout",t.PROP_ROW_CLASS="rowClass",t.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",t.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",t.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",t.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",t.PROP_GET_CHILD_COUNT="getChildCount",t.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",t.PROP_GET_ROW_NODE_ID="getRowNodeId",t.PROP_GET_ROW_ID="getRowId",t.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",t.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",t.PROP_IS_ROW_SELECTABLE="isRowSelectable",t.PROP_IS_ROW_MASTER="isRowMaster",t.PROP_POST_SORT="postSort",t.PROP_POST_SORT_ROWS="postSortRows",t.PROP_GET_DOCUMENT="getDocument",t.PROP_POST_PROCESS_POPUP="postProcessPopup",t.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",t.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",t.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",t.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",t.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",t.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",t.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",t.PROP_SEND_TO_CLIPBOARD="sendToClipboard",t.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",t.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",t.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",t.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",t.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",t.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",t.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",t.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",$s([Y("gridOptions")],t.prototype,"gridOptions",void 0),$s([Y("eventService")],t.prototype,"eventService",void 0),$s([Y("environment")],t.prototype,"environment",void 0),$s([Y("eGridDiv")],t.prototype,"eGridDiv",void 0),$s([Xs(0,X("gridApi")),Xs(1,X("columnApi"))],t.prototype,"agWire",null),$s([z],t.prototype,"destroy",null),$s([U],t.prototype,"init",null),t=o=$s([K("gridOptionsWrapper")],t)}(),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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(na=e.LayoutCssClasses||(e.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",na.NORMAL="ag-layout-normal",na.PRINT="ag-layout-print";var sa,aa=function(t){function n(e){var n=t.call(this)||this;return n.view=e,n}return oa(n,t),n.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,ra.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},n.prototype.updateLayoutClasses=function(){var t=this.gridOptionsWrapper.getDomLayout(),n={autoHeight:t===ne.DOM_LAYOUT_AUTO_HEIGHT,normal:t===ne.DOM_LAYOUT_NORMAL,print:t===ne.DOM_LAYOUT_PRINT},r=n.autoHeight?e.LayoutCssClasses.AUTO_HEIGHT:n.print?e.LayoutCssClasses.PRINT:e.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(r,n)},ia([Y("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ia([U],n.prototype,"postConstruct",null),n}(Le),la=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)}}(),ua=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ca=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=G(n.resetLastHorizontalScrollElement.bind(n),500),n}return la(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?G(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){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),r=this.ctrlsService.getBottomCenterRowContainerCtrl(),o=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(t),r.setContainerTranslateX(t),n.setContainerTranslateX(t),nn(this.lastHorizontalScrollElement===this.centerRowContainerCtrl.getViewportElement()?o.getViewport():this.centerRowContainerCtrl.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.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(tn(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){var t=tn(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,n={type:He.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Object.assign({},n,{type:He.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,n){if(void 0===n&&(n=!1),n&&!Ft())return!1;if("vertical"===e){var r=Xt(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;if(t<0||t+r>o)return!0}if("horizontal"===e){var i=this.centerRowContainerCtrl.getCenterWidth(),s=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&en()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>s)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.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.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&en()?e>0?0:t:Math.min(Math.max(e,0),t)),nn(this.centerRowContainerCtrl.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.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.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<n;i++){var s=this.rowModel.getRow(i);if(r){if(e(s)){o=i;break}}else if(e===s||e===s.data){o=i;break}}o>=0&&this.ensureIndexVisible(o,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==ne.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,s=o.rowHeight,a=this.paginationProxy.getPixelOffset(),l=o.rowTop-a,u=l+o.rowHeight,c=this.getVScrollPosition(),p=this.heightScaler.getDivStretchOffset(),d=c.top+p,h=c.bottom+p,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),v=this.heightScaler.getScrollPositionForPixel(u-f),y=Math.min((g+v)/2,l),m=null;"top"===t?m=g:"bottom"===t?m=v:"middle"===t?m=y:d>l?m=g:h<u&&(m=v),null!==m&&(this.eBodyViewport.scrollTop=m,this.rowRenderer.redrawAfterScroll()),r=i!==o.rowTop||s!==o.rowHeight}while(r);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var n=this.columnModel.getGridColumn(e);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var r=this.getPositionedHorizontalScroll(n,t);null!==r&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(r),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var n=this.isColumnOutsideViewport(e),r=n.columnBeforeStart,o=n.columnAfterEnd,i=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?r:o)||i,u=a?o:r;"auto"!==t&&(l="start"===t,u="end"===t);var c="middle"===t;if(l||u||c){var p=this.getColumnBounds(e),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),n=t.start,r=t.end,o=this.getColumnBounds(e),i=o.colLeft,s=o.colRight,a=this.enableRtl;return{columnBeforeStart:a?n>s:r<s,columnAfterEnd:a?r<i:n>i}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),o=e.getLeft(),i=t?-1:1,s=t?n-o:o;return{colLeft:s,colMiddle:s+r/2*i,colRight:s+r*i}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},ua([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),ua([Y("animationFrameService")],t.prototype,"animationFrameService",void 0),ua([Y("columnApi")],t.prototype,"columnApi",void 0),ua([Y("gridApi")],t.prototype,"gridApi",void 0),ua([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),ua([Y("rowModel")],t.prototype,"rowModel",void 0),ua([Y("rowContainerHeightService")],t.prototype,"heightScaler",void 0),ua([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),ua([Y("columnModel")],t.prototype,"columnModel",void 0),ua([U],t.prototype,"postConstruct",null),t}(Le),pa=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var n=t||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var r=this.scrollContainer.getBoundingClientRect(),o=this.scrollByTick;this.tickLeft=e.clientX<r.left+o,this.tickRight=e.clientX>r.right-o,this.tickUp=e.clientY<r.top+o&&!n,this.tickDown=e.clientY>r.bottom-o&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-e),this.tickRight&&this.setHorizontalPosition(n+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),da=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)}}(),ha=function(){return(ha=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},fa=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ga=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},va=function(t){function n(e){var n=t.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=e,n}return da(n,t),n.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_MODEL_UPDATED,(function(){t()})),t(),this.ctrlsService.whenReady((function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new pa({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})}))},n.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},n.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},n.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!o(e)},n.prototype.getContainer=function(){return this.eContainer},n.prototype.isInterestedIn=function(t){return t===e.DragSourceType.RowDrag},n.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?Bi.ICON_NOT_ALLOWED:Bi.ICON_MOVE},n.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},n.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),r=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ga(arguments[t]));return e}(this.selectionService.getSelectedNodes()).sort((function(e,n){return t.getRowIndexNumber(e)-t.getRowIndexNumber(n)})),o=e.dragItem.rowNode;return n&&-1!==r.indexOf(o)?(this.isMultiRowDrag=!0,r):(this.isMultiRowDrag=!1,[o])},n.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(He.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},n.prototype.onDragging=function(e){this.onEnterOrDragging(e)},n.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},n.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),n=e.dropZoneTarget;return!t.contains(n)},n.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(He.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},n.prototype.doManagedDrag=function(e,t){var n=this.isFromThisGrid(e),r=this.gridOptionsWrapper.isRowDragManaged(),o=e.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(o[0],t):this.moveRows(o,t))},n.prototype.getRowIndexNumber=function(e){return parseInt(le(e.getRowIndexString().split("-")),10)},n.prototype.moveRowAndClearHighlight=function(t){var n=this,r=this.clientSideRowModel.getLastHighlightedRowNode(),o=r&&r.highlighted===e.RowHighlightPosition.Below,i=this.mouseEventService.getNormalisedPosition(t).y,s=t.dragItem.rowNodes,a=o?1:0;if(this.isFromThisGrid(t))s.forEach((function(e){e.rowTop<i&&(a-=1)})),this.moveRows(s,i,a);else{var l=this.gridOptionsWrapper.getRowIdFunc(),u=this.clientSideRowModel.getRowIndexAtPixel(i)+1;this.clientSideRowModel.getHighlightPosition(i)===e.RowHighlightPosition.Above&&u--,this.clientSideRowModel.updateRowData({add:s.map((function(e){return e.data})).filter((function(e){return!n.clientSideRowModel.getRowNode(l?l({data:e,level:0}):e.id)})),addIndex:u})}this.clearRowHighlight()},n.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},n.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},n.prototype.addRowDropZone=function(t){var n=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var r={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,r=t):(t.onDragEnter&&(r.onDragEnter=function(e){t.onDragEnter(n.draggingToRowDragEvent(He.EVENT_ROW_DRAG_ENTER,e))}),t.onDragLeave&&(r.onDragLeave=function(e){t.onDragLeave(n.draggingToRowDragEvent(He.EVENT_ROW_DRAG_LEAVE,e))}),t.onDragging&&(r.onDragging=function(e){t.onDragging(n.draggingToRowDragEvent(He.EVENT_ROW_DRAG_MOVE,e))}),t.onDragStop&&(r.onDragStop=function(e){t.onDragStop(n.draggingToRowDragEvent(He.EVENT_ROW_DRAG_END,e))})),this.dragAndDropService.addDropTarget(ha({isInterestedIn:function(t){return t===e.DragSourceType.RowDrag},getIconName:function(){return Bi.ICON_MOVE},external:!0},r))}else A((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),s=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){r(n),e.onDragEnter(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_ENTER,n))}:r,onDragLeave:e.onDragLeave?function(n){o(n),e.onDragLeave(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_LEAVE,n))}:o,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){s(n),e.onDragStop(t.draggingToRowDragEvent(He.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:r,onDragLeave:o,onDragging:i,onDragStop:s,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(t,n){var r,o,i=this.mouseEventService.getNormalisedPosition(n).y,s=-1;switch(i>this.paginationProxy.getCurrentPageHeight()||(s=this.rowModel.getRowIndexAtPixel(i),r=this.rowModel.getRow(s)),n.vDirection){case e.VerticalDirection.Down:o="down";break;case e.VerticalDirection.Up:o="up";break;default:o=null}return{type:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:s,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(He.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(He.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.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},fa([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),fa([Y("rowModel")],n.prototype,"rowModel",void 0),fa([Y("paginationProxy")],n.prototype,"paginationProxy",void 0),fa([Y("columnModel")],n.prototype,"columnModel",void 0),fa([Y("focusService")],n.prototype,"focusService",void 0),fa([Y("sortController")],n.prototype,"sortController",void 0),fa([Y("filterManager")],n.prototype,"filterManager",void 0),fa([Y("selectionService")],n.prototype,"selectionService",void 0),fa([Y("mouseEventService")],n.prototype,"mouseEventService",void 0),fa([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),fa([q("rangeService")],n.prototype,"rangeService",void 0),fa([Y("columnApi")],n.prototype,"columnApi",void 0),fa([Y("gridApi")],n.prototype,"gridApi",void 0),fa([U],n.prototype,"postConstruct",null),n}(Le),ya=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)}}(),ma=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(sa=e.RowAnimationCssClasses||(e.RowAnimationCssClasses={})).ANIMATION_ON="ag-row-animation",sa.ANIMATION_OFF="ag-row-no-animation";var Ca,wa,Ea="ag-selectable",ba="ag-force-vertical-scroll",Ra="ag-column-moving",_a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return ya(n,t),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 aa(this.comp)),this.bodyScrollFeature=this.createManagedBean(new ca(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,o]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},n.prototype.getComp=function(){return this.comp},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,He.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,He.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(){e.classList.add("ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||e.classList.remove("ag-has-focus")}))}))},n.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?Ra:null,e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?Ea: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!==xt(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===ne.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?ba:null;return this.comp.setAlwaysVerticalScrollClass(t,e),e||gn(this.eBodyViewport)},n.prototype.setupRowAnimationCssClass=function(){var t=this,n=function(){var n=t.gridOptionsWrapper.isAnimateRows()&&!t.rowContainerHeightService.isStretching(),r=n?e.RowAnimationCssClasses.ANIMATION_ON:e.RowAnimationCssClasses.ANIMATION_OFF;t.comp.setRowAnimationCssOnBodyViewport(r,n)};n(),this.addManagedListener(this.eventService,He.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){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&t.preventDefault();var n=t.target;n!==e.eBodyViewport&&n!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody)})),this.addManagedListener(this.eBodyViewport,"wheel",this.onWheel.bind(this))},n.prototype.onWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},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.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new va(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()?this.gridOptionsWrapper.getScrollbarWidth():0,r=Qt(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)},ma([Y("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),ma([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),ma([Y("columnModel")],n.prototype,"columnModel",void 0),ma([Y("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),ma([q("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),ma([Y("headerNavigationService")],n.prototype,"headerNavigationService",void 0),ma([Y("paginationProxy")],n.prototype,"paginationProxy",void 0),ma([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ma([Y("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),ma([Y("rowRenderer")],n.prototype,"rowRenderer",void 0),ma([Y("popupService")],n.prototype,"popupService",void 0),ma([Y("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Le);(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
Ca=e.SelectionHandleType||(e.SelectionHandleType={}))[Ca.FILL=0]="FILL",Ca[Ca.RANGE=1]="RANGE",(wa=e.CellRangeType||(e.CellRangeType={}))[wa.VALUE=0]="VALUE",wa[wa.DIMENSION=1]="DIMENSION";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var Sa,Oa,Pa="ag-cell-range-selected",Ta=function(){function t(e,t){this.beans=e,this.cellCtrl=t}return t.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Pa,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),er(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},t.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)},t.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},t.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var n=t.getCellRanges();return n.length>0&&n.every((function(t){return ge([e.CellRangeType.DIMENSION,e.CellRangeType.VALUE],t.type)}))},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var e,t,n=this,r=this.beans.gridOptionsWrapper.isEnableRtl(),o=!1,i=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;r?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(n.cellCtrl.getCellPosition(),e)}));e||(a=!0),t||(i=!0);for(var h=0;h<d.length&&!(o&&i&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),v=c.getRangeEndRow(f);!o&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(o=!0),!s&&this.beans.rowPositionUtils.sameRow(v,this.cellCtrl.getCellPosition())&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!i&&t&&f.columns.indexOf(t)<0&&(i=!0)}return{top:o,right:i,bottom:s,left:a}},t.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,n=t.gridOptionsWrapper,r=t.rangeService,o=r.getCellRanges(),i=o.length;if(this.rangeCount<1||i<1)return!1;var s=le(o),a=this.cellCtrl.getCellPosition(),l=n.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),u=n.isEnableRangeHandle(),c=1===i&&!this.cellCtrl.isEditing()&&(l||u);if(this.hasChartRange){var p=o[0].type===e.CellRangeType.DIMENSION&&r.isCellInSpecificRange(a,o[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",p),c=s.type===e.CellRangeType.VALUE}return c&&null!=s.endRow&&r.isContiguousRange(s)&&r.isBottomRightCell(s,a)},t.prototype.addSelectionHandle=function(){var t=this.beans,n=t.gridOptionsWrapper,o=le(t.rangeService.getCellRanges()).type,i=n.isEnableFillHandle()&&r(o)?e.SelectionHandleType.FILL:e.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(i)),this.selectionHandle.refresh(this.cellCtrl)},t.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},t}(),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)}}(),Da=function(e){function t(t,n){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=n,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r.setupColSpan(),r.setupRowSpan(),r}return Aa(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();ue(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,o=this.column.getPinned(),i=0;n&&i<e&&(t.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!r(n))&&o===n.getPinned();i++);return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?le(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===ne.PINNED_LEFT)return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===ne.PINNED_RIGHT?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),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)}}(),Ia=function(e){function t(t,n){var r=e.call(this)||this;return r.staticClasses=[],r.cellCtrl=t,r.beans=n,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r}return Na(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(t.cellClassRules,n,(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}),(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}))},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if("function"==typeof e.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,n),this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),Ma=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)}}(),Fa=function(e){function t(t,n){var r=e.call(this)||this;return r.ctrl=t,r.beans=n,r}return Ma(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Br(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,r=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:r,data:r?r.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),xa=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},La=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)},xa([Y("resizeObserverService")],e.prototype,"resizeObserverService",void 0),xa([Y("paginationProxy")],e.prototype,"paginationProxy",void 0),xa([Y("context")],e.prototype,"context",void 0),xa([Y("columnApi")],e.prototype,"columnApi",void 0),xa([Y("gridApi")],e.prototype,"gridApi",void 0),xa([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),xa([Y("expressionService")],e.prototype,"expressionService",void 0),xa([Y("rowRenderer")],e.prototype,"rowRenderer",void 0),xa([Y("templateService")],e.prototype,"templateService",void 0),xa([Y("valueService")],e.prototype,"valueService",void 0),xa([Y("eventService")],e.prototype,"eventService",void 0),xa([Y("columnModel")],e.prototype,"columnModel",void 0),xa([Y("headerNavigationService")],e.prototype,"headerNavigationService",void 0),xa([Y("navigationService")],e.prototype,"navigationService",void 0),xa([Y("columnAnimationService")],e.prototype,"columnAnimationService",void 0),xa([q("rangeService")],e.prototype,"rangeService",void 0),xa([Y("focusService")],e.prototype,"focusService",void 0),xa([q("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),xa([Y("popupService")],e.prototype,"popupService",void 0),xa([Y("valueFormatterService")],e.prototype,"valueFormatterService",void 0),xa([Y("stylingService")],e.prototype,"stylingService",void 0),xa([Y("columnHoverService")],e.prototype,"columnHoverService",void 0),xa([Y("userComponentFactory")],e.prototype,"userComponentFactory",void 0),xa([Y("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),xa([Y("animationFrameService")],e.prototype,"animationFrameService",void 0),xa([Y("dragAndDropService")],e.prototype,"dragAndDropService",void 0),xa([Y("sortController")],e.prototype,"sortController",void 0),xa([Y("filterManager")],e.prototype,"filterManager",void 0),xa([Y("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),xa([Y("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),xa([Y("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),xa([Y("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),xa([Y("selectionService")],e.prototype,"selectionService",void 0),xa([q("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),xa([Y("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),xa([Y("rowModel")],e.prototype,"rowModel",void 0),xa([Y("ctrlsService")],e.prototype,"ctrlsService",void 0),xa([Y("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),xa([Y("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),xa([Y("valueCache")],e.prototype,"valueCache",void 0),xa([Y("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),xa([U],e.prototype,"postConstruct",null),e=xa([K("beans")],e)}(),Ga=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)}}(),ka=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 Ga(t,e),t.prototype.onMouseEvent=function(e,t){if(!Se(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,He.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(!Ft()||Pe("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,He.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(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey,o=e.target,i=this.beans,s=i.eventService,a=i.rangeService;if(!this.isRightClickInExistingRange(e)){var l=a&&0!=a.getCellRanges().length;if(!r||!l){var u=Dt()&&!this.cellCtrl.isEditing()&&!Ut(o);this.cellCtrl.focusCell(u)}if(r&&l&&e.preventDefault(),!this.containsWidget(o)){if(a){var c=this.cellCtrl.getCellPosition();if(r)a.extendLatestRangeToCell(c);else{var p=t||n;a.setRangeToCell(c,p)}}s.dispatchEvent(this.cellCtrl.createEvent(e,He.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 qt(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,He.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,He.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}(La),Va=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)}}(),Ha=function(e){function t(t,n,r,o,i){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=n,s.rowNode=o,s.rowCtrl=i,s}return Va(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case io.ENTER:this.onEnterKeyDown(e);break;case io.F2:this.onF2KeyDown(e);break;case io.ESCAPE:this.onEscapeKeyDown(e);break;case io.TAB:this.onTabKeyDown(e);break;case io.BACKSPACE:case io.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case io.DOWN:case io.UP:case io.RIGHT:case io.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):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,t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e,void 0,t)},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,io.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(io.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(io.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):br(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),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}(Le),Wa=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)}}(),Ba=function(e){function t(t,n,r,o){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=t,i.column=n,i.beans=r,i.eCell=o,i}return Wa(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(wr("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;e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var n=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n)}catch(r){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([U],t.prototype,"postConstruct",null),t}(Yr),ja=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)}}(),Ua=function(){return(Ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},za="ag-cell-not-inline-editing",Ka=0,Ya=function(e){function r(t,n,r,o){var i=e.call(this)||this;return i.suppressRefreshCell=!1,i.column=t,i.rowNode=n,i.beans=r,i.rowCtrl=o,i.instanceId=t.getId()+"-"+Ka++,i.createCellPosition(),i.addFeatures(),i}return ja(r,e),r.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new Da(this,this.beans),this.addDestroyFunc((function(){return e.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new Ia(this,this.beans),this.addDestroyFunc((function(){return e.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new ka(this,this.beans,this.column),this.addDestroyFunc((function(){return e.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new Ha(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return e.cellKeyboardListenerFeature.destroy()})),this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRangeFeature=new Ta(this.beans,this),this.addDestroyFunc((function(){return e.cellRangeFeature.destroy()}))),this.addTooltipFeature()},r.prototype.addTooltipFeature=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var t=e.column.getColDef(),r=e.rowNode.data;if(t.tooltipField&&n(r))return b(r,t.tooltipField,e.column.isTooltipFieldContainsDots());var o=t.tooltipValueGetter;return o?o({location:"cell",api:e.beans.gridOptionsWrapper.getApi(),columnApi:e.beans.gridOptionsWrapper.getColumnApi(),context:e.beans.gridOptionsWrapper.getContext(),colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Fa(t,this.beans),this.addDestroyFunc((function(){return e.tooltipFeature.destroy()}))},r.prototype.setComp=function(e,t,n,r,o){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.eGui=t,this.eCellWrapper=n,this.printLayout=r,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var i=Ye(this.column.getId());this.cellComp.setColId(i),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(t),this.cellCustomStyleFeature.setComp(e),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),o&&this.isCellEditable()?this.startEditing():this.showValue()},r.prototype.setupAutoHeight=function(){var e=this;if(this.column.isAutoHeight()){var t=this.eCellWrapper,n=t.parentElement,r=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,o=function(i){if(!e.editing&&e.isAlive()){var s=$t(n),a=s.paddingTop,l=s.paddingBottom,u=t.offsetHeight+a+l;if(i<5){var c=e.beans.gridOptionsWrapper.getDocument();if(!c||!c.contains(t)||0==u)return void e.beans.frameworkOverrides.setTimeout((function(){return o(i+1)}),0)}var p=Math.max(u,r);e.rowNode.setRowAutoHeight(p,e.column)}},i=function(){return o(0)};i();var s=this.beans.resizeObserverService.observeResize(t,i);this.addDestroyFunc((function(){s(),e.rowNode.setRowAutoHeight(void 0,e.column)}))}},r.prototype.getInstanceId=function(){return this.instanceId},r.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),r=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(r,t,e),this.refreshHandle()},r.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},r.prototype.isForceWrapper=function(){return this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight()},r.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned)&&("function"==typeof e||!0===e)},r.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||n||r},r.prototype.startEditing=function(e,t,n,r){var o,i;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===r&&(r=null),this.isCellEditable()&&!this.editing){var s=this.createCellEditorParams(e,t,n),a=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(a,s),u=null!=(null===(o=l)||void 0===o?void 0:o.popupFromSelector)?l.popupFromSelector:!!a.cellEditorPopup,c=null!=(null===(i=l)||void 0===i?void 0:i.popupPositionFromSelector)?l.popupPositionFromSelector:a.cellEditorPopupPosition;this.setEditing(!0,u),this.cellComp.setEditDetails(l,u,c);var p=this.createEvent(r,He.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(p)}},r.prototype.setEditing=function(e,t){void 0===t&&(t=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=t,this.setInlineEditingClass())},r.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},r.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},r.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?t:{newValue:n.getValue(),newValueExists:!0}:t},r.prototype.saveNewValue=function(e,t){if(t===e)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(e,t),!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,t);return this.suppressRefreshCell=!1,n},r.prototype.dispatchEventForSaveValueReadOnly=function(e,t){var n=this.rowNode,r={type:He.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:n.data,node:n,oldValue:e,newValue:t,value:t,source:void 0};this.beans.eventService.dispatchEvent(r)},r.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),n=t.newValue,r=t.newValueExists,o=this.getValueFromValueService(),i=!1;return r&&(i=this.saveNewValue(o,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(o,n),i},r.prototype.dispatchEditingStoppedEvent=function(e,t){var n=Ua(Ua({},this.createEvent(null,He.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t});this.beans.eventService.dispatchEvent(n)},r.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editing&&!this.editingInPopup,t=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",e),this.cellComp.addOrRemoveCssClass(za,!e),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",t),this.rowCtrl.setInlineEditingCss(this.editing)}},r.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},r.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValueFromValueService(),key:e,eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},r.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,n,r,o){return e.registerRowDragger(t,n,o)},addRowCompListener:function(t,n){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),e.rowCtrl.addEventListener(t,n)}}},r.prototype.parseValue=function(e){var t=this.column.getColDef(),r={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return n(o)?this.beans.expressionService.evaluate(o,r):e},r.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},r.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},r.prototype.onCellChanged=function(e){this.cellComp&&(e.column===this.column&&this.refreshCell({}))},r.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var t=this.column.getColDef(),n=null!=e&&!!e.newData,r=null!=e&&!!e.suppressFlash||!!t.suppressCellFlash,o=null==t.field&&null==t.valueGetter&&null==t.showRowGroup,i=e&&e.forceRefresh||o||n,s=this.updateAndFormatValue();if(i||s){this.showValue(n);var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!r&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},r.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},r.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.navigationService.navigateToNextCell(null,io.DOWN,this.getCellPosition(),!1)},r.prototype.flashCell=function(e){var t=e&&e.flashDelay,n=e&&e.fadeDelay;this.animateCell("data-changed",t,n)},r.prototype.animateCell=function(e,t,r){var o=this,i="ag-cell-"+e,s="ag-cell-"+e+"-animation",a=this.beans.gridOptionsWrapper;t||(t=a.getCellFlashDelay()),n(r)||(r=a.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(i,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(i,!1),o.cellComp.addOrRemoveCssClass(s,!0),o.eGui.style.transition="background-color "+r+"ms",window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(s,!1),o.eGui.style.transition=""}),r)}),t)},r.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell("highlight")}},r.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},r.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},r.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},r.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},r.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,n=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n)},r.prototype.valuesAreEqual=function(e,t){var n=this.column.getColDef();return n.equals?n.equals(e,t):e===t},r.prototype.getComp=function(){return this.cellComp},r.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),r=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),o=t&&n&&!r;return this.beans.valueService.getValue(this.column,this.rowNode,!1,o)},r.prototype.getValue=function(){return this.value},r.prototype.getValueFormatted=function(){return this.valueFormatted},r.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsWrapper.setDomData(t,r.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(t,r.DOM_DATA_KEY_CELL_CTRL,null)}))},r.prototype.createEvent=function(e,t){return{type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},r.prototype.onKeyPress=function(e){this.cellKeyboardListenerFeature.onKeyPress(e)},r.prototype.onKeyDown=function(e){this.cellKeyboardListenerFeature.onKeyDown(e)},r.prototype.onMouseEvent=function(e,t){this.cellMouseListenerFeature.onMouseEvent(e,t)},r.prototype.getGui=function(){return this.eGui},r.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},r.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},r.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},r.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},r.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);Xn(this.getGui(),e)},r.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},r.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},r.prototype.getColumn=function(){return this.column},r.prototype.getRowNode=function(){return this.rowNode},r.prototype.getBeans=function(){return this.beans},r.prototype.isPrintLayout=function(){return this.printLayout},r.prototype.appendChild=function(e){this.eGui.appendChild(e)},r.prototype.refreshHandle=function(){this.editing||this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},r.prototype.getCellPosition=function(){return this.cellPosition},r.prototype.isEditing=function(){return this.editing},r.prototype.startRowOrCellEdit=function(e,t,n){void 0===n&&(n=null),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,n)},r.prototype.getRowCtrl=function(){return this.rowCtrl},r.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},r.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},r.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},r.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},r.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell(this.getCellPosition().rowIndex,this.column,this.rowNode.rowPinned,e)},r.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},r.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}},r.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}},r.prototype.onCellFocused=function(e){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus)this.cellComp.getFocusableElement().focus();var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editing||this.stopRowOrCellEdit()}},r.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:t(this.rowNode.rowPinned),column:this.column}},r.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass(za,!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)},r.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},r.prototype.onNewColumnsLoaded=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},r.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)},r.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),n=this.createEvent(e,He.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},r.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},r.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},r.prototype.destroy=function(){e.prototype.destroy.call(this)},r.prototype.createSelectionCheckbox=function(){var e=new Gi;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},r.prototype.createDndSource=function(){var e=new Ba(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},r.prototype.registerRowDragger=function(e,t,n){var r=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var o=this.createRowDragComp(e,t,n);o&&(this.customRowDragComp=o,this.addDestroyFunc((function(){return r.beans.context.destroyBean(o)})))}},r.prototype.createRowDragComp=function(e,t,n){var r=this,o=this.beans.gridOptionsWrapper.isPagination(),i=this.beans.gridOptionsWrapper.isRowDragManaged(),s=this.beans.gridOptionsWrapper.isRowModelDefault();if(i){if(!s)return void A((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(o)return void A((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new zi((function(){return r.value}),this.rowNode,this.column,e,t,n);return this.beans.context.createBean(a),a},r.DOM_DATA_KEY_CELL_CTRL="cellCtrl",r}(Le),qa=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)}}(),$a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};(Oa=Sa||(Sa={})).Normal="Normal",Oa.FullWidth="FullWidth",Oa.FullWidthLoading="FullWidthLoading",Oa.FullWidthGroup="FullWidthGroup",Oa.FullWidthDetail="FullWidthDetail";var Xa,Qa,Za=0,Ja=function(r){function o(e,t,n,o,i){var s=r.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.beans=t,s.rowNode=e,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=o,s.printLayout=i,s.instanceId=e.id+"-"+Za++,s.setAnimateFlags(n),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s.setInitialRowTop(),s}return qa(o,r),o.prototype.getBeans=function(){return this.beans},o.prototype.getInstanceId=function(){return this.instanceId},o.prototype.setComp=function(t,n,r){var o={rowComp:t,element:n,containerType:r};this.allRowGuis.push(o),r===e.RowContainerType.LEFT?this.leftGui=o:r===e.RowContainerType.RIGHT?this.rightGui=o:r===e.RowContainerType.FULL_WIDTH?this.fullWidthGui=o:this.centerGui=o;var i=null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui,s=null!=this.fullWidthGui;(i||s)&&this.initialiseRowComps()},o.prototype.isCacheable=function(){return this.rowType===Sa.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},o.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach((function(e){return e.element.style.display=t}))},o.prototype.initialiseRowComps=function(){var e=this,t=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),t.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&x(this.onTopChanged.bind(this)),this.fadeRowIn&&x((function(){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var n=this.getRowBusinessKey(),r=Ye(this.rowNode.id),i=Ye(n);this.allRowGuis.forEach((function(n){var s=n.rowComp;s.setRole("row"),e.getInitialRowClasses(n.containerType).forEach((function(e){return s.addOrRemoveCssClass(e,!0)})),e.rowNode.group&&Bn(n.element,1==e.rowNode.expanded),null!=r&&s.setRowId(r),null!=i&&s.setRowBusinessKey(i),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),t.setDomData(n.element,o.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc((function(){return t.setDomData(n.element,o.DOM_DATA_KEY_ROW_CTRL,null)})),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,n.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(n.element),e.isFullWidth()&&e.setupFullWidth(n),t.isRowDragEntireRow()&&e.addRowDraggerToRow(n),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask((function(){e.isAlive()&&n.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},o.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsWrapper.isEnableRangeSelection())A((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var t=new zi((function(){return"1 row"}),this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(t,this.beans.context)}},o.prototype.setupFullWidth=function(t){var n=this.getPinnedForContainer(t.containerType),r=this.createFullWidthParams(t.element,n),o=re.isRegistered(e.ModuleNames.MasterDetailModule);if(this.rowType!=Sa.FullWidthDetail||o){var i;switch(this.rowType){case Sa.FullWidthDetail:i=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(r);break;case Sa.FullWidthGroup:i=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(r);break;case Sa.FullWidthLoading:i=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(r);break;default:i=this.beans.userComponentFactory.getFullWidthCellRendererDetails(r)}t.rowComp.showFullWidth(i)}else re.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+e.ModuleNames.MasterDetailModule)},o.prototype.isPrintLayout=function(){return this.printLayout},o.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},o.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},o.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),o=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(r);this.rowType=e?Sa.FullWidthLoading:n?Sa.FullWidthDetail:t?Sa.FullWidth:o?Sa.FullWidthGroup:Sa.Normal},o.prototype.updateColumnLists=function(e){var t=this;(void 0===e&&(e=!1),this.isFullWidth())||(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){t.active&&t.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},o.prototype.createCellCtrls=function(e,t,n){var r=this;void 0===n&&(n=null);var o={list:[],map:{}},i=function(e,t){o.list.push(t),o.map[e]=t};return t.forEach((function(t){var n=t.getInstanceId(),o=e.map[n];o||(o=new Ya(t,r.rowNode,r.beans,r)),i(n,o)})),e.list.forEach((function(e){null!=o.map[e.getColumn().getInstanceId()]||(!r.isCellEligibleToBeRemoved(e,n)?i(e.getColumn().getInstanceId(),e):e.destroy())})),o},o.prototype.updateColumnListsImpl=function(){var t=this;this.updateColumnListsPending=!1;var n=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var r=n.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,r);var o=n.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,o,ne.PINNED_LEFT);var i=n.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,ne.PINNED_RIGHT)}this.allRowGuis.forEach((function(n){var r=n.containerType===e.RowContainerType.LEFT?t.leftCellCtrls:n.containerType===e.RowContainerType.RIGHT?t.rightCellCtrls:t.centerCellCtrls;n.rowComp.setCellCtrls(r.list)}))},o.prototype.isCellEligibleToBeRemoved=function(e,t){var n=!0;if(e.getColumn().getPinned()!=t)return n;var r=e.isEditing(),o=this.beans.focusService.isCellFocused(e.getCellPosition());if(r||o){var i=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(i)>=0)&&n}return n},o.prototype.setAnimateFlags=function(e){if(e){var t=n(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},o.prototype.isEditing=function(){return this.editingRow},o.prototype.stopRowEditing=function(e){this.stopEditing(e)},o.prototype.isFullWidth=function(){return this.rowType!==Sa.Normal},o.prototype.getRowType=function(){return this.rowType},o.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,ne.PINNED_LEFT),i=t(this.rightGui,ne.PINNED_RIGHT);return n&&r&&o&&i},o.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Fi.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Fi.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,He.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,He.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,He.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,He.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,He.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,He.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,He.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},o.prototype.onColumnMoved=function(){this.updateColumnLists()},o.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Fi.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Fi.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},o.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},o.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},o.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},o.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.allRowGuis.forEach((function(n){var r=t===e.RowHighlightPosition.Above,o=t===e.RowHighlightPosition.Below;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",o)}))},o.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},o.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},o.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),Bn(n.element,e&&t)}))},o.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},o.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},o.prototype.getRowPosition=function(){return{rowPinned:t(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},o.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find((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.key,o,!0),e.preventDefault()}},o.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Se(e)){var t=this.allRowGuis.find((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)}},o.prototype.onFullWidthRowFocused=function(e){var t,n=this.rowNode,r=this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,o=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;o&&(o.classList.toggle("ag-full-width-focus",r),r&&o.focus({preventScroll:!0}))},o.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()},o.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},o.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)}},o.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}},o.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},o.prototype.onRowDblClick=function(e){if(!Se(e)){var t=this.createRowEventWithSource(He.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},o.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=qt(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)}},o.prototype.onRowClick=function(e){if(!(Se(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(He.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:!0,clearSelection:!r,rangeSelect:r});else{var s=!o&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:r})}}}},o.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===Sa.FullWidthDetail&&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()}},o.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,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,o){return n.addFullWidthRowDragging(e,t,r,o)}}},o.prototype.addFullWidthRowDragging=function(e,t,n,r){if(void 0===n&&(n=""),this.isFullWidth()){var o=new zi((function(){return n}),this.rowNode,void 0,e,t,r);this.createManagedBean(o,this.beans.context)}},o.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},o.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},o.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},o.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},o.prototype.refreshFirstAndLastRowStyles=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)})))},o.prototype.stopEditing=function(e){void 0===e&&(e=!1);var t=this.getAllCellCtrls().map((function(t){return t.stopEditing(e)}));if(this.editingRow){if(!e&&t.some((function(e){return e}))){var n=this.createRowEvent(He.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(n)}this.setEditingRow(!1)}},o.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)}))},o.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(He.EVENT_ROW_EDITING_STARTED):this.createRowEvent(He.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},o.prototype.startRowEditing=function(e,t,n,r){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.editingRow||(this.getAllCellCtrls().forEach((function(o){var i=o===n;i?o.startEditing(e,t,i,r):o.startEditing(null,null,i,r)})),this.setEditingRow(!0))},o.prototype.getAllCellCtrls=function(){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($a(arguments[t]));return e}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},o.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},o.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(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)}))}))},o.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},o.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},o.prototype.getPinnedForContainer=function(t){return t===e.RowContainerType.LEFT?ne.PINNED_LEFT:t===e.RowContainerType.RIGHT?ne.PINNED_RIGHT:null},o.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),n={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(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},o.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});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},o.prototype.onRowSelected=function(){var e=this,t=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-selected",t),er(n.element,!!t||void 0);var r=e.createAriaLabel();Ln(n.element,null==r?"":r)}))},o.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.")},o.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},o.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,Fi.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,Fi.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover")})))},o.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)},o.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},o.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,t=this.beans.gridOptionsWrapper.getDefaultRowHeight(),n=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,r=n?Math.min(t,n)-2+"px":void 0;this.allRowGuis.forEach((function(t){t.element.style.height=e+"px",r&&t.element.style.setProperty("--ag-line-height",r)}))}},o.prototype.addEventListener=function(e,t){"renderedRowRemoved"!==e&&"rowRemoved"!==e||(e=He.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+He.EVENT_VIRTUAL_ROW_REMOVED)),r.prototype.addEventListener.call(this,e,t)},o.prototype.removeEventListener=function(e,t){"renderedRowRemoved"!==e&&"rowRemoved"!==e||(e=He.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+He.EVENT_VIRTUAL_ROW_REMOVED)),r.prototype.removeEventListener.call(this,e,t)},o.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var e=this.createRowEvent(He.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),r.prototype.destroy.call(this)},o.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)}))},o.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)},o.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)}))},o.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)},o.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},o.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},o.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},o.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},o.prototype.setRowTop=function(e){if(!this.printLayout&&n(e)){var t=this.applyPaginationOffset(e),r=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(r)}},o.prototype.getInitialRowTop=function(){return this.initialTop},o.prototype.getInitialTransform=function(){return this.initialTransform},o.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+")"},o.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+")")}))},o.prototype.getRowNode=function(){return this.rowNode},o.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},o.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},o.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2==0,r=t+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",n),t.rowComp.addOrRemoveCssClass("ag-row-odd",!n),qn(t.element,r)}))},o.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},o.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},o.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},o.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},o.DOM_DATA_KEY_ROW_CTRL="renderedRow",o}(Le),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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nl=function(t){function n(e){var n=t.call(this)||this;return n.element=e,n}return el(n,t),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",Pe("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)&&!Se(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(Ft()){var t=new ai(this.element);this.addManagedListener(t,ai.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=e.target;t;){var n=this.gridOptionsWrapper.getDomData(t,Ja.DOM_DATA_KEY_ROW_CTRL);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,s=null;if(i){var a=e||t;r.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,o)}var l=this.ctrlsService.getGridBodyCtrl(),u=r?r.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,o,i,s,u)},n.prototype.processKeyboardEvent=function(e,t){var n=Te(this.gridOptionsWrapper,t,Ya.DOM_DATA_KEY_CELL_CTRL),r=Te(this.gridOptionsWrapper,t,Ja.DOM_DATA_KEY_ROW_CTRL);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(!Rr(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 s=e.createEvent(n,He.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=e.createEvent(n,He.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},n.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var r=e.getRowNode(),o=this.focusService.getFocusedCell(),i=o&&o.column;if(!Rr(this.gridOptionsWrapper,n,r,i,!1)){var s=n.key;if("keydown"===t)switch(s){case io.UP:case io.DOWN:e.onKeyboardNavigate(n);break;case io.TAB:e.onTabKeyDown(n)}}if("keydown"===t){var a=e.createRowEvent(He.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createRowEvent(He.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(l)}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e))switch(e.code){case io.A:return this.onCtrlAndA(e);case io.C:return this.onCtrlAndC(e);case io.V:return this.onCtrlAndV();case io.D:return this.onCtrlAndD(e);case io.Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case io.Y:return this.undoRedoService.redo()}},n.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,r=t.paginationProxy,i=t.rangeService,s=ne.PINNED_BOTTOM,a=ne.PINNED_TOP;if(i&&r.isRowsToRender()){var l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}([n.isEmpty(a),n.isEmpty(s)],2),u=l[0]?null:a,c=void 0,p=void 0;l[1]?(c=null,p=this.paginationProxy.getRowCount()-1):(c=s,p=n.getPinnedBottomRowData().length-1);var d=this.columnModel.getAllDisplayedColumns();if(o(d))return;i.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:p,rowEndPinned:c,columnStart:d[0],columnEnd:le(d)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){re.isRegistered(e.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(t){re.isRegistered(e.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),t.preventDefault()},tl([Y("mouseEventService")],n.prototype,"mouseEventService",void 0),tl([Y("valueService")],n.prototype,"valueService",void 0),tl([q("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),tl([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),tl([Y("navigationService")],n.prototype,"navigationService",void 0),tl([Y("focusService")],n.prototype,"focusService",void 0),tl([Y("undoRedoService")],n.prototype,"undoRedoService",void 0),tl([Y("columnModel")],n.prototype,"columnModel",void 0),tl([Y("paginationProxy")],n.prototype,"paginationProxy",void 0),tl([Y("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),tl([q("rangeService")],n.prototype,"rangeService",void 0),tl([q("clipboardService")],n.prototype,"clipboardService",void 0),tl([U],n.prototype,"postConstruct",null),n}(Le),rl=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)}}(),ol=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},il=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCtrl=t,n}return rl(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,He.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.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.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=Xt(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:He.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.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},ol([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),ol([Y("columnModel")],t.prototype,"columnModel",void 0),ol([Y("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),ol([Y("columnApi")],t.prototype,"columnApi",void 0),ol([Y("gridApi")],t.prototype,"gridApi",void 0),ol([U],t.prototype,"postConstruct",null),t}(Le),sl=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)}}(),al=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ll=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return sl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;zt(this.element,t),t&&yn(this.element,e)},al([Y("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),al([U],t.prototype,"postConstruct",null),t}(Le),ul=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)}}(),cl=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return ul(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;zt(this.element,t),t&&yn(this.element,e)},cl([Y("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),cl([U],t.prototype,"postConstruct",null),t}(Le),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)}}(),hl=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fl=function(e){function t(t,n){var r=e.call(this)||this;return r.eContainer=t,r.eWrapper=n,r}return dl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.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)},hl([Y("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),hl([U],t.prototype,"postConstruct",null),t}(Le),gl=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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yl=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return gl(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!r(this.rangeService)){var t={dragStartPixels:0,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)}))}},vl([q("rangeService")],t.prototype,"rangeService",void 0),vl([Y("dragService")],t.prototype,"dragService",void 0),vl([U],t.prototype,"postConstruct",null),t}(Le),ml=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)}}(),Cl=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wl=function(e){function t(t){var n=e.call(this)||this;return n.callback=t,n}return ml(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,ra.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),o=e.getDisplayedColumnsRightWidth(),i=t?n+r+o:n;this.callback(i)},Cl([Y("columnModel")],t.prototype,"columnModel",void 0),Cl([U],t.prototype,"postConstruct",null),t}(Le),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)}}(),bl=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rl=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};function _l(t){switch(t){case e.RowContainerName.CENTER:case e.RowContainerName.TOP_CENTER:case e.RowContainerName.BOTTOM_CENTER:return e.RowContainerType.CENTER;case e.RowContainerName.LEFT:case e.RowContainerName.TOP_LEFT:case e.RowContainerName.BOTTOM_LEFT:return e.RowContainerType.LEFT;case e.RowContainerName.RIGHT:case e.RowContainerName.TOP_RIGHT:case e.RowContainerName.BOTTOM_RIGHT:return e.RowContainerType.RIGHT;case e.RowContainerName.FULL_WIDTH:case e.RowContainerName.TOP_FULL_WIDTH:case e.RowContainerName.BOTTOM_FULL_WIDTH:return e.RowContainerType.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(Xa=e.RowContainerName||(e.RowContainerName={})).LEFT="left",Xa.RIGHT="right",Xa.CENTER="center",Xa.FULL_WIDTH="fullWidth",Xa.TOP_LEFT="topLeft",Xa.TOP_RIGHT="topRight",Xa.TOP_CENTER="topCenter",Xa.TOP_FULL_WIDTH="topFullWidth",Xa.BOTTOM_LEFT="bottomLeft",Xa.BOTTOM_RIGHT="bottomRight",Xa.BOTTOM_CENTER="bottomCenter",Xa.BOTTOM_FULL_WIDTH="bottomFullWidth",(Qa=e.RowContainerType||(e.RowContainerType={})).LEFT="left",Qa.RIGHT="right",Qa.CENTER="center",Qa.FULL_WIDTH="fullWidth";var Sl=Xe([[e.RowContainerName.CENTER,"ag-center-cols-container"],[e.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[e.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[e.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[e.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[e.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[e.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[e.RowContainerName.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[e.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[e.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[e.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[e.RowContainerName.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Ol=Xe([[e.RowContainerName.CENTER,"ag-center-cols-viewport"],[e.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[e.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Pl=Xe([[e.RowContainerName.CENTER,"ag-center-cols-clipper"]]),Tl=function(t){function n(e){var n=t.call(this)||this;return n.name=e,n}return El(n,t),n.getRowContainerCssClasses=function(e){return{container:Sl.get(e),viewport:Ol.get(e),wrapper:Pl.get(e)}},n.getPinned=function(t){switch(t){case e.RowContainerName.BOTTOM_LEFT:case e.RowContainerName.TOP_LEFT:case e.RowContainerName.LEFT:return ne.PINNED_LEFT;case e.RowContainerName.BOTTOM_RIGHT:case e.RowContainerName.TOP_RIGHT:case e.RowContainerName.RIGHT:return ne.PINNED_RIGHT;default:return null}},n.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([e.RowContainerName.CENTER],(function(){return t.viewportSizeFeature=t.createManagedBean(new il(t))}))},n.prototype.registerWithCtrlsService=function(){switch(this.name){case e.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case e.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case e.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case e.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case e.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case e.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case e.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case e.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case e.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},n.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},n.prototype.getContainerElement=function(){return this.eContainer},n.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},n.prototype.setComp=function(t,n,r,o){var i=this;this.comp=t,this.eContainer=n,this.eViewport=r,this.eWrapper=o,this.createManagedBean(new nl(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Rl(arguments[t]));return e}([e.RowContainerName.TOP_CENTER,e.RowContainerName.TOP_LEFT,e.RowContainerName.TOP_RIGHT],[e.RowContainerName.BOTTOM_CENTER,e.RowContainerName.BOTTOM_LEFT,e.RowContainerName.BOTTOM_RIGHT],[e.RowContainerName.CENTER,e.RowContainerName.LEFT,e.RowContainerName.RIGHT]),a=[e.RowContainerName.CENTER,e.RowContainerName.LEFT,e.RowContainerName.RIGHT,e.RowContainerName.FULL_WIDTH],l=[e.RowContainerName.CENTER,e.RowContainerName.TOP_CENTER,e.RowContainerName.BOTTOM_CENTER],u=[e.RowContainerName.LEFT,e.RowContainerName.BOTTOM_LEFT,e.RowContainerName.TOP_LEFT],c=[e.RowContainerName.RIGHT,e.RowContainerName.BOTTOM_RIGHT,e.RowContainerName.TOP_RIGHT];this.forContainers(u,(function(){return i.createManagedBean(new ll(i.eContainer))})),this.forContainers(c,(function(){return i.createManagedBean(new pl(i.eContainer))})),this.forContainers(a,(function(){return i.createManagedBean(new fl(i.eContainer,i.eWrapper))})),this.forContainers(s,(function(){return i.createManagedBean(new yl(i.eContainer))})),this.forContainers(l,(function(){return i.createManagedBean(new wl((function(e){return i.comp.setContainerWidth(e+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},n.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return e.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},n.prototype.listenOnDomOrder=function(){var e=this,t=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,ra.PROP_DOM_LAYOUT,t),t()},n.prototype.stopHScrollOnPinnedRows=function(){var t=this;this.forContainers([e.RowContainerName.TOP_CENTER,e.RowContainerName.BOTTOM_CENTER],(function(){t.addManagedListener(t.eViewport,"scroll",(function(){return t.eViewport.scrollLeft=0}))}))},n.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([e.RowContainerName.CENTER],(function(){return t.onHorizontalViewportChanged()}))},n.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([e.RowContainerName.CENTER],(function(){return t.onHorizontalViewportChanged()}))},n.prototype.onScrollVisibilityChanged=function(){if(this.name===e.RowContainerName.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=0==t?"100%":"calc(100% + "+t+"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 Qt(this.eViewport)},n.prototype.getCenterViewportScrollLeft=function(){return tn(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 fn(this.eViewport)},n.prototype.getViewportScrollLeft=function(){return tn(this.eViewport,this.enableRtl)},n.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||fn(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){nn(this.eViewport,e,this.enableRtl)},n.prototype.onDisplayedRowsChanged=function(){var t=this,n=this.name===e.RowContainerName.TOP_FULL_WIDTH||this.name===e.RowContainerName.BOTTOM_FULL_WIDTH||this.name===e.RowContainerName.FULL_WIDTH,r=this.getRowCtrls().filter((function(e){var r=e.isFullWidth(),o=t.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_PRINT,i=t.embedFullWidthRows||o;return n?!i&&r:i||!r}));this.comp.setRowCtrls(r)},n.prototype.getRowCtrls=function(){switch(this.name){case e.RowContainerName.TOP_CENTER:case e.RowContainerName.TOP_LEFT:case e.RowContainerName.TOP_RIGHT:case e.RowContainerName.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case e.RowContainerName.BOTTOM_CENTER:case e.RowContainerName.BOTTOM_LEFT:case e.RowContainerName.BOTTOM_RIGHT:case e.RowContainerName.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},bl([Y("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),bl([Y("dragService")],n.prototype,"dragService",void 0),bl([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),bl([Y("columnModel")],n.prototype,"columnModel",void 0),bl([Y("resizeObserverService")],n.prototype,"resizeObserverService",void 0),bl([Y("rowRenderer")],n.prototype,"rowRenderer",void 0),bl([U],n.prototype,"postConstruct",null),n}(Le),Al=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)}}(),Dl=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Nl='<div class="ag-root ag-unselectable" role="grid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="'+e.RowContainerName.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+e.RowContainerName.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+e.RowContainerName.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+e.RowContainerName.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+e.RowContainerName.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+e.RowContainerName.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+e.RowContainerName.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+e.RowContainerName.FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="'+e.RowContainerName.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+e.RowContainerName.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+e.RowContainerName.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+e.RowContainerName.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',Il=function(t){function n(){return t.call(this,Nl)||this}return Al(n,t),n.prototype.init=function(){var t=this,n=function(e,t){var n=e+"px";t.style.minHeight=n,t.style.height=n},r={setRowAnimationCssOnBodyViewport:function(e,n){return t.setRowAnimationCssOnBodyViewport(e,n)},setColumnCount:function(e){return $n(t.getGui(),e)},setRowCount:function(e){return Yn(t.getGui(),e)},setTopHeight:function(e){return n(e,t.eTop)},setBottomHeight:function(e){return n(e,t.eBottom)},setTopDisplay:function(e){return t.eTop.style.display=e},setBottomDisplay:function(e){return t.eBottom.style.display=e},setColumnMovingCss:function(e,n){return t.addOrRemoveCssClass(Ra,n)},updateLayoutClasses:function(n,r){var o=t.eBodyViewport.classList;o.toggle(e.LayoutCssClasses.AUTO_HEIGHT,r.autoHeight),o.toggle(e.LayoutCssClasses.NORMAL,r.normal),o.toggle(e.LayoutCssClasses.PRINT,r.print),t.addOrRemoveCssClass(e.LayoutCssClasses.AUTO_HEIGHT,r.autoHeight),t.addOrRemoveCssClass(e.LayoutCssClasses.NORMAL,r.normal),t.addOrRemoveCssClass(e.LayoutCssClasses.PRINT,r.print)},setAlwaysVerticalScrollClass:function(e,n){return t.eBodyViewport.classList.toggle(ba,n)},registerBodyViewportResizeListener:function(e){var n=t.resizeObserverService.observeResize(t.eBodyViewport,e);t.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(e){return t.eTop.style.overflowY=t.eBottom.style.overflowY=e},setCellSelectableCss:function(e,n){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(e){return e.classList.toggle(Ea,n)}))}};this.ctrl=this.createManagedBean(new _a),this.ctrl.setComp(r,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Kn(this.getGui(),!0)},n.prototype.setRowAnimationCssOnBodyViewport=function(t,n){var r=this.eBodyViewport.classList;r.toggle(e.RowAnimationCssClasses.ANIMATION_ON,n),r.toggle(e.RowAnimationCssClasses.ANIMATION_OFF,!n)},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Dl([Y("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Dl([q("rangeService")],n.prototype,"rangeService",void 0),Dl([qr("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Dl([qr("eTop")],n.prototype,"eTop",void 0),Dl([qr("eBottom")],n.prototype,"eBottom",void 0),Dl([qr("gridHeader")],n.prototype,"headerRootComp",void 0),Dl([U],n.prototype,"init",null),n}(Yr),Ml=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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ml(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.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:He.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},Fl([Y("columnApi")],t.prototype,"columnApi",void 0),Fl([Y("gridApi")],t.prototype,"gridApi",void 0),Fl([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Fl([U],t.prototype,"postConstruct",null),t=Fl([K("scrollVisibleService")],t)}(Le),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)}}(),Gl=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=r.gridInstanceSequence.next(),t}var r;return Ll(t,e),r=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[r.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return Te(this.gridOptionsWrapper,e,Ya.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[r.GRID_DOM_KEY];if(n(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()===ne.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(),s=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,n+=s.top}return{x:t,y:n}},t.gridInstanceSequence=new Fr,t.GRID_DOM_KEY="__ag_grid_instance",Gl([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),t=r=Gl([K("mouseEventService")],t)}(Le),Vl=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)}}(),Hl=function(){return(Hl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Wl=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bl=function(e){function t(){var t=e.call(this)||this;return t.onPageDown=k(t.onPageDown,100),t.onPageUp=k(t.onPageUp,100),t}return Vl(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.key,n=e.altKey,r=e.ctrlKey||e.metaKey,o=!!this.rangeService&&e.shiftKey,i=this.mouseEventService.getCellPositionForEvent(e);if(!i)return!1;var s=!1;switch(t){case io.PAGE_HOME:case io.PAGE_END:r||n||(this.onHomeOrEndKey(t),s=!0);break;case io.LEFT:case io.RIGHT:case io.UP:case io.DOWN:!r||n||o||(this.onCtrlUpDownLeftRight(t,i),s=!0);break;case io.PAGE_DOWN:r||n||(this.onPageDown(i),s=!0);break;case io.PAGE_UP:r||n||(this.onPageUp(i),s=!0)}return s&&e.preventDefault(),s},t.prototype.navigateTo=function(e){var t=e.scrollIndex,r=e.scrollType,o=e.scrollColumn,i=e.focusIndex,s=e.focusColumn;if(n(o)&&!o.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),n(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,r),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell(i,s,null,!0),this.rangeService){var a={rowIndex:i,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),r=this.paginationProxy.getPixelOffset(),o=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(o+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i):this.navigateToNextPage(e,i)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),r=t.top,o=this.paginationProxy.getRowIndexAtPixel(r+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,o,!0):this.navigateToNextPage(e,o,!0)},t.prototype.navigateToNextPage=function(e,t,n){var r,o;void 0===n&&(n=!1);var i,s=this.getViewportHeight(),a=this.paginationProxy.getPageFirstRow(),l=this.paginationProxy.getPageLastRow(),u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getRow(e.rowIndex),p=n?(null===(r=c)||void 0===r?void 0:r.rowHeight)-s-u:s-u,d=(null===(o=c)||void 0===o?void 0:o.rowTop)+p,h=this.paginationProxy.getRowIndexAtPixel(d+u);if(h===e.rowIndex){var f=n?-1:1;t=h=e.rowIndex+f}n?(i="bottom",h<a&&(h=a),t<a&&(t=a)):(i="top",h>l&&(h=l),t>l&&(t=l)),this.isRowTallerThanView(h)&&(t=h,i="top"),this.navigateTo({scrollIndex:t,scrollType:i,scrollColumn:null,focusIndex:h,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,n){var r=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var o=r.getNextFocusIndexForAutoHeight(e,n);r.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:o,focusColumn:e.column})}),50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var n;void 0===t&&(t=!1);for(var r=t?-1:1,o=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),s=0,a=e.rowIndex;a>=0&&a<=i;){var l=this.paginationProxy.getRow(a);if(l){var u=null!=(n=l.rowHeight)?n:0;if(s+u>o)break;s+=u}a+=r}return Math.max(0,Math.min(a,i))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=t),n},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var n=t.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var n=this.cellNavigationService.getNextCellToFocus(e,t,!0),r=n.rowIndex,o=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:o,focusIndex:r,focusColumn:o})},t.prototype.onHomeOrEndKey=function(e){var t=e===io.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),r=t?n[0]:le(n),o=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:r,focusIndex:o,focusColumn:r})},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.tabToNextCellCommon(e,n,t))t.preventDefault();else if(n){var r=e.getRowPosition(),o=r.rowIndex;(r.rowPinned?0===o:o===this.paginationProxy.getPageFirstRow())&&(t.preventDefault(),this.focusService.focusLastHeader(t))}else e instanceof Ya&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var n=this.focusService.getFocusedCell();if(!n)return!1;var r=this.getCellByPosition(n);return!!(r||(r=this.rowRenderer.getRowByPosition(n))&&r.isFullWidth())&&this.tabToNextCellCommon(r,e,t)},t.prototype.tabToNextCellCommon=function(e,t,n){var r=e.isEditing();if(!r&&e instanceof Ya){var o=e.getRowCtrl();o&&(r=o.isEditing())}return(r?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,n){void 0===n&&(n=null);var r=e.getCellPosition();e.stopEditing();var o=this.findNextCellToFocusOn(r,t,!0);return null!=o&&(o.startEditing(null,null,!0,n),o.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,n){void 0===n&&(n=null);var r=e.getCellPosition(),o=this.findNextCellToFocusOn(r,t,!0);if(null==o)return!1;var i=o.getCellPosition(),s=this.isCellEditable(r),a=this.isCellEditable(i),l=i&&r.rowIndex===i.rowIndex&&r.rowPinned===i.rowPinned;(s&&e.setFocusOutOnEditor(),l)||(e.getRowCtrl().stopEditing(),o.getRowCtrl().startRowEditing(void 0,void 0,void 0,n));return a?(o.setFocusInOnEditor(),o.focusCell()):o.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var r,o=this.columnModel.getAllDisplayedColumns();r=e instanceof Ja?Hl(Hl({},e.getRowPosition()),{column:t?o[0]:le(o)}):e.getCellPosition();var i=this.findNextCellToFocusOn(r,t,!1);if(i instanceof Ya)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return n(i)},t.prototype.findNextCellToFocusOn=function(e,t,r){for(var o=e;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(n(i)){var s=i({backwards:t,editing:r,previousCellPosition:e,nextCellPosition:o||null});n(s)?(s.floating&&(A((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),o={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):o=null}if(!o)return null;if(o.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+o.rowIndex,column:o.column}}),null}var l=this.gridOptionsWrapper.isFullRowEdit();if(r&&!l)if(!this.isCellEditable(o))continue;this.ensureCellVisible(o);var u=this.getCellByPosition(o);if(u){if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(o),u}else{var c=this.rowRenderer.getRowByPosition(o);if(c&&c.isFullWidth())return c}}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===ne.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===ne.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,o,i){for(var s=o,a=!1;s&&(s===o||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?t===io.LEFT&&(s=this.getLastCellOfColSpan(s)):t===io.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=r(s=this.cellNavigationService.getNextCellToFocus(t,s));if(a&&e&&e.key===io.UP&&(s={rowIndex:-1,rowPinned:null,column:o.column}),i){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(n(l)){var u=l({key:t,previousCellPosition:o,nextCellPosition:s||null,event:e});n(u)?(u.floating&&(A((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:o.column},event:e||void 0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var n=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var o=this.focusService.getFocusedCell(),i={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?le(n):n[0])};this.focusPosition(i);var s=null!=o&&this.rowPositionUtils.before(i,o),a={type:He.EVENT_FULL_WIDTH_ROW_FOCUSED,api:this.gridApi,columnApi:this.columnApi,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column,isFullWidthCell:!0,floating:i.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:le(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){r(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},Wl([Y("columnApi")],t.prototype,"columnApi",void 0),Wl([Y("gridApi")],t.prototype,"gridApi",void 0),Wl([Y("mouseEventService")],t.prototype,"mouseEventService",void 0),Wl([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),Wl([Y("focusService")],t.prototype,"focusService",void 0),Wl([Y("animationFrameService")],t.prototype,"animationFrameService",void 0),Wl([q("rangeService")],t.prototype,"rangeService",void 0),Wl([Y("columnModel")],t.prototype,"columnModel",void 0),Wl([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Wl([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),Wl([Y("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Wl([Y("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Wl([Y("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Wl([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Wl([U],t.prototype,"postConstruct",null),t=Wl([K("navigationService")],t)}(Le),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)}}(),Ul=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=t,n}return jl(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){Rr(e.gridOptionsWrapper,t,n.node,n.column,!0)||n.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([U],t.prototype,"postConstruct",null),t}(gi),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)}}(),Kl=function(e){function t(t,n,r,o,i){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=n.getColumn(),s.rowNode=n.getRowNode(),s.rowCtrl=n.getRowCtrl(),s.eRow=o,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=n.isForceWrapper(),s.refreshWrapper(!1);var l=function(e,t,n){var r=n||a;null!=t&&""!=t?r.setAttribute(e,t):r.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return hn(a,e)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return In(a,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=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.getParentOfValue()}};return s.cellCtrl=n,n.setComp(u,s.getGui(),s.eCellWrapper,r,i),s}return zl(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,n){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var r=this.refreshWrapper(!1);if(e)!(n||r)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()},t.prototype.removeControls=function(){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.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,r=n&&null==this.eCellWrapper;r&&(this.eCellWrapper=an('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var o=!n&&null!=this.eCellWrapper;o&&(on(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var i=!e&&n,s=i&&null==this.eCellValue;s&&(this.eCellValue=an('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!i&&null!=this.eCellValue;a&&(on(this.eCellValue),this.eCellValue=void 0);var l=r||o||s||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),t=[];this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),t.push(this.checkboxSelectionComp.getCheckboxId())),t.push(e),Vn(this.getGui(),t.join(" "))},t.prototype.createCellEditorInstance=function(e,t,n){var o=this,i=this.editorVersion,s=e.newAgStackInstance();if(s){var a=e.params;s.then((function(e){return o.afterCellEditorCreated(i,e,a,t,n)})),r(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();rn(t);var n=null!=e?Ye(e):null;null!=n&&(t.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),on(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),on(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,i=this.rendererVersion,s=e.componentClass,a=function(){if(!(t.rendererVersion!==i||!t.isAlive())){var n=e.newAgStackInstance(),r=t.afterCellRendererCreated.bind(t,i,s);n&&n.then(r)}};o&&this.firstRender?this.beans.animationFrameService.createTask(a,this.rowNode.rowIndex,"createTasksP2"):a()},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){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(n);else if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var r=this.getParentOfValue();rn(r),r.appendChild(this.cellRendererGui)}},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(),t=this.beans.gridOptionsWrapper.getDocument();(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().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 Ul(e));var o=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&o.appendChild(this.cellEditorGui);var i=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),a=null!=t?t:r.getPopupPosition?r.getPopupPosition():"over",l={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:o,keepWithinBounds:!0},u="under"===a?i.positionPopupUnderComponent.bind(i,l):i.positionPopupOverComponent.bind(i,l),c=this.beans.gridOptionsWrapper.getLocaleTextFunc(),p=i.addPopup({modal:s,eChild:o,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:c("ariaLabelCellEditor","Cell Editor")});p&&(this.hideEditorPopup=p.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();e.contains(t.activeElement)&&e.focus({preventScroll:!0}),rn(this.getParentOfValue())},t}(Yr),Yl=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){function t(t,n,r){var o=e.call(this)||this;o.cellComps={},o.beans=n,o.rowCtrl=t,o.setTemplate('<div comp-id="'+o.getCompId()+'" style="'+o.getInitialStyle()+'"/>');var i=o.getGui(),s=i.style,a={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)},setUserStyles:function(e){return hn(i,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return i.setAttribute("row-index",e)},setRole:function(e){return In(i,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(a,o.getGui(),r),o}return Yl(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=e.newAgStackInstance();n&&n.then((function(e){if(t.isAlive()){var n=e.getGui();t.getGui().appendChild(n),t.rowCtrl.setupDetailRowAutoHeight(n),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)}))},t.prototype.setCellCtrls=function(e){var t=this,n=Object.assign({},this.cellComps);e.forEach((function(e){var r=e.getInstanceId();null==t.cellComps[r]?t.newCellComp(e):n[r]=null}));var r=w(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())})),pn(this.getGui(),n)}},t.prototype.newCellComp=function(e){var t=new Kl(this.beans,e,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=w(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}(Yr),$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)}}(),Xl=function(){return(Xl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ql=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};var Zl,Jl=function(t){function n(){var n,r,o,i,s=t.call(this,(n=Yr.elementGettingCreated.getAttribute("name"),r=Tl.getRowContainerCssClasses(n),o=n===e.RowContainerName.CENTER,i=n===e.RowContainerName.TOP_CENTER||n===e.RowContainerName.BOTTOM_CENTER,o?'<div class="'+r.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+r.viewport+'" ref="eViewport" role="presentation">\n <div class="'+r.container+'" ref="eContainer"></div>\n </div>\n </div>':i?'<div class="'+r.viewport+'" ref="eViewport" role="presentation">\n <div class="'+r.container+'" ref="eContainer"></div>\n </div>':'<div class="'+r.container+'" ref="eContainer"></div>'))||this;return s.rowComps={},s.name=Yr.elementGettingCreated.getAttribute("name"),s.type=_l(s.name),s}return $l(n,t),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 Tl(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=Xl({},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())}})),w(n).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()})),In(this.eContainer,e.length?"rowgroup":"presentation")},n.prototype.appendRow=function(e){this.domOrder?dn(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},n.prototype.ensureDomOrder=function(e){this.domOrder&&(cn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},n.prototype.newRowComp=function(e){return Tl.getPinned(this.name),new ql(e,this.beans,this.type)},Ql([Y("beans")],n.prototype,"beans",void 0),Ql([qr("eViewport")],n.prototype,"eViewport",void 0),Ql([qr("eContainer")],n.prototype,"eContainer",void 0),Ql([qr("eWrapper")],n.prototype,"eWrapper",void 0),Ql([U],n.prototype,"postConstruct",null),Ql([z],n.prototype,"preDestroy",null),n}(Yr),eu=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tu=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?Bi.ICON_PINNED:Bi.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")},eu([Y("columnModel")],e.prototype,"columnModel",void 0),eu([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),nu=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ru=function(){function t(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!n(e)}return t.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},t.prototype.getIconName=function(){return this.pinned?Bi.ICON_PINNED:Bi.ICON_MOVE},t.prototype.onDragEnter=function(t){var n=t.dragItem.columns;if(t.dragSource.type===e.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var r=t.dragItem.visibleState,o=(n||[]).filter((function(e){return r[e.getId()]}));this.setColumnsVisible(o,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(t,!0)},t.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},t.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)}},t.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)}},t.prototype.onDragStop=function(){this.ensureIntervalCleared()},t.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},t.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!r(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var i=this.normaliseDirection(e.hDirection),s=e.dragSource.type,a=e.dragSource.getDragItem().columns;a=a.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(s,a,i,o,t)}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case e.HorizontalDirection.Left:return e.HorizontalDirection.Right;case e.HorizontalDirection.Right:return e.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),n=ce(e.map((function(e){return t.indexOf(e)}))),r=n[0];return le(n)-r!==n.length-1?null:r},t.prototype.attemptMoveColumns=function(t,n,r,o,i){var s=r===e.HorizontalDirection.Left,a=r===e.HorizontalDirection.Right,l=n.slice();this.columnModel.sortColumnsLikeGridColumns(l);var u=this.calculateValidMoves(l,a,o),c=this.calculateOldIndex(l);if(0!==u.length){var p=u[0],d=null!==c&&!i;if(t==e.DragSourceType.HeaderCell&&(d=null!==c),d){if(s&&p>=c)return;if(a&&p<=c)return}for(var h=0;h<u.length;h++){var f=u[h];if(this.columnModel.doesMovePassRules(l,f))return void this.columnModel.moveColumns(l,f,"uiColumnDragged")}}},t.prototype.calculateValidMoves=function(e,t,n){if(this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable})))return[];var r,o=this.columnModel.getDisplayedColumns(this.pinned),i=this.columnModel.getAllGridColumns(),s=o.filter((function(t){return ge(e,t)})),a=o.filter((function(t){return!ge(e,t)})),l=i.filter((function(t){return!ge(e,t)})),u=0,c=n;if(t){var p=0;s.forEach((function(e){return p+=e.getActualWidth()})),c-=p}if(c>0){for(var d=0;d<a.length;d++){if((c-=a[d].getActualWidth())<0)break;u++}t&&u++}if(u>0){var h=a[u-1];r=l.indexOf(h)+1}else-1===(r=l.indexOf(a[0]))&&(r=0);var f=[r],g=function(e,t){return e-t};if(t){for(var v=r+1,y=i.length-1;v<=y;)f.push(v),v++;f.sort(g)}else{v=r,y=i.length-1;for(var m=i[v];v<=y&&this.isColumnHidden(o,m);)v++,f.push(v),m=i[v];v=r-1;for(;v>=0;)f.push(v),v--;f.sort(g).reverse()}return f},t.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},t.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(Bi.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Bi.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Bi.ICON_MOVE))},t.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(Bi.ICON_PINNED),this.failedMoveAttempts>7)){var o=this.needToMoveLeft?ne.PINNED_LEFT:ne.PINNED_RIGHT;this.setColumnsPinned(r,o,"uiColumnDragged"),this.dragAndDropService.nudge()}}},nu([Y("columnModel")],t.prototype,"columnModel",void 0),nu([Y("dragAndDropService")],t.prototype,"dragAndDropService",void 0),nu([Y("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),nu([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),nu([U],t.prototype,"init",null),t}(),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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},su=function(t){function n(e,n){var r=t.call(this)||this;return r.pinned=e,r.eContainer=n,r}return ou(n,t),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case ne.PINNED_LEFT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case ne.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(t){return t===e.DragSourceType.HeaderCell||t===e.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 ru(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new tu(this.pinned)),this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===e.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)},iu([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),iu([Y("columnModel")],n.prototype,"columnModel",void 0),iu([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),iu([U],n.prototype,"postConstruct",null),iu([U],n.prototype,"init",null),n}(Le),au=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},lu=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,n,o){return r(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,o)},e.getToolPanelClassesFromColDef=function(e,t,n,o){return r(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o)},e.getClassParams=function(e,t,n,r){return{colDef:e,column:n,columnGroup:r,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()}},e.getColumnClassesFromCollDef=function(e,t,n,o,i){if(r(e))return[];var s;"function"==typeof e?s=e(this.getClassParams(t,n,o,i)):s=e;return"string"==typeof s?[s]:Array.isArray(s)?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(au(arguments[t]));return e}(s):[]},e}(),uu=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pu=function(e){function t(n){var r=e.call(this,t.TEMPLATE,n)||this;return r.headerCompVersion=0,r.column=n.getColumnGroupChild(),r.pinned=n.getPinned(),r}return uu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n,r){var o=r||t;null!=n&&""!=n?o.setAttribute(e,n):o.removeAttribute(e)},r={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setColId:function(e){return n("col-id",e)},setTitle:function(e){return n("title",e)},setAriaDescription:function(e){return kn(t,e)},setAriaSort:function(e){return e?Zn(t,e):Jn(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(r,this.getGui(),this.eResize);var o=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",o)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(n,e)}))},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.getGui().appendChild(this.headerCompGui),this.ctrl.setDragSource(this.headerCompGui)):this.destroyBean(t)},t.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',cu([qr("eResize")],t.prototype,"eResize",void 0),cu([U],t.prototype,"postConstruct",null),cu([z],t.prototype,"destroyHeaderComp",null),t}(js),du=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fu=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return du(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n){return null!=n?t.setAttribute(e,n):t.removeAttribute(e)},r={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveResizableCssClass:function(t,n){return e.eResize.classList.toggle(t,n)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return n("aria-expanded",e)},setTitle:function(e){return n("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(r,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then((function(e){return t.afterHeaderCompCreated(e)}))},t.prototype.afterHeaderCompCreated=function(e){var t=this,n=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',hu([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),hu([qr("eResize")],t.prototype,"eResize",void 0),hu([U],t.prototype,"postConstruct",null),t}(js),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)}}(),vu=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(Zl=e.HeaderRowType||(e.HeaderRowType={})).COLUMN_GROUP="group",Zl.COLUMN="column",Zl.FLOATING_FILTER="filter";var yu,mu=function(t){function n(n){var r=t.call(this)||this;r.headerComps={};var o=n.getType()==e.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":n.getType()==e.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return r.setTemplate('<div class="ag-header-row '+o+'" role="row"></div>'),r.ctrl=n,r}return gu(n,t),n.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return qn(e.getGui(),t)}};this.ctrl.setComp(t)},n.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},n.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach((function(e){var r=e.getInstanceId(),o=n[r];delete n[r],null==o&&(o=t.createHeaderComp(e),t.getGui().appendChild(o.getGui())),t.headerComps[r]=o})),h(n,(function(e,n){t.getGui().removeChild(n.getGui()),t.destroyBean(n)})),this.gridOptionsWrapper.isEnsureDomOrder()){var r=w(this.headerComps);r.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var o=r.map((function(e){return e.getGui()}));pn(this.getGui(),o)}}},n.prototype.createHeaderComp=function(t){var n;switch(this.ctrl.getType()){case e.HeaderRowType.COLUMN_GROUP:n=new fu(t);break;case e.HeaderRowType.FLOATING_FILTER:n=new Ks(t);break;default:n=new pu(t)}return this.createBean(n),n.setParentComponent(this),n},vu([U],n.prototype,"init",null),vu([z],n.prototype,"destroyHeaderCtrls",null),n}(Yr),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)}}(),wu=0,Eu=function(e){function t(t,n){var r=e.call(this)||this;return r.lastFocusEvent=null,r.columnGroupChild=t,r.parentRowCtrl=n,r.instanceId=t.getUniqueId()+"-"+wu++,r}return Cu(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,r=t.column;return _r(this.gridOptionsWrapper,e,n,r)},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.addDomData=function(){var e=this,n=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return e.gridOptionsWrapper.setDomData(e.eGui,n,null)}))},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Y("focusService")],t.prototype,"focusService",void 0),t}(Le);
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
yu=e.ClientSideRowModelSteps||(e.ClientSideRowModelSteps={})).EVERYTHING="group",yu.FILTER="filter",yu.SORT="sort",yu.MAP="map",yu.AGGREGATE="aggregate",yu.FILTER_AGGREGATES="filter_aggregates",yu.PIVOT="pivot",yu.NOTHING="nothing";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var bu=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function Ru(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var _u,Su=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},t.prototype.registerSideBarComp=function(e){this.sideBarComp=e},t.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case ne.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case ne.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case ne.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.__getContext=function(){return this.context},t.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},t.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},t.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},t.prototype.forEachDetailGridInfo=function(e){var t=0;h(this.detailGridInfoMap,(function(r,o){n(o)&&(e(o,t),t++)}))},t.prototype.getDataAsCsv=function(t){if(re.assertRegistered(e.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){re.assertRegistered(e.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getExcelExportMode=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},t,e).exportMode},t.prototype.getDataAsExcel=function(t){if(re.assertRegistered(e.ModuleNames.ExcelExportModule,"api.getDataAsExcel")){var n=this.getExcelExportMode(t);if(this.excelCreator.getFactoryMode(n)!==e.ExcelFactoryMode.MULTI_SHEET)return this.excelCreator.getDataAsExcel(t);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},t.prototype.exportDataAsExcel=function(t){if(re.assertRegistered(e.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")){var n=this.getExcelExportMode(t);this.excelCreator.getFactoryMode(n)!==e.ExcelFactoryMode.MULTI_SHEET?this.excelCreator.exportDataAsExcel(t):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},t.prototype.getSheetDataForExcel=function(t){if(re.assertRegistered(e.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var n=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(e.ExcelFactoryMode.MULTI_SHEET,n),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(re.assertRegistered(e.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(re.assertRegistered(e.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setEnterpriseDatasource=function(e){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},t.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)}},t.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 '"+ne.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.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 '"+ne.ROW_MODEL_TYPE_INFINITE+"'")},t.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 '"+ne.ROW_MODEL_TYPE_VIEWPORT+"'")},t.prototype.setRowData=function(e){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},t.prototype.setFloatingTopRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},t.prototype.setFloatingBottomRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},t.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},t.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},t.prototype.getFloatingTopRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},t.prototype.getFloatingBottomRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},t.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},t.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t)},t.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",e,!0)},t.prototype.setDefaultColDef=function(e,t){this.gridOptionsWrapper.setProperty("defaultColDef",e,!0)},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},t.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},t.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},t.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.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)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},t.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},t.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},t.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(e){return e.refresh()}))},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},t.prototype.onGroupExpandedOrCollapsed=function(t){r(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),n(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:e.ClientSideRowModelSteps.MAP})},t.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},t.prototype.refreshClientSideRowModel=function(t){r(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var o=e.ClientSideRowModelSteps.EVERYTHING,i={group:e.ClientSideRowModelSteps.EVERYTHING,filter:e.ClientSideRowModelSteps.FILTER,map:e.ClientSideRowModelSteps.MAP,aggregate:e.ClientSideRowModelSteps.AGGREGATE,sort:e.ClientSideRowModelSteps.SORT,pivot:e.ClientSideRowModelSteps.PIVOT};if(n(t)&&(o=i[t]),r(o))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(i).join(", "));else{var s={step:o,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsWrapper.isSuppressAnimationFrame()};this.clientSideRowModel.refreshModel(s)}},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},t.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")},t.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")},t.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return Ru(this.sideBarComp.getToolPanelInstance(e));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.addVirtualRowListener=function(e,t,n){"string"!=typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},t.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)},t.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},t.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)},t.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)},t.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})},t.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})},t.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},t.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},t.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},t.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},t.prototype.recomputeAggregates=function(){r(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:e.ClientSideRowModelSteps.AGGREGATE})},t.prototype.sizeColumnsToFit=function(){this.gridBodyCtrl.sizeColumnsToFit()},t.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},t.prototype.isNodeSelected=function(e){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},t.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColIndexVisible=function(e){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},t.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},t.prototype.forEachLeafNode=function(e){r(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},t.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},t.prototype.forEachNodeAfterFilter=function(e){r(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},t.prototype.forEachNodeAfterFilterAndSort=function(e){r(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},t.prototype.getFilterInstance=function(e,t){var n=this.getFilterInstanceImpl(e,(function(e){if(t){var n=Ru(e);t(n)}}));return Ru(n)},t.prototype.getFilterInstanceImpl=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 o?setTimeout(t,0,o):r&&r.then((function(e){t(e)})),o}},t.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},t.prototype.getStatusPanel=function(e){if(this.statusBarService)return Ru(this.statusBarService.getStatusPanel(e))},t.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},t.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},t.prototype.setFocusedCell=function(e,t,n){this.focusService.setFocusedCell(e,t,n,!0)},t.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_SUPPRESS_ROW_DRAG,e)},t.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},t.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},t.prototype.addRowDropZone=function(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)},t.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},t.prototype.getRowDropZoneParams=function(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},t.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_HEADER_HEIGHT,e)},t.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_DOM_LAYOUT,e)},t.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},t.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_FILL_HANDLE_DIRECTION,e)},t.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GROUP_HEADER_HEIGHT,e)},t.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_FLOATING_FILTERS_HEIGHT,e)},t.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_PIVOT_HEADER_HEIGHT,e)},t.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},t.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},t.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_DOES_EXTERNAL_FILTER_PASS,e)},t.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_NAVIGATE_TO_NEXT_CELL,e)},t.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_TAB_TO_NEXT_CELL,e)},t.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_TAB_TO_NEXT_HEADER,e)},t.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_NAVIGATE_TO_NEXT_HEADER,e)},t.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GROUP_ROW_AGG_NODES,e)},t.prototype.setGetGroupRowAgg=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_GROUP_ROW_AGG,e)},t.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},t.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_CHILD_COUNT,e)},t.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_PROCESS_ROW_POST_CREATE,e)},t.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_ROW_NODE_ID,e)},t.prototype.setGetRowId=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_ROW_ID,e)},t.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_ROW_CLASS,e)},t.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_IS_FULL_WIDTH_CELL,e)},t.prototype.setIsFullWidthRow=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_IS_FULL_WIDTH_ROW,e)},t.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_IS_ROW_SELECTABLE,e)},t.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_IS_ROW_MASTER,e)},t.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_POST_SORT,e)},t.prototype.setPostSortRows=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_POST_SORT_ROWS,e)},t.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_DOCUMENT,e)},t.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_CONTEXT_MENU_ITEMS,e)},t.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_MAIN_MENU_ITEMS,e)},t.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},t.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_SEND_TO_CLIPBOARD,e)},t.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},t.prototype.setProcessSecondaryColDef=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_PROCESS_TO_SECONDARY_COLDEF,e)},t.prototype.setProcessSecondaryColGroupDef=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,e)},t.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_POST_PROCESS_POPUP,e)},t.prototype.setDefaultGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,e)},t.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_INITIAL_GROUP_ORDER_COMPARATOR,e)},t.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_CHART_TOOLBAR_ITEMS,e)},t.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_PAGINATION_NUMBER_FORMATTER,e)},t.prototype.setGetServerSideStoreParams=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_SERVER_SIDE_STORE_PARAMS,e)},t.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},t.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},t.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_IS_SERVER_SIDE_GROUP,e)},t.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},t.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_ROW_STYLE,e)},t.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GET_ROW_HEIGHT,e)},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},t.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},t.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},t.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",Ys.parse(e))},t.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.doLayout=function(){A((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")},t.prototype.resetRowHeights=function(){if(n(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},t.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},t.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(e,t){var n=this.columnModel.getPrimaryColumn(e);return r(n)&&(n=this.columnModel.getGridColumn(e)),r(n)?null:this.valueService.getValue(n,t)},t.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},t.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},t.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},t.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},t.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(R.bind(window,this,"Grid API"),100)},t.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},t.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},t.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},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},t.prototype.camelCaseToHumanReadable=function(e){return qe(e)},t.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()")},t.prototype.addCellRange=function(e){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(e)},t.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(re.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.getChartModels")&&re.assertRegistered(e.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.getChartRef=function(t){if(re.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.getChartRef")&&re.assertRegistered(e.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},t.prototype.getChartImageDataURL=function(t){if(re.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.getChartImageDataURL")&&re.assertRegistered(e.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},t.prototype.createRangeChart=function(t){if(re.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&re.assertRegistered(e.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createCrossFilterChart=function(t){if(re.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.createCrossFilterChart")&&re.assertRegistered(e.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},t.prototype.restoreChart=function(t,n){if(re.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.restoreChart")&&re.assertRegistered(e.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,n)},t.prototype.createPivotChart=function(t){if(re.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&re.assertRegistered(e.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copySelectedRowsToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e)},t.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},t.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t,"columnMenu")},t.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")},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_POPUP_PARENT,e)},t.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},t.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},t.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(Ru)},t.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(Ru)},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},t.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.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var r=this.navigationService.getCellByPosition(n);r&&r.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},t.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},t.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.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.")},t.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.")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},t.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.")},t.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")},t.prototype.setDeltaSort=function(e){this.gridOptionsWrapper.setProperty("deltaSort",e)},t.prototype.updateRowData=function(e){return A((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)},t.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.batchUpdateRowData=function(e,t){A((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)},t.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})},t.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})},t.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})},t.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},t.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},t.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'.")},t.prototype.refreshServerSideStore=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},t.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},t.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},t.prototype.setVirtualRowCount=function(e,t){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(e,t)},t.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},t.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.")},t.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},t.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},t.prototype.setRowClass=function(e){this.gridOptionsWrapper.setProperty(ra.PROP_ROW_CLASS,e)},bu([q("immutableService")],t.prototype,"immutableService",void 0),bu([q("csvCreator")],t.prototype,"csvCreator",void 0),bu([q("excelCreator")],t.prototype,"excelCreator",void 0),bu([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),bu([Y("navigationService")],t.prototype,"navigationService",void 0),bu([Y("filterManager")],t.prototype,"filterManager",void 0),bu([Y("columnModel")],t.prototype,"columnModel",void 0),bu([Y("selectionService")],t.prototype,"selectionService",void 0),bu([Y("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),bu([Y("valueService")],t.prototype,"valueService",void 0),bu([Y("alignedGridsService")],t.prototype,"alignedGridsService",void 0),bu([Y("eventService")],t.prototype,"eventService",void 0),bu([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),bu([Y("context")],t.prototype,"context",void 0),bu([Y("rowModel")],t.prototype,"rowModel",void 0),bu([Y("sortController")],t.prototype,"sortController",void 0),bu([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),bu([Y("focusService")],t.prototype,"focusService",void 0),bu([Y("dragAndDropService")],t.prototype,"dragAndDropService",void 0),bu([q("rangeService")],t.prototype,"rangeService",void 0),bu([q("clipboardService")],t.prototype,"clipboardService",void 0),bu([q("aggFuncService")],t.prototype,"aggFuncService",void 0),bu([Y("menuFactory")],t.prototype,"menuFactory",void 0),bu([q("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),bu([Y("valueCache")],t.prototype,"valueCache",void 0),bu([Y("animationFrameService")],t.prototype,"animationFrameService",void 0),bu([q("statusBarService")],t.prototype,"statusBarService",void 0),bu([q("chartService")],t.prototype,"chartService",void 0),bu([q("undoRedoService")],t.prototype,"undoRedoService",void 0),bu([q("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),bu([q("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),bu([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),bu([q("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),bu([U],t.prototype,"init",null),bu([z],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=bu([K("gridApi")],t)}(),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)}}(),Pu=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}return Ou(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?le(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,se.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,ra.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=n(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.beans.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_PRINT))return t;if(e.getPinned()===ne.PINNED_LEFT)return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===ne.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(n(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof se)t=this.columnOrGroup;else{var r=this.columnOrGroup.getLeafColumns();if(!r.length)return;r.length>1&&Qn(this.ariaEl,r.length),t=r[0]}var o=this.beans.columnModel.getAriaColumnIndex(t);Xn(this.ariaEl,o)},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([U],t.prototype,"postConstruct",null),t}(Le),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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Du=function(e){function t(t,n){var r=e.call(this)||this;return r.columns=t,r.element=n,r}return Tu(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)},Au([Y("columnHoverService")],t.prototype,"columnHoverService",void 0),Au([U],t.prototype,"postConstruct",null),t}(Le),Nu=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mu=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.column=t,r}return Nu(t,e),t.prototype.setComp=function(t,n,r,o){e.prototype.setGui.call(this,n),this.comp=t,this.eButtonShowMainFilter=r,this.eFloatingFilterBody=o;var i=this.column.getColDef(),s=!!i.filter||!!i.filterFramework,a=!!i.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=wr("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new uo(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsWrapper.getDocument().activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,n=this.column;do{if(!(n=e?t.getDisplayedColBefore(n):t.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;switch(e.key){case io.UP:case io.DOWN:t||e.preventDefault();case io.LEFT:case io.RIGHT:if(t)return;e.stopPropagation();case io.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case io.ESCAPE:t||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&qt(e.relatedTarget,"ag-floating-filter");if(t&&n&&e.target===this.eGui){var r=this.lastFocusEvent,o=!(!r||r.key!==io.TAB);if(r&&o){var i=r.shiftKey;this.focusService.focusInto(this.eGui,i)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Du([this.column],this.eGui));var t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,He.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new Pu(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,t),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(t,Rs,n),o=this.userComponentFactory.getDefaultFloatingFilterType(t);null==o&&(o="agReadOnlyFloatingFilter");var i={column:this.column,filterParams:r,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(t){return e.parentFilterInstance(t)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(t,i,o);s&&this.comp.setCompDetails(s)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){var t=this.getFilterComponent();null!=t&&t.then((function(t){e(Ru(t))}))},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var n=e.comp.getFloatingFilterComp();if(n){var r=e.currentParentModel();n.then((function(e){e&&e.onParentModelChanged(r,t)}))}};this.addManagedListener(this.column,se.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,se.EVENT_WIDTH_CHANGED,t),t()},Iu([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Iu([Y("filterManager")],t.prototype,"filterManager",void 0),Iu([Y("columnHoverService")],t.prototype,"columnHoverService",void 0),Iu([Y("gridApi")],t.prototype,"gridApi",void 0),Iu([Y("menuFactory")],t.prototype,"menuFactory",void 0),Iu([Y("beans")],t.prototype,"beans",void 0),t}(Eu),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)}}(),xu=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lu=function(e){function t(t,n,r,o,i){var s=e.call(this)||this;return s.pinned=t,s.column=n,s.eResize=r,s.comp=o,s.ctrl=i,s}return Fu(t,e),t.prototype.postConstruct=function(){var e,t,n=this,r=this.column.getColDef(),o=[],i=function(){o.forEach((function(e){return e()})),o.length=0},s=function(){var s=n.column.isResizable(),a=!n.gridOptionsWrapper.isSuppressAutoSize()&&!r.suppressAutoSize;(s!==e||a!==t)&&(e=s,t=a,i(),function(){if(zt(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(),s=function(){n.columnModel.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var a=new ai(n.eResize);a.addEventListener(ai.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),a.removeEventListener(ai.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(s)},t.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&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,n=this.pinned!==ne.PINNED_LEFT,r=this.pinned===ne.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(t*=-1):r&&(t*=-1),t},xu([Y("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),xu([Y("columnModel")],t.prototype,"columnModel",void 0),xu([U],t.prototype,"postConstruct",null),t}(Le),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)}}(),ku=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 Gu(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){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){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:He.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&&!this.eInput.disabled){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(To),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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wu=function(e){function t(t){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=t;var r=t.getColDef();return n.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,n}return Vu(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();t.isDisplayed()&&!t.getGui().contains(n.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ku),this.cbSelectAll.addCssClass("ag-header-select-all"),In(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,He.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,ku.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.refreshSelectAllLabel()},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(){if(this.cbSelectAllVisible){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.headerCellCtrl.setAriaDescriptionProperty("selectAll",n+" ("+t+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null);this.headerCellCtrl.refreshAriaDescription()},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===ne.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,context:this.gridOptionsWrapper.getContext()}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),!1))},Hu([Y("gridApi")],t.prototype,"gridApi",void 0),Hu([Y("columnApi")],t.prototype,"columnApi",void 0),Hu([Y("rowModel")],t.prototype,"rowModel",void 0),Hu([Y("selectionService")],t.prototype,"selectionService",void 0),t}(Le),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)}}(),ju=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Uu=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.ariaDescriptionProperties=new Map,r.column=e,r}return Bu(n,t),n.prototype.setComp=function(e,n,r){var o=this;t.prototype.setGui.call(this,n),this.comp=e,this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Lu(this.getPinned(),this.column,r,e,this)),this.createManagedBean(new Du([this.column],n)),this.createManagedBean(new Pu(this.column,n,this.beans)),this.createManagedBean(new uo(n,{shouldStopEventPropagation:function(e){return o.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},n.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},n.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},n.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},n.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{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.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Wu(this.column)),this.selectAllFeature.setComp(this)},n.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},n.prototype.handleKeyDown=function(e){e.key===io.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===io.ENTER&&this.onEnterKeyPressed(e)},n.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var n=e.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}},n.prototype.isMenuEnabled=function(){return this.menuEnabled},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},n=this.createManagedBean(new Fa(t,this.beans));n.setComp(this.comp),this.refreshFunctions.push((function(){return n.refreshToolTip()}))},n.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),n=e.gridOptionsWrapper,r=lu.getHeaderClassesFromColDef(t,n,e.column,null),o=e.userHeaderClasses;e.userHeaderClasses=new Set(r),r.forEach((function(t){o.has(t)?o.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),o.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!1)}))};this.refreshFunctions.push(t),t()},n.prototype.setDragSource=function(t){var n=this;this.dragSourceElement=t,this.removeDragSource(),t&&this.draggable&&(this.moveDragSource={type:e.DragSourceType.HeaderCell,eElement:t,defaultIconName:Bi.ICON_HIDE,getDragItem:function(){return n.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return n.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return n.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.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},n.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},n.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(e){return e()}))},n.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},n.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))},n.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsWrapper.isSuppressMovableColumns()&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.setupWidth=function(){var e=this,t=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,se.EVENT_WIDTH_CHANGED,t),t()},n.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,se.EVENT_MOVING_CHANGED,t),t()},n.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,se.EVENT_MENU_VISIBLE_CHANGED,t),t()},n.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.column,se.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},n.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(Mn(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},n.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},n.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},n.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},n.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},n.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,He.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,se.EVENT_FILTER_ACTIVE_CHANGED,t),t()},n.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},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){this.comp.addOrRemoveCssClass("ag-header-active",e)},ju([Y("columnModel")],n.prototype,"columnModel",void 0),ju([Y("columnHoverService")],n.prototype,"columnHoverService",void 0),ju([Y("beans")],n.prototype,"beans",void 0),ju([Y("sortController")],n.prototype,"sortController",void 0),ju([Y("menuFactory")],n.prototype,"menuFactory",void 0),ju([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ju([Y("gridApi")],n.prototype,"gridApi",void 0),ju([Y("columnApi")],n.prototype,"columnApi",void 0),ju([Y("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ju([z],n.prototype,"removeDragSource",null),n}(Eu),zu=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)}}(),Ku=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yu=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.eResize=n,i.comp=t,i.pinned=r,i.columnGroup=o,i}return zu(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var t=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:n,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var r=n.getDisplayedLeafColumns();this.resizeTakeFromCols=r.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;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t){var n=this.normaliseDragChange(t),r=this.resizeStartWidth+n;this.resizeColumns(r,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,t){void 0===t&&(t=!0);var n=[];if(n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var r=e-this.resizeStartWidth;n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-r})}this.columnModel.resizeColumnSets({resizeSets:n,finished:t,source:"uiColumnDragged"}),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(t){return e.resizeStartWidth+=t.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)}))},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==ne.PINNED_LEFT&&(t*=-1):this.pinned===ne.PINNED_RIGHT&&(t*=-1),t},Ku([Y("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Ku([Y("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Ku([Y("columnModel")],t.prototype,"columnModel",void 0),Ku([U],t.prototype,"postConstruct",null),t}(Le),qu=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)}}(),$u=function(e){function t(t,n){var r=e.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=n,r.comp=t,r}return qu(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,me.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(se.EVENT_WIDTH_CHANGED,t),n.addEventListener(se.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(se.EVENT_WIDTH_CHANGED,t),n.removeEventListener(se.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([U],t.prototype,"postConstruct",null),t}(Le),Xu=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)}}(),Qu=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zu=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.columnGroup=e,r}return Xu(n,t),n.prototype.setComp=function(e,n,r){t.prototype.setGui.call(this,n),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var o=this.getParentRowCtrl().getPinned(),i=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Du(i,n)),this.createManagedBean(new Pu(this.columnGroup,n,this.beans)),this.createManagedBean(new $u(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Yu(e,r,o,this.columnGroup)),this.createManagedBean(new uo(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},n.prototype.setupUserComp=function(){var e=this,t=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!t){for(var r=this.columnGroup,o=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===o.length;)r=r.getParent();var i=r.getColGroupDef();i&&(t=i.headerName),t||(t=o?this.columnModel.getDisplayNameForColumn(o[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(s)},n.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(n.getColDef=function(){return t}),this.createManagedBean(new Fa(n,this.beans)).setComp(this.comp)},n.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,Ce.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,Ce.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},n.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},n.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),n=lu.getHeaderClassesFromColDef(t,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},n.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};t.forEach((function(t){e.addManagedListener(t,se.EVENT_MOVING_CHANGED,n)})),n()},n.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},n.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;if(this.expandable&&t&&e.key===io.ENTER){var n=this.columnGroup,r=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),r,"uiColumnExpanded")}},n.prototype.setDragSource=function(t){var n=this;if(!this.isSuppressMoving()){var r=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),o={type:e.DragSourceType.HeaderCell,eElement:t,defaultIconName:Bi.ICON_HIDE,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return r.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return r.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc((function(){return n.dragAndDropService.removeDragSource(o)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().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),pe(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},Qu([Y("beans")],n.prototype,"beans",void 0),Qu([Y("columnModel")],n.prototype,"columnModel",void 0),Qu([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Qu([Y("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Qu([Y("gridApi")],n.prototype,"gridApi",void 0),Qu([Y("columnApi")],n.prototype,"columnApi",void 0),n}(Eu),Ju=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)}}(),ec=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tc=0,nc=function(t){function n(e,n,r){var o=t.call(this)||this;return o.instanceId=tc++,o.headerCellCtrls={},o.rowIndex=e,o.pinned=n,o.type=r,o}return Ju(n,t),n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Nt()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,He.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},n.prototype.getHeaderCellCtrl=function(e){return c(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()===e}))},n.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},n.prototype.getType=function(){return this.type},n.prototype.onColumnResized=function(){this.setWidth()},n.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},n.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(ne.PINNED_RIGHT)+this.columnModel.getContainerWidth(ne.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},n.prototype.onRowHeightChanged=function(){var e,t,n=this.columnModel.getHeaderRowCount(),r=[],o=0;this.columnModel.hasFloatingFilters()&&(n++,o=1),this.columnModel.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+o),s=0;s<i;s++)r.push(e);r.push(t);for(s=0;s<o;s++)r.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.rowIndex;s++)a+=r[s];this.comp.setTop(a+"px"),this.comp.setHeight(r[this.rowIndex]+"px")},n.prototype.getPinned=function(){return this.pinned},n.prototype.getRowIndex=function(){return this.rowIndex},n.prototype.onVirtualColumnsChanged=function(){var t=this,n=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(r){if(!r.isEmptyGroup()){var o=r.getUniqueId(),i=n[o];if(delete n[o],i&&i.getColumnGroupChild()!=r&&(t.destroyBean(i),i=void 0),null==i)switch(t.type){case e.HeaderRowType.FLOATING_FILTER:i=t.createBean(new Mu(r,t));break;case e.HeaderRowType.COLUMN_GROUP:i=t.createBean(new Zu(r,t));break;default:i=t.createBean(new Uu(r,t))}t.headerCellCtrls[o]=i}}));h(n,(function(e,n){var r;(r=n,!!t.focusService.isHeaderWrapperFocused(r)&&t.columnModel.isDisplayed(r.getColumnGroupChild()))?t.headerCellCtrls[e]=n:t.destroyBean(n)}));var r=w(this.headerCellCtrls);this.comp.setHeaderCtrls(r)},n.prototype.destroyCtrls=function(){var e=this;h(this.headerCellCtrls,(function(t,n){e.destroyBean(n)})),this.headerCellCtrls={}},n.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},n.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],n=this.getActualDepth();return[ne.PINNED_LEFT,null,ne.PINNED_RIGHT].forEach((function(r){var o=e.columnModel.getVirtualHeaderGroupRow(r,n);t=t.concat(o)})),t},n.prototype.getActualDepth=function(){return this.type==e.HeaderRowType.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},n.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},n.prototype.focusHeader=function(e,t){var n=w(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()==e}));return!!n&&(n.focus(t),!0)},ec([Y("columnModel")],n.prototype,"columnModel",void 0),ec([Y("focusService")],n.prototype,"focusService",void 0),ec([z],n.prototype,"destroyCtrls",null),n}(Le),rc=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ic=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},sc=function(t){function n(e){var n=t.call(this)||this;return n.groupsRowCtrls=[],n.pinned=e,n}return rc(n,t),n.prototype.setComp=function(e,t){this.comp=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(t),this.addManagedListener(this.eventService,He.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},n.prototype.setupDragAndDrop=function(e){var t=new su(this.pinned,e);this.createManagedBean(t)},n.prototype.refresh=function(t){var n=this;void 0===t&&(t=!1);var r,o=new Fr,i=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var t=n.columnModel.getHeaderRowCount()-1;n.groupsRowCtrls=n.destroyBeans(n.groupsRowCtrls);for(var r=0;r<t;r++){var i=n.createBean(new nc(o.next(),n.pinned,e.HeaderRowType.COLUMN_GROUP));n.groupsRowCtrls.push(i)}}(),r=o.next(),(null==n.columnsRowCtrl||!t||n.columnsRowCtrl.getRowIndex()!==r)&&(n.destroyBean(n.columnsRowCtrl),n.columnsRowCtrl=n.createBean(new nc(r,n.pinned,e.HeaderRowType.COLUMN))),function(){var r=function(){n.filtersRowCtrl=n.destroyBean(n.filtersRowCtrl)};if(n.columnModel.hasFloatingFilters()){var i=o.next();if(n.filtersRowCtrl){var s=n.filtersRowCtrl.getRowIndex()!==i;t&&!s||r()}n.filtersRowCtrl||(n.filtersRowCtrl=n.createBean(new nc(i,n.pinned,e.HeaderRowType.FLOATING_FILTER)))}else r()}();var s=this.getAllCtrls();this.comp.setCtrls(s),this.restoreFocusOnHeader(i)},n.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},n.prototype.getAllCtrls=function(){var e=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ic(arguments[t]));return e}(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},n.prototype.onGridColumnsChanged=function(){this.refresh(!0)},n.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new wl((function(t){return e.comp.setCenterWidth(t+"px")})))},n.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},n.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t=this.pinned===ne.PINNED_LEFT,n=this.pinned===ne.PINNED_RIGHT,r=function(){var r=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=r){var o=0==r,i=e.gridOptionsWrapper.isEnableRtl(),s=e.gridOptionsWrapper.getScrollbarWidth(),a=e.scrollVisibleService.isVerticalScrollShowing()&&(i&&t||!i&&n)?r+s:r;e.comp.setPinnedContainerWidth(a+"px"),e.comp.addOrRemoveCssClass("ag-hidden",o)}};this.addManagedListener(this.eventService,He.EVENT_LEFT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,He.EVENT_RIGHT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,r),this.addManagedListener(this.eventService,He.EVENT_SCROLLBAR_WIDTH_CHANGED,r)}},n.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof se){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var n=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(n)return n}},n.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},n.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},n.prototype.focusHeader=function(e,t,n){var r=this.getAllCtrls()[e];return!!r&&r.focusHeader(t,n)},n.prototype.getRowCount=function(){return this.getAllCtrls().length},oc([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),oc([Y("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),oc([Y("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),oc([Y("columnModel")],n.prototype,"columnModel",void 0),oc([Y("focusService")],n.prototype,"focusService",void 0),n}(Le),ac=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},uc=function(e){function t(t){var n=e.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=t,n}return ac(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var n=e.getGui();n.style.width=t,n.style.maxWidth=t,n.style.minWidth=t}};this.createManagedBean(new sc(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==ne.PINNED_LEFT,n=this.pinned==ne.PINNED_RIGHT,r=e?t.PINNED_LEFT_TEMPLATE:n?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,n=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var o=e.getInstanceId(),i=r[o];delete r[o];var s=i||n.createBean(new mu(e));n.headerRowComps[o]=s,n.rowCompsList.push(s),function(e){var r=e.getGui();r.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(r),t&&cn(n.eRowContainer,r,t),t=r}(s)})),w(r).forEach((function(e){return n.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',lc([qr("eCenterContainer")],t.prototype,"eCenterContainer",void 0),lc([U],t.prototype,"init",null),lc([z],t.prototype,"destroyRowComps",null),t}(Yr),cc=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(_u=e.HeaderNavigationDirection||(e.HeaderNavigationDirection={}))[_u.UP=0]="UP",_u[_u.DOWN=1]="DOWN",_u[_u.LEFT=2]="LEFT",_u[_u.RIGHT=3]="RIGHT";var dc=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return cc(n,t),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},n.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},n.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},n.prototype.navigateVertically=function(t,n,r){if(n||(n=this.focusService.getFocusedHeader()),!n)return!1;var o=n.headerRowIndex,i=n.column,s=this.getHeaderRowCount(),a=t===e.HeaderNavigationDirection.UP,l=a?o-1:o+1,u=null,c=!1;l<0&&(l=0,u=i,c=!0),l>=s&&(l=-1);var p=this.getHeaderRowType(o);if(!c){if(p===e.HeaderRowType.COLUMN_GROUP){var d=i;u=a?i.getParent():d.getDisplayedChildren()[0]}else if(p===e.HeaderRowType.FLOATING_FILTER)u=i;else{d=i;u=a?d.getParent():d}if(!u)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:u},allowUserOverride:!0,event:r})},n.prototype.navigateHorizontally=function(t,n,r){void 0===n&&(n=!1);var o,i,s=this.focusService.getFocusedHeader();return t===e.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",o=this.headerPositionUtils.findHeader(s,i)):(i="After",o=this.headerPositionUtils.findHeader(s,i)),o?this.focusService.focusHeaderPosition({headerPosition:o,direction:i,fromTab:n,allowUserOverride:!0,event:r}):!n||this.focusNextHeaderRow(s,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({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:n})},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof me){var r=e.getDisplayedLeafColumns();n="Before"===t?le(r):r[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},pc([Y("focusService")],n.prototype,"focusService",void 0),pc([Y("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),pc([Y("animationFrameService")],n.prototype,"animationFrameService",void 0),pc([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),pc([U],n.prototype,"postConstruct",null),n=pc([K("headerNavigationService")],n)}(Le),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)}}(),fc=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gc=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return hc(r,t),r.prototype.setComp=function(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new uo(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},r.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},r.prototype.setHeaderHeight=function(){var e,t,n,r=this.columnModel,o=this.gridOptionsWrapper,i=0,s=r.getHeaderRowCount();r.hasFloatingFilters()&&(s++,i=1),r.isPivotMode()?(t=o.getPivotGroupHeaderHeight(),n=o.getPivotHeaderHeight()):(t=o.getGroupHeaderHeight(),n=o.getHeaderHeight());var a=s-(1+i);e=i*o.getFloatingFiltersHeight(),e+=a*t;var l=(e+=n)+1+"px";this.comp.setHeightAndMinHeight(l)},r.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},r.prototype.onTabKeyDown=function(t){var n=this.gridOptionsWrapper.isEnableRtl(),r=t.shiftKey!==n?e.HeaderNavigationDirection.LEFT:e.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(r,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},r.prototype.handleKeyDown=function(t){var r=null;switch(t.key){case io.LEFT:r=e.HeaderNavigationDirection.LEFT;case io.RIGHT:n(r)||(r=e.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(r,!1,t);break;case io.UP:r=e.HeaderNavigationDirection.UP;case io.DOWN:n(r)||(r=e.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(r,null,t)&&t.preventDefault();break;default:return}},r.prototype.onFocusOut=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.relatedTarget;!n&&this.eGui.contains(t.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},fc([Y("headerNavigationService")],r.prototype,"headerNavigationService",void 0),fc([Y("focusService")],r.prototype,"focusService",void 0),fc([Y("columnModel")],r.prototype,"columnModel",void 0),fc([Y("ctrlsService")],r.prototype,"ctrlsService",void 0),r}(Le),vc=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 e.call(this,t.TEMPLATE)||this}return vc(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new gc).setComp(t,this.getGui(),this.getFocusableElement());var n=function(t){e.createManagedBean(t),e.appendChild(t)};n(new uc(ne.PINNED_LEFT)),n(new uc(null)),n(new uc(ne.PINNED_RIGHT))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([U],t.prototype,"postConstruct",null),t}(Yr),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)}}(),Cc=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mc(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)},Cc([Y("dragService")],t.prototype,"dragService",void 0),Cc([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Cc([K("horizontalResizeService")],t)}(Le),Ec=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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ec(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=this,o=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!o)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var i,s=document.createElement("div");In(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(e){return r.trapFocusWithin(e,s)})),o.guiPromise.then((function(e){return s.appendChild(e)}));var a=n||this.ctrlsService.getGridBodyCtrl().getGui(),l=this.gridOptionsWrapper.getLocaleTextFunc(),u=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var o=t instanceof KeyboardEvent;if(r.tabListener&&(r.tabListener=r.tabListener()),o&&n&&sn(n)){var i=r.focusService.findTabbableParent(n);i&&i.focus()}},positionCallback:function(){return t(s)},anchorToElement:a,ariaLabel:l("ariaLabelColumnMenu","Column Menu")});u&&(this.hidePopup=i=u.hideFunc),o.filterPromise.then((function(e){t(s),e.afterGuiAttached&&e.afterGuiAttached({container:"columnMenu",hidePopup:i})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==io.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()},bc([Y("filterManager")],t.prototype,"filterManager",void 0),bc([Y("popupService")],t.prototype,"popupService",void 0),bc([Y("focusService")],t.prototype,"focusService",void 0),bc([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),t=bc([K("menuFactory")],t)}(Le),_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)}}(),Sc=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Oc=function(e){function t(n){var r=e.call(this,t.getTemplate(n.cssClass))||this;return r.items=[],r.tabbedItemScrollMap=new Map,r.params=n,n.items&&n.items.forEach((function(e){return r.addItem(e)})),r}return _c(t,e),t.prototype.postConstruct=function(){this.createManagedBean(new uo(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument();switch(e.key){case io.RIGHT:case io.LEFT:if(!this.eHeader.contains(t.activeElement))return;var n=this.items.indexOf(this.activeItem),r=e.key===io.RIGHT?Math.min(n+1,this.items.length-1):Math.max(n-1,0);if(n===r)return;e.preventDefault();var o=this.items[r];this.showItemWrapper(o),o.eHeaderButton.focus();break;case io.UP:case io.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,s=this.gridOptionsWrapper.getDocument().activeElement;if(e.preventDefault(),r.contains(s))n.focusInto(o,e.shiftKey);else if(n.isFocusUnderManagedComponent(o))i.eHeaderButton.focus();else{var a=n.findNextFocusableElement(o,!1,e.shiftKey);a?a.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");In(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),Ln(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=this.items.find((function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this,n=e.tabbedItem,r=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),rn(this.eBody),n.bodyPromise.then((function(e){t.eBody.appendChild(e);var r=!t.focusService.isKeyboardMode();if(t.focusService.focusInto(t.eBody,!1,r),n.afterAttachedCallback&&n.afterAttachedCallback(t.afterAttachedParams),t.params.keepScrollPosition){var o=n.getScrollableContainer&&n.getScrollableContainer()||e;t.lastScrollListener=t.addManagedListener(o,"scroll",(function(){t.tabbedItemScrollMap.set(n.name,o.scrollTop)}));var i=t.tabbedItemScrollMap.get(n.name);void 0!==i&&setTimeout((function(){o.scrollTop=i}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),r.classList.add("ag-tab-selected"),this.activeItem=e):H(this.params.onActiveItemClicked)},Sc([Y("focusService")],t.prototype,"focusService",void 0),Sc([qr("eHeader")],t.prototype,"eHeader",void 0),Sc([qr("eBody")],t.prototype,"eBody",void 0),Sc([U],t.prototype,"postConstruct",null),t}(Yr);
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var Pc,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){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Tc(t,e),t.prototype.observeResize=function(e,t){var n,r,o,i,s,a=this,l=this.gridOptionsWrapper.getDocument().defaultView||window,u=G(t,50),c=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!l.ResizeObserver&&!c?((n=new l.ResizeObserver(u)).observe(e),function(){return n.disconnect()}):(r=un(e),o=ln(e),i=!0,(s=function(){if(i){var n=un(e),l=ln(e);(n!==r||l!==o)&&(r=n,o=l,t()),a.doNextPolyfillTurn(s)}})(),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=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K("resizeObserverService")],t)}(Le),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)}}(),Nc=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ic=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 Dc(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,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<e;){if(!u.getScrollFeature().executeAnimationFrameScroll()){var c=void 0;if(n.length)this.sortTaskList(t),c=n.pop().task;else if(o.length)this.sortTaskList(r),c=o.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}c=i.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}n.length||o.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsWrapper.getDocument().defaultView||window;t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,n=!1;return function(){t.isOn()?n||(n=!0,t.addDestroyTask((function(){n=!1,e()}))):t.getFrameworkOverrides().setTimeout(e,0)}},Nc([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Nc([U],t.prototype,"init",null),t=Nc([K("animationFrameService")],t)}(Le),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)}}(),Fc=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xc=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=Object.assign({},{popup:!1},n),r}return Mc(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,s=e.height,a=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=i||u,this.minWidth=r||c,o&&this.setWidth(o),s&&this.setHeight(s),o&&s||this.refreshSize(),t)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&n&&this.boundaryEl){var v=parseFloat(this.boundaryEl.style.top),y=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(y)?0:y,isNaN(v)?0:v)}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("%"))mn(n,e),e=Zt(n),r=!0;else if(this.positioned){var o=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var s=this.offsetParent.clientHeight,a=t?this.position.y:o.top,l=t?0:i.top;s&&e+a>s+l&&(e=s-a)}this.getHeight()!==e&&(r?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?mn(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("%"))yn(t,e),e=Jt(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?yn(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,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!o,s)?0:s,movementY:this.shouldSkipY(t,!!r,i,a)?0:a}},t.prototype.shouldSkipX=function(e,t,n,r){var o=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:o.left,l=a<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=s.right;return!!l||(l=t?r<0&&e.clientX>a+i.left||r>0&&e.clientX<a+i.left:n?r<0&&e.clientX>s.right||r>0&&e.clientX<a+i.left:r<0&&e.clientX>s.right||r>0&&e.clientX<s.right)},t.prototype.shouldSkipY=function(e,t,n,r){void 0===n&&(n=0);var o=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:o.top,l=a<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=s.bottom;return!!l||(l=t?r<0&&e.clientY>a+i.top+n||r>0&&e.clientY<a+i.top:r<0&&e.clientY>s.bottom||r>0&&e.clientY<s.bottom)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=(new DOMParser).parseFromString('<div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>',"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)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("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!e.classList.contains("ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,n=0,r=0;r<e.length;r++){var o=e[r],i=!!o.style.flex&&"0 0 auto"!==o.style.flex;if(o!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(i){var l=window.getComputedStyle(o);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=o.offsetHeight,a=o.offsetWidth;t+=s,n+=a}}return{height:t,width:n}},t.prototype.applySizeToSiblings=function(e){var t=null,n=this.getSiblings();if(n){for(var r=0;r<n.length;r++){var o=n[r];o!==t&&(e?o.style.height=o.offsetHeight+"px":o.style.width=o.offsetWidth+"px",o.style.flex="0 0 auto",o===this.element&&(t=n[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,n=t.popup,r=t.forcePopupParentAsOffsetParent,o=this.currentResizer,i=o.isTop,s=o.isRight,a=o.isBottom,l=o.isLeft,u=s||l,c=a||i,p=this.calculateMouseMovement({e:e,isLeft:l,isTop:i}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,v=0,y=0;if(u&&d){var m=l?-1:1,C=this.getWidth(),w=C+d*m,E=!1;l&&(f+(v=C-w)<=0||w<=this.minWidth)&&(E=!0,v=0),E||this.setWidth(w)}if(c&&h){m=i?-1:1;var b=this.getHeight(),R=b+h*m,_=!1;i?(g+(y=b-R)<=0||R<=this.minHeight)&&(_=!0,y=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&b<R&&this.getMinSizeOfSiblings().height+R>this.element.parentElement.offsetHeight&&(_=!0),_||this.setHeight(R)}this.updateDragStartPosition(e.clientX,e.clientY),((n||r)&&v||y)&&this.offsetElement(f+v,g+y)}},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()};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("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,this.element.classList.add("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}),s=i.movementX,a=i.movementY;this.offsetElement(r+s,o+a),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("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()},Fc([Y("popupService")],t.prototype,"popupService",void 0),Fc([Y("dragService")],t.prototype,"dragService",void 0),t}(Le),Lc=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)}}(),Gc=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl}))},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var r=this.rowRenderer.getAllCellsForColumn(e);return t||r.push(n),this.addElementsToContainerAndGetWidth(r)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,n=document.createElement("span");n.style.position="fixed";var r=this.centerRowContainerCtrl.getContainerElement();r.appendChild(n),e.forEach((function(e){return t.cloneItemIntoDummy(e,n)}));var o=n.offsetWidth;return r.removeChild(n),o+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(n){var r=n.getHtmlElementForColumnHeader(e);null!=r&&(t=r)})),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"),o=r.classList;["ag-header-cell","ag-header-group-cell"].some((function(e){return n.classList.contains(e)}))?(o.add("ag-header","ag-header-row"),r.style.position="static"):o.add("ag-row");for(var i=e.parentElement;i;){if(["ag-header-row","ag-row"].some((function(e){return i.classList.contains(e)}))){for(var s=0;s<i.classList.length;s++){var a=i.classList[s];"ag-row-position-absolute"!=a&&o.add(a)}break}i=i.parentElement}r.appendChild(n),t.appendChild(r)},Gc([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),Gc([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Gc([Y("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Gc([U],t.prototype,"postConstruct",null),t=Gc([K("autoWidthCalculator")],t)}(Le),Vc=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)}}(),Hc=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Bc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Wc(arguments[t]));return e},jc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t}return Vc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()}))},t.prototype.initialise=function(){this.addManagedListener(this.eventService,He.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,He.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,He.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var e=this.gridOptionsWrapper.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new Uc(t)}},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.updateAllRowCtrls=function(){var e=w(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&e.sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex}));var t=w(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=Bc(e,t,n)},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_CELL_FOCUSED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellFocused(t)})),e.getFullWidthRowCtrls().forEach((function(e){e.onFullWidthRowFocused(t)}))})),this.addManagedListener(this.eventService,He.EVENT_FLASH_CELLS,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_HOVER_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.getAllCellCtrls().forEach((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,He.EVENT_RANGE_SELECTION_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_MOVED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PINNED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VISIBLE,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,He.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.getAllCellCtrls().forEach((function(e){e.getColumn()===t&&n(e)}))},r=function(){n((function(e){return e.onLeftChanged()}))},o=function(){n((function(e){return e.onWidthChanged()}))},i=function(){n((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){n((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(se.EVENT_LEFT_CHANGED,r),t.addEventListener(se.EVENT_WIDTH_CHANGED,o),t.addEventListener(se.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(se.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(se.EVENT_LEFT_CHANGED,r),t.removeEventListener(se.EVENT_WIDTH_CHANGED,o),t.removeEventListener(se.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(se.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach((function(n){var r=n.getCellElement(e);r&&t.push(r)})),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,t){var n=this;e.forEach((function(e){e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((function(t){var r=new Ja(t,n.beans,!1,!1,n.printLayout);e.push(r)}))},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return r(e)||h(this.rowCtrlsByRowIndex,(function(n,r){var o=r.getRowNode();e.indexOf(o)>=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(null==t)return null;var n=this.gridOptionsWrapper.getDocument().activeElement,r=this.gridOptionsWrapper.getDomData(n,Ya.DOM_DATA_KEY_CELL_CTRL),o=this.gridOptionsWrapper.getDomData(n,Ja.DOM_DATA_KEY_ROW_CTRL);return r||o?t:null},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 h(o,(function(n,r){var o=r.getRowNode(),i=o.rowIndex==t.rowIndex,s=o.rowPinned==t.rowPinned;i&&s&&(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.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 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.isRefreshInProgress=function(){return this.refreshInProgress},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=Bc(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)})),this.getFullWidthRowCtrls(e.rowNodes).forEach((function(e){e.refreshFullWidth()}))},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.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach((function(e){var n=e.id;e.rowPinned===ne.PINNED_TOP?t.top[n]=e:e.rowPinned===ne.PINNED_BOTTOM?t.bottom[n]=e:t.normal[n]=e})),t}},t.prototype.isRowInMap=function(e,t){var n=e.id,r=e.rowPinned;return r===ne.PINNED_BOTTOM?null!=t.bottom[n]:r===ne.PINNED_TOP?null!=t.top[n]:null!=t.normal[n]},t.prototype.getCellCtrls=function(e,t){var r,o=this,i=this.mapRowNodes(e),s=[];n(t)&&(r={},t.forEach((function(e){var t=o.columnModel.getGridColumn(e);n(t)&&(r[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode();(null==i||o.isRowInMap(t,i))&&e.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId();r&&!r[t]||s.push(e)}))};return h(this.rowCtrlsByRowIndex,(function(e,t){a(t)})),this.topRowCtrls&&this.topRowCtrls.forEach(a),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(a),s},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=[];h(this.rowCtrlsByRowIndex,(function(t,n){null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);var t={};return h(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=or(this.firstRenderedRow,this.lastRenderedRow),r=function(e,r){var o=r.getRowNode().rowIndex;null!=o&&(o<t.firstRenderedRow||o>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(r)&&n.push(o)};return h(this.rowCtrlsByRowIndex,r),h(e,r),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,r){var o=this;void 0===t&&(t=!1),void 0===r&&(r=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){n(o.createOrUpdateRowCtrl(i,e,t,r))})),e)&&(r&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){o.destroyRowCtrls(e,t),o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t));this.updateAllRowCtrls(),this.gridBodyCtrl.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:He.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=[];this.getFullWidthRowCtrls().forEach((function(t){var n=t.getRowNode().rowIndex;e.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.getFullWidthRowCtrls=function(e){var t=this,n=this.mapRowNodes(e);return w(this.rowCtrlsByRowIndex).filter((function(e){if(!e.isFullWidth())return!1;var r=e.getRowNode();return!(null!=n&&!t.isRowInMap(r,n))}))},t.prototype.refreshFullWidthRows=function(e){var t=[],n=!!e,r=n?{}:void 0;n&&r&&e.forEach((function(e){return r[e.id]=!0})),this.getFullWidthRowCtrls().forEach((function(e){var o=e.getRowNode();if(n&&r){var i=o.level>0&&o.parent?o.parent.id:void 0;if(!r[o.id]&&!r[i])return}if(!e.refreshFullWidth()){var s=e.getRowNode().rowIndex;t.push(s.toString())}})),this.removeRowCtrls(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,t,r,o){var i,s=this.rowCtrlsByRowIndex[e];if(s||n(i=this.paginationProxy.getRow(e))&&n(t)&&t[i.id]&&i.alreadyRendered&&(s=t[i.id],t[i.id]=null),!s){if(i||(i=this.paginationProxy.getRow(e)),!n(i))return;s=this.createRowCon(i,r,o)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},t.prototype.destroyRowCtrls=function(e,t){var n=this,r=[];h(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()})),I(r))},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=this.gridOptionsWrapper.isSuppressRowVirtualisation(),s=!1,a=void 0,l=void 0;do{var u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),p=c.pageFirstPixel,d=c.pageLastPixel,h=this.rowContainerHeightService.getDivStretchOffset();if(i)a=p+h,l=d+h;else{var f=o.getScrollFeature().getVScrollPosition(),g=f.top,v=f.bottom;a=Math.max(g+u-r,p)+h,l=Math.min(v+u+r,d)+h}s=this.ensureAllRowsInRangeHaveHeightsCalculated(a,l)}while(s);var y=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getRowIndexAtPixel(l),C=this.paginationProxy.getPageFirstRow(),w=this.paginationProxy.getPageLastRow();y<C&&(y=C),m>w&&(m=w),e=y,t=m}else e=0,t=-1;var E=this.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_NORMAL,b=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),R=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);E&&!b&&t-e>R&&(t=e+R);var _=e!==this.firstRenderedRow,S=t!==this.lastRenderedRow;if(_||S){this.firstRenderedRow=e,this.lastRenderedRow=t;var O={type:He.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(O)}if(this.paginationProxy.isRowsToRender()){var P={type:He.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 Ja(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 ne.PINNED_TOP:t=this.topRowCtrls[e.rowIndex];break;case ne.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 ne.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ne.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!(t<this.firstRenderedRow)&&!n},Hc([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),Hc([Y("columnModel")],t.prototype,"columnModel",void 0),Hc([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Hc([Y("rowModel")],t.prototype,"rowModel",void 0),Hc([Y("focusService")],t.prototype,"focusService",void 0),Hc([Y("columnApi")],t.prototype,"columnApi",void 0),Hc([Y("gridApi")],t.prototype,"gridApi",void 0),Hc([Y("beans")],t.prototype,"beans",void 0),Hc([Y("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Hc([q("ctrlsService")],t.prototype,"ctrlsService",void 0),Hc([U],t.prototype,"postConstruct",null),t=Hc([K("rowRenderer")],t)}(Le),Uc=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.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],pe(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),zc=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)}}(),Kc=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zc(t,e),t.prototype.formatValue=function(e,t,n,r,o){void 0===o&&(o=!0);var i,s=null,a=e.getColDef();if(r?i=r:o&&(i=t&&t.rowPinned&&a.pinnedRowValueFormatter?a.pinnedRowValueFormatter:a.valueFormatter),i){var l={value:n,node:t,data:t?t.data:null,colDef:a,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=this.expressionService.evaluate(i,l)}else if(a.refData)return a.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},Kc([Y("expressionService")],t.prototype,"expressionService",void 0),t=Kc([K("valueFormatterService")],t)}(Le),qc=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)}}(),$c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qc(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){return o(e===ne.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=t===ne.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(o(n))return 0;for(var r=0;r<n.length;r++){var i=n[r];if(i.rowTop+i.rowHeight-1>=e)return r}return n.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:He.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:He.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 s=new Fi(n.beans);s.data=e;var a=t?Fi.ID_PREFIX_TOP_PINNED:Fi.ID_PREFIX_BOTTOM_PINNED;s.id=a+i,s.rowPinned=t?ne.PINNED_TOP:ne.PINNED_BOTTOM,s.setRowTop(o),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),o+=s.rowHeight,r.push(s)}))}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){o(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){o(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=le(e);return t.rowTop+t.rowHeight},$c([Y("columnApi")],t.prototype,"columnApi",void 0),$c([Y("gridApi")],t.prototype,"gridApi",void 0),$c([Y("beans")],t.prototype,"beans",void 0),$c([U],t.prototype,"init",null),t=$c([K("pinnedRowModel")],t)}(Le);(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
Pc=e.ServerSideTransactionResultStatus||(e.ServerSideTransactionResultStatus={})).Applied="Applied",Pc.StoreNotFound="StoreNotFound",Pc.StoreLoading="StoreLoading",Pc.StoreWaitingToLoad="StoreWaitingToLoad",Pc.StoreLoadingFailed="StoreLoadingFailed",Pc.StoreWrongType="StoreWrongType",Pc.Cancelled="Cancelled";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var Qc,Zc,Jc=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<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var r=0;r<e.childrenAfterGroup.length;r++){var o=e.childrenAfterGroup[r];o.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[r],t,n):n&&t(o)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];){var r={rowNode:t,children:null};this.mapToItems[t.id]=r,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var r=e;r;)this.nodeIdsToColumns[r.id]||(this.nodeIdsToColumns[r.id]={}),t.forEach((function(e){return n.nodeIdsToColumns[r.id][e.getId()]=!0})),r=r.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,r=0;r<t;r++){var o=this.mapToItems[n.id],i=this.mapToItems[n.parent.id];i.children||(i.children=[]),i.children.push(o),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return n[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!n[e.getId()]}))},e}(),ep=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(n){var r=e.call(this)||this;return r.state=t.STATE_WAITING_TO_LOAD,r.version=0,r.id=n,r}return ep(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}(Le),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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},op=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,r,o;return np(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();e&&e>0&&(this.checkBlockToLoadDebounce=Mr.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(tp.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){Mr.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()===tp.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",rp([U],t.prototype,"postConstruct",null),rp([(r=0,o=X("loggerFactory"),function(e,t){o(e,t,r)})],t.prototype,"setBeans",null),t=n=rp([K("rowNodeBlockLoader")],t)}(Le),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)}}(),sp=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ap=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 ip(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,He.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:He.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:He.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:He.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 r(this.topRowBounds)||r(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(n(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:He.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),(!ir(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),(!ir(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},sp([Y("rowModel")],t.prototype,"rowModel",void 0),sp([Y("columnApi")],t.prototype,"columnApi",void 0),sp([Y("gridApi")],t.prototype,"gridApi",void 0),sp([U],t.prototype,"postConstruct",null),t=sp([K("paginationProxy")],t)}(Le),lp=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},cp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lp(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(null!=e){for(var o=Object.keys(e),i={},s={},a=function(n){var r,a=o[n],u=e[a];"string"==typeof u?r=l.expressionService.evaluate(u,t):"function"==typeof u&&(r=u(t)),a.split(" ").forEach((function(e){null!=e&&""!=e.trim()&&(r?i[e]=!0:s[e]=!0)}))},l=this,u=0;u<o.length;u++)a(u);r&&Object.keys(s).forEach(r),Object.keys(i).forEach(n)}},t.prototype.getStaticCellClasses=function(e,t){var n,r=e.cellClass;if(!r)return[];"function"==typeof r?n=r(t):n=r;return"string"==typeof n&&(n=[n]),n||[]},t.prototype.processStaticCellClasses=function(e,t,n){this.getStaticCellClasses(e,t).forEach((function(e){n(e)}))},up([Y("expressionService")],t.prototype,"expressionService",void 0),t=up([K("stylingService")],t)}(Le),pp=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-radio-button","radio")||this}return pp(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,He.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}(ku),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)}}(),fp=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),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(ku),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)}}(),vp=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 gp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,r){var o=e.prototype.setValue.call(this,t,r);return this.eInput.value!==t&&(this.eInput.value=n(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){var n,r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text");r&&r.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(To),yp=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)}}(),mp=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return yp(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}(To),Cp=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-number-field","number")||this}return Cp(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)})),this.eInput.step="any"},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Sn(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Sn(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,Sn(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}(vp),Ep=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){function t(t){return e.call(this,t,"ag-range-field","range")||this}return Ep(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;this.addManagedListener(this.eInput,"input",(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}(To),Rp=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)}}(),_p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sp=function(e){function t(n){var r=e.call(this,n,t.TEMPLATE)||this;return r.labelAlignment="top",r}return Rp(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=yo.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:yo.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',_p([qr("eLabel")],t.prototype,"eLabel",void 0),_p([qr("eSlider")],t.prototype,"eSlider",void 0),_p([qr("eText")],t.prototype,"eText",void 0),_p([U],t.prototype,"init",null),t}(go),Op=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Tp=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 Op(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(),n(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,yo.EVENT_CHANGED,(function(){var e=t.gridOptionsWrapper.getDocument();t.eAngleValue.getInputElement().contains(e.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,s=Math.atan2(i,o);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,yo.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:yo.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return yn(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n <div ref="eLabel"></div>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',Pp([qr("eLabel")],t.prototype,"eLabel",void 0),Pp([qr("eParentCircle")],t.prototype,"eParentCircle",void 0),Pp([qr("eChildCircle")],t.prototype,"eChildCircle",void 0),Pp([qr("eAngleValue")],t.prototype,"eAngleValue",void 0),Pp([Y("dragService")],t.prototype,"dragService",void 0),t}(go),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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Np=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 Ap(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=Ct.fromHSB(360*this.H,this.S,this.B,this.A),t=Ct.fromHSB(360*this.H,1,1),n=e.toRgbaString(),r=this.picker;Ct.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'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=Ct.fromString(e),n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}(t.toHSB(),3),r=n[0],o=n[1],i=n[2];this.H=(isNaN(r)?0:r)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(o,i)},t.prototype.onRecentColorClick=function(e){var r=e.target;if(n(r.id)){var o=parseInt(r.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=Ct.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='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',Dp([qr("spectrumColor")],t.prototype,"spectrumColor",void 0),Dp([qr("spectrumVal")],t.prototype,"spectrumVal",void 0),Dp([qr("spectrumDragger")],t.prototype,"spectrumDragger",void 0),Dp([qr("spectrumHue")],t.prototype,"spectrumHue",void 0),Dp([qr("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),Dp([qr("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),Dp([qr("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),Dp([qr("recentColors")],t.prototype,"recentColors",void 0),Dp([U],t.prototype,"postConstruct",null),t}(Yr),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)}}(),Mp=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fp=function(e){function t(n){var r=e.call(this,t.getTemplate(n))||this;return r.closable=!0,r.config=n,r}return Ip(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,r=t.closable,o=t.hideTitleBar,i=t.title,s=t.minWidth,a=void 0===s?250:s,l=t.width,u=t.minHeight,c=void 0===u?250:u,p=t.height,d=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new xc(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var v=this.getGui();n&&this.setBodyComponent(n),o?this.eTitleBar.classList.add("ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=r?r:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var n=e.gridOptionsWrapper.getDocument();if(v.contains(t.relatedTarget)||v.contains(n.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var r=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");r&&r.focus()}})),h&&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 Yr(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var r=n.getGui(),o=wr("close",this.gridOptionsWrapper);o.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(o),this.addTitleBarButton(n),n.addManagedListener(r,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(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)),e.addCssClass("ag-panel-title-bar-button");var i=e.getGui();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 Xt(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Qt(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='<div class="ag-button"></div>',Mp([qr("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Mp([qr("eTitleBar")],t.prototype,"eTitleBar",void 0),Mp([qr("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Mp([qr("eTitle")],t.prototype,"eTitle",void 0),Mp([U],t.prototype,"postConstruct",null),t}(Yr),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)}}(),Lp=function(){return(Lp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Gp=function(e){function t(t){var n=e.call(this,Lp(Lp({},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 xp(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),r=this.config,o=r.movable,i=r.resizable,s=r.maximizable;this.addCssClass("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),s&&this.setMaximizable(s),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,r=t.modal,o=t.title,i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:r,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:o||i("ariaLabelDialog","Dialog")});s&&(this.close=s.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(){zt(this.maximizeIcon,!this.isMaximized),zt(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 Yr('<div class="ag-dialog-button"></span>')),o=r.getGui();o.appendChild(this.maximizeIcon=wr("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(this.minimizeIcon=wr("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","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()}))}},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Y("popupService")],t.prototype,"popupService",void 0),t}(Fp),kp=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)}}(),Vp=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 kp(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 Gp({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250}));this.isPickerDisplayed=!0,n.addCssClass("ag-color-dialog"),Bn(this.eWrapper,!0);var r=this.createBean(new Np({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()&&(Bn(e.eWrapper,!1),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}(wo),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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bp=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,s=n.items,a=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return r.title=o,r.cssIdentifier=n.cssIdentifier||"default",r.enabled=null==i||i,r.items=s||[],r.alignItems=n.alignItems||"center",null!=a&&(r.suppressEnabledCheckbox=a),null!=l&&(r.suppressOpenCloseIcons=l),r}return Hp(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n </div>'},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.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Cr("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Cr("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.key){case io.ENTER:case io.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case io.RIGHT:case io.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===io.RIGHT)}}))},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Bn(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;zt(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),zt(this.eGroupOpenedIcon,e&&this.expanded),zt(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var t="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),zt(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),zt(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 Yr?e.getGui():e;n.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){this.items[t].classList.toggle("ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(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(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",Wp([qr("eTitleBar")],t.prototype,"eTitleBar",void 0),Wp([qr("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Wp([qr("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Wp([qr("eToolbar")],t.prototype,"eToolbar",void 0),Wp([qr("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Wp([qr("eTitle")],t.prototype,"eTitle",void 0),Wp([qr("eContainer")],t.prototype,"eContainer",void 0),Wp([U],t.prototype,"postConstruct",null),t}(Yr),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)}}(),Up=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zp=function(e){function t(t){var n=e.call(this)||this;n.skipTabGuardFocus=!1;var r=t.comp,o=t.eTopGuard,i=t.eBottomGuard,s=t.focusInnerElement,a=t.onFocusIn,l=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,p=t.handleKeyDown,d=t.eFocusableElement;return n.comp=r,n.eTopGuard=o,n.eBottomGuard=i,n.providedFocusInnerElement=s,n.eFocusableElement=d,n.providedFocusIn=a,n.providedFocusOut=l,n.providedShouldStopEventPropagation=u,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=p,n}return jp(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new uo(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()},Up([Y("focusService")],t.prototype,"focusService",void 0),Up([U],t.prototype,"postConstruct",null),t}(Le),Kp=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,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kp(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 zp({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","ag-tab-guard-"+e),In(t,"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];rn(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Yp(arguments[t]));return e}(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,n){bn(t)||(t=t.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)},t}(Yr),$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)}}(),Xp=function(){return(Xp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Qp=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zp=function(e){function t(t){void 0===t&&(t=1);var n=e.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return n.level=t,n.menuItems=[],n}return $p(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case io.UP:case io.RIGHT:case io.DOWN:case io.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case io.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach((function(e){"separator"===e?t.addSeparator():"string"==typeof e?console.warn("AG Grid: unrecognised menu item "+e):t.addItem(e)}))},t.prototype.addItem=function(e){var t=this,n=this.createManagedBean(new rd(Xp(Xp({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some((function(e){return e.isSubMenuOpen()}))}})));n.setParentComponent(this),Hn(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,rd.EVENT_MENU_ITEM_SELECTED,(function(e){t.dispatchEvent(e)})),this.addManagedListener(n,rd.EVENT_MENU_ITEM_ACTIVATED,(function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem}))},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter((function(e){return!e.isDisabled()}))[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(an('\n <div class="ag-menu-separator" aria-hidden="true">\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n </div>'))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var n=e&&e.getParentComponent&&e.getParentComponent();if(!n||!(n instanceof t||n instanceof rd))break;e=n}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case io.UP:case io.DOWN:var t=this.findNextItem(e===io.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsWrapper.isEnableRtl()?io.RIGHT:io.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof rd&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter((function(e){return!e.isDisabled()}));if(t.length){if(!this.activeMenuItem)return e?le(t):t[0];var n;e&&t.reverse();for(var r=!1,o=0;o<t.length;o++){var i=t[o];if(r){n=i;break}i===this.activeMenuItem&&(r=!0)}return n||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Qp([Y("focusService")],t.prototype,"focusService",void 0),Qp([U],t.prototype,"postConstruct",null),t}(qp),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)}}(),ed=function(e){function t(t){var n=e.call(this)||this;return n.wrappedComponent=t,n.setTemplateFromElement(t.getGui()),n}return Jp(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===io.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout((function(){return e.getGui().focus()}),0)},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([U],t.prototype,"postConstruct",null),t}(qp),td=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rd=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return td(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),Wn(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==io.ENTER&&t.key!==io.SPACE||(t.preventDefault(),e.onItemSelected(t))})),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return e.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return e.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return e.addCssClass(t)}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var n=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var r,o=an('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var i=Fn(this.getGui()),s=isNaN(i)?1:i+1,a=this.createBean(new Zp(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),o.appendChild(a.getGui()),this.addManagedListener(a,t.EVENT_MENU_ITEM_SELECTED,(function(e){return n.dispatchEvent(e)})),a.addGuiEventListener("mouseenter",(function(){return n.cancelDeactivate()})),r=function(){return n.destroyBean(a)},e&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new ed(l));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",d=function(){return n.cancelDeactivate()};c.addEventListener(p,d),r=function(){return c.removeEventListener(p,d)},o.appendChild(c),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var h=this.getGui(),f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:o}),g=this.gridOptionsWrapper.getLocaleTextFunc(),v=this.popupService.addPopup({modal:!0,eChild:o,positionCallback:f,anchorToElement:h,ariaLabel:g("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Bn(h,!0),this.hideSubMenu=function(){v&&v.hideFunc(),n.subMenuIsOpen=!1,Bn(h,!1),r()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Bn(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout((function(){t.isAlive()&&t.isActive&&t.openSubMenu()}),300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=an('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(wr("check",this.gridOptionsWrapper)):this.params.icon&&(bn(this.params.icon)?e.appendChild(this.params.icon):"string"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=an('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Br(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=an('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=an('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var n=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";Bn(t,!1),e.appendChild(wr(n,this.gridOptionsWrapper))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var n={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(n)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return e.activate(!0)}),t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return e.deactivate()}),t.ACTIVATION_DELAY):this.deactivate()},t.prototype.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,nd([Y("popupService")],t.prototype,"popupService",void 0),nd([U],t.prototype,"init",null),t}(Yr),od=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)}}(),id=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},ad=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}var r;return od(n,e),r=n,n.addKeyboardModeEvents=function(e,t){var n=r.instancesMonitored.get(e);n&&n.length>0?-1===n.indexOf(t)&&n.push(t):(r.instancesMonitored.set(e,[t]),e.addEventListener("keydown",r.toggleKeyboardMode),e.addEventListener("mousedown",r.toggleKeyboardMode))},n.removeKeyboardModeEvents=function(e,t){var n=r.instancesMonitored.get(e),o=[];n&&n.length&&(o=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(sd(arguments[t]));return e}(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))},n.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?He.EVENT_KEYBOARD_FOCUS:He.EVENT_MOUSE_FOCUS})}))}}},n.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,He.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)}))}))},n.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();r.removeKeyboardModeEvents(t,e)},n.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},n.prototype.isKeyboardMode=function(){return r.keyboardModeActive},n.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,Ja.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},n.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,Eu.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},n.prototype.isDomDataMissingInHierarchy=function(e,t){for(var n=e;n;){if(this.gridOptionsWrapper.getDomData(n,t))return!1;n=n.parentNode}return!0},n.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},n.prototype.getFocusedCell=function(){return this.focusedCellPosition},n.prototype.setFocusedCell=function(e,n,r,o){void 0===o&&(o=!1);var i=this.columnModel.getGridColumn(n);i?(this.focusedCellPosition=i?{rowIndex:e,rowPinned:t(r),column:i}:null,this.onCellFocused(o)):this.focusedCellPosition=null},n.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},n.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},n.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),n=e.getRowIndex(),r=e.getPinned(),o=this.focusedHeaderPosition,i=o.column,s=o.headerRowIndex;return t===i&&n===s&&r==i.getPinned()},n.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},n.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},n.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},n.prototype.focusHeaderPosition=function(e){var t=e.direction,n=e.fromTab,r=e.allowUserOverride,o=e.event,i=e.headerPosition;if(r){var s,a=this.gridOptionsWrapper,l=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();if(n){if(s=a.getTabToNextHeaderFunc())i=s({backwards:"Before"===t,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u})}else if((s=a.getNavigateToNextHeaderFunc())&&o)i=s({key:o.key,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u,event:o})}return!!i&&(-1===i.headerRowIndex?this.focusGridView(i.column):(this.headerNavigationService.scrollToColumn(i.column,t),this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()).focusHeader(i.headerRowIndex,i.column,o)))},n.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},n.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,n=le(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},event:e})},n.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},n.prototype.isRowFocused=function(e,n){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===t(n))},n.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var r=ne.FOCUSABLE_SELECTOR,o=ne.FOCUSABLE_EXCLUDE;t&&(o+=", "+t),n&&(o+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(r)),s=Array.prototype.slice.apply(e.querySelectorAll(o));if(!s.length)return i;return function(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}(i,s)},n.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?le(r):r[0];return!!o&&(o.focus(),!0)},n.prototype.findNextFocusableElement=function(e,t,n){void 0===e&&(e=this.eGridDiv);var r=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),o=this.gridOptionsWrapper.getDocument().activeElement,i=(t?r.findIndex((function(e){return e.contains(o)})):r.indexOf(o))+(n?-1:1);return i<0||i>=r.length?null:r[i]},n.prototype.isFocusUnderManagedComponent=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.querySelectorAll("."+uo.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var r=0;r<n.length;r++)if(n[r].contains(t.activeElement))return!0;return!1},n.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===xt(e)&&++n<=t;)e=e.parentElement;return null===xt(e)?null:e},n.prototype.onCellFocused=function(e){var t={type:He.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var n=t.rowIndex=this.focusedCellPosition.rowIndex,r=t.rowPinned=this.focusedCellPosition.rowPinned;t.column=this.focusedCellPosition.column;var o=this.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:r});o&&(t.isFullWidthCell=o.isFullWidth())}this.eventService.dispatchEvent(t)},n.prototype.focusGridView=function(e,n){if(this.gridOptionsWrapper.isSuppressCellFocus())return n?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var r=n?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!r)return!1;var o=r.rowIndex,i=r.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==o||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:o,column:e,rowPinned:i}),this.setFocusedCell(o,e,t(i),!0),this.rangeService){var a={rowIndex:o,rowPinned:i,column:e};this.rangeService.setRangeToCell(a)}return!0},n.prototype.focusNextGridCoreContainer=function(e){return!!this.gridCtrl.focusNextInnerContainer(e)||(e||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},n.AG_KEYBOARD_FOCUS="ag-keyboard-focus",n.keyboardModeActive=!1,n.instancesMonitored=new Map,id([Y("eGridDiv")],n.prototype,"eGridDiv",void 0),id([Y("columnModel")],n.prototype,"columnModel",void 0),id([Y("headerNavigationService")],n.prototype,"headerNavigationService",void 0),id([Y("columnApi")],n.prototype,"columnApi",void 0),id([Y("gridApi")],n.prototype,"gridApi",void 0),id([Y("rowRenderer")],n.prototype,"rowRenderer",void 0),id([Y("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),id([q("rangeService")],n.prototype,"rangeService",void 0),id([Y("navigationService")],n.prototype,"navigationService",void 0),id([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),id([U],n.prototype,"init",null),n=r=id([K("focusService")],n)}(Le),ld=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(Zc=Qc||(Qc={}))[Zc.vertical=0]="vertical",Zc[Zc.horizontal=1]="horizontal";var cd,pd,dd=0,hd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}return ld(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,He.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.add(ad.AG_KEYBOARD_FOCUS)}))})),e.addManagedListener(e.gridCtrl,He.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.remove(ad.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,Qc.vertical),o=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=o+"px";var i,s=n.right-n.left-o;function a(){return t.right-n.left-2}function l(){return t.left-n.left-o}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=a()),i>s&&(i=0)):((i=a())>s&&(i=l()),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,s=o.y;this.positionPopup({ePopup:t,x:i,y:s,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 s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({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,s=e.y;r&&(i+=r),o&&(s+=o),n&&(i=this.keepXYWithinBounds(t,i,Qc.horizontal),s=this.keepXYWithinBounds(t,s,Qc.vertical)),t.style.left=i+"px",t.style.top=s+"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===Qc.vertical,o=r?"clientHeight":"clientWidth",i=r?"top":"left",s=r?"offsetHeight":"offsetWidth",a=r?"scrollTop":"scrollLeft",l=this.gridOptionsWrapper.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=e[s],g=h?(r?Zt:Jt)(u)+u[a]:c[o];h&&(g-=Math.abs(d[i]-p[i]));var v=g-f;return Math.min(Math.max(t,0),Math.abs(v))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,n=this.getPopupParent(),r=n.getBoundingClientRect(),o=e.element.getBoundingClientRect(),i=r.top-o.top,s=r.left-o.left,a=i,l=s,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),p=e.ePopup.style.left,d=parseInt(p.substring(0,p.length-1),10);return new Gr((function(r){t.getFrameworkOverrides().setInterval((function(){var r=n.getBoundingClientRect(),o=e.element.getBoundingClientRect();if(0==o.top&&0==o.left&&0==o.height&&0==o.width)e.hidePopup();else{var u=r.top-o.top;if(u!=a){var p=t.keepXYWithinBounds(e.ePopup,c+i-u,Qc.vertical);e.ePopup.style.top=p+"px"}a=u;var h=r.left-o.left;if(h!=l){var f=t.keepXYWithinBounds(e.ePopup,d+s-h,Qc.horizontal);e.ePopup.style.left=f+"px"}l=h}}),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,s=e.click,a=e.alwaysOnTop,l=e.afterGuiAttached,u=e.positionCallback,c=e.anchorToElement,p=e.ariaLabel,d=this.gridOptionsWrapper.getDocument(),h=new Gr((function(e){return e((function(){}))}));if(!d)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:h};var f=this.popupList.findIndex((function(e){return e.element===r}));if(-1!==f){var g=this.popupList[f];return{hideFunc:g.hideFunc,stopAnchoringPromise:g.stopAnchoringPromise}}var v=this.getPopupParent();null==r.style.top&&(r.style.top="0px"),null==r.style.left&&(r.style.left="0px");var y=document.createElement("div"),m=this.environment.getTheme().theme;m&&y.classList.add(m),y.classList.add("ag-popup"),r.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),r.hasAttribute("role")||In(r,"dialog"),Ln(r,p),this.focusService.isKeyboardMode()&&r.classList.add(ad.AG_KEYBOARD_FOCUS),y.appendChild(r),v.appendChild(y),a?this.setAlwaysOnTop(y,!0):this.bringPopupToFront(y);var C=!1,w=function(e){y.contains(d.activeElement)&&(e.key===io.ESCAPE&&R({keyboardEvent:e}))},E=function(e){return R({mouseEvent:e})},b=function(e){return R({touchEvent:e})},R=function(e){void 0===e&&(e={});var n=e.mouseEvent,o=e.touchEvent,a=e.keyboardEvent;t.isEventFromCurrentPopup({mouseEvent:n,touchEvent:o},r)||t.isEventSameChainAsOriginalEvent({originalMouseEvent:s,mouseEvent:n,touchEvent:o})||C||(C=!0,v.removeChild(y),d.removeEventListener("keydown",w),d.removeEventListener("mousedown",E),d.removeEventListener("touchstart",b),d.removeEventListener("contextmenu",E),t.eventService.removeEventListener(He.EVENT_DRAG_STARTED,E),i&&i(n||o||a),t.popupList=t.popupList.filter((function(e){return e.element!==r})),h&&h.then((function(e){return e&&e()})))};return l&&l({hidePopup:R}),window.setTimeout((function(){o&&d.addEventListener("keydown",w),n&&(d.addEventListener("mousedown",E),t.eventService.addEventListener(He.EVENT_DRAG_STARTED,E),d.addEventListener("touchstart",b),d.addEventListener("contextmenu",E))}),0),u&&u(),c&&(h=this.keepPopupPositionedRelativeTo({element:c,ePopup:r,hidePopup:R})),this.popupList.push({element:r,wrapper:y,hideFunc:R,stopAnchoringPromise:h,instanceId:dd++,isAnchored:!!c}),{hideFunc:R,stopAnchoringPromise:h}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(e){return e.isAnchored}))},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,r=e.touchEvent,o=n||r;if(!o)return!1;var i=this.popupList.findIndex((function(e){return e.element===t}));if(-1===i)return!1;for(var s=i;s<this.popupList.length;s++){if(Ae(this.popupList[s].element,o))return!0}return this.isElementWithinCustomPopup(o.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsWrapper.getDocument();e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,r=e.touchEvent,o=null;if(n?o=n:r&&(o=r.touches[0]),o&&t){var i=n?n.screenX:0,s=n?n.screenY:0,a=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=n.length,o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=o.length,s=this.getWrapper(e);if(s&&!(r<=1)&&t.contains(e)){var a=n.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])})),i)s.classList.contains("ag-always-on-top")?a!==r-1&&le(o).insertAdjacentElement("afterend",s):a!==r-i-1&&o[0].insertAdjacentElement("beforebegin",s);else a!==r-1&&le(n).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(p)}},ud([Y("environment")],t.prototype,"environment",void 0),ud([Y("focusService")],t.prototype,"focusService",void 0),ud([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),ud([U],t.prototype,"postConstruct",null),t=ud([K("popupService")],t)}(Le),fd=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)}}(),gd=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vd=function(e){function t(n,r,o){void 0===n&&(n="default"),void 0===r&&(r="listbox");var i=e.call(this,t.getTemplate(n))||this;return i.cssIdentifier=n,i.ariaRole=r,i.listName=o,i.renderedRows=new Map,i.rowHeight=20,i.isDestroyed=!1,i}return fd(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)}}),this.setAriaProperties()},t.prototype.setAriaProperties=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;In(t,this.ariaRole),Ln(t,e)},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 t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=xn(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.key){case io.UP:case io.DOWN:this.navigate(e.key===io.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 <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n </div>'},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("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,r=n+this.rowHeight,o=this.getGui(),i=o.scrollTop,s=o.offsetHeight,a=i+s<r;if(i>n)o.scrollTop=n;else if(a){var l=r-s;o.scrollTop=l}}},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",V((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){(o<e||o>t)&&o!==n.lastFocusedRowIndex&&n.removeRow(o)}));for(var r=e;r<=t;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)},t.prototype.insertRow=function(e){var t=this,n=this.model.getRow(e),r=document.createElement("div");if(r.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),In(r,"tree"===this.ariaRole?"treeitem":"option"),Un(r,this.model.getRowCount()),zn(r,e+1),r.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var o=this.model.isRowSelected(e);er(r,!!o),tr(r,o)}r.style.height=this.rowHeight+"px",r.style.top=this.rowHeight*e+"px";var i=this.componentCreator(n,r);i.addGuiEventListener("focusin",(function(){return t.lastFocusedRowIndex=e})),r.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",r):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",r):this.eContainer.appendChild(r),this.renderedRows.set(e,{rowComponent:i,eDiv:r})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,e.prototype.destroy.call(this))},gd([Y("resizeObserverService")],t.prototype,"resizeObserverService",void 0),gd([Y("focusService")],t.prototype,"focusService",void 0),gd([qr("eContainer")],t.prototype,"eContainer",void 0),gd([U],t.prototype,"postConstruct",null),t}(qp),yd=["mouseover","mouseout","mouseenter","mouseleave"],md=["touchstart","touchend","touchmove","touchcancel"],Cd=function(){function e(){this.isOutsideAngular=function(e){return ge(yd,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new Gr((function(n){n(window.setInterval(e,t))}))},e.prototype.addEventListener=function(e,t,n,r){var o=ge(md,t);e.addEventListener(t,n,{capture:!!r,passive:o})},e.prototype.dispatchEvent=function(e,t,n){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),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)}}(),Ed=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wd(t,e),t.prototype.getNextCellToFocus=function(e,t,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var n,r,o=e===io.UP,i=e===io.DOWN,s=e===io.LEFT;if(o||i)r=o?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=t.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsWrapper.isEnableRtl();r=t.rowIndex,n=s!==l?a[0]:le(a)}return{rowIndex:r,rowPinned:null,column:n}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var n=t,r=!1;!r;){switch(e){case io.UP:n=this.getCellAbove(n);break;case io.DOWN:n=this.getCellBelow(n);break;case io.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case io.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 ne.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case ne.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 ne.PINNED_BOTTOM:return null;case ne.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(ne.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ne.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(ne.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ne.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===ne.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===ne.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===ne.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(ne.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:ne.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,o=e.rowPinned,i=this.columnModel.getDisplayedColAfter(e.column);if(!i){i=t[0];var s=this.getRowBelow(e);if(r(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:i,rowPinned:o}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,i=this.columnModel.getDisplayedColBefore(e.column);if(!i){i=le(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(r(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:i,rowPinned:o}},Ed([Y("columnModel")],t.prototype,"columnModel",void 0),Ed([Y("rowModel")],t.prototype,"rowModel",void 0),Ed([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ed([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Ed([K("cellNavigationService")],t)}(Le),Rd=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}var n,r;return Rd(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,He.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,He.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 He.EVENT_COLUMN_MOVED:case He.EVENT_COLUMN_VISIBLE:case He.EVENT_COLUMN_PINNED:case He.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case He.EVENT_COLUMN_GROUP_OPENED:var r=e;t.processGroupOpenedEvent(r);break;case He.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.getProvidedColumnGroup(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 He.EVENT_COLUMN_MOVED:var i=e,s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId}}));this.columnModel.applyColumnState({state:s,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+i.toIndex);break;case He.EVENT_COLUMN_VISIBLE:var a=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible);break;case He.EVENT_COLUMN_PINNED:var l=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned);break;case He.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(),p=this.gridOptionsWrapper.getAlignedGrids();p&&p.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(c)}))}},_d([Y("columnModel")],t.prototype,"columnModel",void 0),_d([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),_d([(n=0,r=X("loggerFactory"),function(e,t){r(e,t,n)})],t.prototype,"setBeans",null),_d([U],t.prototype,"init",null),t=_d([K("alignedGridsService")],t)}(Le),Od=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Td=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var r,o;return Od(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,He.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 h(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return h(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;h(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()===ne.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new Jc(!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 h(this.selectedNodes,(function(o,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];r+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),h(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){if(n(t)&&e.id!==t.id&&t){var r=t.id;this.selectedNodes[r]==e&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){n(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()===ne.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<o;r++){var i=n[r];if(i.isSelected())t.push(i);else{var s=i;s.group&&s.children&&e(s.children)}}}(e),t}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model")},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return h(this.selectedNodes,(function(t,n){n&&e++})),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===ne.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!n)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else h(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var r={type:He.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==ne.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,n=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(n):t.forEachNode(n),this.rowModel.getType()===ne.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var r={type:He.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},t.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},Pd([Y("rowModel")],t.prototype,"rowModel",void 0),Pd([Y("columnApi")],t.prototype,"columnApi",void 0),Pd([Y("gridApi")],t.prototype,"gridApi",void 0),Pd([(r=0,o=X("loggerFactory"),function(e,t){o(e,t,r)})],t.prototype,"setBeans",null),Pd([U],t.prototype,"init",null),t=Pd([K("selectionService")],t)}(Le),Ad=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dd=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===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.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(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){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},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(Mr.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 console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:e,applyOrder:!0},"api")},e.prototype.getOriginalColumnGroup=function(e){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},Ad([Y("columnModel")],e.prototype,"columnModel",void 0),Ad([z],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Ad([K("columnApi")],e)}(),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)}}(),Id=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Md=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return Nd(t,e),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(He.EVENT_CELL_VALUE_CHANGED,(function(t){return e.callColumnCellValueChangedHandler(t)}),this.gridOptionsWrapper.useAsyncEvents())},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(),s=i.field,a=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],c=!r&&t.aggData&&void 0!==t.aggData[a];if(n&&i.filterValueGetter?o=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&c?o=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?o=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?o=b(l,s,e.isFieldContainsDots()):u?o=t.groupData[a]:c?o=t.aggData[a]:i.valueGetter?o=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(o=b(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof o&&0===o.indexOf("=")){var p=o.substring(1);o=this.executeValueGetter(p,l,e,t)}if(null==o){var d=this.getOpenedGroup(t,e);if(null!=d)return d}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,o,i){var s=this.columnModel.getPrimaryColumn(t);if(!e||!s)return!1;r(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.newValueHandler,c=a.valueSetter;if(r(l)&&r(u)&&r(c))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var p,d={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:o,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=o,void 0===(p=u&&n(u)?u(d):n(c)?this.expressionService.evaluate(c,d):this.setValueUsingField(e.data,l,o,s.isFieldContainsDots()))&&(p=!0),!p)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,e);var h={type:He.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:i};return this.eventService.dispatchEvent(h),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"==typeof t&&t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},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 s=o.shift();0===o.length?i[s]=n:i=i[s]}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 s={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)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(r,o,a),a},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=n;r&&(o=r({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}));return"string"==typeof o||null==o||"[object Object]"===(o=String(o))&&A((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},Id([Y("expressionService")],t.prototype,"expressionService",void 0),Id([Y("columnModel")],t.prototype,"columnModel",void 0),Id([Y("valueCache")],t.prototype,"valueCache",void 0),Id([U],t.prototype,"init",null),t=Id([K("valueService")],t)}(Le),Fd=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ld=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}var n,r;return Fd(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+";"},xd([(n=0,r=X("loggerFactory"),function(e,t){r(e,t,n)})],t.prototype,"setBeans",null),t=xd([K("expressionService")],t)}(Le),Gd=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)}}(),kd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return Gd(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<n.length;r++){(0,n[r])()}}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},t=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K("templateService")],t)}(Le),Vd=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)}}(),Hd=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n,r;return Vd(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new Bd(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Hd([(n=0,r=X("gridOptionsWrapper"),function(e,t){r(e,t,n)})],t.prototype,"setBeans",null),t=Hd([K("loggerFactory")],t)}(Le),Bd=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}(),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)}}(),Ud=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zd=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return jd(n,t),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 aa(this.view)),this.addRtlSupport(),this.addManagedListener(this,He.EVENT_KEYBOARD_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,He.EVENT_MOUSE_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!1)}));var o=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return o()})),this.ctrlsService.registerGridCtrl(this)},n.prototype.isDetailGrid=function(){var e,t;return(null===(t=null===(e=this.focusService.findTabbableParent(this.getGui()))||void 0===e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},n.prototype.showDropZones=function(){return re.isRegistered(e.ModuleNames.RowGroupingModule)},n.prototype.showSideBar=function(){return re.isRegistered(e.ModuleNames.SideBarModule)},n.prototype.showStatusBar=function(){return re.isRegistered(e.ModuleNames.StatusBarModule)},n.prototype.showWatermark=function(){return re.isRegistered(e.ModuleNames.EnterpriseCoreModule)},n.prototype.onGridSizeChanged=function(){var e={type:He.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.gridOptionsWrapper.getDocument(),n=this.view.getFocusableContainers(),r=n.findIndex((function(e){return e.contains(t.activeElement)}))+(e?-1:1);return!(r<=0||r>=n.length)&&this.focusService.focusInto(n[r])},n.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers();if(e){if(t.length>1)return this.focusService.focusInto(le(t),!0);var n=le(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusService.focusFirstHeader()},n.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Ud([Y("columnApi")],n.prototype,"columnApi",void 0),Ud([Y("gridApi")],n.prototype,"gridApi",void 0),Ud([Y("focusService")],n.prototype,"focusService",void 0),Ud([Y("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Ud([Y("columnModel")],n.prototype,"columnModel",void 0),Ud([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),Ud([Y("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Le),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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qd=function(t){function n(e){var n=t.call(this,void 0)||this;return n.eGridDiv=e,n}return Kd(n,t),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 e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(ad.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 zd);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(t,n){var r=this.eRootWrapperBody.classList;r.toggle(e.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),r.toggle(e.LayoutCssClasses.NORMAL,n.normal),r.toggle(e.LayoutCssClasses.PRINT,n.print),this.addOrRemoveCssClass(e.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),this.addOrRemoveCssClass(e.LayoutCssClasses.NORMAL,n.normal),this.addOrRemoveCssClass(e.LayoutCssClasses.PRINT,n.print)},n.prototype.createTemplate=function(){return'<div class="ag-root-wrapper">\n '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n </div>"},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)}))},Yd([Y("loggerFactory")],n.prototype,"loggerFactory",void 0),Yd([qr("gridBody")],n.prototype,"gridBodyComp",void 0),Yd([qr("sideBar")],n.prototype,"sideBarComp",void 0),Yd([qr("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Yd([U],n.prototype,"postConstruct",null),n}(qp),$d=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return $d(t,e),n=t,t.prototype.progressSort=function(e,t,n){var r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)},t.prototype.setSortForColumn=function(e,t,n,r){t!==ne.SORT_ASC&&t!==ne.SORT_DESC&&(t=null),e.setSort(t,r),(n||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,r),this.updateSortIndex(e),this.dispatchSortChangedEvents(r)},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(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:He.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},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,s=o==t.length-1;return r=i||s?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=[ne.SORT_ASC,ne.SORT_DESC,null],Xd([Y("columnModel")],t.prototype,"columnModel",void 0),Xd([Y("columnApi")],t.prototype,"columnApi",void 0),Xd([Y("gridApi")],t.prototype,"gridApi",void 0),t=n=Xd([K("sortController")],t)}(Le),Zd=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)}}(),Jd=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},eh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zd(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:He.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:He.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},Jd([Y("columnApi")],t.prototype,"columnApi",void 0),Jd([Y("gridApi")],t.prototype,"gridApi",void 0),t=Jd([K("columnHoverService")],t)}(Le),th=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)}}(),nh=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rh=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 th(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))},nh([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),nh([U],t.prototype,"postConstruct",null),t=nh([K("columnAnimationService")],t)}(Le),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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return oh(t,e),n=t,t.prototype.createAutoGroupColumns=function(e,t){var n=this,r=[],o=this.gridOptionsWrapper.isTreeData(),i=this.gridOptionsWrapper.isGroupMultiAutoColumn();return o&&i&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),i=!1),i?t.forEach((function(t,o){r.push(n.createOneAutoGroupColumn(e,t,o))})):r.push(this.createOneAutoGroupColumn(e)),r},t.prototype.createOneAutoGroupColumn=function(e,t,o){var i,s=this.generateDefaultColDef(t);(i=t?ne.GROUP_AUTO_COLUMN_ID+"-"+t.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,E(s,this.gridOptionsWrapper.getAutoGroupColumnDef()),(s=this.columnFactory.mergeColDefs(s)).colId=i,this.gridOptionsWrapper.isTreeData())||r(s.field)&&r(s.valueGetter)&&r(s.filterValueGetter)&&(s.filter=!1);o&&o>0&&(s.headerCheckboxSelection=!1);var a=e.find((function(e){return e.getId()==i}));if(a)return a.setColDef(s,null),this.columnFactory.applyColumnState(a,s),a;var l=new se(s,null,i,!0);return this.context.createBean(l),l},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();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:r.headerValueGetter}),(r.cellRenderer||r.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:r.cellRenderer,innerRendererFramework:r.cellRendererFramework,innerRendererParams:r.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},t.GROUP_AUTO_COLUMN_BUNDLE_ID=ne.GROUP_AUTO_COLUMN_ID,ih([Y("columnModel")],t.prototype,"columnModel",void 0),ih([Y("columnFactory")],t.prototype,"columnFactory",void 0),t=n=ih([K("autoGroupColService")],t)}(Le),ah=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)}}(),lh=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},uh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ah(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,He.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,He.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)}}},lh([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),lh([U],t.prototype,"postConstruct",null),t=lh([K("paginationAutoPageSizeService")],t)}(Le),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)}}(),ph=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return ch(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]},ph([U],t.prototype,"init",null),t=ph([K("valueCache")],t)}(Le),hh=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)}}(),fh=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hh(t,e),t.prototype.init=function(){this.rowModel.getType()===ne.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,He.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==ne.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 Jc(n,this.clientSideRowModel.getRootNode());r.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(r)}this.rowRenderer.refreshCells()}},fh([Y("rowModel")],t.prototype,"rowModel",void 0),fh([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),fh([U],t.prototype,"init",null),t=fh([K("changeDetectionService")],t)}(Le),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)}}(),yh=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vh(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(){return this.eGui},t.prototype.init=function(t){var n=e(t),r=typeof n;this.eGui="string"!==r&&"number"!==r&&"boolean"!==r?null!=n?n:an("<span></span>"):an("<span>"+n+"</span>")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},yh([Y("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=yh([K("agComponentUtils")],t)}(Le),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)}}(),wh=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Eh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ch(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]},wh([Y("agComponentUtils")],t.prototype,"agComponentUtils",void 0),wh([U],t.prototype,"postConstruct",null),t=wh([K("componentMetadataProvider")],t)}(Le),bh=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)}}(),Rh=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_h={"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}},Sh={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Oh={},Ph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bh(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=_h[n][t],o=0;Oh[e]||(Oh[e]={});var i=Oh[e][t];if(null!=i)return i;if(Sh[t]){var s=Sh[t],a=document.createElement("div");a.classList.add(e),a.style.position="absolute";var l=s.reduce((function(e,t){var n=document.createElement("div");return n.style.position="static",n.classList.add(t),e.appendChild(n),n}),a);if(document.body){document.body.appendChild(a);var u=-1!==t.toLowerCase().indexOf("height")?"height":"width";o=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return Oh[e][t]=o||r,Oh[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-");A((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$/,"")}},Rh([Y("eGridDiv")],t.prototype,"eGridDiv",void 0),t=Rh([K("environment")],t)}(Le),Th=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)}}(),Ah=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}var n,r;return Th(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,He.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Lt(),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:He.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:He.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},Ah([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Ah([(n=0,r=X("loggerFactory"),function(e,t){r(e,t,n)})],t.prototype,"agWire",null),Ah([U],t.prototype,"postConstruct",null),t=Ah([K("rowContainerHeightService")],t)}(Le),Nh=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nh(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.recurseDown=function(e,t){var r=this;e&&e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&r.recurseDown(t(e),t),r.groupSelectsChildren)o=n((t(e)||[]).find((function(e){return!0===e.selectable})));else o=!!r.isRowSelectableFunc&&r.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},Ih([U],t.prototype,"init",null),t=Ih([K("selectableService")],t)}(Le),Fh=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lh=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return Fh(t,e),t.prototype.postConstruct=function(){var e=this,t=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",wr(t?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",wr(t?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",wr(t?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",wr(t?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,He.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.key!==io.ENTER&&e.key!==io.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();if(t)return t({value:e});var n=this.gridOptionsWrapper.getLocaleTextFunc();return sr(e,n("thousandSeparator",","),n("decimalSeparator","."))},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"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-to">'+n+'</span>\n <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-of">'+r+'</span>\n <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+o+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+i+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+l+'-start-page">'+t+'</span>\n <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+l+'-of-page">'+r+'</span>\n <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n </span>\n </div>'},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,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var r=this.isZeroPagesToDisplay(),o=t&&e===n-1;this.nextButtonDisabled=o||r,this.lastButtonDisabled=!t||r||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){Wn(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},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(1===n){var r=this.paginationProxy.getRow(0);if(r&&r.group&&!(r.groupData||r.aggData))return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var o=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=o,this.lbRecordCount.innerHTML=o}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},xh([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),xh([Y("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),xh([qr("btFirst")],t.prototype,"btFirst",void 0),xh([qr("btPrevious")],t.prototype,"btPrevious",void 0),xh([qr("btNext")],t.prototype,"btNext",void 0),xh([qr("btLast")],t.prototype,"btLast",void 0),xh([qr("lbRecordCount")],t.prototype,"lbRecordCount",void 0),xh([qr("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),xh([qr("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),xh([qr("lbCurrent")],t.prototype,"lbCurrent",void 0),xh([qr("lbTotal")],t.prototype,"lbTotal",void 0),xh([U],t.prototype,"postConstruct",null),t}(Yr),Gh=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(pd=cd||(cd={}))[pd.Loading=0]="Loading",pd[pd.NoRows=1]="NoRows";var Vh=function(t){function n(){var e=t.call(this,n.TEMPLATE)||this;return e.inProgress=!1,e.destroyRequested=!1,e.manuallyDisplayed=!1,e}return Gh(n,t),n.prototype.updateLayoutClasses=function(t,n){var r=this.eOverlayWrapper.classList;r.toggle(e.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),r.toggle(e.LayoutCssClasses.NORMAL,n.normal),r.toggle(e.LayoutCssClasses.PRINT,n.print)},n.prototype.postConstruct=function(){this.createManagedBean(new aa(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,He.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,He.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){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===cd.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===cd.NoRows)},n.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,cd.Loading)}},n.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,cd.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.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},n.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),rn(this.eOverlayWrapper))},n.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},n.prototype.destroy=function(){this.destroyActiveOverlay(),t.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.manuallyDisplayed||this.hideOverlay()},n.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',kh([Y("userComponentFactory")],n.prototype,"userComponentFactory",void 0),kh([Y("paginationProxy")],n.prototype,"paginationProxy",void 0),kh([Y("gridApi")],n.prototype,"gridApi",void 0),kh([Y("columnModel")],n.prototype,"columnModel",void 0),kh([qr("eOverlayWrapper")],n.prototype,"eOverlayWrapper",void 0),kh([U],n.prototype,"postConstruct",null),n}(Yr),Hh=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)}}(),Wh=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hh(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=ne.PINNED_TOP:this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=ne.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=ne.PINNED_BOTTOM,e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):r&&(t=ne.PINNED_TOP,e=r-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case ne.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ne.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 ne.PINNED_TOP:if(t.rowPinned!==ne.PINNED_TOP)return!0;break;case ne.PINNED_BOTTOM:if(t.rowPinned!==ne.PINNED_BOTTOM)return!1;break;default:if(n(t.rowPinned))return t.rowPinned!==ne.PINNED_TOP}return e.rowIndex<t.rowIndex},Wh([Y("rowModel")],t.prototype,"rowModel",void 0),Wh([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Wh([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Wh([K("rowPositionUtils")],t)}(Le),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)}}(),Uh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jh(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=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K("cellPositionUtils")],t)}(Le),zh=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){this.cellValueChanges=e},Yh=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.initialRange=n,o.finalRange=r,o}return zh(t,e),t}(Kh),qh=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}(),$h=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qh=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isFilling=!1,e.onCellValueChanged=function(t){var n={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},r=null!==e.activeCellEdit&&e.cellPositionUtils.equals(e.activeCellEdit,n),o=null!==e.activeRowEdit&&e.rowPositionUtils.sameRow(e.activeRowEdit,n);if(r||o||e.isPasting||e.isFilling){var i=t.rowPinned,s=t.rowIndex,a=t.column,l=t.oldValue,u=t.value,c={rowPinned:i,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};e.cellValueChanges.push(c)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return $h(n,t),n.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new qh(e),this.redoStack=new qh(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,He.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,He.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,He.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 Yh?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 Yh?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,s={rowIndex:r,rowPinned:o},a=n.getRowNode(s);a.displayed&&a.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 s=e[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a);n={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId},this.setLastFocusedCell(n)}},n.prototype.setLastFocusedCell=function(t){var n=t.rowIndex,r=t.columnId,o=t.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(r),re.isRegistered(e.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusService.setFocusedCell(n,r,o,!0)},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_ROW_EDITING_STARTED,(function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,He.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Kh(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null}))},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_CELL_EDITING_STARTED,(function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,He.EVENT_CELL_EDITING_STOPPED,(function(){if(e.activeCellEdit=null,!e.activeRowEdit&&!e.isPasting&&!e.isFilling){var t=new Kh(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,He.EVENT_PASTE_END,(function(){var t=new Kh(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_FILL_START,(function(){e.isFilling=!0})),this.addManagedListener(this.eventService,He.EVENT_FILL_END,(function(t){var n=new Yh(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 ne.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ne.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Xh([Y("focusService")],n.prototype,"focusService",void 0),Xh([Y("gridApi")],n.prototype,"gridApi",void 0),Xh([Y("rowModel")],n.prototype,"rowModel",void 0),Xh([Y("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Xh([Y("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),Xh([Y("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Xh([U],n.prototype,"init",null),n=Xh([K("undoRedoService")],n)}(Le),Zh=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)}}(),Jh=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ef=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Zh(n,t),n.prototype.findHeader=function(e,t){var n,r,o;if(e.column instanceof me?(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}},n.prototype.findColAtEdgeForHeaderRow=function(t,n){var r=this.columnModel.getAllDisplayedColumns(),o=r["start"===n?0:r.length-1];if(o){var i=this.ctrlsService.getHeaderRowContainerCtrl(o.getPinned()).getRowType(t);return i==e.HeaderRowType.COLUMN_GROUP?{headerRowIndex:t,column:this.columnModel.getColumnGroupAtLevel(o,t)}:{headerRowIndex:null==i?-1:t,column:o}}},Jh([Y("columnModel")],n.prototype,"columnModel",void 0),Jh([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),n=Jh([K("headerPositionUtils")],n)}(Le),tf=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var r=this,o=[],i={};return e.forEach((function(e){for(var s=!0,a=r.createDefFromColumn(e,t,n),l=e.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=i[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=r.createDefFromGroup(l))&&(u.children=[a],i[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&o.push(a)})),o},e.prototype.createDefFromGroup=function(e){var t=g(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var r=g(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=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K("columnDefFactory")],e)}(),nf=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rf=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return n(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"),ve(t,this.processClassesFromGridOptions(e.rowNode)),ve(t,this.preProcessRowClassRules(e.rowNode)),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===ne.PINNED_LEFT&&t.push("ag-cell-last-left-pinned"),e.pinned===ne.PINNED_RIGHT&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e){var t=[],n=function(e){"string"==typeof e?t.push(e):Array.isArray(e)&&e.forEach((function(e){return t.push(e)}))},r=this.gridOptionsWrapper.getRowClass();if(r){if("function"==typeof r)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(r)}var o=this.gridOptionsWrapper.getRowClassFunc();o&&n(o({data:e.data,node:e,rowIndex:e.rowIndex}));return t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,(function(e){t.push(e)}),(function(e){})),t},e.prototype.processRowClassRules=function(e,t,n){var r={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),r,t,n)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},nf([Y("stylingService")],e.prototype,"stylingService",void 0),nf([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=nf([K("rowCssClassCalculator")],e)}(),of=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sf=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,s=e.length;i<s;i++){var a=e[i],l=a.sort===ne.SORT_DESC,u=this.getValue(r,a.column),c=this.getValue(o,a.column),p=void 0,d=this.getComparator(a,r);if(p=d?d(u,c,r,o,l):Mr.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort()),!isNaN(p)&&0!==p)return a.sort===ne.SORT_ASC?p:-1*p}return t.currentPos-n.currentPos},e.prototype.getComparator=function(e,t){var n=e.column,r=n.getColDef().comparator;if(null!=r)return r;if(t.rowGroupColumn)return t.rowGroupColumn.getColDef().comparator;if(n.getColDef().showRowGroup){var o=!t.group&&n.getColDef().field;if(o){var i=this.columnModel.getPrimaryColumn(o);if(i)return i.getColDef().comparator}}},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e,!1,!1)},of([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),of([Y("valueService")],e.prototype,"valueService",void 0),of([Y("columnModel")],e.prototype,"columnModel",void 0),e=of([K("rowNodeSorter")],e)}(),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)}}(),lf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var n;return af(t,e),n=t,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.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,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,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollCtrl=function(e){this.fakeHScrollCtrl=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=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.registerHeaderContainer=function(e,t){switch(t){case ne.PINNED_LEFT:this.leftHeaderRowContainerCtrl=e;break;case ne.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=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.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},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.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case ne.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case ne.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=n=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K(n.NAME)],t)}(Le),uf=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)}}(),cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return uf(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=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}([K("ctrlsFactory")],t)}(Le),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)}}(),df=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hf=function(e){function t(){return e.call(this)||this}return pf(t,e),t.prototype.setComp=function(e,t,n,r){this.view=e,this.eViewport=n,this.eContainer=r,this.eGui=t,this.addManagedListener(this.eventService,He.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var o=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,o),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_DOM_LAYOUT,o),this.setFakeHScrollSpacerWidths(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()),this.ctrlsService.registerFakeHScrollCtrl(this)},t.prototype.addActiveListenerToggles=function(){var e=this;["mouseenter","mousedown","touchstart"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","mouseup","touchend"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},t.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=Vt()},t.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,He.EVENT_BODY_SCROLL,(function(t){"horizontal"===t.direction&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,He.EVENT_BODY_SCROLL_END,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},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=this.invisibleScrollbar,n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),r=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,o=n?0:0===r&&t?15:r;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",t),this.view.setHeight(o),this.view.setViewportHeight(o),this.view.setContainerHeight(o)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},df([Y("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),df([Y("columnModel")],t.prototype,"columnModel",void 0),df([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),df([U],t.prototype,"postConstruct",null),t}(Le),ff=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,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vf=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ff(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeight:function(t){return mn(e.getGui(),t)},setContainerHeight:function(t){return mn(e.eContainer,t)},setViewportHeight:function(t){return mn(e.eViewport,t)},setRightSpacerFixedWidth:function(t){return yn(e.eRightSpacer,t)},setLeftSpacerFixedWidth:function(t){return yn(e.eLeftSpacer,t)},includeLeftSpacerScrollerCss:function(t,n){return e.eLeftSpacer.classList.toggle(t,n)},includeRightSpacerScrollerCss:function(t,n){return e.eRightSpacer.classList.toggle(t,n)}};this.createManagedBean(new hf).setComp(t,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new wl((function(t){return e.eContainer.style.width=t+"px"})))},t.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',gf([qr("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),gf([qr("eRightSpacer")],t.prototype,"eRightSpacer",void 0),gf([qr("eViewport")],t.prototype,"eViewport",void 0),gf([qr("eContainer")],t.prototype,"eContainer",void 0),gf([U],t.prototype,"postConstruct",null),t}(Yr),yf=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)}}(),mf=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yf(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,He.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===ne.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:He.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:He.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},mf([Y("columnModel")],t.prototype,"columnModel",void 0),mf([U],t.prototype,"postConstruct",null),t=mf([K("pinnedWidthService")],t)}(Le),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)}}(),Ef=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return wf(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()==ne.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;if(null!=this.clientSideRowModel){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()}else this.eventService.dispatchEvent(e)},Ef([Y("animationFrameService")],t.prototype,"animationFrameService",void 0),Ef([Y("rowModel")],t.prototype,"rowModel",void 0),Ef([U],t.prototype,"postConstruct",null),t=Ef([K("rowNodeEventThrottle")],t)}(Le),Rf=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},_f=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Rf(arguments[t]));return e},Sf=function(){function e(e,t,n){t?(this.gridOptions=t,(new Of).create(e,t,(function(t){var n=new qd(e);t.createBean(n)}),void 0,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}(),Of=function(){function t(){}return t.prototype.create=function(t,n,r,o,i){var s=this,a=!!n.debug,l=this.getRegisteredModules(i),u=this.createBeansList(n.rowModelType,l),c=this.createProvidedBeans(t,n,i);if(u){var p={providedBeanInstances:c,beanClasses:u,debug:a},d=new Bd("AG Grid",(function(){return n.debug})),h=new Bd("Context",(function(){return p.debug})),f=new B(p,h),g=f.getBean("beans");this.registerModuleUserComponents(g,l),this.registerStackComponents(g,l),this.registerControllers(g,l),r(f),g.ctrlsService.whenReady((function(){s.setColumnsAndData(g),s.dispatchGridReadyEvent(g,n);var t=re.isRegistered(e.ModuleNames.EnterpriseCoreModule);d.log("initialised successfully, enterprise = "+t)})),o&&o(f)}},t.prototype.registerControllers=function(e,t){t.forEach((function(t){t.controllers&&t.controllers.forEach((function(t){return e.ctrlsFactory.register(t)}))}))},t.prototype.registerStackComponents=function(e,t){var n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)},t.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=re.getRegisteredModules(),r=[],o={};function i(e,t){var n;o[(n=t).moduleName]||(o[n.moduleName]=!0,r.push(n),re.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,!re.isPackageBased())),r},t.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)}))},t.prototype.createProvidedBeans=function(e,t,n){var o=n?n.frameworkOverrides:null;r(o)&&(o=new Cd);var i={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:o};return n&&n.providedBeanInstances&&Object.assign(i,n.providedBeanInstances),i},t.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:ku},{componentName:"AgRadioButton",componentClass:dp},{componentName:"AgToggleButton",componentClass:fp},{componentName:"AgInputTextField",componentClass:vp},{componentName:"AgInputTextArea",componentClass:mp},{componentName:"AgInputNumberField",componentClass:wp},{componentName:"AgInputRange",componentClass:bp},{componentName:"AgSelect",componentClass:So},{componentName:"AgSlider",componentClass:Sp},{componentName:"AgAngleSelect",componentClass:Tp},{componentName:"AgColorPicker",componentClass:Vp},{componentName:"AgGridBody",componentClass:Il},{componentName:"AgHeaderRoot",componentClass:yc},{componentName:"AgPagination",componentClass:Lh},{componentName:"AgOverlayWrapper",componentClass:Vh},{componentName:"AgGroupComponent",componentClass:Bp},{componentName:"AgPanel",componentClass:Fp},{componentName:"AgDialog",componentClass:Gp},{componentName:"AgRowContainer",componentClass:Jl},{componentName:"AgFakeHorizontalScroll",componentClass:vf}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},t.prototype.createBeansList=function(e,t){var n=this.getRowModelClass(e,t);if(n){var r=[n,La,Bh,Uh,ef,uh,Su,hs,mh,Eh,Ac,Fs,Dh,wc,Xc,Gs,at,te,ra,hd,Td,Ws,rt,dc,ap,jc,Ld,Ve,kd,Sd,Bl,dh,Md,Wd,it,kc,Rc,Bi,Dd,ad,kl,Ph,bd,Yc,cp,xl,Qd,eh,rh,Mh,sh,gh,Ic,Qh,gt,tf,rf,op,sf,lf,Cf,bf,cf],o=this.extractModuleEntity(t,(function(e){return e.beans?e.beans:[]}));r.push.apply(r,_f(o));var i=[];return r.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i}},t.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],_f(e.map(t)))},t.prototype.setColumnsAndData=function(e){var t=e.gridOptionsWrapper.getColumnDefs();e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},t.prototype.dispatchGridReadyEvent=function(e,t){var n={type:He.EVENT_GRID_READY,api:t.api,columnApi:t.columnApi};e.eventService.dispatchEvent(n)},t.prototype.getRowModelClass=function(t,r){t||(t=ne.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};r.forEach((function(e){h(e.rowModels,(function(e,t){o[e]=t}))}));var i=o[t];if(n(i))return i;re.isPackageBased()?[ne.ROW_MODEL_TYPE_VIEWPORT,ne.ROW_MODEL_TYPE_SERVER_SIDE].includes(t)?console.error('AG Grid: Row Model "'+t+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+t):t===ne.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+e.ModuleNames.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===ne.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+e.ModuleNames.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===ne.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+e.ModuleNames.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===ne.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+e.ModuleNames.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+t)},t}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var Pf,Tf=function(){function e(){}return e.prototype.wrap=function(e,t,n,r){var o=this;void 0===n&&(n=[]);var i=this.createWrapper(e,r);return t.forEach((function(e){o.createMethod(i,e,!0)})),n.forEach((function(e){o.createMethod(i,e,!1)})),i},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(Pf=e.BarColumnLabelPlacement||(e.BarColumnLabelPlacement={})).InsideBase="insideBase",Pf.InsideEnd="insideEnd",Pf.Center="center",Pf.OutsideEnd="outsideEnd";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var Af=void 0===a?{}:a;Af.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Af.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Af.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Af.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Af.Node="undefined"==typeof Node?{}:Node,Af.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var Df,Nf,If=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Mf=function(){function e(t,n,r,o,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.eventService=r,this.columnModel=o,this.gridApi=i,this.columnApi=s,this.beans=l,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return Mr.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var n=this;if("string"!=typeof t){var r=this.rootNode,o=this.rootNode.sibling;r.childrenAfterFilter=null,r.childrenAfterGroup=null,r.childrenAfterAggFilter=null,r.childrenAfterSort=null,r.childrenMapped=null,r.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?r.allLeafChildren=t.map((function(t){return n.createNode(t,n.rootNode,e.TOP_LEVEL)})):(r.allLeafChildren=[],r.childrenAfterGroup=[]),o&&(o.childrenAfterFilter=r.childrenAfterFilter,o.childrenAfterGroup=r.childrenAfterGroup,o.childrenAfterAggFilter=r.childrenAfterAggFilter,o.childrenAfterSort=r.childrenAfterSort,o.childrenMapped=r.childrenMapped,o.allLeafChildren=r.allLeafChildren)}else 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.updateRowData=function(e,t){var n={remove:[],update:[],add:[]},r=[];return this.executeRemove(e,n,r),this.executeUpdate(e,n,r),this.executeAdd(e,n),this.updateSelection(r),t&&Mr.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e){var t=e.length>0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),t){var n={type:He.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(!Mr.missingOrEmpty(o)){var s,a,l=o.map((function(t){return r.createNode(t,r.rootNode,e.TOP_LEVEL)}));if("number"==typeof i&&i>=0){var u=this.rootNode.allLeafChildren,c=0===i?0:u.reduce((function(e,t,n){var r,o=t.rowIndex,s=null===(r=u[e])||void 0===r?void 0:r.rowIndex;return null!=o&&null!=s&&o<i&&o>s?n:e}),0)+1;s=u.slice(0,c),a=u.slice(c,u.length)}else s=this.rootNode.allLeafChildren,a=[];this.rootNode.allLeafChildren=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(If(arguments[t]));return e}(s,l,a),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=l}},e.prototype.executeRemove=function(e,t,n){var r=this,o=e.remove;if(!Mr.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]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,n,r){var o=this,i=t.update;Mr.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.getRowIdFunc();if(n){var r=n({data:e,level:0});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=this.rootNode.allLeafChildren.find((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 getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,n){var r=new Fi(this.beans);return 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 getRowId 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<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Ff=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(Nf=Df||(Df={}))[Nf.Normal=0]="Normal",Nf[Nf.AfterFilter=1]="AfterFilter",Nf[Nf.AfterFilterAndSort=2]="AfterFilterAndSort",Nf[Nf.PivotNodes=3]="PivotNodes";var Lf=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Ff(n,t),n.prototype.init=function(){var t=this.refreshModel.bind(this,{step:e.ClientSideRowModelSteps.EVERYTHING}),n=!this.gridOptionsWrapper.isSuppressAnimationFrame(),r=this.refreshModel.bind(this,{step:e.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:n});this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,r),this.addManagedListener(this.eventService,He.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.addManagedListener(this.eventService,He.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:e.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,He.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_COLUMN_PIVOT_MODE_CHANGED,t);var o=this.refreshModel.bind(this,{step:e.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:n});this.addManagedListener(this.gridOptionsWrapper,ra.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.addManagedListener(this.gridOptionsWrapper,ra.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new Fi(this.beans),this.nodeManager=new Mf(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},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 s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,r),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(p);p.setRowHeight(d.height),o=!0,i=!0}}o&&this.setRowTopAndRowIndex()}while(o);return i},n.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),t=0,n=new Set,r=this.gridOptionsWrapper.getDomLayout()===ne.DOM_LAYOUT_NORMAL,o=0;o<this.rowsToDisplay.length;o++){var i=this.rowsToDisplay[o];if(null!=i.id&&n.add(i.id),null==i.rowHeight){var s=this.gridOptionsWrapper.getRowHeightForNode(i,r,e);i.setRowHeight(s.height,s.estimated)}i.setRowTop(t),i.setRowIndex(o),t+=i.rowHeight}return n},n.prototype.clearRowTopAndRowIndex=function(e,t){var n=e.isActive(),r=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},o=function(e){if(r(e),r(e.detailNode),r(e.sibling),e.hasChildren()&&e.childrenAfterGroup){var t=-1==e.level;n&&!t&&!e.expanded||e.childrenAfterGroup.forEach(o)}};o(this.rootNode)},n.prototype.ensureRowsAtPixel=function(t,n,r){var o=this;void 0===r&&(r=0);var i=this.getRowIndexAtPixel(n),s=this.getRow(i),a=!this.gridOptionsWrapper.isSuppressAnimationFrame();return s!==t[0]&&(t.forEach((function(e){Mr.removeFromArray(o.rootNode.allLeafChildren,e)})),t.forEach((function(e,t){Mr.insertIntoArray(o.rootNode.allLeafChildren,e,Math.max(i+r,0)+t)})),this.refreshModel({step:e.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:a}),!0)},n.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,r=null!=n?this.getRow(n):null;if(r&&e&&r!==e&&null!=t){var o=this.getHighlightPosition(t,r);this.lastHighlightedRow&&this.lastHighlightedRow!==r&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),r.setHighlighted(o),this.lastHighlightedRow=r}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},n.prototype.getHighlightPosition=function(t,n){if(!n){var r=this.getRowIndexAtPixel(t);if(!(n=this.getRow(r||0)))return e.RowHighlightPosition.Below}return t-n.rowTop<n.rowHeight/2?e.RowHighlightPosition.Above:e.RowHighlightPosition.Below},n.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},n.prototype.isLastRowIndexKnown=function(){return!0},n.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},n.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},n.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},n.prototype.getRowBounds=function(e){if(Mr.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},n.prototype.onRowGroupOpened=function(){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:e.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:t})},n.prototype.onFilterChanged=function(t){if(!t.afterDataChange){var n=this.gridOptionsWrapper.isAnimateRows(),r=0===t.columns.length||t.columns.some((function(e){return e.isPrimary()}))?e.ClientSideRowModelSteps.FILTER:e.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:r,keepRenderedRows:!0,animate:n})}},n.prototype.onSortChanged=function(){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:e.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:t,keepEditingRows:!0})},n.prototype.getType=function(){return ne.ROW_MODEL_TYPE_CLIENT_SIDE},n.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:e.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:e.ClientSideRowModelSteps.AGGREGATE})},n.prototype.createChangePath=function(e){var t=Mr.missingOrEmpty(e),n=new Jc(!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=e.rowNodeTransactions.filter((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(t){if(!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var n=this.createChangePath(t.rowNodeTransactions);switch(t.step){case e.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,n,!!t.afterColumnsChanged);case e.ClientSideRowModelSteps.FILTER:this.doFilter(n);case e.ClientSideRowModelSteps.PIVOT:this.doPivot(n);case e.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(n);case e.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(n);case e.ClientSideRowModelSteps.SORT:this.doSort(t.rowNodeTransactions,n);case e.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var r=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,r);var o={type:He.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1};this.eventService.dispatchEvent(o)}},n.prototype.isEmpty=function(){var e=Mr.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Mr.missing(this.rootNode)||e||!this.columnModel.isReady()},n.prototype.isRowsToRender=function(){return Mr.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},n.prototype.getNodesInRangeForSelection=function(e,t){var n,r=!t,o=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=r&&!o;if(r||a!==t&&a!==e||(r=!0),!(a.group&&s)){var u=r&&!o,c=a.isParentOfNode(n);(u||c)&&i.push(a)}l&&(a!==t&&a!==e||(o=!0,n=a===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(Mr.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.rowTop<e?t=r+1:o.rowTop>e&&(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,Df.Normal,0)},n.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,e,Df.AfterFilter,0)},n.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Df.AfterFilterAndSort,0)},n.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Df.PivotNodes,0)},n.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,r){if(!e)return r;for(var o=0;o<e.length;o++){var i=e[o];if(t(i,r++),i.hasChildren()){var s=null;switch(n){case Df.Normal:s=i.childrenAfterGroup;break;case Df.AfterFilter:s=i.childrenAfterAggFilter;break;case Df.AfterFilterAndSort:s=i.childrenAfterSort;break;case Df.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(r=this.recursivelyWalkNodesAndCallback(s,t,n,r))}}return r},n.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},n.prototype.expandOrCollapseAll=function(t){var n=this.gridOptionsWrapper.isTreeData(),r=this.columnModel.isPivotActive(),o=function(e){e&&e.forEach((function(e){var i=function(){e.expanded=t,o(e.childrenAfterGroup)};n?Mr.exists(e.childrenAfterGroup)&&i():r?!e.leafGroup&&i():e.group&&i()}))};this.rootNode&&o(this.rootNode.childrenAfterGroup),this.refreshModel({step:e.ClientSideRowModelSteps.MAP});var i=t?"expandAll":"collapseAll",s={api:this.gridApi,columnApi:this.columnApi,type:He.EVENT_EXPAND_COLLAPSE_ALL,source:i};this.eventService.dispatchEvent(s)},n.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},n.prototype.doRowGrouping=function(e,t,n,r,o){this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:r}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:r,afterColumnsChanged:o}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(r)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},n.prototype.restoreGroupState=function(e){e&&Mr.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"==typeof e[n]&&(t.expanded=e[n])}))},n.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return Mr.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},n.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},n.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(Fi.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode((function(n){n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)},n.prototype.setRowData=function(t){var n=this.getGroupState();this.nodeManager.setRowData(t),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var r={type:He.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r),this.refreshModel({step:e.ClientSideRowModelSteps.EVERYTHING,groupState:n,newData:!0})},n.prototype.batchUpdateRowData=function(e,t){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var r=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){n.executeBatchUpdateRowData()}),r)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},n.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},n.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[],r=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(o){var i=e.nodeManager.updateRowData(o.rowDataTransaction,void 0);n.push(i),o.callback&&t.push(o.callback.bind(null,i)),"number"==typeof o.rowDataTransaction.addIndex&&(r=!0)})),this.commonUpdateRowData(n,void 0,r),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),n.length>0){var o={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:He.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<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}},n.prototype.commonUpdateRowData=function(t,n,r){var o=!this.gridOptionsWrapper.isSuppressAnimationFrame();r&&(n=this.createRowNodeOrder()),this.refreshModel({step:e.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:t,rowNodeOrder:n,keepRenderedRows:!0,keepEditingRows:!0,animate:o});var i={type:He.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},n.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},n.prototype.onRowHeightChanged=function(){this.refreshModel({step:e.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},n.prototype.resetRowHeights=function(){var e=!1;this.forEachNode((function(t){t.setRowHeight(t.rowHeight,!0);var n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),e=!0})),e&&this.onRowHeightChanged()},xf([Y("columnModel")],n.prototype,"columnModel",void 0),xf([Y("selectionService")],n.prototype,"selectionService",void 0),xf([Y("filterManager")],n.prototype,"filterManager",void 0),xf([Y("valueCache")],n.prototype,"valueCache",void 0),xf([Y("columnApi")],n.prototype,"columnApi",void 0),xf([Y("gridApi")],n.prototype,"gridApi",void 0),xf([Y("animationFrameService")],n.prototype,"animationFrameService",void 0),xf([Y("beans")],n.prototype,"beans",void 0),xf([Y("filterStage")],n.prototype,"filterStage",void 0),xf([Y("sortStage")],n.prototype,"sortStage",void 0),xf([Y("flattenStage")],n.prototype,"flattenStage",void 0),xf([q("groupStage")],n.prototype,"groupStage",void 0),xf([q("aggregationStage")],n.prototype,"aggregationStage",void 0),xf([q("pivotStage")],n.prototype,"pivotStage",void 0),xf([q("filterAggregatesStage")],n.prototype,"filterAggregatesStage",void 0),xf([U],n.prototype,"init",null),n=xf([K("rowModel")],n)}(Le),Gf=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gf(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},kf([Y("filterService")],t.prototype,"filterService",void 0),t=kf([K("filterStage")],t)}(Le),Hf=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)}}(),Wf=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hf(t,e),t.prototype.execute=function(e){var t=this.sortController.getSortOptions(),n=Mr.exists(t)&&t.length>0,r=n&&Mr.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),o=t.some((function(e){return!!e.column.getColDef().showRowGroup}));this.sortService.sort(t,n,r,e.rowNodeTransactions,e.changedPath,o)},Wf([Y("sortService")],t.prototype,"sortService",void 0),Wf([Y("sortController")],t.prototype,"sortController",void 0),Wf([Y("columnModel")],t.prototype,"columnModel",void 0),t=Wf([K("sortStage")],t)}(Le),jf=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jf(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],r={value:0},o=this.columnModel.isPivotMode(),i=o&&t.leafGroup,s=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,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(!Mr.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=0;l<e.length;l++){var u=e[l],c=u.hasChildren(),p=r&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=r&&u.leafGroup,g=i&&u.expanded&&!u.master&&!f;if(!(p||g||d||h)&&this.addRowNodeToRowsToDisplay(u,t,n,o),!r||!u.leafGroup)if(c){var v=d||h;if(u.expanded||v){var y=v?o:o+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,n,r,y),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,n,o))}}else if(u.master&&u.expanded){var m=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(m,t,n,o)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,r){var o=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(o?0:r)},t.prototype.ensureFooterNodeExists=function(e){if(!Mr.exists(e.sibling)){var t=new Fi(this.beans);Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,Mr.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},t.prototype.createDetailNode=function(e){if(Mr.exists(e.detailNode))return e.detailNode;var t=new Fi(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Mr.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},Uf([Y("columnModel")],t.prototype,"columnModel",void 0),Uf([Y("beans")],t.prototype,"beans",void 0),t=Uf([K("flattenStage")],t)}(Le),Kf=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kf(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,n,r,o,i){var s=this,a=this.gridOptionsWrapper.isGroupMaintainOrder(),l=this.columnModel.getAllGridColumns().some((function(e){return e.isRowGroupActive()})),u={};n&&r&&(u=this.calculateDirtyNodes(r));var c=this.columnModel.isPivotMode();o&&o.forEachChangedNodeDepthFirst((function(r){s.pullDownGroupDataForHideOpenParents(r.childrenAfterAggFilter,!0);var p=c&&r.leafGroup,d=a&&l&&!r.leafGroup&&!i;if(!t||d||p){var h=r.childrenAfterAggFilter.slice(0);if(a&&r.childrenAfterSort){var f=r.childrenAfterSort.reduce((function(e,t,n){return e[t.id]=n,e}),{});h.sort((function(e,t){return(f[e.id]||0)-(f[t.id]||0)}))}r.childrenAfterSort=h}else r.childrenAfterSort=n?s.doDeltaSort(r,u,o,e):s.rowNodeSorter.doFullSort(r.childrenAfterAggFilter,e);if(r.sibling&&(r.sibling.childrenAfterSort=r.childrenAfterSort),s.updateChildIndexes(r),s.postSortFunc){var g={nodes:r.childrenAfterSort};s.postSortFunc(g)}})),this.updateGroupDataForHideOpenParents(o)},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},t.prototype.doDeltaSort=function(e,t,n,r){var o=this,i=e.childrenAfterAggFilter,s=e.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(i,r);var a={},l=[];i.forEach((function(e){t[e.id]||!n.canSkip(e)?l.push(e):a[e.id]=!0}));var u=s.filter((function(e){return a[e.id]})),c=function(e,t){return{currentPos:t,rowNode:e}},p=l.map(c).sort((function(e,t){return o.rowNodeSorter.compareRowNodes(r,e,t)}));return this.mergeSortedArrays(r,p,u.map(c)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,n){for(var r=[],o=0,i=0;o<t.length&&i<n.length;){this.rowNodeSorter.compareRowNodes(e,t[o],n[i])<0?r.push(t[o++]):r.push(n[i++])}for(;o<t.length;)r.push(t[o++]);for(;i<n.length;)r.push(n[i++]);return r},t.prototype.updateChildIndexes=function(e){if(!Mr.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var r=t[n],o=0===n,i=n===e.childrenAfterSort.length-1;r.setFirstChild(o),r.setLastChild(i),r.setChildIndex(n)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){return Mr.doOnce((function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")}),"sortService.hideOpenParentsWithTreeData"),!1}var n=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&n(e)}))};e&&e.executeFromRootNode((function(e){return n(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!Mr.missing(e)&&e.forEach((function(e){n.columnModel.getGroupDisplayColumns().forEach((function(r){var o=r.getColDef().showRowGroup;if("string"==typeof o){var i=o,s=n.columnModel.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(r.getId(),void 0);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(r.getId(),a.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Yf([Y("columnModel")],t.prototype,"columnModel",void 0),Yf([Y("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Yf([U],t.prototype,"init",null),t=Yf([K("sortService")],t)}(Le),$f=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,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $f(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent();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:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var o=function(e,t){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var s=e.childrenAfterGroup[i],a=t||n.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?o(e.childrenAfterGroup[i],a):r(s,a)}r(e,t)};t.executeFromRootNode((function(e){return o(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return r(e,!1)}),!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Xf([Y("filterManager")],t.prototype,"filterManager",void 0),t=Xf([K("filterService")],t)}(Le),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)}}(),Jf=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},eg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zf(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===ne.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}(t,2),r=n[0],o=n[1],i=this.clientSideRowModel.updateRowData(r,o);i&&this.rowRenderer.refreshFullWidthRows(i.update);var s={type:He.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}},t.prototype.createTransactionForRowData=function(e){if(Mr.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowIdFunc();if(null!=t){var n={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),o=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?void 0:{};return Mr.exists(e)&&e.forEach((function(e,i){var s=t({data:e,level:0}),a=r[s];(o&&(o[s]=i),a)?(a.data!==e&&n.update.push(e),r[s]=void 0):n.add.push(e)})),Mr.iterateObject(r,(function(e,t){t&&n.remove.push(t.data)})),[n,o]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Jf([Y("rowModel")],t.prototype,"rowModel",void 0),Jf([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),Jf([Y("columnApi")],t.prototype,"columnApi",void 0),Jf([Y("gridApi")],t.prototype,"gridApi",void 0),Jf([U],t.prototype,"postConstruct",null),t=Jf([K("immutableService")],t)}(Le),tg={moduleName:e.ModuleNames.ClientSideRowModelModule,beans:[Vf,Bf,zf,qf,Qf,eg],rowModels:{clientSide:Lf}},ng=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)}}(),rg=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},og=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 ng(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){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),Mr.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();Mr.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<n&&e(o,t.next())}))},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,n=new Fi(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach((function(n,r){var o=e.rowData?e.rowData[r]:void 0;t.setDataAndId(n,o,t.startRow+r)}));var n=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},rg([Y("beans")],t.prototype,"beans",void 0),rg([U],t.prototype,"postConstruct",null),rg([z],t.prototype,"destroyRowNodes",null),t}(tp),ig=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)}}(),sg=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ag=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}var n,r;return ig(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 og(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,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach((function(e,t){if(e.getState()===og.STATE_WAITING_TO_LOAD&&t>=s||!!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<r},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,Mr.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,n=new Fr;this.getBlocksInOrder().forEach((function(r){return r.forEachNode(e,n,t.rowCount)}))},t.prototype.getBlocksInOrder=function(){return Mr.getAllValuesInObject(this.blocks).sort((function(e,t){return e.getId()-t.getId()}))},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:He.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach((function(n){n.getId()*e.params.blockSize>=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,s=new Fr;Mr.missing(e)&&(i=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(i&&o+1!==l.getId()?a=!0:(o=l.getId(),l.forEachNode((function(n){var o=n===e||n===t;(i||o)&&r.push(n),o&&(i=!i)}),s,n.rowCount)))})),a||i?[]:r},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,sg([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),sg([Y("focusService")],t.prototype,"focusService",void 0),sg([(n=0,r=X("loggerFactory"),function(e,t){r(e,t,n)})],t.prototype,"setBeans",null),sg([z],t.prototype,"destroyAllBlocks",null),t}(Le),lg=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)}}(),ug=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},cg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lg(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.getInitialGroupOrderComparator()){Mr.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator 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.InitialGroupOrderComparator")}},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,He.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,He.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,He.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!Mr.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return ne.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){null!=this.gridOptionsWrapper.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:He.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,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 Fr},this.infiniteCache=this.createBean(new ag(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;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)},ug([Y("filterManager")],t.prototype,"filterManager",void 0),ug([Y("sortController")],t.prototype,"sortController",void 0),ug([Y("selectionService")],t.prototype,"selectionService",void 0),ug([Y("gridApi")],t.prototype,"gridApi",void 0),ug([Y("columnApi")],t.prototype,"columnApi",void 0),ug([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),ug([Y("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),ug([U],t.prototype,"init",null),ug([z],t.prototype,"destroyDatasource",null),t=ug([K("rowModel")],t)}(Le),pg={moduleName:e.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:cg}},dg=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.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),hg=function(){function e(e){this.groupColumns=[];var t=e.columnModel,n=e.valueService,r=e.gridOptionsWrapper,o=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnModel=t,this.valueService=n,this.gridOptionsWrapper=r,this.processCellCallback=o,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.groupColumns=e.filter((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,s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?o.rowGroupIndex:0;i=o&&o.group&&(t===s&&-1!==this.groupColumns.indexOf(e)||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode()))?this.createValueForGroupNode(o):this.valueService.getValue(e,o);var a=this.processCell(n,o,e,i,this.processCellCallback,r);return null!=a?a:""},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}(),fg=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n){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}(),gg=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)}}(),vg=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 gg(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,ne.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: 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}(hg),yg=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)}}(),mg=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yg(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},t,e)},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.getMergedParams(e),n=this.getData(t),r=new Blob(["\ufeff",n],{type:"text/plain"});return fg.download(this.getFileName(t.fileName),r),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){var t=this.getMergedParams(e);return this.getData(t)},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,s=i.processCellCallback,a=i.processHeaderCallback,l=i.processGroupHeaderCallback,u=i.processRowGroupCallback,c=i.suppressQuotes,p=i.columnSeparator;return new vg({columnModel:n,valueService:r,gridOptionsWrapper:o,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},mg([Y("columnModel")],t.prototype,"columnModel",void 0),mg([Y("valueService")],t.prototype,"valueService",void 0),mg([Y("gridSerializer")],t.prototype,"gridSerializer",void 0),mg([Y("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),mg([U],t.prototype,"postConstruct",null),t=mg([K("csvCreator")],t)}(dg),wg=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)}}(),Eg=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(e.RowType||(e.RowType={}));var bg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wg(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return Mr.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=this,i=t.shouldRowBeSkipped||function(){return!1},s=this.gridOptionsWrapper,a=s.getContext(),l=s.getApi(),u=s.getColumnApi(),c=s.isGroupRemoveSingleChildren(),p=s.isGroupHideOpenParents(),d=s.isGroupRemoveLowestSingleChildren(),h=this.columnModel.isPivotMode()?r.leafGroup:!r.group,f=t.skipGroups||t.skipRowGroups,g=d&&r.leafGroup,v=1===r.allChildrenCount&&(c||g);f&&t.skipGroups&&Mr.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups");var y={rowIndex:r.rowIndex,rowPinned:r.rowPinned};if(!(!h&&(t.skipRowGroups||v||p)||t.onlySelected&&!r.isSelected()||t.rowNodes&&!t.rowNodes.some((function(e){return o.rowPositionUtils.sameRow(e,y)}))||t.skipPinnedTop&&"top"===r.rowPinned||t.skipPinnedBottom&&"bottom"===r.rowPinned)&&((!(-1===r.level)||r.leafGroup)&&!i({node:r,api:l,columnApi:u,context:a}))){var m=e.onNewBodyRow();if(n.forEach((function(e,t){m.onColumn(e,t,r)})),t.getCustomContentBelowRow){var C=t.getCustomContentBelowRow({node:r,api:l,columnApi:u,context:a});C&&e.addCustomContent(C)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&Mr.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&&Mr.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&&Mr.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 We,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&&Mr.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(),s=i===ne.ROW_MODEL_TYPE_CLIENT_SIDE,a=i===ne.ROW_MODEL_TYPE_SERVER_SIDE,l=!s&&e.onlySelected,u=n.processRow.bind(n,r,e,t);n.columnModel.isPivotMode()?s?o.forEachPivotNode(u):o.forEachNode(u):e.onlySelectedAllPages||l?n.selectionService.getSelectedNodes().forEach(u):s||a?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([ne.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 me&&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,s=e;t=n?n({columnGroup:s,api:r.gridOptionsWrapper.getApi(),columnApi:r.gridOptionsWrapper.getColumnApi(),context:r.gridOptionsWrapper.getContext()}):r.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,n,r){var o=Mr.last(e);return"open"===t.getColumnGroupShow()?o&&null==o[1]||(o=[n],e.push(o)):o&&null==o[1]&&(o[1]=n-1),n===r.length-1&&o&&null==o[1]&&(o[1]=n),e}),[]);o.onColumn(t||"",i++,s.getLeafColumns().length-1,a)}))},Eg([Y("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Eg([Y("columnModel")],t.prototype,"columnModel",void 0),Eg([Y("rowModel")],t.prototype,"rowModel",void 0),Eg([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Eg([Y("selectionService")],t.prototype,"selectionService",void 0),Eg([Y("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),t=Eg([K("gridSerializer")],t)}(Le),Rg={moduleName:e.ModuleNames.CsvExportModule,beans:[Cg,bg]},_g="\r\n",Sg=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"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},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+"</"+e.name+">"+_g:(o+=">\r\n",e.children&&e.children.forEach((function(e){o+=n.createXml(e,t)})),o+"</"+e.name+">"+_g):o+"/>"+_g},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}(),Og=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]),Pg=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){var t,n;void 0===e&&(e="");var r=this.folders.concat(this.files),o=r.length,i="",s=0,a=0;try{for(var l=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,e+=d+f,i+=h}}catch(g){t={error:g}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(o,a,s)},e.getHeader=function(e,t){var n=e.content,r=e.path,o=e.created,i=e.isBase64,s=Mr.utf8_encode,a=Mr.decToHex,l=s(r),u=l!==r,c=this.convertTime(o),p=this.convertDate(o),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=n?this.getConvertedContent(n,i):{size:0,content:""},g=f.size,v=f.content,y="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(v):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK"+y+l+d,folderHeader:"PK\0"+y+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\0\0\0")+a(t,4)+l+d,content:v||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,n){var r=Mr.decToHex;return"PK\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);var o=-1,i=0;for(r=0;r<t;r++)i=n[r],o=o>>>8^Og[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}();re.register(tg,!1),re.register(pg,!1),re.register(Rg,!1),e.AbstractHeaderCellCtrl=Eu,e.AgAbstractField=yo,e.AgAngleSelect=Tp,e.AgCheckbox=ku,e.AgColorPicker=Vp,e.AgDialog=Gp,e.AgGroupComponent=Bp,e.AgInputNumberField=wp,e.AgInputRange=bp,e.AgInputTextArea=mp,e.AgInputTextField=vp,e.AgMenuItemComponent=rd,e.AgMenuList=Zp,e.AgMenuPanel=ed,e.AgPanel=Fp,e.AgPromise=Gr,e.AgRadioButton=dp,e.AgSelect=So,e.AgSlider=Sp,e.AgStackComponentsRegistry=gt,e.AgToggleButton=fp,e.AlignedGridsService=Sd,e.AnimateShowChangeCellRenderer=Ti,e.AnimateSlideCellRenderer=Di,e.AnimationFrameService=Ic,e.AutoScrollService=pa,e.AutoWidthCalculator=kc,e.Autowired=Y,e.BaseComponentWrapper=Tf,e.BaseCreator=dg,e.BaseGridSerializingSession=hg,e.Bean=K,e.BeanStub=Le,e.Beans=La,e.BodyDropPivotTarget=tu,e.BodyDropTarget=su,e.CellComp=Kl,e.CellCtrl=Ya,e.CellNavigationService=bd,e.CellPositionUtils=Uh,e.ChangedPath=Jc,e.CheckboxSelectionComponent=Gi,e.ColDefUtil=yt,e.Color=Ct,e.Column=se,e.ColumnApi=Dd,e.ColumnFactory=Ve,e.ColumnGroup=me,e.ColumnKeyCreator=d,e.ColumnModel=rt,e.ColumnUtils=it,e.Component=Yr,e.ComponentUtil=ht,e.Constants=ne,e.Context=B,e.CssClassApplier=lu,e.CssClassManager=Kr,e.CsvCreator=Cg,e.CsvExportModule=Rg,e.CtrlsService=lf,e.CustomTooltipFeature=Br,e.DateFilter=Vo,e.DisplayedGroupCreator=at,e.Downloader=fg,e.DragAndDropService=Bi,e.DragService=Gs,e.Environment=Ph,e.EventService=te,e.Events=He,e.ExpressionService=Ld,e.FilterManager=Ws,e.FloatingFilterMapper=Ns,e.FocusService=ad,e.Grid=Sf,e.GridApi=Su,e.GridBodyComp=Il,e.GridBodyCtrl=_a,e.GridComp=qd,e.GridCoreCreator=Of,e.GridCtrl=zd,e.GridHeaderComp=yc,e.GridHeaderCtrl=gc,e.GridOptionsWrapper=ra,e.GridSerializer=bg,e.GroupCellRenderer=ts,e.GroupCellRendererCtrl=Zi,e.GroupInstanceIdCreator=We,e.HeaderCellCtrl=Uu,e.HeaderFilterCellComp=Ks,e.HeaderFilterCellCtrl=Mu,e.HeaderGroupCellCtrl=Zu,e.HeaderNavigationService=dc,e.HeaderPositionUtils=ef,e.HeaderRowComp=mu,e.HeaderRowContainerComp=uc,e.HeaderRowContainerCtrl=sc,e.HeaderRowCtrl=nc,e.HorizontalResizeService=wc,e.KeyCode=io,e.LargeTextCellEditor=yi,e.Logger=Bd,e.LoggerFactory=Wd,e.ManagedFocusFeature=uo,e.ModuleRegistry=re,e.MouseEventService=kl,e.MoveColumnFeature=ru,e.NavigationService=Bl,e.NumberFilter=$o,e.NumberSequence=Fr,e.Optional=q,e.PaginationProxy=ap,e.PinnedRowModel=Xc,e.PopupComponent=gi,e.PopupEditorWrapper=Ul,e.PopupSelectCellEditor=bi,e.PopupService=hd,e.PopupTextCellEditor=Oi,e.PositionableFeature=xc,e.PostConstruct=U,e.PreConstruct=j,e.PreDestroy=z,e.PropertyKeys=ut,e.ProvidedColumnGroup=Ce,e.ProvidedFilter=ho,e.Qualifier=X,e.QuerySelector=
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function(e){return $r.bind(this,e,void 0)},e.RefSelector=qr,e.ResizeObserverService=Ac,e.RowContainerComp=Jl,e.RowContainerCtrl=Tl,e.RowCtrl=Ja,e.RowNode=Fi,e.RowNodeBlock=tp,e.RowNodeBlockLoader=op,e.RowNodeSorter=sf,e.RowPositionUtils=Bh,e.RowRenderer=jc,e.ScalarFilter=Fo,e.ScrollVisibleService=xl,e.SelectCellEditor=wi,e.SelectableService=Mh,e.SelectionService=Td,e.SetLeftFeature=Pu,e.SimpleFilter=Io,e.SortController=Qd,e.StandardMenuFactory=Rc,e.StylingService=cp,e.TabGuardComp=qp,e.TabGuardCtrl=zp,e.TabbedLayout=Oc,e.TemplateService=kd,e.TextCellEditor=_i,e.TextFilter=Jo,e.TextFloatingFilter=si,e.Timer=kr,e.TouchListener=ai,e.UserComponentFactory=Fs,e.UserComponentRegistry=hs,e.ValueCache=dh,e.ValueFormatterService=Yc,e.ValueService=Md,e.VanillaFrameworkOverrides=Cd,e.VirtualList=vd,e.XmlFactory=Sg,e.ZipContainer=Pg,e._=Mr,e.defaultGroupComparator=
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function(e,t,r,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 s=n(r)&&r.group,a=n(o)&&o.group,l=!s&&!a;return s&&a?u(r.key,o.key,i):l?u(e,t,i):s?1:-1},e.getRowContainerTypeForName=_l,e.simpleHttpRequest=
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
||
* @version v27.3.0
|
||
* @link https://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function(e){return new Gr((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))}}))},e.stringToArray=wt}(Av);var Dv={exports:{}};function Nv(){}function Iv(){}Iv.resetWarningCache=Nv;Dv.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Iv,resetWarningCache:Nv};return n.PropTypes=n,n}();var Mv,Fv={},xv={},Lv=a&&a.__extends||(Mv=function(e,t){return(Mv=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])})(e,t)},function(e,t){function n(){this.constructor=e}Mv(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(xv,"__esModule",{value:!0});var Gv=function(e){function t(t,n,r){var o=e.call(this)||this;return o.portal=null,o.reactComponent=t,o.portalManager=n,o.componentType=r,o.statelessComponent=o.isStateless(o.reactComponent),o}return Lv(t,e),t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return e.eParentElement.classList.add(t)})))},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||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(){}));xv.ReactComponent=Gv;var kv={},Vv={},Hv=l.exports;function Wv(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Bv=Object.prototype.hasOwnProperty,jv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Uv={},zv={};function Kv(e){return!!Bv.call(zv,e)||!Bv.call(Uv,e)&&(jv.test(e)?zv[e]=!0:(Uv[e]=!0,!1))}function Yv(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var qv={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){qv[e]=new Yv(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];qv[t]=new Yv(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){qv[e]=new Yv(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){qv[e]=new Yv(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){qv[e]=new Yv(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){qv[e]=new Yv(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){qv[e]=new Yv(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){qv[e]=new Yv(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){qv[e]=new Yv(e,5,!1,e.toLowerCase(),null,!1,!1)}));var $v=/[\-:]([a-z])/g;function Xv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($v,Xv);qv[t]=new Yv(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($v,Xv);qv[t]=new Yv(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($v,Xv);qv[t]=new Yv(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){qv[e]=new Yv(e,1,!1,e.toLowerCase(),null,!1,!1)})),qv.xlinkHref=new Yv("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){qv[e]=new Yv(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Qv={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zv=["Webkit","ms","Moz","O"];Object.keys(Qv).forEach((function(e){Zv.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qv[t]=Qv[e]}))}));var Jv=/["'&<>]/;function ey(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=Jv.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var ty=/([A-Z])/g,ny=/^ms-/,ry=Array.isArray;function oy(e,t){return{insertionMode:e,selectedValue:t}}var iy=new Map;function sy(e,t,n){if("object"!=typeof n)throw Error(Wv(62));for(var r in t=!0,n)if(Bv.call(n,r)){var o=n[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var i=ey(r);o=ey((""+o).trim())}else{i=r;var s=iy.get(i);void 0!==s||(s=ey(i.replace(ty,"-$1").toLowerCase().replace(ny,"-ms-")),iy.set(i,s)),i=s,o="number"==typeof o?0===o||Bv.call(Qv,r)?""+o:o+"px":ey((""+o).trim())}t?(t=!1,e.push(' style="',i,":",o)):e.push(";",i,":",o)}}t||e.push('"')}function ay(e,t,n,r){switch(n){case"style":return void sy(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=qv.hasOwnProperty(n)?qv[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',ey(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',ey(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',ey(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',ey(r),'"')}}else if(Kv(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',ey(r),'"')}}function ly(e,t,n){if(null!=t){if(null!=n)throw Error(Wv(60));if("object"!=typeof t||!("__html"in t))throw Error(Wv(61));null!=(t=t.__html)&&e.push(""+t)}}function uy(e,t,n,r){e.push(dy(n));var o,i=n=null;for(o in t)if(Bv.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:ay(e,r,o,s)}}return e.push(">"),ly(e,i,n),"string"==typeof n?(e.push(ey(n)),null):n}var cy=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,py=new Map;function dy(e){var t=py.get(e);if(void 0===t){if(!cy.test(e))throw Error(Wv(65,e));t="<"+e,py.set(e,t)}return t}function hy(e,t,n,r,o){switch(t){case"select":e.push(dy("select"));var i=null,s=null;for(c in n)if(Bv.call(n,c)){var a=n[c];if(null!=a)switch(c){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:ay(e,r,c,a)}}return e.push(">"),ly(e,s,i),i;case"option":s=o.selectedValue,e.push(dy("option"));var l=a=null,u=null,c=null;for(i in n)if(Bv.call(n,i)){var p=n[i];if(null!=p)switch(i){case"children":a=p;break;case"selected":u=p;break;case"dangerouslySetInnerHTML":c=p;break;case"value":l=p;default:ay(e,r,i,p)}}if(null!=s)if(n=null!==l?""+l:function(e){var t="";return Hv.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(a),ry(s)){for(r=0;r<s.length;r++)if(""+s[r]===n){e.push(' selected=""');break}}else""+s===n&&e.push(' selected=""');else u&&e.push(' selected=""');return e.push(">"),ly(e,c,a),a;case"textarea":for(a in e.push(dy("textarea")),c=s=i=null,n)if(Bv.call(n,a)&&null!=(l=n[a]))switch(a){case"children":c=l;break;case"value":i=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(Wv(91));default:ay(e,r,a,l)}if(null===i&&null!==s&&(i=s),e.push(">"),null!=c){if(null!=i)throw Error(Wv(92));if(ry(c)&&1<c.length)throw Error(Wv(93));i=""+c}return"string"==typeof i&&"\n"===i[0]&&e.push("\n"),null!==i&&e.push(ey(""+i)),null;case"input":for(s in e.push(dy("input")),l=c=a=i=null,n)if(Bv.call(n,s)&&null!=(u=n[s]))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(Wv(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":c=u;break;case"value":i=u;break;default:ay(e,r,s,u)}return null!==c?ay(e,r,"checked",c):null!==l&&ay(e,r,"checked",l),null!==i?ay(e,r,"value",i):null!==a&&ay(e,r,"value",a),e.push("/>"),null;case"menuitem":for(var d in e.push(dy("menuitem")),n)if(Bv.call(n,d)&&null!=(i=n[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(Wv(400));default:ay(e,r,d,i)}return e.push(">"),null;case"title":for(p in e.push(dy("title")),i=null,n)if(Bv.call(n,p)&&null!=(s=n[p]))switch(p){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(Wv(434));default:ay(e,r,p,s)}return e.push(">"),i;case"listing":case"pre":for(l in e.push(dy(t)),s=i=null,n)if(Bv.call(n,l)&&null!=(a=n[l]))switch(l){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;default:ay(e,r,l,a)}if(e.push(">"),null!=s){if(null!=i)throw Error(Wv(60));if("object"!=typeof s||!("__html"in s))throw Error(Wv(61));null!=(n=s.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof i&&"\n"===i[0]&&e.push("\n"),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var h in e.push(dy(t)),n)if(Bv.call(n,h)&&null!=(i=n[h]))switch(h){case"children":case"dangerouslySetInnerHTML":throw Error(Wv(399,t));default:ay(e,r,h,i)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return uy(e,n,t,r);case"html":return 0===o.insertionMode&&e.push("<!DOCTYPE html>"),uy(e,n,t,r);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return uy(e,n,t,r);for(u in e.push(dy(t)),s=i=null,n)if(Bv.call(n,u)&&null!=(a=n[u]))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":sy(e,r,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Kv(u)&&"function"!=typeof a&&"symbol"!=typeof a&&e.push(" ",u,'="',ey(a),'"')}return e.push(">"),ly(e,s,i),i}}function fy(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(Wv(395));return e.push(n),e.push('"></template>')}var gy=/[<\u2028\u2029]/g;function vy(e){return JSON.stringify(e).replace(gy,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function yy(e,t,n,r){return n.generateStaticMarkup?(e.push(ey(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(ey(t)),e=!0),e)}var my=Object.assign,Cy=Symbol.for("react.element"),wy=Symbol.for("react.portal"),Ey=Symbol.for("react.fragment"),by=Symbol.for("react.strict_mode"),Ry=Symbol.for("react.profiler"),_y=Symbol.for("react.provider"),Sy=Symbol.for("react.context"),Oy=Symbol.for("react.forward_ref"),Py=Symbol.for("react.suspense"),Ty=Symbol.for("react.suspense_list"),Ay=Symbol.for("react.memo"),Dy=Symbol.for("react.lazy"),Ny=Symbol.for("react.scope"),Iy=Symbol.for("react.debug_trace_mode"),My=Symbol.for("react.legacy_hidden"),Fy=Symbol.for("react.default_value"),xy=Symbol.iterator;function Ly(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ey:return"Fragment";case wy:return"Portal";case Ry:return"Profiler";case by:return"StrictMode";case Py:return"Suspense";case Ty:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Sy:return(e.displayName||"Context")+".Consumer";case _y:return(e._context.displayName||"Context")+".Provider";case Oy:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ay:return null!==(t=e.displayName||null)?t:Ly(e.type)||"Memo";case Dy:t=e._payload,e=e._init;try{return Ly(e(t))}catch(n){}}return null}var Gy={};function ky(e,t){if(!(e=e.contextTypes))return Gy;var n,r={};for(n in e)r[n]=t[n];return r}var Vy=null;function Hy(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(Wv(401))}else{if(null===n)throw Error(Wv(401));Hy(e,n)}t.context._currentValue2=t.value}}function Wy(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&Wy(e)}function By(e){var t=e.parent;null!==t&&By(t),e.context._currentValue2=e.value}function jy(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(Wv(402));e.depth===t.depth?Hy(e,t):jy(e,t)}function Uy(e,t){var n=t.parent;if(null===n)throw Error(Wv(402));e.depth===n.depth?Hy(e,n):Uy(e,n),t.context._currentValue2=t.value}function zy(e){var t=Vy;t!==e&&(null===t?By(e):null===e?Wy(t):t.depth===e.depth?Hy(t,e):t.depth>e.depth?jy(t,e):Uy(t,e),Vy=e)}var Ky={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Yy(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=Ky,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"==typeof s&&null!==s?s._currentValue2:r,"function"==typeof(s=t.getDerivedStateFromProps)&&(o=null==(s=s(n,o))?o:my({},o,s),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Ky.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"==typeof a?a.call(e,i,n,r):a)&&(o?(o=!1,i=my({},i,a)):my(i,a))}e.state=i}else i.queue=null}var qy={id:1,overflow:""};function $y(e,t,n){var r=e.id;e=e.overflow;var o=32-Xy(r)-1;r&=~(1<<o),n+=1;var i=32-Xy(t)+o;if(30<i){var s=o-o%5;return i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,{id:1<<32-Xy(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var Xy=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Qy(e)/Zy|0)|0},Qy=Math.log,Zy=Math.LN2;var Jy="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},em=null,tm=null,nm=null,rm=null,om=!1,im=!1,sm=0,am=null,lm=0;function um(){if(null===em)throw Error(Wv(321));return em}function cm(){if(0<lm)throw Error(Wv(312));return{memoizedState:null,queue:null,next:null}}function pm(){return null===rm?null===nm?(om=!1,nm=rm=cm()):(om=!0,rm=nm):null===rm.next?(om=!1,rm=rm.next=cm()):(om=!0,rm=rm.next),rm}function dm(){tm=em=null,im=!1,nm=null,lm=0,rm=am=null}function hm(e,t){return"function"==typeof t?t(e):t}function fm(e,t,n){if(em=um(),rm=pm(),om){var r=rm.queue;if(t=r.dispatch,null!==am&&void 0!==(n=am.get(r))){am.delete(r),r=rm.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return rm.memoizedState=r,[r,t]}return[rm.memoizedState,t]}return e=e===hm?"function"==typeof t?t():t:void 0!==n?n(t):t,rm.memoizedState=e,e=(e=rm.queue={last:null,dispatch:null}).dispatch=vm.bind(null,em,e),[rm.memoizedState,e]}function gm(e,t){if(em=um(),t=void 0===t?null:t,null!==(rm=pm())){var n=rm.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Jy(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),rm.memoizedState=[e,t],e}function vm(e,t,n){if(25<=lm)throw Error(Wv(301));if(e===em)if(im=!0,e={action:n,next:null},null===am&&(am=new Map),void 0===(n=am.get(t)))am.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ym(){throw Error(Wv(394))}function mm(){}var Cm={readContext:function(e){return e._currentValue2},useContext:function(e){return um(),e._currentValue2},useMemo:gm,useReducer:fm,useRef:function(e){em=um();var t=(rm=pm()).memoizedState;return null===t?(e={current:e},rm.memoizedState=e):t},useState:function(e){return fm(hm,e)},useInsertionEffect:mm,useLayoutEffect:function(){},useCallback:function(e,t){return gm((function(){return e}),t)},useImperativeHandle:mm,useEffect:mm,useDebugValue:mm,useDeferredValue:function(e){return um(),e},useTransition:function(){return um(),[!1,ym]},useId:function(){var e=tm.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Xy(e)-1)).toString(32)+t;var n=wm;if(null===n)throw Error(Wv(404));return t=sm++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return um(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(Wv(407));return n()}},wm=null,Em=Hv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function bm(e){return console.error(e),null}function Rm(){}function _m(e,t,n,r,o,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Vm(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function Sm(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function Om(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Pm(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Tm(e,t,n,r,o){for(em={},tm=t,sm=0,e=n(r,o);im;)im=!1,sm=0,lm+=1,rm=null,e=n(r,o);return dm(),e}function Am(e,t,n,r){var o=n.render(),i=r.childContextTypes;if(null!=i){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var a in n=n.getChildContext())if(!(a in i))throw Error(Wv(108,Ly(r)||"Unknown",a));r=my({},s,n)}t.legacyContext=r,Im(e,t,o),t.legacyContext=s}else Im(e,t,o)}function Dm(e,t){if(e&&e.defaultProps){for(var n in t=my({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Nm(e,t,n,r,o){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){o=ky(n,t.legacyContext);var i=n.contextType;Yy(i=new n(r,"object"==typeof i&&null!==i?i._currentValue2:o),n,r,o),Am(e,t,i,n)}else{o=Tm(e,t,n,r,i=ky(n,t.legacyContext));var s=0!==sm;if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof)Yy(o,n,r,i),Am(e,t,o,n);else if(s){r=t.treeContext,t.treeContext=$y(r,1,0);try{Im(e,t,o)}finally{t.treeContext=r}}else Im(e,t,o)}else{if("string"!=typeof n){switch(n){case My:case Iy:case by:case Ry:case Ey:case Ty:return void Im(e,t,r.children);case Ny:throw Error(Wv(343));case Py:e:{n=t.blockedBoundary,o=t.blockedSegment,i=r.fallback,r=r.children;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},l=Sm(0,o.chunks.length,a,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var u=Sm(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(Fm(e,t,r),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,Gm(a,u),0===a.pendingTasks)break e}catch(c){u.status=4,a.forceClientRender=!0,a.errorDigest=Om(e,c)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=_m(e,i,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case Oy:if(r=Tm(e,t,n.render,r,o),0!==sm){n=t.treeContext,t.treeContext=$y(n,1,0);try{Im(e,t,r)}finally{t.treeContext=n}}else Im(e,t,r);return;case Ay:return void Nm(e,t,n=n.type,r=Dm(n,r),o);case _y:if(o=r.children,n=n._context,r=r.value,i=n._currentValue2,n._currentValue2=r,Vy=r={parent:s=Vy,depth:null===s?0:s.depth+1,context:n,parentValue:i,value:r},t.context=r,Im(e,t,o),null===(e=Vy))throw Error(Wv(403));return r=e.parentValue,e.context._currentValue2=r===Fy?e.context._defaultValue:r,e=Vy=e.parent,void(t.context=e);case Sy:return void Im(e,t,r=(r=r.children)(n._currentValue2));case Dy:return void Nm(e,t,n=(o=n._init)(n._payload),r=Dm(n,r),void 0)}throw Error(Wv(130,null==n?n:typeof n,""))}switch(i=hy((o=t.blockedSegment).chunks,n,r,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=function(e,t,n){switch(t){case"select":return oy(1,null!=n.value?n.value:n.defaultValue);case"svg":return oy(2,null);case"math":return oy(3,null);case"foreignObject":return oy(1,null);case"table":return oy(4,null);case"thead":case"tbody":case"tfoot":return oy(5,null);case"colgroup":return oy(7,null);case"tr":return oy(6,null)}return 4<=e.insertionMode||0===e.insertionMode?oy(1,null):e}(s,n,r),Fm(e,t,i),o.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",n,">")}o.lastPushedText=!1}}function Im(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case Cy:return void Nm(e,t,n.type,n.props,n.ref);case wy:throw Error(Wv(257));case Dy:var r=n._init;return void Im(e,t,n=r(n._payload))}if(ry(n))return void Mm(e,t,n);if(null===n||"object"!=typeof n?r=null:r="function"==typeof(r=xy&&n[xy]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);Mm(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(Wv(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=yy(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=yy(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Mm(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=$y(i,r,o);try{Fm(e,t,n[o])}finally{t.treeContext=i}}}function Fm(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Im(e,t,n)}catch(l){if(dm(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,zy(i),l;n=l;var s=t.blockedSegment,a=Sm(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=_m(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,zy(i)}}function xm(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,km(this,t,e)}function Lm(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(Wv(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Lm(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Gm(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Gm(e,n)}else e.completedSegments.push(t)}function km(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(Wv(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Rm,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Gm(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(xm,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Gm(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Vm(e){if(2!==e.status){var t=Vy,n=Em.current;Em.current=Cm;var r=wm;wm=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(0===l.status){zy(s.context);try{Im(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),l.status=1,km(a,s.blockedBoundary,l)}catch(h){if(dm(),"object"==typeof h&&null!==h&&"function"==typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=Om(a,p);if(null===c?Pm(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&zm(e,e.destination)}catch(h){Om(e,h),Pm(e,h)}finally{wm=r,Em.current=n,n===Cm&&zy(t)}}}function Hm(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var o=!0;r=n.chunks;var i=0;n=n.children;for(var s=0;s<n.length;s++){for(o=n[s];i<o.index;i++)t.push(r[i]);o=Wm(e,t,o)}for(;i<r.length-1;i++)t.push(r[i]);return i<r.length&&(o=t.push(r[i])),o;default:throw Error(Wv(390))}}function Wm(e,t,n){var r=n.boundary;if(null===r)return Hm(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=ey(r),t.push(r),t.push('"')),t.push("></template>")),Hm(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,i=o.nextSuspenseID++;return o=o.boundaryPrefix+i.toString(16),r=r.id=o,fy(t,e.responseState,r),Hm(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),fy(t,e.responseState,r.id),Hm(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(Wv(391));return Wm(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function Bm(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(Wv(397))}}(t,e.responseState,n.formatContext,n.id),Wm(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(Wv(397))}}(t,n.formatContext)}function jm(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)Um(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(Wv(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function Um(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(Wv(392));return Bm(e,t,r)}return Bm(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function zm(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Wm(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var o,i=e.clientRenderedBoundaries;for(o=0;o<i.length;o++){var s=i[o];r=t;var a=e.responseState,l=s.id,u=s.errorDigest,c=s.errorMessage,p=s.errorComponentStack;if(r.push(a.startInlineScript),a.sentClientRenderFunction?r.push('$RX("'):(a.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===l)throw Error(Wv(395));if(r.push(l),r.push('"'),u||c||p){r.push(",");var d=vy(u||"");r.push(d)}if(c||p){r.push(",");var h=vy(c||"");r.push(h)}if(p){r.push(",");var f=vy(p);r.push(f)}if(!r.push(")<\/script>"))return e.destination=null,o++,void i.splice(0,o)}i.splice(0,o);var g=e.completedBoundaries;for(o=0;o<g.length;o++)if(!jm(e,t,g[o]))return e.destination=null,o++,void g.splice(0,o);g.splice(0,o);var v=e.partialBoundaries;for(o=0;o<v.length;o++){var y=v[o];e:{i=e,s=t;var m=y.completedSegments;for(a=0;a<m.length;a++)if(!Um(i,s,y,m[a])){a++,m.splice(0,a);var C=!1;break e}m.splice(0,a),C=!0}if(!C)return e.destination=null,o++,void v.splice(0,o)}v.splice(0,o);var w=e.completedBoundaries;for(o=0;o<w.length;o++)if(!jm(e,t,w[o]))return e.destination=null,o++,void w.splice(0,o);w.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function Km(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Lm(n,e,t)})),n.clear(),null!==e.destination&&zm(e,e.destination)}catch(r){Om(e,r),Pm(e,r)}}function Ym(){}function qm(e,t,n,r){var o=!1,i=null,s="",a={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){o=!0,i=e}},l=!1;if(Vm(e=function(e,t,n,r,o,i,s,a,l){var u=[],c=new Set;return(n=Sm(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?bm:o,onAllReady:void 0===i?Rm:i,onShellReady:void 0===s?Rm:s,onShellError:void 0===a?Rm:a,onFatalError:void 0===l?Rm:l},0,null,n,!1,!1)).parentFlushed=!0,e=_m(t,e,null,n,c,Gy,null,qy),u.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Ym,void 0,(function(){l=!0}),void 0,void 0)),Km(e,r),1===e.status)e.status=2,a.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=a;try{zm(e,a)}catch(u){Om(e,u),Pm(e,u)}}if(o)throw i;if(!l)throw Error(Wv(426));return s}Vv.renderToNodeStream=function(){throw Error(Wv(207))},Vv.renderToStaticMarkup=function(e,t){return qm(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Vv.renderToStaticNodeStream=function(){throw Error(Wv(208))},Vv.renderToString=function(e,t){return qm(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Vv.version="18.3.1";var $m={},Xm=l.exports;
|
||
/**
|
||
* @license React
|
||
* react-dom-server.browser.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function Qm(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Zm=null,Jm=0;function eC(e,t){if(0!==t.length)if(512<t.length)0<Jm&&(e.enqueue(new Uint8Array(Zm.buffer,0,Jm)),Zm=new Uint8Array(512),Jm=0),e.enqueue(t);else{var n=Zm.length-Jm;n<t.length&&(0===n?e.enqueue(Zm):(Zm.set(t.subarray(0,n),Jm),e.enqueue(Zm),t=t.subarray(n)),Zm=new Uint8Array(512),Jm=0),Zm.set(t,Jm),Jm+=t.length}}function tC(e,t){return eC(e,t),!0}function nC(e){Zm&&0<Jm&&(e.enqueue(new Uint8Array(Zm.buffer,0,Jm)),Zm=null,Jm=0)}var rC=new TextEncoder;function oC(e){return rC.encode(e)}function iC(e){return rC.encode(e)}function sC(e,t){"function"==typeof e.error?e.error(t):e.close()}var aC=Object.prototype.hasOwnProperty,lC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,uC={},cC={};function pC(e){return!!aC.call(cC,e)||!aC.call(uC,e)&&(lC.test(e)?cC[e]=!0:(uC[e]=!0,!1))}function dC(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var hC={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){hC[e]=new dC(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];hC[t]=new dC(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){hC[e]=new dC(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){hC[e]=new dC(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){hC[e]=new dC(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){hC[e]=new dC(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){hC[e]=new dC(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){hC[e]=new dC(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){hC[e]=new dC(e,5,!1,e.toLowerCase(),null,!1,!1)}));var fC=/[\-:]([a-z])/g;function gC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(fC,gC);hC[t]=new dC(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(fC,gC);hC[t]=new dC(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(fC,gC);hC[t]=new dC(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){hC[e]=new dC(e,1,!1,e.toLowerCase(),null,!1,!1)})),hC.xlinkHref=new dC("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){hC[e]=new dC(e,1,!1,e.toLowerCase(),null,!0,!0)}));var vC={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yC=["Webkit","ms","Moz","O"];Object.keys(vC).forEach((function(e){yC.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vC[t]=vC[e]}))}));var mC=/["'&<>]/;function CC(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=mC.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var wC=/([A-Z])/g,EC=/^ms-/,bC=Array.isArray,RC=iC("<script>"),_C=iC("<\/script>"),SC=iC('<script src="'),OC=iC('<script type="module" src="'),PC=iC('" async=""><\/script>'),TC=/(<\/|<)(s)(cript)/gi;function AC(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function DC(e,t){return{insertionMode:e,selectedValue:t}}var NC=iC("\x3c!-- --\x3e");function IC(e,t,n,r){return""===t?r:(r&&e.push(NC),e.push(oC(CC(t))),!0)}var MC=new Map,FC=iC(' style="'),xC=iC(":"),LC=iC(";");function GC(e,t,n){if("object"!=typeof n)throw Error(Qm(62));for(var r in t=!0,n)if(aC.call(n,r)){var o=n[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var i=oC(CC(r));o=oC(CC((""+o).trim()))}else{i=r;var s=MC.get(i);void 0!==s||(s=iC(CC(i.replace(wC,"-$1").toLowerCase().replace(EC,"-ms-"))),MC.set(i,s)),i=s,o="number"==typeof o?0===o||aC.call(vC,r)?oC(""+o):oC(o+"px"):oC(CC((""+o).trim()))}t?(t=!1,e.push(FC,i,xC,o)):e.push(LC,i,xC,o)}}t||e.push(HC)}var kC=iC(" "),VC=iC('="'),HC=iC('"'),WC=iC('=""');function BC(e,t,n,r){switch(n){case"style":return void GC(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=hC.hasOwnProperty(n)?hC[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=oC(t.attributeName),t.type){case 3:r&&e.push(kC,n,WC);break;case 4:!0===r?e.push(kC,n,WC):!1!==r&&e.push(kC,n,VC,oC(CC(r)),HC);break;case 5:isNaN(r)||e.push(kC,n,VC,oC(CC(r)),HC);break;case 6:!isNaN(r)&&1<=r&&e.push(kC,n,VC,oC(CC(r)),HC);break;default:t.sanitizeURL&&(r=""+r),e.push(kC,n,VC,oC(CC(r)),HC)}}else if(pC(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(kC,oC(n),VC,oC(CC(r)),HC)}}var jC=iC(">"),UC=iC("/>");function zC(e,t,n){if(null!=t){if(null!=n)throw Error(Qm(60));if("object"!=typeof t||!("__html"in t))throw Error(Qm(61));null!=(t=t.__html)&&e.push(oC(""+t))}}var KC=iC(' selected=""');function YC(e,t,n,r){e.push(QC(n));var o,i=n=null;for(o in t)if(aC.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:BC(e,r,o,s)}}return e.push(jC),zC(e,i,n),"string"==typeof n?(e.push(oC(CC(n))),null):n}var qC=iC("\n"),$C=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,XC=new Map;function QC(e){var t=XC.get(e);if(void 0===t){if(!$C.test(e))throw Error(Qm(65,e));t=iC("<"+e),XC.set(e,t)}return t}var ZC=iC("<!DOCTYPE html>");function JC(e,t,n,r,o){switch(t){case"select":e.push(QC("select"));var i=null,s=null;for(c in n)if(aC.call(n,c)){var a=n[c];if(null!=a)switch(c){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:BC(e,r,c,a)}}return e.push(jC),zC(e,s,i),i;case"option":s=o.selectedValue,e.push(QC("option"));var l=a=null,u=null,c=null;for(i in n)if(aC.call(n,i)){var p=n[i];if(null!=p)switch(i){case"children":a=p;break;case"selected":u=p;break;case"dangerouslySetInnerHTML":c=p;break;case"value":l=p;default:BC(e,r,i,p)}}if(null!=s)if(n=null!==l?""+l:function(e){var t="";return Xm.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(a),bC(s)){for(r=0;r<s.length;r++)if(""+s[r]===n){e.push(KC);break}}else""+s===n&&e.push(KC);else u&&e.push(KC);return e.push(jC),zC(e,c,a),a;case"textarea":for(a in e.push(QC("textarea")),c=s=i=null,n)if(aC.call(n,a)&&null!=(l=n[a]))switch(a){case"children":c=l;break;case"value":i=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(Qm(91));default:BC(e,r,a,l)}if(null===i&&null!==s&&(i=s),e.push(jC),null!=c){if(null!=i)throw Error(Qm(92));if(bC(c)&&1<c.length)throw Error(Qm(93));i=""+c}return"string"==typeof i&&"\n"===i[0]&&e.push(qC),null!==i&&e.push(oC(CC(""+i))),null;case"input":for(s in e.push(QC("input")),l=c=a=i=null,n)if(aC.call(n,s)&&null!=(u=n[s]))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(Qm(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":c=u;break;case"value":i=u;break;default:BC(e,r,s,u)}return null!==c?BC(e,r,"checked",c):null!==l&&BC(e,r,"checked",l),null!==i?BC(e,r,"value",i):null!==a&&BC(e,r,"value",a),e.push(UC),null;case"menuitem":for(var d in e.push(QC("menuitem")),n)if(aC.call(n,d)&&null!=(i=n[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(Qm(400));default:BC(e,r,d,i)}return e.push(jC),null;case"title":for(p in e.push(QC("title")),i=null,n)if(aC.call(n,p)&&null!=(s=n[p]))switch(p){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(Qm(434));default:BC(e,r,p,s)}return e.push(jC),i;case"listing":case"pre":for(l in e.push(QC(t)),s=i=null,n)if(aC.call(n,l)&&null!=(a=n[l]))switch(l){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;default:BC(e,r,l,a)}if(e.push(jC),null!=s){if(null!=i)throw Error(Qm(60));if("object"!=typeof s||!("__html"in s))throw Error(Qm(61));null!=(n=s.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(qC,oC(n)):e.push(oC(""+n)))}return"string"==typeof i&&"\n"===i[0]&&e.push(qC),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var h in e.push(QC(t)),n)if(aC.call(n,h)&&null!=(i=n[h]))switch(h){case"children":case"dangerouslySetInnerHTML":throw Error(Qm(399,t));default:BC(e,r,h,i)}return e.push(UC),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return YC(e,n,t,r);case"html":return 0===o.insertionMode&&e.push(ZC),YC(e,n,t,r);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return YC(e,n,t,r);for(u in e.push(QC(t)),s=i=null,n)if(aC.call(n,u)&&null!=(a=n[u]))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":GC(e,r,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:pC(u)&&"function"!=typeof a&&"symbol"!=typeof a&&e.push(kC,oC(u),VC,oC(CC(a)),HC)}return e.push(jC),zC(e,s,i),i}}var ew=iC("</"),tw=iC(">"),nw=iC('<template id="'),rw=iC('"></template>'),ow=iC("\x3c!--$--\x3e"),iw=iC('\x3c!--$?--\x3e<template id="'),sw=iC('"></template>'),aw=iC("\x3c!--$!--\x3e"),lw=iC("\x3c!--/$--\x3e"),uw=iC("<template"),cw=iC('"'),pw=iC(' data-dgst="');iC(' data-msg="'),iC(' data-stck="');var dw=iC("></template>");function hw(e,t,n){if(eC(e,iw),null===n)throw Error(Qm(395));return eC(e,n),tC(e,sw)}var fw=iC('<div hidden id="'),gw=iC('">'),vw=iC("</div>"),yw=iC('<svg aria-hidden="true" style="display:none" id="'),mw=iC('">'),Cw=iC("</svg>"),ww=iC('<math aria-hidden="true" style="display:none" id="'),Ew=iC('">'),bw=iC("</math>"),Rw=iC('<table hidden id="'),_w=iC('">'),Sw=iC("</table>"),Ow=iC('<table hidden><tbody id="'),Pw=iC('">'),Tw=iC("</tbody></table>"),Aw=iC('<table hidden><tr id="'),Dw=iC('">'),Nw=iC("</tr></table>"),Iw=iC('<table hidden><colgroup id="'),Mw=iC('">'),Fw=iC("</colgroup></table>");var xw=iC('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Lw=iC('$RS("'),Gw=iC('","'),kw=iC('")<\/script>'),Vw=iC('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Hw=iC('$RC("'),Ww=iC('","'),Bw=iC('")<\/script>'),jw=iC('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Uw=iC('$RX("'),zw=iC('"'),Kw=iC(")<\/script>"),Yw=iC(","),qw=/[<\u2028\u2029]/g;function $w(e){return JSON.stringify(e).replace(qw,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var Xw=Object.assign,Qw=Symbol.for("react.element"),Zw=Symbol.for("react.portal"),Jw=Symbol.for("react.fragment"),eE=Symbol.for("react.strict_mode"),tE=Symbol.for("react.profiler"),nE=Symbol.for("react.provider"),rE=Symbol.for("react.context"),oE=Symbol.for("react.forward_ref"),iE=Symbol.for("react.suspense"),sE=Symbol.for("react.suspense_list"),aE=Symbol.for("react.memo"),lE=Symbol.for("react.lazy"),uE=Symbol.for("react.scope"),cE=Symbol.for("react.debug_trace_mode"),pE=Symbol.for("react.legacy_hidden"),dE=Symbol.for("react.default_value"),hE=Symbol.iterator;function fE(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Jw:return"Fragment";case Zw:return"Portal";case tE:return"Profiler";case eE:return"StrictMode";case iE:return"Suspense";case sE:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case rE:return(e.displayName||"Context")+".Consumer";case nE:return(e._context.displayName||"Context")+".Provider";case oE:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case aE:return null!==(t=e.displayName||null)?t:fE(e.type)||"Memo";case lE:t=e._payload,e=e._init;try{return fE(e(t))}catch(n){}}return null}var gE={};function vE(e,t){if(!(e=e.contextTypes))return gE;var n,r={};for(n in e)r[n]=t[n];return r}var yE=null;function mE(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(Qm(401))}else{if(null===n)throw Error(Qm(401));mE(e,n)}t.context._currentValue=t.value}}function CE(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&CE(e)}function wE(e){var t=e.parent;null!==t&&wE(t),e.context._currentValue=e.value}function EE(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(Qm(402));e.depth===t.depth?mE(e,t):EE(e,t)}function bE(e,t){var n=t.parent;if(null===n)throw Error(Qm(402));e.depth===n.depth?mE(e,n):bE(e,n),t.context._currentValue=t.value}function RE(e){var t=yE;t!==e&&(null===t?wE(e):null===e?CE(t):t.depth===e.depth?mE(t,e):t.depth>e.depth?EE(t,e):bE(t,e),yE=e)}var _E={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function SE(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=_E,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"==typeof s&&null!==s?s._currentValue:r,"function"==typeof(s=t.getDerivedStateFromProps)&&(o=null==(s=s(n,o))?o:Xw({},o,s),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&_E.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"==typeof a?a.call(e,i,n,r):a)&&(o?(o=!1,i=Xw({},i,a)):Xw(i,a))}e.state=i}else i.queue=null}var OE={id:1,overflow:""};function PE(e,t,n){var r=e.id;e=e.overflow;var o=32-TE(r)-1;r&=~(1<<o),n+=1;var i=32-TE(t)+o;if(30<i){var s=o-o%5;return i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,{id:1<<32-TE(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var TE=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(AE(e)/DE|0)|0},AE=Math.log,DE=Math.LN2;var NE="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},IE=null,ME=null,FE=null,xE=null,LE=!1,GE=!1,kE=0,VE=null,HE=0;function WE(){if(null===IE)throw Error(Qm(321));return IE}function BE(){if(0<HE)throw Error(Qm(312));return{memoizedState:null,queue:null,next:null}}function jE(){return null===xE?null===FE?(LE=!1,FE=xE=BE()):(LE=!0,xE=FE):null===xE.next?(LE=!1,xE=xE.next=BE()):(LE=!0,xE=xE.next),xE}function UE(){ME=IE=null,GE=!1,FE=null,HE=0,xE=VE=null}function zE(e,t){return"function"==typeof t?t(e):t}function KE(e,t,n){if(IE=WE(),xE=jE(),LE){var r=xE.queue;if(t=r.dispatch,null!==VE&&void 0!==(n=VE.get(r))){VE.delete(r),r=xE.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return xE.memoizedState=r,[r,t]}return[xE.memoizedState,t]}return e=e===zE?"function"==typeof t?t():t:void 0!==n?n(t):t,xE.memoizedState=e,e=(e=xE.queue={last:null,dispatch:null}).dispatch=qE.bind(null,IE,e),[xE.memoizedState,e]}function YE(e,t){if(IE=WE(),t=void 0===t?null:t,null!==(xE=jE())){var n=xE.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!NE(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),xE.memoizedState=[e,t],e}function qE(e,t,n){if(25<=HE)throw Error(Qm(301));if(e===IE)if(GE=!0,e={action:n,next:null},null===VE&&(VE=new Map),void 0===(n=VE.get(t)))VE.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function $E(){throw Error(Qm(394))}function XE(){}var QE,ZE,JE={readContext:function(e){return e._currentValue},useContext:function(e){return WE(),e._currentValue},useMemo:YE,useReducer:KE,useRef:function(e){IE=WE();var t=(xE=jE()).memoizedState;return null===t?(e={current:e},xE.memoizedState=e):t},useState:function(e){return KE(zE,e)},useInsertionEffect:XE,useLayoutEffect:function(){},useCallback:function(e,t){return YE((function(){return e}),t)},useImperativeHandle:XE,useEffect:XE,useDebugValue:XE,useDeferredValue:function(e){return WE(),e},useTransition:function(){return WE(),[!1,$E]},useId:function(){var e=ME.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-TE(e)-1)).toString(32)+t;var n=eb;if(null===n)throw Error(Qm(404));return t=kE++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return WE(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(Qm(407));return n()}},eb=null,tb=Xm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function nb(e){return console.error(e),null}function rb(){}function ob(e,t,n,r,o,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Cb(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function ib(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function sb(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function ab(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,sC(e.destination,t)):(e.status=1,e.fatalError=t)}function lb(e,t,n,r,o){for(IE={},ME=t,kE=0,e=n(r,o);GE;)GE=!1,kE=0,HE+=1,xE=null,e=n(r,o);return UE(),e}function ub(e,t,n,r){var o=n.render(),i=r.childContextTypes;if(null!=i){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var a in n=n.getChildContext())if(!(a in i))throw Error(Qm(108,fE(r)||"Unknown",a));r=Xw({},s,n)}t.legacyContext=r,db(e,t,o),t.legacyContext=s}else db(e,t,o)}function cb(e,t){if(e&&e.defaultProps){for(var n in t=Xw({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function pb(e,t,n,r,o){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){o=vE(n,t.legacyContext);var i=n.contextType;SE(i=new n(r,"object"==typeof i&&null!==i?i._currentValue:o),n,r,o),ub(e,t,i,n)}else{o=lb(e,t,n,r,i=vE(n,t.legacyContext));var s=0!==kE;if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof)SE(o,n,r,i),ub(e,t,o,n);else if(s){r=t.treeContext,t.treeContext=PE(r,1,0);try{db(e,t,o)}finally{t.treeContext=r}}else db(e,t,o)}else{if("string"!=typeof n){switch(n){case pE:case cE:case eE:case tE:case Jw:case sE:return void db(e,t,r.children);case uE:throw Error(Qm(343));case iE:e:{n=t.blockedBoundary,o=t.blockedSegment,i=r.fallback,r=r.children;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},l=ib(0,o.chunks.length,a,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var u=ib(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(fb(e,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(NC),u.status=1,yb(a,u),0===a.pendingTasks)break e}catch(c){u.status=4,a.forceClientRender=!0,a.errorDigest=sb(e,c)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=ob(e,i,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case oE:if(r=lb(e,t,n.render,r,o),0!==kE){n=t.treeContext,t.treeContext=PE(n,1,0);try{db(e,t,r)}finally{t.treeContext=n}}else db(e,t,r);return;case aE:return void pb(e,t,n=n.type,r=cb(n,r),o);case nE:if(o=r.children,n=n._context,r=r.value,i=n._currentValue,n._currentValue=r,yE=r={parent:s=yE,depth:null===s?0:s.depth+1,context:n,parentValue:i,value:r},t.context=r,db(e,t,o),null===(e=yE))throw Error(Qm(403));return r=e.parentValue,e.context._currentValue=r===dE?e.context._defaultValue:r,e=yE=e.parent,void(t.context=e);case rE:return void db(e,t,r=(r=r.children)(n._currentValue));case lE:return void pb(e,t,n=(o=n._init)(n._payload),r=cb(n,r),void 0)}throw Error(Qm(130,null==n?n:typeof n,""))}switch(i=JC((o=t.blockedSegment).chunks,n,r,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=function(e,t,n){switch(t){case"select":return DC(1,null!=n.value?n.value:n.defaultValue);case"svg":return DC(2,null);case"math":return DC(3,null);case"foreignObject":return DC(1,null);case"table":return DC(4,null);case"thead":case"tbody":case"tfoot":return DC(5,null);case"colgroup":return DC(7,null);case"tr":return DC(6,null)}return 4<=e.insertionMode||0===e.insertionMode?DC(1,null):e}(s,n,r),fb(e,t,i),o.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(ew,oC(n),tw)}o.lastPushedText=!1}}function db(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case Qw:return void pb(e,t,n.type,n.props,n.ref);case Zw:throw Error(Qm(257));case lE:var r=n._init;return void db(e,t,n=r(n._payload))}if(bC(n))return void hb(e,t,n);if(null===n||"object"!=typeof n?r=null:r="function"==typeof(r=hE&&n[hE]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);hb(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(Qm(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=IC(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=IC(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function hb(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=PE(i,r,o);try{fb(e,t,n[o])}finally{t.treeContext=i}}}function fb(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return db(e,t,n)}catch(l){if(UE(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,RE(i),l;n=l;var s=t.blockedSegment,a=ib(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=ob(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,RE(i)}}function gb(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,mb(this,t,e)}function vb(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(Qm(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return vb(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function yb(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&yb(e,n)}else e.completedSegments.push(t)}function mb(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(Qm(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=rb,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&yb(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(gb,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(yb(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Cb(e){if(2!==e.status){var t=yE,n=tb.current;tb.current=JE;var r=eb;eb=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(0===l.status){RE(s.context);try{db(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(NC),s.abortSet.delete(s),l.status=1,mb(a,s.blockedBoundary,l)}catch(h){if(UE(),"object"==typeof h&&null!==h&&"function"==typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=sb(a,p);if(null===c?ab(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&Sb(e,e.destination)}catch(h){sb(e,h),ab(e,h)}finally{eb=r,tb.current=n,n===JE&&RE(t)}}}function wb(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,eC(t,nw),eC(t,e.placeholderPrefix),eC(t,e=oC(r.toString(16))),tC(t,rw);case 1:n.status=2;var o=!0;r=n.chunks;var i=0;n=n.children;for(var s=0;s<n.length;s++){for(o=n[s];i<o.index;i++)eC(t,r[i]);o=Eb(e,t,o)}for(;i<r.length-1;i++)eC(t,r[i]);return i<r.length&&(o=tC(t,r[i])),o;default:throw Error(Qm(390))}}function Eb(e,t,n){var r=n.boundary;if(null===r)return wb(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,tC(t,aw),eC(t,uw),r&&(eC(t,pw),eC(t,oC(CC(r))),eC(t,cw)),tC(t,dw),wb(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,i=o.nextSuspenseID++;o=iC(o.boundaryPrefix+i.toString(16)),r=r.id=o,hw(t,e.responseState,r),wb(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),hw(t,e.responseState,r.id),wb(e,t,n);else{if(tC(t,ow),1!==(n=r.completedSegments).length)throw Error(Qm(391));Eb(e,t,n[0])}return tC(t,lw)}function bb(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return eC(e,fw),eC(e,t.segmentPrefix),eC(e,oC(r.toString(16))),tC(e,gw);case 2:return eC(e,yw),eC(e,t.segmentPrefix),eC(e,oC(r.toString(16))),tC(e,mw);case 3:return eC(e,ww),eC(e,t.segmentPrefix),eC(e,oC(r.toString(16))),tC(e,Ew);case 4:return eC(e,Rw),eC(e,t.segmentPrefix),eC(e,oC(r.toString(16))),tC(e,_w);case 5:return eC(e,Ow),eC(e,t.segmentPrefix),eC(e,oC(r.toString(16))),tC(e,Pw);case 6:return eC(e,Aw),eC(e,t.segmentPrefix),eC(e,oC(r.toString(16))),tC(e,Dw);case 7:return eC(e,Iw),eC(e,t.segmentPrefix),eC(e,oC(r.toString(16))),tC(e,Mw);default:throw Error(Qm(397))}}(t,e.responseState,n.formatContext,n.id),Eb(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return tC(e,vw);case 2:return tC(e,Cw);case 3:return tC(e,bw);case 4:return tC(e,Sw);case 5:return tC(e,Tw);case 6:return tC(e,Nw);case 7:return tC(e,Fw);default:throw Error(Qm(397))}}(t,n.formatContext)}function Rb(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)_b(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,eC(t,e.startInlineScript),e.sentCompleteBoundaryFunction?eC(t,Hw):(e.sentCompleteBoundaryFunction=!0,eC(t,Vw)),null===r)throw Error(Qm(395));return n=oC(n.toString(16)),eC(t,r),eC(t,Ww),eC(t,e.segmentPrefix),eC(t,n),tC(t,Bw)}function _b(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(Qm(392));return bb(e,t,r)}return bb(e,t,r),eC(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?eC(t,Lw):(e.sentCompleteSegmentFunction=!0,eC(t,xw)),eC(t,e.segmentPrefix),eC(t,o=oC(o.toString(16))),eC(t,Gw),eC(t,e.placeholderPrefix),eC(t,o),tC(t,kw)}function Sb(e,t){Zm=new Uint8Array(512),Jm=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Eb(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)eC(t,r[n]);n<r.length&&tC(t,r[n])}var o,i=e.clientRenderedBoundaries;for(o=0;o<i.length;o++){var s=i[o];r=t;var a=e.responseState,l=s.id,u=s.errorDigest,c=s.errorMessage,p=s.errorComponentStack;if(eC(r,a.startInlineScript),a.sentClientRenderFunction?eC(r,Uw):(a.sentClientRenderFunction=!0,eC(r,jw)),null===l)throw Error(Qm(395));eC(r,l),eC(r,zw),(u||c||p)&&(eC(r,Yw),eC(r,oC($w(u||"")))),(c||p)&&(eC(r,Yw),eC(r,oC($w(c||"")))),p&&(eC(r,Yw),eC(r,oC($w(p)))),tC(r,Kw)}i.splice(0,o);var d=e.completedBoundaries;for(o=0;o<d.length;o++)Rb(e,t,d[o]);d.splice(0,o),nC(t),Zm=new Uint8Array(512),Jm=0;var h=e.partialBoundaries;for(o=0;o<h.length;o++){var f=h[o];e:{i=e,s=t;var g=f.completedSegments;for(a=0;a<g.length;a++)if(!_b(i,s,f,g[a])){a++,g.splice(0,a);var v=!1;break e}g.splice(0,a),v=!0}if(!v)return e.destination=null,o++,void h.splice(0,o)}h.splice(0,o);var y=e.completedBoundaries;for(o=0;o<y.length;o++)Rb(e,t,y[o]);y.splice(0,o)}finally{nC(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Ob(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return vb(n,e,t)})),n.clear(),null!==e.destination&&Sb(e,e.destination)}catch(r){sb(e,r),ab(e,r)}}$m.renderToReadableStream=function(e,t){return new Promise((function(n,r){var o,i,s=new Promise((function(e,t){i=e,o=t})),a=function(e,t,n,r,o,i,s,a,l){var u=[],c=new Set;return(n=ib(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?nb:o,onAllReady:void 0===i?rb:i,onShellReady:void 0===s?rb:s,onShellError:void 0===a?rb:a,onFatalError:void 0===l?rb:l},0,null,n,!1,!1)).parentFlushed=!0,e=ob(t,e,null,n,c,gE,null,OE),u.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?RC:iC('<script nonce="'+CC(t)+'">');var i=[];if(void 0!==n&&i.push(t,oC((""+n).replace(TC,AC)),_C),void 0!==r)for(n=0;n<r.length;n++)i.push(SC,oC(CC(r[n])),PC);if(void 0!==o)for(r=0;r<o.length;r++)i.push(OC,oC(CC(o[r])),PC);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:iC(e+"P:"),segmentPrefix:iC(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return DC("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===a.status)a.status=2,sC(e,a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=e;try{Sb(a,e)}catch(t){sb(a,t),ab(a,t)}}},cancel:function(){Ob(a)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),o);if(t&&t.signal){var l=t.signal,u=function(){Ob(a,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}Cb(a)}))},$m.version="18.3.1",QE=Vv,ZE=$m,kv.version=QE.version,kv.renderToString=QE.renderToString,kv.renderToStaticMarkup=QE.renderToStaticMarkup,kv.renderToNodeStream=QE.renderToNodeStream,kv.renderToStaticNodeStream=QE.renderToStaticNodeStream,kv.renderToReadableStream=ZE.renderToReadableStream;var Pb={};Object.defineProperty(Pb,"__esModule",{value:!0});var Tb=0;Pb.default=function(){return"agPortalKey_"+ ++Tb};var Ab=a&&a.__extends||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)}}(),Db=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fv,"__esModule",{value:!0});var Nb=l.exports,Ib=z.exports,Mb=Av,Fb=xv,xb=kv,Lb=Db(Pb),Gb=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.staticMarkup=null,i.staticRenderTime=0,i.parentComponent=n,i}return Ab(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new Mb.AgPromise((function(n){return t.createReactComponent(e,n)}))},t.prototype.createReactComponent=function(e,t){var n=this;this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var r=Nb.createElement(this.reactComponent,e),o=Ib.createPortal(r,this.eParentElement,Lb.default());this.portal=o,this.portalManager.mountReactPortal(o,this,(function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,t){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERING_THRESHOLD},t.prototype.isNullValue=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,n=Nb.createElement(this.reactComponent,e);try{console.error=function(){};var r=Date.now(),o=xb.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-r,console.error=t,""===o?this.staticMarkup=o:o&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=o,this.eParentElement.appendChild(this.staticMarkup))}catch(i){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.SLOW_RENDERING_THRESHOLD=3,t}(Fb.ReactComponent);Fv.LegacyReactComponent=Gb;var kb={},Vb=a&&a.__extends||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)}}(),Hb=a&&a.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Wb=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},Bb=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kb,"__esModule",{value:!0});var jb=Wb(l.exports),Ub=Bb(Dv.exports),zb=Wb(Av),Kb=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n}return Vb(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return jb.default.Children.map(e,(function(e){return e?t.toColDef(e.props):null}))},t.toColDef=function(e){var n=e.children,r=Hb(e,["children"]);return t.hasChildColumns(n)&&(r.children=t.mapChildColumnDefs(n)),r},t.hasChildColumns=function(e){return jb.default.Children.count(e)>0},t}(jb.Component);function Yb(e,t){e.forEach((function(e){Kb[e]=t}))}kb.AgGridColumn=Kb,Yb(zb.ColDefUtil.BOOLEAN_PROPERTIES,Ub.default.bool),Yb(zb.ColDefUtil.STRING_PROPERTIES,Ub.default.string),Yb(zb.ColDefUtil.OBJECT_PROPERTIES,Ub.default.object),Yb(zb.ColDefUtil.ARRAY_PROPERTIES,Ub.default.array),Yb(zb.ColDefUtil.NUMBER_PROPERTIES,Ub.default.number),Yb(zb.ColDefUtil.FUNCTION_PROPERTIES,Ub.default.func);var qb={};!function(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),(n=t=e.ChangeDetectionStrategyType||(e.ChangeDetectionStrategyType={})).IdentityCheck="IdentityCheck",n.DeepValueCheck="DeepValueCheck",n.NoCheck="NoCheck";var r=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),o=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;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!=typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"==typeof e&&isNaN(e)},e.areEquivalent=function(t,n){if(t=e.unwrapStringOrNumber(t),n=e.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!=typeof n)return!1;if(e.isNaN(t)&&e.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"==typeof t)return!1;if("object"!=typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var r=void 0===t.areEquivPropertyTracking,o=void 0===n.areEquivPropertyTracking;try{var i=void 0;if(r)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===n})))return!0;if(o)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var s={};for(i in t)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in n)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in s)if(!this.areEquivalent(t[i],n[i]))return!1;return!0}finally{r&&delete t.areEquivPropertyTracking,o&&delete n.areEquivPropertyTracking}},e}(),i=function(){function e(){var e;this.strategyMap=((e={})[t.DeepValueCheck]=new o,e[t.IdentityCheck]=new r((function(e,t){return e===t})),e[t.NoCheck]=new r((function(e,t){return!1})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();e.ChangeDetectionService=i}(qb);var $b={},Xb=a&&a.__extends||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)}}(),Qb=a&&a.__assign||function(){return(Qb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Zb=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($b,"__esModule",{value:!0});var Jb=l.exports,eR=z.exports,tR=Av,nR=xv,rR=kv,oR=Zb(Pb),iR=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.oldPortal=null,o.key=oR.default(),o.portalKey=oR.default(),o}return Xb(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new tR.AgPromise((function(e){return t.createReactComponent(e)}))},t.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=Jb.createElement(this.reactComponent,Qb(Qb({},e),{key:this.key})),this.portal=eR.createPortal(this.reactElement,this.eParentElement,this.portalKey)},t.prototype.createReactComponent=function(e){this.portalManager.mountReactPortal(this.portal,this,(function(t){e(t)}))},t.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},t.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===rR.renderToStaticMarkup(Jb.createElement(this.reactComponent,e))}catch(n){}finally{console.error=t}return!1},t.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},t.prototype.fallbackMethod=function(e,t){var n=this[e+"Component"];if(n)return n.bind(this)(t)},t.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]},t}(nR.ReactComponent);$b.NewReactComponent=iR;var sR={},aR=a&&a.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r};Object.defineProperty(sR,"__esModule",{value:!0});var lR=function(){function e(t,n,r){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=n||"div",this.parent=t,this.maxComponentCreationTimeMs=r||e.MAX_COMPONENT_CREATION_TIME_IN_MS}return e.prototype.getPortals=function(){return this.portals},e.prototype.destroy=function(){this.destroyed=!0},e.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},e.prototype.getComponentWrappingElement=function(){return this.wrappingElement},e.prototype.mountReactPortal=function(e,t,n){this.portals=aR(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},e.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},e.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout((function(){e.destroyed||e.parent.forceUpdate((function(){e.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0)},e.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout((function(){r.waitForInstance(e,t,n)}))}},e.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,e}();sR.PortalManager=lR;var uR={},cR={},pR={},dR=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pR,"__esModule",{value:!0});var hR=dR(l.exports);pR.BeansContext=hR.default.createContext({});var fR={};Object.defineProperty(fR,"__esModule",{value:!0}),fR.showJsComp=function(e,t,n,r){if(!(!e||e.componentFromFramework)){var o=e.newAgStackInstance();if(o){var i,s,a=!1;return o.then((function(e){a?t.destroyBean(e):(s=(i=e).getGui(),n.appendChild(s),gR(r,i))})),function(){a=!0,i&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(i),r&&gR(r,void 0))}}}};var gR=function(e,t){e&&(e instanceof Function?e(t):e.current=t)};fR.createSyncJsComp=function(e){var t=e.newAgStackInstance();if(t)return t.resolveNow(null,(function(e){return e}))};var vR={};Object.defineProperty(vR,"__esModule",{value:!0});var yR=l.exports;vR.useEffectOnce=function(e){var t=yR.useRef(),n=yR.useRef(!1),r=yR.useRef(!1),o=yR.useState(0);o[0];var i=o[1];n.current&&(r.current=!0),yR.useEffect((function(){return n.current||(t.current=e(),n.current=!0),i((function(e){return e+1})),function(){r.current&&t.current&&t.current()}}),[])};var mR={},CR=a&&a.__assign||function(){return(CR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(mR,"__esModule",{value:!0}),mR.classesList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return null!=e&&""!==e}));return n.join(" ")};var wR=function(){function e(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.classesMap={},t.forEach((function(t){e.classesMap[t]=!0}))}return e.prototype.setClass=function(t,n){if(!!this.classesMap[t]==n)return this;var r=new e;return r.classesMap=CR({},this.classesMap),r.classesMap[t]=n,r},e.prototype.toString=function(){var e=this;return Object.keys(this.classesMap).filter((function(t){return e.classesMap[t]})).join(" ")},e}();mR.CssClasses=wR,mR.isComponentStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)};var ER=a&&a.__assign||function(){return(ER=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},bR=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(cR,"__esModule",{value:!0});var RR=Av,_R=bR(l.exports),SR=pR,OR=fR,PR=vR,TR=mR,AR=_R.forwardRef((function(e,t){var n=_R.useContext(SR.BeansContext).context,r=_R.useRef(null),o=_R.useRef(null),i=_R.useRef(null),s=_R.useRef(null),a=_R.useRef(null),l=_R.useState(),u=l[0],c=l[1],p=_R.useState(),d=p[0],h=p[1],f=_R.useState(),g=f[0],v=f[1],y=_R.useState(new TR.CssClasses),m=y[0],C=y[1],w=_R.useState(new TR.CssClasses("ag-hidden")),E=w[0],b=w[1],R=_R.useState(new TR.CssClasses("ag-hidden")),_=R[0],S=R[1],O=_R.useState(new TR.CssClasses("ag-invisible")),P=O[0],T=O[1];_R.useImperativeHandle(t,(function(){return{refresh:function(){return!1}}})),_R.useEffect((function(){return OR.showJsComp(u,n,o.current)}),[u]),PR.useEffectOnce((function(){var t={setInnerRenderer:function(e,t){c(e),v(t)},setChildCount:function(e){return h(e)},addOrRemoveCssClass:function(e,t){return C((function(n){return n.setClass(e,t)}))},setContractedDisplayed:function(e){return S((function(t){return t.setClass("ag-hidden",!e)}))},setExpandedDisplayed:function(e){return b((function(t){return t.setClass("ag-hidden",!e)}))},setCheckboxVisible:function(e){return T((function(t){return t.setClass("ag-invisible",!e)}))}},o=n.createBean(new RR.GroupCellRendererCtrl);return o.init(t,r.current,i.current,s.current,a.current,AR,e),function(){n.destroyBean(o)}}));var A=_R.useMemo((function(){return"ag-cell-wrapper "+m.toString()}),[m]),D=_R.useMemo((function(){return"ag-group-expanded "+E.toString()}),[E]),N=_R.useMemo((function(){return"ag-group-contracted "+_.toString()}),[_]),I=_R.useMemo((function(){return"ag-group-checkbox "+P.toString()}),[P]),M=u&&u.componentFromFramework,F=M?u.componentClass:void 0,x=null==u&&null!=g;return _R.default.createElement("span",ER({className:A,ref:r},e.colDef?{}:{role:"gridcell"}),_R.default.createElement("span",{className:D,ref:s}),_R.default.createElement("span",{className:N,ref:a}),_R.default.createElement("span",{className:I,ref:i}),_R.default.createElement("span",{className:"ag-group-value",ref:o},x&&_R.default.createElement(_R.default.Fragment,null,g),M&&_R.default.createElement(F,ER({},u.params))),_R.default.createElement("span",{className:"ag-group-child-count"},d))}));cR.default=AR;var DR={},NR={},IR={},MR={},FR={},xR={},LR={},GR={},kR=a&&a.__assign||function(){return(kR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},VR=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(GR,"__esModule",{value:!0});var HR=VR(l.exports),WR=pR,BR=Av,jR=mR,UR=fR,zR=vR;GR.default=HR.memo((function(e){var t=HR.useContext(WR.BeansContext).context,n=HR.useState(),r=n[0],o=n[1],i=HR.useState(),s=i[0],a=i[1],l=HR.useState(),u=l[0],c=l[1],p=HR.useState(),d=p[0],h=p[1],f=HR.useState(),g=f[0],v=f[1],y=HR.useState(),m=y[0],C=y[1],w=HR.useRef(null),E=HR.useRef(null),b=HR.useRef(),R=e.ctrl,_=HR.useMemo((function(){return new BR.CssClassManager((function(){return w.current}))}),[]);zR.useEffectOnce((function(){var e={setWidth:function(e){return o(e)},addOrRemoveCssClass:function(e,t){return _.addOrRemoveCssClass(e,t)},setColId:function(e){return c(e)},setTitle:function(e){return a(e)},setAriaDescription:function(e){return v(e)},setAriaSort:function(e){return h(e)},setUserCompDetails:function(e){return C(e)},getUserCompInstance:function(){return b.current||void 0}};R.setComp(e,w.current,E.current);var t=R.getSelectAllGui();E.current.insertAdjacentElement("afterend",t)})),HR.useEffect((function(){return UR.showJsComp(m,t,w.current,b)}),[m]),HR.useEffect((function(){var e=void 0;w.current.childNodes.forEach((function(t){null!=t&&t!==E.current&&(e=t)})),R.setDragSource(e)}),[m]);var S=HR.useMemo((function(){return{width:r}}),[r]),O=HR.useMemo((function(){var e;return!!((null===(e=m)||void 0===e?void 0:e.componentFromFramework)&&jR.isComponentStateless(m.componentClass))}),[m]),P=m&&m.componentFromFramework,T=m&&m.componentClass;return HR.default.createElement("div",{ref:w,className:"ag-header-cell",style:S,title:s,"col-id":u,"aria-sort":d,role:"columnheader",tabIndex:-1,"aria-description":g},HR.default.createElement("div",{ref:E,className:"ag-header-cell-resize",role:"presentation"}),P&&O&&HR.default.createElement(T,kR({},m.params)),P&&!O&&HR.default.createElement(T,kR({},m.params,{ref:b})))}));var KR={},YR=a&&a.__assign||function(){return(YR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},qR=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(KR,"__esModule",{value:!0});var $R=qR(l.exports),XR=pR,QR=fR,ZR=vR,JR=mR;KR.default=$R.memo((function(e){var t=$R.useContext(XR.BeansContext).context,n=$R.useState(new JR.CssClasses),r=n[0],o=n[1],i=$R.useState(new JR.CssClasses),s=i[0],a=i[1],l=$R.useState(),u=l[0],c=l[1],p=$R.useState(),d=p[0],h=p[1],f=$R.useState(),g=f[0],v=f[1],y=$R.useState(),m=y[0],C=y[1],w=$R.useState(),E=w[0],b=w[1],R=$R.useRef(null),_=$R.useRef(null),S=e.ctrl;ZR.useEffectOnce((function(){var e={setWidth:function(e){return c(e)},addOrRemoveCssClass:function(e,t){return o((function(n){return n.setClass(e,t)}))},setColId:function(e){return v(e)},setTitle:function(e){return h(e)},setUserCompDetails:function(e){return b(e)},addOrRemoveResizableCssClass:function(e,t){return a((function(n){return n.setClass(e,t)}))},setAriaExpanded:function(e){return C(e)}};S.setComp(e,R.current,_.current)})),$R.useEffect((function(){return QR.showJsComp(E,t,R.current)}),[E]),$R.useEffect((function(){var e=void 0;R.current.childNodes.forEach((function(t){null!=t&&t!==_.current&&(e=t)})),e&&S.setDragSource(e)}),[E]);var O=$R.useMemo((function(){return{width:u}}),[u]),P=$R.useMemo((function(){return"ag-header-group-cell "+r.toString()}),[r]),T=$R.useMemo((function(){return"ag-header-cell-resize "+s.toString()}),[s]),A=E&&E.componentFromFramework,D=E&&E.componentClass;return $R.default.createElement("div",{ref:R,className:P,style:O,title:d,"col-id":g,role:"columnheader",tabIndex:-1,"aria-expanded":m},A&&$R.default.createElement(D,YR({},E.params)),$R.default.createElement("div",{ref:_,className:T}))}));var e_={},t_=a&&a.__assign||function(){return(t_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},n_=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(e_,"__esModule",{value:!0});var r_=n_(l.exports),o_=pR,i_=Av,s_=mR,a_=fR,l_=vR;e_.default=r_.memo((function(e){var t=r_.useContext(o_.BeansContext).context,n=r_.useState(new s_.CssClasses),r=n[0],o=n[1],i=r_.useState(new s_.CssClasses),s=i[0],a=i[1],l=r_.useState(new s_.CssClasses),u=l[0],c=l[1],p=r_.useState(),d=p[0],h=p[1],f=r_.useState(),g=f[0],v=f[1],y=r_.useRef(null),m=r_.useRef(null),C=r_.useRef(null),w=r_.useRef(null),E=r_.useRef(!1),b=r_.useRef(),R=r_.useRef();l_.useEffectOnce((function(){R.current=new i_.AgPromise((function(e){b.current=e}))}));var _=function(e){E.current||null!=e&&(b.current&&b.current(e),E.current=!0)},S=e.ctrl;l_.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return o((function(n){return n.setClass(e,t)}))},addOrRemoveBodyCssClass:function(e,t){return a((function(n){return n.setClass(e,t)}))},addOrRemoveButtonWrapperCssClass:function(e,t){return c((function(n){return n.setClass(e,t)}))},setWidth:function(e){return h(e)},setCompDetails:function(e){return v(e)},getFloatingFilterComp:function(){return R.current?R.current:null},setMenuIcon:function(e){return w.current.appendChild(e)}};S.setComp(e,y.current,w.current,m.current)})),r_.useEffect((function(){return a_.showJsComp(g,t,m.current,_)}),[g]);var O=r_.useMemo((function(){return{width:d}}),[d]),P=r_.useMemo((function(){return"ag-header-cell ag-floating-filter "+r.toString()}),[r]),T=r_.useMemo((function(){return s.toString()}),[s]),A=r_.useMemo((function(){return"ag-floating-filter-button "+u.toString()}),[s]),D=r_.useMemo((function(){return!!(g&&g.componentFromFramework&&s_.isComponentStateless(g.componentClass))}),[g]),N=g&&g.componentFromFramework,I=g&&g.componentClass;return r_.default.createElement("div",{ref:y,className:P,style:O,role:"gridcell",tabIndex:-1},r_.default.createElement("div",{ref:m,className:T,role:"presentation"},N&&D&&r_.default.createElement(I,t_({},g.params)),N&&!D&&r_.default.createElement(I,t_({},g.params,{ref:_}))),r_.default.createElement("div",{ref:C,className:A,role:"presentation"},r_.default.createElement("button",{ref:w,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}));var u_=a&&a.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},c_=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},p_=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(LR,"__esModule",{value:!0});var d_=Av,h_=c_(l.exports),f_=pR,g_=p_(GR),v_=p_(KR),y_=p_(e_),m_=vR;LR.default=h_.memo((function(e){var t=h_.useContext(f_.BeansContext).gridOptionsWrapper,n=h_.useState(),r=n[0],o=n[1],i=h_.useState(),s=i[0],a=i[1],l=h_.useState(),u=l[0],c=l[1],p=h_.useState(),d=p[0],h=p[1],f=h_.useState(),g=f[0],v=f[1],y=h_.useState([]),m=y[0],C=y[1],w=h_.useRef(null),E=e.ctrl,b=E.getType()===d_.HeaderRowType.COLUMN,R=E.getType()===d_.HeaderRowType.COLUMN_GROUP,_=E.getType()===d_.HeaderRowType.FLOATING_FILTER,S=h_.useCallback((function(e,n){if(t.isEnsureDomOrder())return n;var r=d_._.mapById(e,(function(e){return e.getInstanceId()})),o=d_._.mapById(n,(function(e){return e.getInstanceId()})),i=e.filter((function(e){return o.has(e.getInstanceId())})),s=n.filter((function(e){return!r.has(e.getInstanceId())}));return u_(i,s)}),[]);m_.useEffectOnce((function(){var e={setTransform:function(e){return o(e)},setHeight:function(e){return a(e)},setTop:function(e){return c(e)},setHeaderCtrls:function(e){return C((function(t){return S(t,e)}))},setWidth:function(e){return h(e)},setAriaRowIndex:function(e){return v(e)}};E.setComp(e)}));var O=h_.useMemo((function(){return{transform:r,height:s,top:u,width:d}}),[r,s,u,d]),P=h_.useMemo((function(){var e=["ag-header-row"];return b&&e.push("ag-header-row-column"),R&&e.push("ag-header-row-column-group"),_&&e.push("ag-header-row-column-filter"),e.join(" ")}),[]),T=h_.useCallback((function(e){switch(E.getType()){case d_.HeaderRowType.COLUMN_GROUP:return h_.default.createElement(v_.default,{ctrl:e,key:e.getInstanceId()});case d_.HeaderRowType.FLOATING_FILTER:return h_.default.createElement(y_.default,{ctrl:e,key:e.getInstanceId()});default:return h_.default.createElement(g_.default,{ctrl:e,key:e.getInstanceId()})}}),[]);return h_.default.createElement("div",{ref:w,className:P,role:"row",style:O,"aria-rowindex":g},m.map(T))}));var C_=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},w_=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xR,"__esModule",{value:!0});var E_=C_(l.exports),b_=pR,R_=Av,__=mR,S_=w_(LR),O_=vR;xR.default=E_.memo((function(e){var t=E_.useState(new __.CssClasses),n=t[0],r=t[1],o=E_.useState(),i=o[0],s=o[1],a=E_.useState(),l=a[0],u=a[1],c=E_.useState(),p=c[0],d=c[1],h=E_.useState([]),f=h[0],g=h[1],v=E_.useContext(b_.BeansContext).context,y=E_.useRef(null),m=e.pinned===R_.Constants.PINNED_LEFT,C=e.pinned===R_.Constants.PINNED_RIGHT,w=!m&&!C;O_.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return r((function(n){return n.setClass(e,t)}))},setCtrls:function(e){return g(e)},setCenterWidth:function(e){return s(e)},setContainerTransform:function(e){return u(e)},setPinnedContainerWidth:function(e){return d(e)}},n=v.createBean(new R_.HeaderRowContainerCtrl(e.pinned));return n.setComp(t,y.current),function(){v.destroyBean(n)}}));var E=E_.useMemo((function(){return n.toString()}),[n]),b=function(){return f.map((function(e){return E_.default.createElement(S_.default,{ctrl:e,key:e.getInstanceId()})}))},R=E_.useMemo((function(){return{width:i,transform:l}}),[i,l]),_=E_.useMemo((function(){return{width:p,minWidth:p,maxWidth:p}}),[p]);return E_.default.createElement(E_.default.Fragment,null,m&&E_.default.createElement("div",{ref:y,className:"ag-pinned-left-header "+E,role:"presentation",style:_},b()),C&&E_.default.createElement("div",{ref:y,className:"ag-pinned-right-header "+E,role:"presentation",style:_},b()),w&&E_.default.createElement("div",{ref:y,className:"ag-header-viewport "+E,role:"presentation"},E_.default.createElement("div",{className:"ag-header-container",role:"rowgroup",style:R},b())))}));var P_=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},T_=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(FR,"__esModule",{value:!0});var A_=P_(l.exports),D_=pR,N_=Av,I_=mR,M_=T_(xR),F_=vR;FR.default=A_.memo((function(){var e=A_.useState(new I_.CssClasses),t=e[0],n=e[1],r=A_.useState(),o=r[0],i=r[1],s=A_.useContext(D_.BeansContext).context,a=A_.useRef(null);F_.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return n((function(n){return n.setClass(e,t)}))},setHeightAndMinHeight:function(e){return i(e)}},t=s.createBean(new N_.GridHeaderCtrl);return t.setComp(e,a.current,a.current),function(){s.destroyBean(t)}}));var l=A_.useMemo((function(){return"ag-header "+t.toString()}),[t]),u=A_.useMemo((function(){return{height:o,minHeight:o}}),[o]);return A_.default.createElement("div",{ref:a,className:l,style:u,role:"presentation"},A_.default.createElement(M_.default,{pinned:N_.Constants.PINNED_LEFT}),A_.default.createElement(M_.default,{pinned:null}),A_.default.createElement(M_.default,{pinned:N_.Constants.PINNED_RIGHT}))}));var x_={};Object.defineProperty(x_,"__esModule",{value:!0});var L_=vR;x_.default=function(e,t){L_.useEffectOnce((function(){var n=t.current,r=n.parentElement;if(r){var o=document.createComment(e);return r.insertBefore(o,n),function(){r.removeChild(o)}}}))};var G_={},k_={},V_={},H_={},W_=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(H_,"__esModule",{value:!0});var B_=Av,j_=W_(l.exports),U_=z.exports,z_=pR,K_=vR;H_.default=j_.memo((function(e){var t=j_.useState(),n=t[0],r=t[1],o=j_.useContext(z_.BeansContext),i=o.context,s=o.popupService,a=o.gridOptionsWrapper;return K_.useEffectOnce((function(){var t=e.editDetails,n=e.cellCtrl,o=e.eParentCell,l=t.compDetails,u=a.isStopEditingWhenCellsLoseFocus(),c=i.createBean(new B_.PopupEditorWrapper(l.params)),p=c.getGui();if(e.jsChildComp){var d=e.jsChildComp.getGui();d&&p.appendChild(d)}var h={column:n.getColumn(),rowNode:n.getRowNode(),type:"popupCellEditor",eventSource:o,ePopup:p,keepWithinBounds:!0},f="under"===t.popupPosition?s.positionPopupUnderComponent.bind(s,h):s.positionPopupOverComponent.bind(s,h),g=a.getLocaleTextFunc(),v=s.addPopup({modal:u,eChild:p,closeOnEsc:!0,closedCallback:function(){n.onPopupEditorClosed()},anchorToElement:o,positionCallback:f,ariaLabel:g("ariaLabelCellEditor","Cell Editor")}),y=v?v.hideFunc:void 0;return r(c),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),function(){null!=y&&y(),i.destroyBean(c)}})),j_.default.createElement(j_.default.Fragment,null,n&&e.wrappedContent&&U_.createPortal(e.wrappedContent,n.getGui()))}));var Y_={};Object.defineProperty(Y_,"__esModule",{value:!0});var q_=l.exports,$_=pR,X_=vR;Y_.default=function(e,t,n,r,o,i){var s=q_.useContext($_.BeansContext),a=s.context;s.userComponentFactory;var l=q_.useCallback((function(){var e=o.current;if(e){var t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),a.destroyBean(e),o.current=void 0}}),[]);q_.useEffect((function(){var r=null!=e,s=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(r&&s&&!(t&&null==n)){var a=e.compDetails;if(o.current){var u=o.current,c=!!(null!=u.refresh&&0==e.force)&&u.refresh(a.params);if(!0===c||void 0===c)return;l()}var p=a.newAgStackInstance();if(p){var d=p.resolveNow(null,(function(e){return e}));if(d){var h=d.getGui();if(h)(t?n:i.current).appendChild(h),o.current=d}}}else l()}),[e,t,r]),X_.useEffectOnce((function(){return l}))},function(e){var t=a&&a.__assign||function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},n=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var o,i=Av,s=n(l.exports),u=mR,c=r(H_),p=r(Y_),d=pR,h=fR,f=vR;(o=e.CellCompState||(e.CellCompState={}))[o.ShowValue=0]="ShowValue",o[o.EditValue=1]="EditValue";e.default=s.memo((function(e){var n=s.useContext(d.BeansContext).context,r=e.cellCtrl,o=e.printLayout,a=e.editingRow,l=s.useState(),g=l[0],v=l[1],y=s.useState(),m=y[0],C=y[1],w=s.useState(1),E=w[0],b=w[1],R=s.useState(new u.CssClasses),_=R[0],S=R[1],O=s.useState(),P=O[0],T=O[1],A=s.useState(),D=A[0],N=A[1],I=s.useState(),M=I[0],F=I[1],x=s.useState(),L=x[0],G=x[1],k=s.useState(),V=k[0],H=k[1],W=s.useState(),B=W[0],j=W[1],U=s.useState(!1),z=U[0],K=U[1],Y=s.useState(!1),q=Y[0],$=Y[1],X=s.useState(!1),Q=X[0],Z=X[1],J=s.useState(),ee=J[0],te=J[1],ne=s.useMemo((function(){return r.isForceWrapper()}),[]),re=s.useRef(null),oe=s.useRef(null),ie=s.useRef(),se=s.useRef(),ae=s.useRef(),le=s.useState(0),ue=le[0],ce=le[1],pe=s.useCallback((function(e){ae.current=e,ce((function(e){return e+1}))}),[]),de=s.useRef(),he=s.useState(0),fe=he[0],ge=he[1],ve=s.useCallback((function(e){de.current=e,ge((function(e){return e+1}))}),[]),ye=null!=g&&(z||Q||q),me=ne||ye,Ce=s.useCallback((function(e,t){(se.current=t,t)&&(!function(e,t,n){var r=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){var o="AG Grid: Found an issue in column "+r.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.";i._.doOnce((function(){return console.warn(o)}),"jsEditorComp-isPopup-"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){var s="AG Grid: Found an issue in column "+r.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.";i._.doOnce((function(){return console.warn(s)}),"jsEditorComp-getPopupPosition-"+n.getColumn().getColId())}}(e,t,r),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout((function(){return r.stopEditing()}),0))}),[]),we=s.useCallback((function(e){return Ce(!0,e)}),[]),Ee=s.useCallback((function(e){return Ce(!1,e)}),[]);p.default(g,me,de.current,fe,ie,re);var be=s.useRef();s.useEffect((function(){var e=be.current,t=g;if(be.current=g,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails){var n=e.compDetails,r=t.compDetails;if(n.componentClass==r.componentClass)if(null!=oe.current&&null!=oe.current.refresh)1!=oe.current.refresh(r.params)&&b((function(e){return e+1}))}}),[g]),s.useEffect((function(){if(m&&!m.compDetails.componentFromFramework){var e=m.compDetails,t=!0===m.popup,r=h.createSyncJsComp(e);if(r){var o=r.getGui();return Ce(t,r),t||(re.current.appendChild(o),r.afterGuiAttached&&r.afterGuiAttached()),te(r),function(){n.destroyBean(r),Ce(t,void 0),te(void 0),o&&o.parentElement&&o.parentElement.removeChild(o)}}}}),[m]),s.useEffect((function(){if(r&&n&&(F(ae.current?"cell-"+r.getInstanceId():void 0),ae.current&&me)){var e=[],t=function(t){if(t){var r=t.getGui();ae.current.insertAdjacentElement("afterbegin",r),e.push((function(){n.destroyBean(t),i._.removeFromParent(r)}))}return t};return z&&t(r.createSelectionCheckbox()),Q&&t(r.createDndSource()),q&&t(r.createRowDragComp()),function(){e.forEach((function(e){e()}))}}}),[me,Q,q,z,ue]),f.useEffectOnce((function(){if(r){var e={addOrRemoveCssClass:function(e,t){return S((function(n){return n.setClass(e,t)}))},setUserStyles:function(e){return T(e)},getFocusableElement:function(){return re.current},setTabIndex:function(e){return N(e)},setRole:function(e){return G(e)},setColId:function(e){return H(e)},setTitle:function(e){return j(e)},setIncludeSelection:function(e){return K(e)},setIncludeRowDrag:function(e){return $(e)},setIncludeDndSource:function(e){return Z(e)},getCellEditor:function(){return se.current||null},getCellRenderer:function(){return oe.current?oe.current:ie.current},getParentOfValue:function(){return de.current?de.current:ae.current?ae.current:re.current},setRenderDetails:function(e,t,n){v({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(C({compDetails:e,popup:t,popupPosition:n}),t||v(void 0)):C(void 0)}},t=ae.current||void 0;r.setComp(e,re.current,t,o,a)}}));var Re=s.useMemo((function(){return!!(g&&g.compDetails&&g.compDetails.componentFromFramework&&u.isComponentStateless(g.compDetails.componentClass))}),[g]),_e=s.useMemo((function(){var e=_.toString();return me||(e+=" ag-cell-value"),e}),[_,ye]),Se=s.useMemo((function(){return r.getInstanceId()}),[]),Oe=function(){return s.default.createElement(s.default.Fragment,null,null!=g&&function(e,n,r,o,i,a,l){var u=e.compDetails,c=e.value,p=!u,d=u&&u.componentFromFramework,h=u&&u.componentClass,f=c&&c.toString?c.toString():c,g=function(){return s.default.createElement(s.default.Fragment,null,p&&s.default.createElement(s.default.Fragment,null,f),d&&!a&&s.default.createElement(h,t({},u.params,{key:n,ref:o})),d&&a&&s.default.createElement(h,t({},u.params,{key:n})))};return s.default.createElement(s.default.Fragment,null,i?s.default.createElement("span",{role:"presentation",id:"cell-"+r,className:"ag-cell-value",ref:l},g()):g())}(g,E,Se,oe,me,Re,ve),null!=m&&function(e,n,r,o,i,a){var l=e.compDetails,u=l.componentClass,p=l.componentFromFramework&&!e.popup,d=l.componentFromFramework&&e.popup,h=!l.componentFromFramework&&e.popup;return s.default.createElement(s.default.Fragment,null,p&&s.default.createElement(u,t({},e.compDetails.params,{ref:n})),d&&s.default.createElement(c.default,{editDetails:e,cellCtrl:i,eParentCell:o,wrappedContent:s.default.createElement(u,t({},e.compDetails.params,{ref:r}))}),h&&a&&s.default.createElement(c.default,{editDetails:e,cellCtrl:i,eParentCell:o,jsChildComp:a}))}(m,Ee,we,re.current,r,ee))};return s.default.createElement("div",{ref:re,className:_e,style:P,tabIndex:D,role:L,"col-id":V,title:B,"aria-describedby":M},me?s.default.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:pe},Oe()):Oe())}))}(V_);var Q_=a&&a.__assign||function(){return(Q_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Z_=a&&a.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},J_=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},eS=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(k_,"__esModule",{value:!0});var tS=J_(l.exports),nS=Av,rS=fR,oS=mR,iS=pR,sS=eS(V_),aS=vR;k_.default=tS.memo((function(e){var t=tS.useContext(iS.BeansContext).context,n=e.rowCtrl,r=e.containerType,o=tS.useState(),i=o[0],s=o[1],a=tS.useState(),l=a[0],u=a[1],c=tS.useState(),p=c[0],d=c[1],h=tS.useState(),f=h[0],g=h[1],v=tS.useState(),y=v[0],m=v[1],C=tS.useState(),w=C[0],E=C[1],b=tS.useState({list:[],instanceIdMap:new Map}),R=b[0],_=b[1],S=tS.useState(),O=S[0],P=S[1],T=tS.useState(!1),A=T[0],D=T[1],N=tS.useState(n.getInitialRowTop()),I=N[0],M=N[1],F=tS.useState(n.getInitialTransform()),x=F[0],L=F[1],G=tS.useRef(null),k=tS.useRef(),V=tS.useRef(!1),H=tS.useState(0),W=H[0],B=H[1];tS.useEffect((function(){var e;if(!V.current&&O&&!(W>10)){var t=null===(e=G.current)||void 0===e?void 0:e.firstChild;t?(n.setupDetailRowAutoHeight(t),V.current=!0):B((function(e){return e+1}))}}),[O,W]);var j=tS.useMemo((function(){return new nS.CssClassManager((function(){return G.current}))}),[]);aS.useEffectOnce((function(){if(n.isAlive()){var e={setTop:function(e){return M(e)},setTransform:function(e){return L(e)},addOrRemoveCssClass:function(e,t){return j.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return D(e)},setRowIndex:function(e){return s(e)},setRowId:function(e){return u(e)},setRowBusinessKey:function(e){return g(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return E(e)},setRole:function(e){return d(e)},setCellCtrls:function(e){return _((function(t){return function(e,t,n){if(n){var r={list:t,instanceIdMap:new Map};return t.forEach((function(e){return r.instanceIdMap.set(e.getInstanceId(),e)})),r}var o=[],i=[],s=new Map,a=new Map;return t.forEach((function(e){return a.set(e.getInstanceId(),e)})),e.list.forEach((function(e){var t=e.getInstanceId();a.has(t)&&(o.push(e),s.set(t,e))})),t.forEach((function(t){var n=t.getInstanceId();e.instanceIdMap.has(n)||(i.push(t),s.set(n,t))})),{list:Z_(o,i),instanceIdMap:s}}(t,e,A)}))},showFullWidth:function(e){return P(e)},getFullWidthCellRenderer:function(){return k.current}};n.setComp(e,G.current,r)}})),tS.useEffect((function(){return rS.showJsComp(O,t,G.current,k)}),[O]);var U,z=tS.useMemo((function(){var e={top:I,transform:x};return Object.assign(e,w),e}),[I,x,w]),K=O&&O.componentFromFramework,Y=null!=R,q=tS.useMemo((function(){var e;return!!((null===(e=O)||void 0===e?void 0:e.componentFromFramework)&&oS.isComponentStateless(O.componentClass))}),[O]);return tS.default.createElement("div",{ref:G,role:p,style:z,"row-index":i,"row-id":l,"row-business-key":f,tabIndex:y},Y&&R.list.map((function(e){return tS.default.createElement(sS.default,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})})),K&&(U=O.componentClass,tS.default.createElement(tS.default.Fragment,null,q&&tS.default.createElement(U,Q_({},O.params)),!q&&tS.default.createElement(U,Q_({},O.params,{ref:k})))))}));var lS=a&&a.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},uS=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},cS=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(G_,"__esModule",{value:!0});var pS=Av,dS=uS(l.exports),hS=mR,fS=cS(x_),gS=cS(k_),vS=pR,yS=vR;G_.default=dS.memo((function(e){var t=dS.useContext(vS.BeansContext).context,n=dS.useState(""),r=n[0],o=n[1],i=dS.useState([]),s=i[0],a=i[1],l=dS.useState([]),u=l[0],c=l[1],p=dS.useState(!1),d=p[0],h=p[1],f=dS.useState(""),g=f[0],v=f[1],y=e.name,m=dS.useMemo((function(){return pS.getRowContainerTypeForName(y)}),[y]),C=dS.useRef(null),w=dS.useRef(null),E=dS.useRef(null),b=dS.useMemo((function(){return pS.RowContainerCtrl.getRowContainerCssClasses(y)}),[y]),R=dS.useMemo((function(){return hS.classesList(b.wrapper)}),[]),_=dS.useMemo((function(){return hS.classesList(b.viewport)}),[]),S=dS.useMemo((function(){return hS.classesList(b.container)}),[]),O=y===pS.RowContainerName.CENTER,P=y===pS.RowContainerName.TOP_CENTER||y===pS.RowContainerName.BOTTOM_CENTER,T=!O&&!P,A=O?C:P?w:E;fS.default(" AG Row Container "+y+" ",A),dS.useEffect((function(){a((function(e){if(d)return u;var t=e.filter((function(e){return u.indexOf(e)>=0})),n=u.filter((function(e){return t.indexOf(e)<0}));return lS(t,n)}))}),[d,u]),yS.useEffectOnce((function(){var e=[],n={setViewportHeight:o,setRowCtrls:function(e){return c(e)},setDomOrder:function(e){return h(e)},setContainerWidth:function(e){return v(e)}},r=t.createBean(new pS.RowContainerCtrl(y));return e.push(r),r.setComp(n,E.current,w.current,C.current),function(){t.destroyBeans(e)}}));var D=dS.useMemo((function(){return{height:r}}),[r]),N=dS.useMemo((function(){return{width:g}}),[g]),I=function(){return dS.default.createElement("div",{className:S,ref:E,role:u.length?"rowgroup":"presentation",style:N},s.map((function(e){return dS.default.createElement(gS.default,{rowCtrl:e,containerType:m,key:e.getInstanceId()})})))};return dS.default.createElement(dS.default.Fragment,null,O&&dS.default.createElement("div",{className:R,ref:C,role:"presentation"},dS.default.createElement("div",{className:_,ref:w,role:"presentation",style:D},I())),P&&dS.default.createElement("div",{className:_,ref:w,role:"presentation",style:D},I()),T&&I())}));var mS=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},CS=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MR,"__esModule",{value:!0});var wS=Av,ES=mS(l.exports),bS=pR,RS=CS(FR),_S=CS(x_),SS=CS(G_),OS=vR,PS=mR;MR.default=ES.memo((function(){var e=ES.useContext(bS.BeansContext),t=e.context,n=e.agStackComponentsRegistry,r=e.resizeObserverService,o=ES.useState(""),i=o[0],s=o[1],a=ES.useState(0),l=a[0],u=a[1],c=ES.useState(0),p=c[0],d=c[1],h=ES.useState(0),f=h[0],g=h[1],v=ES.useState(0),y=v[0],m=v[1],C=ES.useState(""),w=C[0],E=C[1],b=ES.useState(""),R=b[0],_=b[1],S=ES.useState(null),O=S[0],P=S[1],T=ES.useState(null),A=T[0],D=T[1],N=ES.useState(""),I=N[0],M=N[1],F=ES.useState(null),x=F[0],L=F[1],G=ES.useState("ag-layout-normal"),k=G[0],V=G[1],H=ES.useRef(null),W=ES.useRef(null),B=ES.useRef(null),j=ES.useRef(null);_S.default(" AG Grid Body ",H),_S.default(" AG Pinned Top ",W),_S.default(" AG Middle ",B),_S.default(" AG Pinned Bottom ",j),OS.useEffectOnce((function(){var e=[],o=[];if(t){var i=function(r){var o=n.getComponentClass(r),i=t.createBean(new o);return e.push(i),i};H.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),H.current.appendChild(i("AG-FAKE-HORIZONTAL-SCROLL").getGui()),H.current.appendChild(document.createComment(" AG Overlay Wrapper ")),H.current.appendChild(i("AG-OVERLAY-WRAPPER").getGui());var a={setRowAnimationCssOnBodyViewport:s,setColumnCount:u,setRowCount:d,setTopHeight:g,setBottomHeight:m,setTopDisplay:E,setBottomDisplay:_,setColumnMovingCss:P,updateLayoutClasses:V,setAlwaysVerticalScrollClass:D,setPinnedTopBottomOverflowY:M,setCellSelectableCss:L,registerBodyViewportResizeListener:function(e){var t=r.observeResize(B.current,e);o.push((function(){return t()}))}},l=t.createBean(new wS.GridBodyCtrl);return e.push(l),l.setComp(a,H.current,B.current,W.current,j.current),function(){t.destroyBeans(e),o.forEach((function(e){return e()}))}}}));var U=ES.useMemo((function(){return PS.classesList("ag-root","ag-unselectable",O,k)}),[O,k]),z=ES.useMemo((function(){return PS.classesList("ag-body-viewport",i,k,A,x)}),[i,k,A,x]),K=ES.useMemo((function(){return PS.classesList("ag-floating-top",x)}),[x]),Y=ES.useMemo((function(){return PS.classesList("ag-floating-bottom",x)}),[x]),q=ES.useMemo((function(){return{height:f,minHeight:f,display:w,overflowY:I}}),[f,w,I]),$=ES.useMemo((function(){return{height:y,minHeight:y,display:R,overflowY:I}}),[y,R,I]),X=function(e){return ES.default.createElement(SS.default,{name:e,key:e+"-container"})},Q=function(e){var t=e.section,n=e.children,r=e.className,o=e.style;return ES.default.createElement("div",{ref:t,className:r,role:"presentation",style:o},n.map(X))};return ES.default.createElement("div",{ref:H,className:U,role:"grid","aria-colcount":l,"aria-rowcount":p},ES.default.createElement(RS.default,null),Q({section:W,className:K,style:q,children:[wS.RowContainerName.TOP_LEFT,wS.RowContainerName.TOP_CENTER,wS.RowContainerName.TOP_RIGHT,wS.RowContainerName.TOP_FULL_WIDTH]}),Q({section:B,className:z,children:[wS.RowContainerName.LEFT,wS.RowContainerName.CENTER,wS.RowContainerName.RIGHT,wS.RowContainerName.FULL_WIDTH]}),Q({section:j,className:Y,style:$,children:[wS.RowContainerName.BOTTOM_LEFT,wS.RowContainerName.BOTTOM_CENTER,wS.RowContainerName.BOTTOM_RIGHT,wS.RowContainerName.BOTTOM_FULL_WIDTH]}))}));var TS={},AS=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(TS,"__esModule",{value:!0});var DS=AS(l.exports),NS=Av,IS=pR,MS=vR,FS=DS.forwardRef((function(e,t){var n=e.children,r=e.eFocusableElement,o=e.onTabKeyDown,i=e.gridCtrl,s=DS.useContext(IS.BeansContext).context,a=DS.useRef(null),l=DS.useRef(null),u=DS.useRef(),c=DS.useState(),p=c[0],d=c[1];DS.useImperativeHandle(t,(function(){return{forceFocusOutOfContainer:function(){u.current.forceFocusOutOfContainer()}}})),MS.useEffectOnce((function(){var e=a.current,t=l.current,n={setTabIndex:function(e){return d(null==e?void 0:parseInt(e,10))}},c=u.current=s.createBean(new NS.TabGuardCtrl({comp:n,eTopGuard:e,eBottomGuard:t,eFocusableElement:r,onTabKeyDown:o,focusInnerElement:function(e){return i.focusInnerElement(e)}}));return function(){s.destroyBean(c)}}));var h=function(e){return DS.default.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:p,ref:"top"===e?a:l})};return DS.default.createElement(DS.default.Fragment,null,h("top"),n,h("bottom"))}));TS.default=DS.memo(FS);var xS=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},LS=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(IR,"__esModule",{value:!0});var GS=Av,kS=xS(l.exports),VS=pR,HS=LS(MR),WS=LS(x_),BS=LS(TS),jS=vR,US=mR;IR.default=kS.memo((function(e){var t=e.context,n=kS.useState(""),r=n[0],o=n[1],i=kS.useState(""),s=i[0],a=i[1],l=kS.useState(""),u=l[0],c=l[1],p=kS.useState(null),d=p[0],h=p[1],f=kS.useState(null),g=f[0],v=f[1],y=kS.useState(!1),m=y[0],C=y[1],w=kS.useState(),E=w[0],b=w[1],R=kS.useRef(null),_=kS.useRef(null),S=kS.useRef(),O=kS.useRef(null),P=kS.useRef((function(){})),T=kS.useCallback((function(){}),[]),A=kS.useMemo((function(){return t.getBean("beans")}),[]);WS.default(" AG Grid ",_),jS.useEffectOnce((function(){var e=R.current=t.createBean(new GS.GridCtrl);return function(){t.destroyBean(e),R.current=null}})),jS.useEffectOnce((function(){var e=R.current;P.current=e.focusInnerElement.bind(e);var t={destroyGridUi:function(){},setRtlClass:o,addOrRemoveKeyboardFocusClass:function(e){return a(e?GS.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){S.current.forceFocusOutOfContainer()},updateLayoutClasses:c,getFocusableContainers:function(){var e=[],t=_.current.querySelector(".ag-root"),n=_.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:h,setUserSelect:v};e.setComp(t,_.current,_.current),C(!0)})),kS.useEffect((function(){if(E){var e=R.current,n=[],r=A.agStackComponentsRegistry,o=r.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),i=r.getComponentClass("AG-SIDE-BAR"),s=r.getComponentClass("AG-STATUS-BAR"),a=r.getComponentClass("AG-WATERMARK"),l=r.getComponentClass("AG-PAGINATION"),u=[],c=_.current,p=O.current;if(e.showDropZones()&&o){var d=t.createBean(new o),h=d.getGui();c.insertAdjacentElement("afterbegin",h),u.push(h),n.push(d)}if(e.showSideBar()&&i){var f=t.createBean(new i),g=(h=f.getGui(),p.querySelector(".ag-tab-guard-bottom"));g&&(g.insertAdjacentElement("beforebegin",h),u.push(h)),n.push(f)}if(e.showStatusBar()&&s){var v=t.createBean(new s);h=v.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(v)}if(l){var y=t.createBean(new l);h=y.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(y)}if(e.showWatermark()&&a){var m=t.createBean(new a);h=m.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(m)}return function(){t.destroyBeans(n),u.forEach((function(e){e.parentElement&&e.parentElement.removeChild(e)}))}}}),[E]);var D=kS.useMemo((function(){return US.classesList("ag-root-wrapper",r,s,u)}),[r,s,u]),N=kS.useMemo((function(){return US.classesList("ag-root-wrapper-body","ag-focus-managed",u)}),[u]),I=kS.useMemo((function(){return{userSelect:null!=g?g:"",WebkitUserSelect:null!=g?g:"",cursor:null!=d?d:""}}),[g,d]),M=O.current,F=kS.useCallback((function(e){S.current=e,b(!0)}),[]);return kS.default.createElement("div",{ref:_,className:D,style:I},kS.default.createElement("div",{className:N,ref:O},m&&M&&kS.default.createElement(VS.BeansContext.Provider,{value:A},kS.default.createElement(BS.default,{ref:F,eFocusableElement:M,onTabKeyDown:T,gridCtrl:R.current},kS.default.createElement(HS.default,null)))))}));var zS=a&&a.__extends||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)}}(),KS=a&&a.__assign||function(){return(KS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},YS=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},qS=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(NR,"__esModule",{value:!0});var $S=Av,XS=YS(l.exports),QS=kb,ZS=qb,JS=$b,eO=sR,tO=qS(IR),nO=uR;var rO=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.destroyFuncs=[],n.changeDetectionService=new ZS.ChangeDetectionService,n.eGui=XS.default.createRef(),n.whenReadyFuncs=[],n.ready=!1,n.renderedAfterMount=!1,n.mounted=!1,n.state={context:void 0},n.portalManager=new eO.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n.destroyFuncs.push((function(){return n.portalManager.destroy()})),n}return zS(t,e),t.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),XS.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&XS.default.createElement(tO.default,{context:this.state.context}),this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return KS({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this;if(!this.mounted){this.mounted=!0;var t=this.props.modules||[],n={providedBeanInstances:{frameworkComponentWrapper:new oO(this.portalManager)},modules:t,frameworkOverrides:new nO.ReactFrameworkOverrides(!0)};this.gridOptions=this.props.gridOptions||{};var r=this.props.children;QS.AgGridColumn.hasChildColumns(r)&&(this.gridOptions.columnDefs=QS.AgGridColumn.mapChildColumnDefs(r)),this.gridOptions=$S.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new $S.GridCoreCreator).create(this.eGui.current,this.gridOptions,(function(t){e.setState({context:t}),t.getBean($S.CtrlsService.NAME).whenReady((function(){e.api=e.gridOptions.api,e.columnApi=e.gridOptions.columnApi,e.props.setGridApi(e.api,e.columnApi),e.destroyFuncs.push((function(){return e.api.destroy()}))}))}),(function(t){t.getBean($S.CtrlsService.NAME).whenReady((function(){e.whenReadyFuncs.forEach((function(e){return e()})),e.whenReadyFuncs.length=0,e.ready=!0}))}),n)}},t.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach((function(e){return e()})),this.destroyFuncs.length=0)},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs;if(QS.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),s=QS.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(o,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:s})}else o&&o.length>0&&(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(r){e[r]!==t[r]&&(o&&console.log("agGridReact: ["+r+"] event callback changed"),n[r]={previousValue:e[r],currentValue:t[r]})}))},t.prototype.processChanges=function(e){var t=this;this.processWhenReady((function(){return $S.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return ZS.ChangeDetectionStrategyType.IdentityCheck}return ZS.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t}(XS.Component);NR.AgGridReactUi=rO;var oO=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return zS(t,e),t.prototype.createWrapper=function(e,t){return new JS.NewReactComponent(e,this.parent,t)},t}($S.BaseComponentWrapper),iO=a&&a.__assign||function(){return(iO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sO=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(DR,"__esModule",{value:!0});var aO=sO(l.exports),lO=mR,uO=pR,cO=NR,pO=vR;DR.default=aO.forwardRef((function(e,t){var n=aO.useContext(uO.BeansContext),r=n.ctrlsFactory,o=n.context,i=n.gridOptionsWrapper,s=n.resizeObserverService,a=n.clientSideRowModel,l=n.serverSideRowModel,u=aO.useState(new lO.CssClasses),c=u[0],p=u[1],d=aO.useState(new lO.CssClasses),h=d[0],f=d[1],g=aO.useState(),v=g[0],y=g[1],m=aO.useState(),C=m[0],w=m[1],E=aO.useRef(),b=aO.useRef(null),R=aO.useMemo((function(){return c.toString()+" ag-details-row"}),[c]),_=aO.useMemo((function(){return h.toString()+" ag-details-grid"}),[h]);t&&aO.useImperativeHandle(t,(function(){return{refresh:function(){return E.current.refresh()}}})),pO.useEffectOnce((function(){e.template&&"string"==typeof e.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")})),pO.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return p((function(n){return n.setClass(e,t)}))},addOrRemoveDetailGridCssClass:function(e,t){return f((function(n){return n.setClass(e,t)}))},setDetailGrid:function(e){return y(e)},setRowData:function(e){return w(e)},getGui:function(){return b.current}},n=r.getInstance("detailCellRenderer");if(n){var u;if(o.createBean(n),n.init(t,e),E.current=n,i.isDetailRowAutoHeight()){var c=function(){if(null!=b.current){var t=b.current.clientHeight;if(null!=t&&t>0){setTimeout((function(){e.node.setRowHeight(t),a?a.onRowHeightChanged():l&&l.onRowHeightChanged()}),0)}}};u=s.observeResize(b.current,c),c()}return function(){o.destroyBean(n),u&&u()}}}));var S=aO.useCallback((function(e,t){E.current.registerDetailWithMaster(e,t)}),[]);return aO.default.createElement("div",{className:R,ref:b},v&&aO.default.createElement(cO.AgGridReactUi,iO({className:_},v,{rowData:C,setGridApi:S})))}));var dO=a&&a.__extends||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)}}(),hO=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(uR,"__esModule",{value:!0});var fO=Av,gO=hO(cR),vO=hO(DR),yO=function(e){function t(t){var n=e.call(this)||this;return n.frameworkComponents={agGroupCellRenderer:gO.default,agGroupRowRenderer:gO.default,agDetailCellRenderer:vO.default},n.reactUi=t,n}return dO(t,e),t.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},t.prototype.isFrameworkComponent=function(e){if(!e)return!1;var t=e.prototype;return!(t&&"getGui"in t)},t}(fO.VanillaFrameworkOverrides);uR.ReactFrameworkOverrides=yO;var mO=a&&a.__extends||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=a&&a.__assign||function(){return(CO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},wO=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},EO=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(Tv,"__esModule",{value:!0});var bO=Av,RO=wO(Dv.exports),_O=EO(l.exports),SO=Fv,OO=kb,PO=qb,TO=$b,AO=sR,DO=uR,NO=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.changeDetectionService=new PO.ChangeDetectionService,n.api=null,n.destroyed=!1,n.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],n.portalManager=new AO.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n}return mO(t,e),t.prototype.render=function(){var e=this;return _O.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(t){e.eGridDiv=t}},this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return CO({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new MO(this,this.portalManager)},modules:e,frameworkOverrides:new DO.ReactFrameworkOverrides(!1)},n=this.props.gridOptions||{},r=this.props.children;OO.AgGridColumn.hasChildColumns(r)&&(n.columnDefs=OO.AgGridColumn.mapChildColumnDefs(r)),this.gridOptions=bO.ComponentUtil.copyAttributesToGridOptions(n,this.props),new bO.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return PO.ChangeDetectionStrategyType.IdentityCheck}return PO.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,r="columnDefs",o=this.gridOptions.columnDefs;if(OO.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(r)),s=OO.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(o,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[r]={previousValue:o,currentValue:s})}else o&&o.length>0&&(t[r]={previousValue:o,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var r=this,o=!!t.debug;Object.keys(t).forEach((function(i){bO._.includes(bO.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]}))})),bO.ComponentUtil.getEventCallbacks().forEach((function(r){e[r]!==t[r]&&(o&&console.log("agGridReact: ["+r+"] event callback changed"),n[r]={previousValue:e[r],currentValue:t[r]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},t.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},t.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},t.prototype.processSynchronousChanges=function(e){var t=CO({},e);if(Object.keys(t).length>0){var n={};this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach((function(e){t[e]&&(n[e]=t[e],delete t[e])})),Object.keys(n).length>0&&this.api&&bO.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)}return t},t.prototype.processAsynchronousChanges=function(e){var t=this;Object.keys(e).length>0&&window.setTimeout((function(){t.api&&bO.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(_O.Component);function IO(e,t){e.forEach((function(e){NO[e]=t}))}Tv.AgGridReactLegacy=NO,NO.propTypes={gridOptions:RO.default.object},IO(bO.ComponentUtil.getEventCallbacks(),RO.default.func),IO(bO.ComponentUtil.BOOLEAN_PROPERTIES,RO.default.bool),IO(bO.ComponentUtil.STRING_PROPERTIES,RO.default.string),IO(bO.ComponentUtil.OBJECT_PROPERTIES,RO.default.object),IO(bO.ComponentUtil.ARRAY_PROPERTIES,RO.default.array),IO(bO.ComponentUtil.NUMBER_PROPERTIES,RO.default.number),IO(bO.ComponentUtil.FUNCTION_PROPERTIES,RO.default.func);var MO=function(e){function t(t,n){var r=e.call(this)||this;return r.agGridReact=t,r.portalManager=n,r}return mO(t,e),t.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new SO.LegacyReactComponent(e,this.agGridReact,this.portalManager,t):new TO.NewReactComponent(e,this.portalManager,t)},t}(bO.BaseComponentWrapper),FO=a&&a.__extends||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)}}(),xO=a&&a.__assign||function(){return(xO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},LO=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(Pv,"__esModule",{value:!0});var GO=LO(l.exports),kO=Tv,VO=NR,HO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.setGridApi=function(e,n){t.api=e,t.columnApi=n},t}return FO(t,e),t.prototype.render=function(){var e=this.props.suppressReactUi?kO.AgGridReactLegacy:VO.AgGridReactUi;return GO.default.createElement(e,xO({},this.props,{setGridApi:this.setGridApi}))},t}(GO.Component);Pv.AgGridReact=HO;var WO=Pv.AgGridReact,BO=kb.AgGridColumn;function jO(){return(jO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function UO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zO(e,t){return(zO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}NR.AgGridReactUi;var KO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function YO(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||KO(r)&&KO(o)))return!1;var r,o;return!0}function qO(e,t){var n;void 0===t&&(t=YO);var r,o=[],i=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return i&&n===this&&t(s,o)||(r=e.apply(this,s),i=!0,n=this,o=s),r}}var $O="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function XO(e){cancelAnimationFrame(e.id)}var QO=-1;function ZO(e){if(void 0===e&&(e=!1),-1===QO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),QO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return QO}var JO=null;function eP(e){if(void 0===e&&(e=!1),null===JO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?JO="positive-descending":(t.scrollLeft=1,JO=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),JO}return JO}var tP=function(e,t){return e};function nP(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return(t=function(e){var t,d;function h(t){var r;return(r=e.call(this,t)||this)._instanceProps=u(r.props,UO(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:UO(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=qO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=qO((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,s=i.direction,a=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&a,c&&l,c&&s);if(u.hasOwnProperty(e))t=u[e];else{var p=n(r.props,e,r._instanceProps),d=o(r.props,e,r._instanceProps),h="horizontal"===s||"horizontal"===l,f="rtl"===s,g=h?p:0;u[e]=t={position:"absolute",left:f?void 0:g,right:f?g:void 0,top:h?0:p,height:h?"100%":d,width:h?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=qO((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,s=o;if("rtl"===t)switch(eP()){case"negative":s=-o;break;case"positive-descending":s=i-n-o}return s=Math.max(0,Math.min(s,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<s?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&XO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=function(e,t){var n=$O(),r={id:requestAnimationFrame((function o(){$O()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}d=e,(t=h).prototype=Object.create(d.prototype),t.prototype.constructor=t,zO(t,d),h.getDerivedStateFromProps=function(e,t){return rP(e,t),p(e),null};var f=h.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,s=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?ZO():0:l.scrollHeight>l.clientHeight?ZO():0}this.scrollTo(i(this.props,e,t,s,this._instanceProps,a))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(eP()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var s=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-s-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&XO(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,s=e.innerRef,a=e.innerElementType,u=e.innerTagName,c=e.itemCount,p=e.itemData,d=e.itemKey,h=void 0===d?tP:d,f=e.layout,g=e.outerElementType,v=e.outerTagName,y=e.style,m=e.useIsScrolling,C=e.width,w=this.state.isScrolling,E="horizontal"===o||"horizontal"===f,b=E?this._onScrollHorizontal:this._onScrollVertical,R=this._getRangeToRender(),_=R[0],S=R[1],O=[];if(c>0)for(var P=_;P<=S;P++)O.push(l.exports.createElement(t,{data:p,key:h(P,p),index:P,isScrolling:m?w:void 0,style:this._getItemStyle(P)}));var T=r(this.props,this._instanceProps);return l.exports.createElement(g||v||"div",{className:n,onScroll:b,ref:this._outerRefSetter,style:jO({position:"relative",height:i,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},l.exports.createElement(a||u||"div",{children:O,ref:s,style:{height:E?"100%":T,pointerEvents:w?"none":void 0,width:E?T:"100%"}}))},f._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,s=i.scrollDirection,a=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,l,this._instanceProps),c=a(this.props,u,l,this._instanceProps),p=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-p),Math.max(0,Math.min(t-1,c+d)),u,c]},h}(l.exports.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var rP=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},oP=nP({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var s=e.direction,a=e.height,l=e.itemCount,u=e.itemSize,c=e.layout,p=e.width,d="horizontal"===s||"horizontal"===c?p:a,h=Math.max(0,l*u-d),f=Math.min(h,t*u),g=Math.max(0,t*u-d+u+i);switch("smart"===n&&(n=r>=g-d&&r<=f+d?"auto":"center"),n){case"start":return f;case"end":return g;case"center":var v=Math.round(g+(f-g)/2);return v<Math.ceil(d/2)?0:v>h+Math.floor(d/2)?h:v;case"auto":default:return r>=g&&r<=f?r:r<g?g:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,u=t*s,c="horizontal"===r||"horizontal"===a?l:o,p=Math.ceil((c+n-u)/s);return Math.max(0,Math.min(i-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});export{WO as A,oP as F,U as R,Rh as a,bg as b,Sd as c,Rg as d,Kp as e,Sh as f,Tg as g,Mh as h,_v as i,Hg as j,l as k,Zc as l,af as m,Ov as n,bd as o,qc as p,Bh as q,Dh as r,jh as s,Kh as t,Eg as u,ug as v,$h as w,BO as x,Yc as y};
|