UNPKG

1.55 MBJavaScriptView Raw
1!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=85)}([function(e,t,n){"use strict";e.exports=n(86)},function(e,t,n){"use strict";n.r(t),function(e,o){n.d(t,"$mobx",(function(){return S})),n.d(t,"FlowCancellationError",(function(){return Rt})),n.d(t,"IDerivationState",(function(){return J})),n.d(t,"ObservableMap",(function(){return wn})),n.d(t,"ObservableSet",(function(){return _n})),n.d(t,"Reaction",(function(){return qe})),n.d(t,"_allowStateChanges",(function(){return _e})),n.d(t,"_allowStateChangesInsideComputed",(function(){return Se})),n.d(t,"_allowStateReadsEnd",(function(){return fe})),n.d(t,"_allowStateReadsStart",(function(){return he})),n.d(t,"_endAction",(function(){return be})),n.d(t,"_getAdministration",(function(){return In})),n.d(t,"_getGlobalState",(function(){return Ge})),n.d(t,"_interceptReads",(function(){return Dt})),n.d(t,"_isComputingDerivation",(function(){return se})),n.d(t,"_resetGlobalState",(function(){return Ve})),n.d(t,"_startAction",(function(){return Ee})),n.d(t,"action",(function(){return rt})),n.d(t,"autorun",(function(){return lt})),n.d(t,"comparer",(function(){return A})),n.d(t,"computed",(function(){return ne})),n.d(t,"configure",(function(){return gt})),n.d(t,"createAtom",(function(){return D})),n.d(t,"decorate",(function(){return vt})),n.d(t,"entries",(function(){return Vt})),n.d(t,"extendObservable",(function(){return mt})),n.d(t,"flow",(function(){return Tt})),n.d(t,"get",(function(){return Bt})),n.d(t,"getAtom",(function(){return xn})),n.d(t,"getDebugName",(function(){return Fn})),n.d(t,"getDependencyTree",(function(){return wt})),n.d(t,"getObserverTree",(function(){return bt})),n.d(t,"has",(function(){return Ht})),n.d(t,"intercept",(function(){return At})),n.d(t,"isAction",(function(){return st})),n.d(t,"isArrayLike",(function(){return w})),n.d(t,"isBoxedObservable",(function(){return Pe})),n.d(t,"isComputed",(function(){return xt})),n.d(t,"isComputedProp",(function(){return It})),n.d(t,"isFlowCancellationError",(function(){return St})),n.d(t,"isObservable",(function(){return Mt})),n.d(t,"isObservableArray",(function(){return mn})),n.d(t,"isObservableMap",(function(){return En})),n.d(t,"isObservableObject",(function(){return Nn})),n.d(t,"isObservableProp",(function(){return Lt})),n.d(t,"isObservableSet",(function(){return On})),n.d(t,"keys",(function(){return kt})),n.d(t,"observable",(function(){return Q})),n.d(t,"observe",(function(){return zt})),n.d(t,"onBecomeObserved",(function(){return dt})),n.d(t,"onBecomeUnobserved",(function(){return ht})),n.d(t,"onReactionError",(function(){return Ke})),n.d(t,"reaction",(function(){return pt})),n.d(t,"remove",(function(){return jt})),n.d(t,"runInAction",(function(){return it})),n.d(t,"set",(function(){return Wt})),n.d(t,"spy",(function(){return et})),n.d(t,"toJS",(function(){return qt})),n.d(t,"trace",(function(){return Kt})),n.d(t,"transaction",(function(){return Qt})),n.d(t,"untracked",(function(){return ce})),n.d(t,"values",(function(){return Gt})),n.d(t,"when",(function(){return Xt}));
2/*! *****************************************************************************
3Copyright (c) Microsoft Corporation. All rights reserved.
4Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5this file except in compliance with the License. You may obtain a copy of the
6License at http://www.apache.org/licenses/LICENSE-2.0
7
8THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11MERCHANTABLITY OR NON-INFRINGEMENT.
12
13See the Apache Version 2.0 License for specific language governing permissions
14and limitations under the License.
15***************************************************************************** */
16var r=function(e,t){return(r=Object.setPrototypeOf||{__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)};var i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}var u=[];Object.freeze(u);var c={};function p(){return++ke.mobxGuid}function d(e){throw h(!1,e),"X"}function h(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(c);function f(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function v(e){return null!==e&&"object"==typeof e}function m(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function C(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return v(e)&&!0===e[n]}}function w(e){return Array.isArray(e)||mn(e)}function E(e){return e instanceof Map}function b(e){return e instanceof Set}function _(e){var t=new Set;for(var n in e)t.add(n);return Object.getOwnPropertySymbols(e).forEach((function(n){Object.getOwnPropertyDescriptor(e,n).enumerable&&t.add(n)})),Array.from(t)}function O(e){return e&&e.toString?e.toString():new String(e).toString()}function R(e){return null===e?null:"object"==typeof e?""+e:e}var S=Symbol("mobx administration"),T=function(){function e(e){void 0===e&&(e="Atom@"+p()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=J.NOT_TRACKING}return e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.reportObserved=function(){return Ue(this)},e.prototype.reportChanged=function(){Be(),function(e){if(e.lowestObserverState===J.STALE)return;e.lowestObserverState=J.STALE,e.observers.forEach((function(t){t.dependenciesState===J.UP_TO_DATE&&(t.isTracing!==Z.NONE&&Ye(t,e),t.onBecomeStale()),t.dependenciesState=J.STALE}))}(this),ze()},e.prototype.toString=function(){return this.name},e}(),P=C("Atom",T);function D(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var o=new T(e);return t!==g&&dt(o,t),n!==g&&ht(o,n),o}var A={identity:function(e,t){return e===t},structural:function(e,t){return Ln(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return Ln(e,t,1)}},N=Symbol("mobx did run lazy initializers"),x=Symbol("mobx pending decorators"),I={},F={};function M(e,t){var n=t?I:F;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return L(this),this[e]},set:function(t){L(this),this[e]=t}})}function L(e){var t,n;if(!0!==e[N]){var o=e[x];if(o){y(e,N,!0);var r=l(Object.getOwnPropertySymbols(o),Object.keys(o));try{for(var i=s(r),a=i.next();!a.done;a=i.next()){var u=o[a.value];u.propertyCreator(e,u.prop,u.descriptor,u.decoratorTarget,u.decoratorArguments)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}}}function k(e,t){return function(){var n,o=function(o,r,s,a){if(!0===a)return t(o,r,s,o,n),null;if(!Object.prototype.hasOwnProperty.call(o,x)){var l=o[x];y(o,x,i({},l))}return o[x][r]={prop:r,propertyCreator:t,descriptor:s,decoratorTarget:o,decoratorArguments:n},M(r,e)};return G(arguments)?(n=u,o.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),o)}}function G(e){return(2===e.length||3===e.length)&&("string"==typeof e[1]||"symbol"==typeof e[1])||4===e.length&&!0===e[3]}function V(e,t,n){return Mt(e)?e:Array.isArray(e)?Q.array(e,{name:n}):m(e)?Q.object(e,void 0,{name:n}):E(e)?Q.map(e,{name:n}):b(e)?Q.set(e,{name:n}):e}function W(e){return e}function j(t){h(t);var n=k(!0,(function(e,n,o,r,i){var s=o?o.initializer?o.initializer.call(e):o.value:void 0;Sn(e).addObservableProp(n,s,t)})),o=(void 0!==e&&e.env,n);return o.enhancer=t,o}var H={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function B(e){return null==e?H:"string"==typeof e?{name:e,deep:!0,proxy:!0}:e}Object.freeze(H);var z=j(V),U=j((function(e,t,n){return null==e||Nn(e)||mn(e)||En(e)||On(e)?e:Array.isArray(e)?Q.array(e,{name:n,deep:!1}):m(e)?Q.object(e,void 0,{name:n,deep:!1}):E(e)?Q.map(e,{name:n,deep:!1}):b(e)?Q.set(e,{name:n,deep:!1}):d(!1)})),Y=j(W),q=j((function(e,t,n){return Ln(e,t)?t:e}));function K(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?W:V}var $={box:function(e,t){arguments.length>2&&X("box");var n=B(t);return new Te(e,K(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&X("array");var n=B(t);return dn(e,K(n),n.name)},map:function(e,t){arguments.length>2&&X("map");var n=B(t);return new wn(e,K(n),n.name)},set:function(e,t){arguments.length>2&&X("set");var n=B(t);return new _n(e,K(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&X("object");var o=B(n);if(!1===o.proxy)return mt({},e,t,o);var r=yt(o),i=mt({},void 0,void 0,o),s=on(i);return Ct(s,e,t,r),s},ref:Y,shallow:U,deep:z,struct:q},Q=function(e,t,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return z.apply(null,arguments);if(Mt(e))return e;var o=m(e)?Q.object(e,t,n):Array.isArray(e)?Q.array(e,t):E(e)?Q.map(e,t):b(e)?Q.set(e,t):e;if(o!==e)return o;d(!1)};function X(e){d("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys($).forEach((function(e){return Q[e]=$[e]}));var J,Z,ee=k(!1,(function(e,t,n,o,r){var s=n.get,a=n.set,l=r[0]||{};Sn(e).addComputedProp(e,t,i({get:s,set:a,context:e},l))})),te=ee({equals:A.structural}),ne=function(e,t,n){if("string"==typeof t)return ee.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return ee.apply(null,arguments);var o="object"==typeof t?t:{};return o.get=e,o.set="function"==typeof t?t:o.set,o.name=o.name||e.name||"",new De(o)};ne.struct=te,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(J||(J={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Z||(Z={}));var oe=function(e){this.cause=e};function re(e){return e instanceof oe}function ie(e){switch(e.dependenciesState){case J.UP_TO_DATE:return!1;case J.NOT_TRACKING:case J.STALE:return!0;case J.POSSIBLY_STALE:for(var t=he(!0),n=pe(),o=e.observing,r=o.length,i=0;i<r;i++){var s=o[i];if(Ae(s)){if(ke.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return de(n),fe(t),!0}if(e.dependenciesState===J.STALE)return de(n),fe(t),!0}}return ge(e),de(n),fe(t),!1}}function se(){return null!==ke.trackingDerivation}function ae(e){var t=e.observers.size>0;ke.computationDepth>0&&t&&d(!1),ke.allowStateChanges||!t&&"strict"!==ke.enforceActions||d(!1)}function le(e,t,n){var o=he(!0);ge(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++ke.runId;var r,i=ke.trackingDerivation;if(ke.trackingDerivation=e,!0===ke.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(e){r=new oe(e)}return ke.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,o=J.UP_TO_DATE,r=0,i=e.unboundDepsCount,s=0;s<i;s++){0===(a=n[s]).diffValue&&(a.diffValue=1,r!==s&&(n[r]=a),r++),a.dependenciesState>o&&(o=a.dependenciesState)}n.length=r,e.newObserving=null,i=t.length;for(;i--;){0===(a=t[i]).diffValue&&je(a,e),a.diffValue=0}for(;r--;){var a;1===(a=n[r]).diffValue&&(a.diffValue=0,We(a,e))}o!==J.UP_TO_DATE&&(e.dependenciesState=o,e.onBecomeStale())}(e),fe(o),r}function ue(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)je(t[n],e);e.dependenciesState=J.NOT_TRACKING}function ce(e){var t=pe();try{return e()}finally{de(t)}}function pe(){var e=ke.trackingDerivation;return ke.trackingDerivation=null,e}function de(e){ke.trackingDerivation=e}function he(e){var t=ke.allowStateReads;return ke.allowStateReads=e,t}function fe(e){ke.allowStateReads=e}function ge(e){if(e.dependenciesState!==J.UP_TO_DATE){e.dependenciesState=J.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=J.UP_TO_DATE}}var ve=0,me=1,ye=Object.getOwnPropertyDescriptor((function(){}),"name");ye&&ye.configurable;function Ce(e,t,n){var o=function(){return we(e,t,n||this,arguments)};return o.isMobxAction=!0,o}function we(e,t,n,o){var r=Ee(e,n,o);try{return t.apply(n,o)}catch(e){throw r.error=e,e}finally{be(r)}}function Ee(e,t,n){var o=0,r=pe();Be();var i={prevDerivation:r,prevAllowStateChanges:Oe(!0),prevAllowStateReads:he(!0),notifySpy:!1,startTime:o,actionId:me++,parentActionId:ve};return ve=i.actionId,i}function be(e){ve!==e.actionId&&d("invalid action stack. did you forget to finish an action?"),ve=e.parentActionId,void 0!==e.error&&(ke.suppressReactionErrors=!0),Re(e.prevAllowStateChanges),fe(e.prevAllowStateReads),ze(),de(e.prevDerivation),e.notifySpy,ke.suppressReactionErrors=!1}function _e(e,t){var n,o=Oe(e);try{n=t()}finally{Re(o)}return n}function Oe(e){var t=ke.allowStateChanges;return ke.allowStateChanges=e,t}function Re(e){ke.allowStateChanges=e}function Se(e){var t,n=ke.computationDepth;ke.computationDepth=0;try{t=e()}finally{ke.computationDepth=n}return t}var Te=function(e){function t(t,n,o,r,i){void 0===o&&(o="ObservableValue@"+p()),void 0===r&&(r=!0),void 0===i&&(i=A.default);var s=e.call(this,o)||this;return s.enhancer=n,s.name=o,s.equals=i,s.hasUnreportedChange=!1,s.value=n(t,void 0,o),s}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value;if((e=this.prepareNewValue(e))!==ke.UNCHANGED){0,this.setNewValue(e)}},t.prototype.prepareNewValue=function(e){if(ae(this),rn(this)){var t=an(this,{object:this,type:"update",newValue:e});if(!t)return ke.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?ke.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),ln(this)&&cn(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return sn(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),un(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return R(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(T),Pe=C("ObservableValue",Te),De=function(){function e(e){this.dependenciesState=J.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=J.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+p(),this.value=new oe(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Z.NONE,h(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+p(),e.set&&(this.setter=Ce(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?A.structural:A.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==J.UP_TO_DATE)return;e.lowestObserverState=J.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===J.UP_TO_DATE&&(t.dependenciesState=J.POSSIBLY_STALE,t.isTracing!==Z.NONE&&Ye(t,e),t.onBecomeStale())}))}(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&d("Cycle detected in computation "+this.name+": "+this.derivation),0!==ke.inBatch||0!==this.observers.size||this.keepAlive?(Ue(this),ie(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===J.STALE)return;e.lowestObserverState=J.STALE,e.observers.forEach((function(t){t.dependenciesState===J.POSSIBLY_STALE?t.dependenciesState=J.STALE:t.dependenciesState===J.UP_TO_DATE&&(e.lowestObserverState=J.UP_TO_DATE)}))}(this)):ie(this)&&(this.warnAboutUntrackedRead(),Be(),this.value=this.computeValue(!1),ze());var e=this.value;if(re(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(re(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){h(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else h(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===J.NOT_TRACKING,n=this.computeValue(!0),o=t||re(e)||re(n)||!this.equals(e,n);return o&&(this.value=n),o},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,ke.computationDepth++,e)t=le(this,this.derivation,this.scope);else if(!0===ke.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new oe(e)}return ke.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(ue(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,o=!0,r=void 0;return lt((function(){var i=n.get();if(!o||t){var s=pe();e({type:"update",object:n,newValue:i,oldValue:r}),de(s)}o=!1,r=i}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return R(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),Ae=C("ComputedValue",De),Ne=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],xe=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Ie={};function Fe(){return"undefined"!=typeof window?window:void 0!==o?o:"undefined"!=typeof self?self:Ie}var Me=!0,Le=!1,ke=function(){var e=Fe();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Me=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new xe).version&&(Me=!1),Me?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new xe):(setTimeout((function(){Le||d("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new xe)}();function Ge(){return ke}function Ve(){var e=new xe;for(var t in e)-1===Ne.indexOf(t)&&(ke[t]=e[t]);ke.allowStateChanges=!ke.enforceActions}function We(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function je(e,t){e.observers.delete(t),0===e.observers.size&&He(e)}function He(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ke.pendingUnobservations.push(e))}function Be(){ke.inBatch++}function ze(){if(0==--ke.inBatch){Qe();for(var e=ke.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof De&&n.suspend())}ke.pendingUnobservations=[]}}function Ue(e){var t=ke.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.size&&ke.inBatch>0&&He(e),!1)}function Ye(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Z.BREAK){var n=[];!function e(t,n,o){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(o).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,o+1)}))}(wt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof De?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var qe=function(){function e(e,t,n,o){void 0===e&&(e="Reaction@"+p()),void 0===o&&(o=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=o,this.observing=[],this.newObserving=[],this.dependenciesState=J.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+p(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Z.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,ke.pendingReactions.push(this),Qe())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Be(),this._isScheduled=!1,ie(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}ze()}},e.prototype.track=function(e){if(!this.isDisposed){Be();0,this._isRunning=!0;var t=le(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ue(this),re(t)&&this.reportExceptionInDerivation(t.cause),ze()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(ke.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";ke.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),ke.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Be(),ue(this),ze()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[S]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),Kt(this,e)},e}();function Ke(e){return ke.globalReactionErrorHandlers.push(e),function(){var t=ke.globalReactionErrorHandlers.indexOf(e);t>=0&&ke.globalReactionErrorHandlers.splice(t,1)}}var $e=function(e){return e()};function Qe(){ke.inBatch>0||ke.isRunningReactions||$e(Xe)}function Xe(){ke.isRunningReactions=!0;for(var e=ke.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),o=0,r=n.length;o<r;o++)n[o].runReaction()}ke.isRunningReactions=!1}var Je=C("Reaction",qe);function Ze(e){var t=$e;$e=function(n){return e((function(){return t(n)}))}}function et(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function tt(){d(!1)}function nt(e){return function(t,n,o){if(o){if(o.value)return{value:Ce(e,o.value),enumerable:!1,configurable:!0,writable:!0};var r=o.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Ce(e,r.call(this))}}}return ot(e).apply(this,arguments)}}function ot(e){return function(t,n,o){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){y(this,n,rt(e,t))}})}}var rt=function(e,t,n,o){return 1===arguments.length&&"function"==typeof e?Ce(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?Ce(e,t):1===arguments.length&&"string"==typeof e?nt(e):!0!==o?nt(t).apply(null,arguments):void y(e,t,Ce(e.name||t,n.value,this))};function it(e,t){return we("string"==typeof e?e:e.name||"<unnamed action>","function"==typeof e?e:t,this,void 0)}function st(e){return"function"==typeof e&&!0===e.isMobxAction}function at(e,t,n){y(e,t,Ce(t,n.bind(e)))}function lt(e,t){void 0===t&&(t=c);var n,o=t&&t.name||e.name||"Autorun@"+p();if(!t.scheduler&&!t.delay)n=new qe(o,(function(){this.track(s)}),t.onError,t.requiresObservable);else{var r=ct(t),i=!1;n=new qe(o,(function(){i||(i=!0,r((function(){i=!1,n.isDisposed||n.track(s)})))}),t.onError,t.requiresObservable)}function s(){e(n)}return n.schedule(),n.getDisposer()}rt.bound=function(e,t,n,o){return!0===o?(at(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return at(this,t,n.value||n.initializer.call(this)),this[t]},set:tt}:{enumerable:!1,configurable:!0,set:function(e){at(this,t,e)},get:function(){}}};var ut=function(e){return e()};function ct(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ut}function pt(e,t,n){void 0===n&&(n=c);var o,r,i,s=n.name||"Reaction@"+p(),a=rt(s,n.onError?(o=n.onError,r=t,function(){try{return r.apply(this,arguments)}catch(e){o.call(this,e)}}):t),l=!n.scheduler&&!n.delay,u=ct(n),d=!0,h=!1,f=n.compareStructural?A.structural:n.equals||A.default,g=new qe(s,(function(){d||l?v():h||(h=!0,u(v))}),n.onError,n.requiresObservable);function v(){if(h=!1,!g.isDisposed){var t=!1;g.track((function(){var n=e(g);t=d||!f(i,n),i=n})),d&&n.fireImmediately&&a(i,g),d||!0!==t||a(i,g),d&&(d=!1)}}return g.schedule(),g.getDisposer()}function dt(e,t,n){return ft("onBecomeObserved",e,t,n)}function ht(e,t,n){return ft("onBecomeUnobserved",e,t,n)}function ft(e,t,n,o){var r="function"==typeof o?xn(t,n):xn(t),i="function"==typeof o?o:n,s=e+"Listeners";return r[s]?r[s].add(i):r[s]=new Set([i]),"function"!=typeof r[e]?d(!1):function(){var e=r[s];e&&(e.delete(i),0===e.size&&delete r[s])}}function gt(e){var t=e.enforceActions,n=e.computedRequiresReaction,o=e.computedConfigurable,r=e.disableErrorBoundaries,i=e.reactionScheduler,s=e.reactionRequiresObservable,a=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((ke.pendingReactions.length||ke.inBatch||ke.isRunningReactions)&&d("isolateGlobalState should be called before MobX is running any reactions"),Le=!0,Me&&(0==--Fe().__mobxInstanceCount&&(Fe().__mobxGlobals=void 0),ke=new xe)),void 0!==t){var l=void 0;switch(t){case!0:case"observed":l=!0;break;case!1:case"never":l=!1;break;case"strict":case"always":l="strict";break;default:d("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}ke.enforceActions=l,ke.allowStateChanges=!0!==l&&"strict"!==l}void 0!==n&&(ke.computedRequiresReaction=!!n),void 0!==s&&(ke.reactionRequiresObservable=!!s),void 0!==a&&(ke.observableRequiresReaction=!!a,ke.allowStateReads=!ke.observableRequiresReaction),void 0!==o&&(ke.computedConfigurable=!!o),void 0!==r&&(!0===r&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),ke.disableErrorBoundaries=!!r),i&&Ze(i)}function vt(e,t){var n="function"==typeof e?e.prototype:e,o=function(e){var o=t[e];Array.isArray(o)||(o=[o]);var r=Object.getOwnPropertyDescriptor(n,e),i=o.reduce((function(t,o){return o(n,e,t)}),r);i&&Object.defineProperty(n,e,i)};for(var r in t)o(r);return e}function mt(e,t,n,o){var r=yt(o=B(o));return L(e),Sn(e,o.name,r.enhancer),t&&Ct(e,t,n,r),e}function yt(e){return e.defaultDecorator||(!1===e.deep?Y:z)}function Ct(e,t,n,o){var r,i;Be();try{var a=_(t);try{for(var l=s(a),u=l.next();!u.done;u=l.next()){var c=u.value,p=Object.getOwnPropertyDescriptor(t,c);0;var d=(n&&c in n?n[c]:p.get?ee:o)(e,c,p,!0);d&&Object.defineProperty(e,c,d)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}finally{ze()}}function wt(e,t){return Et(xn(e,t))}function Et(e){var t,n,o={name:e.name};return e.observing&&e.observing.length>0&&(o.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(Et)),o}function bt(e,t){return _t(xn(e,t))}function _t(e){var t={name:e.name};return function(e){return e.observers&&e.observers.size>0}(e)&&(t.observers=Array.from(function(e){return e.observers}(e)).map(_t)),t}var Ot=0;function Rt(){this.message="FLOW_CANCELLED"}function St(e){return e instanceof Rt}function Tt(e){1!==arguments.length&&d("Flow expects 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,o=this,r=arguments,i=++Ot,s=rt(t+" - runid: "+i+" - init",e).apply(o,r),a=void 0,l=new Promise((function(e,o){var r=0;function l(e){var n;a=void 0;try{n=rt(t+" - runid: "+i+" - yield "+r++,s.next).call(s,e)}catch(e){return o(e)}c(n)}function u(e){var n;a=void 0;try{n=rt(t+" - runid: "+i+" - yield "+r++,s.throw).call(s,e)}catch(e){return o(e)}c(n)}function c(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(a=Promise.resolve(t.value)).then(l,u);t.then(c,o)}n=o,l(void 0)}));return l.cancel=rt(t+" - runid: "+i+" - cancel",(function(){try{a&&Pt(a);var e=s.return(void 0),t=Promise.resolve(e.value);t.then(g,g),Pt(t),n(new Rt)}catch(e){n(e)}})),l}}function Pt(e){"function"==typeof e.cancel&&e.cancel()}function Dt(e,t,n){var o;if(En(e)||mn(e)||Pe(e))o=In(e);else{if(!Nn(e))return d(!1);if("string"!=typeof t)return d(!1);o=In(e,t)}return void 0!==o.dehancer?d(!1):(o.dehancer="function"==typeof t?t:n,function(){o.dehancer=void 0})}function At(e,t,n){return"function"==typeof n?function(e,t,n){return In(e,t).intercept(n)}(e,t,n):function(e,t){return In(e).intercept(t)}(e,t)}function Nt(e,t){if(null==e)return!1;if(void 0!==t){if(!1===Nn(e))return!1;if(!e[S].values.has(t))return!1;var n=xn(e,t);return Ae(n)}return Ae(e)}function xt(e){return arguments.length>1?d(!1):Nt(e)}function It(e,t){return"string"!=typeof t?d(!1):Nt(e,t)}function Ft(e,t){return null!=e&&(void 0!==t?!!Nn(e)&&e[S].values.has(t):Nn(e)||!!e[S]||P(e)||Je(e)||Ae(e))}function Mt(e){return 1!==arguments.length&&d(!1),Ft(e)}function Lt(e,t){return"string"!=typeof t?d(!1):Ft(e,t)}function kt(e){return Nn(e)?e[S].getKeys():En(e)||On(e)?Array.from(e.keys()):mn(e)?e.map((function(e,t){return t})):d(!1)}function Gt(e){return Nn(e)?kt(e).map((function(t){return e[t]})):En(e)?kt(e).map((function(t){return e.get(t)})):On(e)?Array.from(e.values()):mn(e)?e.slice():d(!1)}function Vt(e){return Nn(e)?kt(e).map((function(t){return[t,e[t]]})):En(e)?kt(e).map((function(t){return[t,e.get(t)]})):On(e)?Array.from(e.entries()):mn(e)?e.map((function(e,t){return[t,e]})):d(!1)}function Wt(e,t,n){if(2!==arguments.length||On(e))if(Nn(e)){var o=e[S],r=o.values.get(t);r?o.write(t,n):o.addObservableProp(t,n,o.defaultEnhancer)}else if(En(e))e.set(t,n);else if(On(e))e.add(t);else{if(!mn(e))return d(!1);"number"!=typeof t&&(t=parseInt(t,10)),h(t>=0,"Not a valid index: '"+t+"'"),Be(),t>=e.length&&(e.length=t+1),e[t]=n,ze()}else{Be();var i=t;try{for(var s in i)Wt(e,s,i[s])}finally{ze()}}}function jt(e,t){if(Nn(e))e[S].remove(t);else if(En(e))e.delete(t);else if(On(e))e.delete(t);else{if(!mn(e))return d(!1);"number"!=typeof t&&(t=parseInt(t,10)),h(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function Ht(e,t){return Nn(e)?In(e).has(t):En(e)||On(e)?e.has(t):mn(e)?t>=0&&t<e.length:d(!1)}function Bt(e,t){if(Ht(e,t))return Nn(e)?e[t]:En(e)?e.get(t):mn(e)?e[t]:d(!1)}function zt(e,t,n,o){return"function"==typeof n?function(e,t,n,o){return In(e,t).observe(n,o)}(e,t,n,o):function(e,t,n){return In(e).observe(t,n)}(e,t,n)}Rt.prototype=Object.create(Error.prototype);var Ut={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Yt(e,t,n,o){return o.detectCycles&&e.set(t,n),n}function qt(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=Ut),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(n=new Map),function e(t,n,o){if(!n.recurseEverything&&!Mt(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(Pe(t))return e(t.get(),n,o);if(Mt(t)&&kt(t),!0===n.detectCycles&&null!==t&&o.has(t))return o.get(t);if(mn(t)||Array.isArray(t)){var r=Yt(o,t,[],n),i=t.map((function(t){return e(t,n,o)}));r.length=i.length;for(var s=0,a=i.length;s<a;s++)r[s]=i[s];return r}if(On(t)||Object.getPrototypeOf(t)===Set.prototype){if(!1===n.exportMapsAsObjects){var l=Yt(o,t,new Set,n);return t.forEach((function(t){l.add(e(t,n,o))})),l}var u=Yt(o,t,[],n);return t.forEach((function(t){u.push(e(t,n,o))})),u}if(En(t)||Object.getPrototypeOf(t)===Map.prototype){if(!1===n.exportMapsAsObjects){var c=Yt(o,t,new Map,n);return t.forEach((function(t,r){c.set(r,e(t,n,o))})),c}var p=Yt(o,t,{},n);return t.forEach((function(t,r){p[r]=e(t,n,o)})),p}var d=Yt(o,t,{},n);return _(t).forEach((function(r){d[r]=e(t[r],n,o)})),d}(e,t,n)}function Kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var o=$t(e);if(!o)return d(!1);o.isTracing===Z.NONE&&console.log("[mobx.trace] '"+o.name+"' tracing enabled"),o.isTracing=n?Z.BREAK:Z.LOG}function $t(e){switch(e.length){case 0:return ke.trackingDerivation;case 1:return xn(e[0]);case 2:return xn(e[0],e[1])}}function Qt(e,t){void 0===t&&(t=void 0),Be();try{return e.apply(t)}finally{ze()}}function Xt(e,t,n){return 1===arguments.length||t&&"object"==typeof t?Zt(e,t):Jt(e,t,n||{})}function Jt(e,t,n){var o;"number"==typeof n.timeout&&(o=setTimeout((function(){if(!i[S].isDisposed){i();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+p();var r=Ce(n.name+"-effect",t),i=lt((function(t){e()&&(t.dispose(),o&&clearTimeout(o),r())}),n);return i}function Zt(e,t){var n;var o=new Promise((function(o,r){var s=Jt(e,o,i(i({},t),{onError:r}));n=function(){s(),r("WHEN_CANCELLED")}}));return o.cancel=n,o}function en(e){return e[S]}function tn(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var nn={has:function(e,t){if(t===S||"constructor"===t||t===N)return!0;var n=en(e);return tn(t)?n.has(t):t in e},get:function(e,t){if(t===S||"constructor"===t||t===N)return e[t];var n=en(e),o=n.values.get(t);if(o instanceof T){var r=o.get();return void 0===r&&n.has(t),r}return tn(t)&&n.has(t),e[t]},set:function(e,t,n){return!!tn(t)&&(Wt(e,t,n),!0)},deleteProperty:function(e,t){return!!tn(t)&&(en(e).remove(t),!0)},ownKeys:function(e){return en(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return d("Dynamic observable objects cannot be frozen"),!1}};function on(e){var t=new Proxy(e,nn);return e[S].proxy=t,t}function rn(e){return void 0!==e.interceptors&&e.interceptors.length>0}function sn(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function an(e,t){var n=pe();try{for(var o=l(e.interceptors||[]),r=0,i=o.length;r<i&&(h(!(t=o[r](t))||t.type,"Intercept handlers should return nothing or a change object"),t);r++);return t}finally{de(n)}}function ln(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function un(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function cn(e,t){var n=pe(),o=e.changeListeners;if(o){for(var r=0,i=(o=o.slice()).length;r<i;r++)o[r](t);de(n)}}var pn={get:function(e,t){return t===S?e[S]:"length"===t?e[S].getArrayLength():"number"==typeof t?fn.get.call(e,t):"string"!=typeof t||isNaN(t)?fn.hasOwnProperty(t)?fn[t]:e[t]:fn.get.call(e,parseInt(t))},set:function(e,t,n){return"length"===t&&e[S].setArrayLength(n),"number"==typeof t&&fn.set.call(e,t,n),"symbol"==typeof t||isNaN(t)?e[t]=n:fn.set.call(e,parseInt(t),n),!0},preventExtensions:function(e){return d("Observable arrays cannot be frozen"),!1}};function dn(e,t,n,o){void 0===n&&(n="ObservableArray@"+p()),void 0===o&&(o=!1);var r,i,s,a=new hn(n,t,o);r=a.values,i=S,s=a,Object.defineProperty(r,i,{enumerable:!1,writable:!1,configurable:!0,value:s});var l=new Proxy(a.values,pn);if(a.proxy=l,e&&e.length){var u=Oe(!0);a.spliceWithArray(0,0,e),Re(u)}return l}var hn=function(){function e(e,t,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new T(e||"ObservableArray@"+p()),this.enhancer=function(n,o){return t(n,o,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return sn(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),un(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),o=0;o<e-t;o++)n[o]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=t},e.prototype.spliceWithArray=function(e,t,n){var o=this;ae(this.atom);var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:null==t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=u),rn(this)){var i=an(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!i)return u;t=i.removedCount,n=i.added}n=0===n.length?n:n.map((function(e){return o.enhancer(e,void 0)}));var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var o;if(n.length<1e4)return(o=this.values).splice.apply(o,l([e,t],n));var r=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),r},e.prototype.notifyArrayChildUpdate=function(e,t,n){var o=!this.owned&&!1,r=ln(this),i=r||o?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),r&&cn(this,i)},e.prototype.notifyArraySplice=function(e,t,n){var o=!this.owned&&!1,r=ln(this),i=r||o?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),r&&cn(this,i)},e}(),fn={intercept:function(e){return this[S].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[S].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[S];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=this[S];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray(e);case 2:return r.spliceWithArray(e,t)}return r.spliceWithArray(e,t,n)},spliceWithArray:function(e,t,n){return this[S].spliceWithArray(e,t,n)},push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this[S];return n.spliceWithArray(n.values.length,0,e),n.values.length},pop:function(){return this.splice(Math.max(this[S].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this[S];return n.spliceWithArray(0,0,e),n.values.length},reverse:function(){var e=this.slice();return e.reverse.apply(e,arguments)},sort:function(e){var t=this.slice();return t.sort.apply(t,arguments)},remove:function(e){var t=this[S],n=t.dehanceValues(t.values).indexOf(e);return n>-1&&(this.splice(n,1),!0)},get:function(e){var t=this[S];if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},set:function(e,t){var n=this[S],o=n.values;if(e<o.length){ae(n.atom);var r=o[e];if(rn(n)){var i=an(n,{type:"update",object:n.proxy,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,r))!==r&&(o[e]=t,n.notifyArrayChildUpdate(e,t,r))}else{if(e!==o.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+o.length);n.spliceWithArray(e,0,[t])}}};["concat","every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach((function(e){fn[e]=function(){var t=this[S];t.atom.reportObserved();var n=t.dehanceValues(t.values);return n[e].apply(n,arguments)}}));var gn,vn=C("ObservableArrayAdministration",hn);function mn(e){return v(e)&&vn(e[S])}var yn,Cn={},wn=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableMap@"+p()),this.enhancer=t,this.name=n,this[gn]=Cn,this._keysAtom=D(this.name+".keys()"),this[Symbol.toStringTag]="Map","function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!ke.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var o=n=new Te(this._has(e),W,this.name+"."+O(e)+"?",!1);this._hasMap.set(e,o),ht(o,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(rn(this)){var o=an(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!o)return this;t=o.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(rn(this)&&!(o=an(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=ln(this),o=n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return Qt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),n&&cn(this,o),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==ke.UNCHANGED){var o=ln(this),r=o?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;0,n.setNewValue(t),o&&cn(this,r)}},e.prototype._addValue=function(e,t){var n=this;ae(this._keysAtom),Qt((function(){var o=new Te(t,n.enhancer,n.name+"."+O(e),!1);n._data.set(e,o),t=o.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var o=ln(this),r=o?{type:"add",object:this,name:e,newValue:t}:null;o&&cn(this,r)},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=0,n=Array.from(this.keys());return Vn({next:function(){return t<n.length?{value:e.get(n[t++]),done:!1}:{done:!0}}})},e.prototype.entries=function(){var e=this,t=0,n=Array.from(this.keys());return Vn({next:function(){if(t<n.length){var o=n[t++];return{value:[o,e.get(o)],done:!1}}return{done:!0}}})},e.prototype[(gn=S,Symbol.iterator)]=function(){return this.entries()},e.prototype.forEach=function(e,t){var n,o;try{for(var r=s(this),i=r.next();!i.done;i=r.next()){var l=a(i.value,2),u=l[0],c=l[1];e.call(t,c,u,this)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}},e.prototype.merge=function(e){var t=this;return En(e)&&(e=e.toJS()),Qt((function(){m(e)?_(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=a(e,2),o=n[0],r=n[1];return t.set(o,r)})):E(e)?(e.constructor!==Map&&d("Cannot initialize from classes that inherit from Map: "+e.constructor.name),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&d("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;Qt((function(){ce((function(){var t,n;try{for(var o=s(e.keys()),r=o.next();!r.done;r=o.next()){var i=r.value;e.delete(i)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}))}))},e.prototype.replace=function(e){var t=this;return Qt((function(){var n,o=m(n=e)?Object.keys(n):Array.isArray(n)?n.map((function(e){return a(e,1)[0]})):E(n)||En(n)?Array.from(n.keys()):d("Cannot get keys from '"+n+"'");Array.from(t.keys()).filter((function(e){return-1===o.indexOf(e)})).forEach((function(e){return t.delete(e)})),t.merge(e)})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e,t,n={};try{for(var o=s(this),r=o.next();!r.done;r=o.next()){var i=a(r.value,2),l=i[0],u=i[1];n["symbol"==typeof l?l:O(l)]=u}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+Array.from(this.keys()).map((function(t){return O(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return un(this,e)},e.prototype.intercept=function(e){return sn(this,e)},e}(),En=C("ObservableMap",wn),bn={},_n=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableSet@"+p()),this.name=n,this[yn]=bn,this._data=new Set,this._atom=D(this.name),this[Symbol.toStringTag]="Set","function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,o){return t(e,o,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Qt((function(){ce((function(){var t,n;try{for(var o=s(e._data.values()),r=o.next();!r.done;r=o.next()){var i=r.value;e.delete(i)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}))}))},e.prototype.forEach=function(e,t){var n,o;try{for(var r=s(this),i=r.next();!i.done;i=r.next()){var a=i.value;e.call(t,a,a,this)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((ae(this._atom),rn(this))&&!(o=an(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){Qt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=ln(this),o=n?{type:"add",object:this,newValue:e}:null;0,n&&cn(this,o)}return this},e.prototype.delete=function(e){var t=this;if(rn(this)&&!(o=an(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=ln(this),o=n?{type:"delete",object:this,oldValue:e}:null;return Qt((function(){t._atom.reportChanged(),t._data.delete(e)})),n&&cn(this,o),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Vn({next:function(){var o=e;return e+=1,o<n.length?{value:[t[o],n[o]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e=this,t=0,n=Array.from(this._data.values());return Vn({next:function(){return t<n.length?{value:e.dehanceValue(n[t++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return On(e)&&(e=e.toJS()),Qt((function(){Array.isArray(e)||b(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&d("Cannot initialize set from "+e)})),this},e.prototype.observe=function(e,t){return un(this,e)},e.prototype.intercept=function(e){return sn(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},e.prototype[(yn=S,Symbol.iterator)]=function(){return this.values()},e}(),On=C("ObservableSet",_n),Rn=function(){function e(e,t,n,o){void 0===t&&(t=new Map),this.target=e,this.values=t,this.name=n,this.defaultEnhancer=o,this.keysAtom=new T(n+".keys")}return e.prototype.read=function(e){return this.values.get(e).get()},e.prototype.write=function(e,t){var n=this.target,o=this.values.get(e);if(o instanceof De)o.set(t);else{if(rn(this)){if(!(i=an(this,{type:"update",object:this.proxy||n,name:e,newValue:t})))return;t=i.newValue}if((t=o.prepareNewValue(t))!==ke.UNCHANGED){var r=ln(this),i=r?{type:"update",object:this.proxy||n,oldValue:o.value,name:e,newValue:t}:null;0,o.setNewValue(t),r&&cn(this,i)}}},e.prototype.has=function(e){var t=this.pendingKeys||(this.pendingKeys=new Map),n=t.get(e);if(n)return n.get();var o=!!this.values.get(e);return n=new Te(o,W,this.name+"."+O(e)+"?",!1),t.set(e,n),n.get()},e.prototype.addObservableProp=function(e,t,n){void 0===n&&(n=this.defaultEnhancer);var o=this.target;if(rn(this)){var r=an(this,{object:this.proxy||o,name:e,type:"add",newValue:t});if(!r)return;t=r.newValue}var i=new Te(t,n,this.name+"."+O(e),!1);this.values.set(e,i),t=i.value,Object.defineProperty(o,e,function(e){return Tn[e]||(Tn[e]={configurable:!0,enumerable:!0,get:function(){return this[S].read(e)},set:function(t){this[S].write(e,t)}})}(e)),this.notifyPropertyAddition(e,t)},e.prototype.addComputedProp=function(e,t,n){var o,r,i,s=this.target;n.name=n.name||this.name+"."+O(t),this.values.set(t,new De(n)),(e===s||(o=e,r=t,!(i=Object.getOwnPropertyDescriptor(o,r))||!1!==i.configurable&&!1!==i.writable))&&Object.defineProperty(e,t,function(e){return Pn[e]||(Pn[e]={configurable:ke.computedConfigurable,enumerable:!1,get:function(){return Dn(this).read(e)},set:function(t){Dn(this).write(e,t)}})}(t))},e.prototype.remove=function(e){if(this.values.has(e)){var t=this.target;if(rn(this))if(!(s=an(this,{object:this.proxy||t,name:e,type:"remove"})))return;try{Be();var n=ln(this),o=this.values.get(e),r=o&&o.get();if(o&&o.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){var i=this.pendingKeys.get(e);i&&i.set(!1)}delete this.target[e];var s=n?{type:"remove",object:this.proxy||t,oldValue:r,name:e}:null;0,n&&cn(this,s)}finally{ze()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return un(this,e)},e.prototype.intercept=function(e){return sn(this,e)},e.prototype.notifyPropertyAddition=function(e,t){var n=ln(this),o=n?{type:"add",object:this.proxy||this.target,name:e,newValue:t}:null;if(n&&cn(this,o),this.pendingKeys){var r=this.pendingKeys.get(e);r&&r.set(!0)}this.keysAtom.reportChanged()},e.prototype.getKeys=function(){var e,t;this.keysAtom.reportObserved();var n=[];try{for(var o=s(this.values),r=o.next();!r.done;r=o.next()){var i=a(r.value,2),l=i[0];i[1]instanceof Te&&n.push(l)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},e}();function Sn(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n=V),Object.prototype.hasOwnProperty.call(e,S))return e[S];m(e)||(t=(e.constructor.name||"ObservableObject")+"@"+p()),t||(t="ObservableObject@"+p());var o=new Rn(e,new Map,O(t),n);return y(e,S,o),o}var Tn=Object.create(null),Pn=Object.create(null);function Dn(e){var t=e[S];return t||(L(e),e[S])}var An=C("ObservableObjectAdministration",Rn);function Nn(e){return!!v(e)&&(L(e),An(e[S]))}function xn(e,t){if("object"==typeof e&&null!==e){if(mn(e))return void 0!==t&&d(!1),e[S].atom;if(On(e))return e[S];if(En(e)){var n=e;return void 0===t?n._keysAtom:((o=n._data.get(t)||n._hasMap.get(t))||d(!1),o)}var o;if(L(e),t&&!e[S]&&e[t],Nn(e))return t?((o=e[S].values.get(t))||d(!1),o):d(!1);if(P(e)||Ae(e)||Je(e))return e}else if("function"==typeof e&&Je(e[S]))return e[S];return d(!1)}function In(e,t){return e||d("Expecting some object"),void 0!==t?In(xn(e,t)):P(e)||Ae(e)||Je(e)||En(e)||On(e)?e:(L(e),e[S]?e[S]:void d(!1))}function Fn(e,t){return(void 0!==t?xn(e,t):Nn(e)||En(e)||On(e)?In(e):xn(e)).name}var Mn=Object.prototype.toString;function Ln(e,t,n){return void 0===n&&(n=-1),function e(t,n,o,r,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var s=typeof t;if("function"!==s&&"object"!==s&&"object"!=typeof n)return!1;var a=Mn.call(t);if(a!==Mn.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n);case"[object Map]":case"[object Set]":o>=0&&o++}t=kn(t),n=kn(n);var l="[object Array]"===a;if(!l){if("object"!=typeof t||"object"!=typeof n)return!1;var u=t.constructor,c=n.constructor;if(u!==c&&!("function"==typeof u&&u instanceof u&&"function"==typeof c&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}if(0===o)return!1;o<0&&(o=-1);i=i||[];var p=(r=r||[]).length;for(;p--;)if(r[p]===t)return i[p]===n;if(r.push(t),i.push(n),l){if((p=t.length)!==n.length)return!1;for(;p--;)if(!e(t[p],n[p],o-1,r,i))return!1}else{var d=Object.keys(t),h=void 0;if(p=d.length,Object.keys(n).length!==p)return!1;for(;p--;)if(h=d[p],!Gn(n,h)||!e(t[h],n[h],o-1,r,i))return!1}return r.pop(),i.pop(),!0}(e,t,n)}function kn(e){return mn(e)?e.slice():E(e)||En(e)||b(e)||On(e)?Array.from(e.entries()):e}function Gn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vn(e){return e[Symbol.iterator]=Wn,e}function Wn(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:et,extras:{getDebugName:Fn},$mobx:S})}.call(this,n(70),n(16))},function(e,t,n){var o;
17/*!
18 Copyright (c) 2017 Jed Watson.
19 Licensed under the MIT License (MIT), see
20 http://jedwatson.github.io/classnames
21*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var s=r.apply(null,o);s&&e.push(s)}else if("object"===i)for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){(function(e,o){var r;
22/**
23 * @license
24 * Lodash <https://lodash.com/>
25 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
26 * Released under MIT license <https://lodash.com/license>
27 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
28 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
29 */(function(){var i="Expected a function",s="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Function]",f="[object GeneratorFunction]",g="[object Map]",v="[object Number]",m="[object Object]",y="[object RegExp]",C="[object Set]",w="[object String]",E="[object Symbol]",b="[object WeakMap]",_="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",P="[object Int16Array]",D="[object Int32Array]",A="[object Uint8Array]",N="[object Uint16Array]",x="[object Uint32Array]",I=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,k=/[&<>"']/g,G=RegExp(L.source),V=RegExp(k.source),W=/<%-([\s\S]+?)%>/g,j=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,q=RegExp(Y.source),K=/^\s+|\s+$/g,$=/^\s+/,Q=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oe=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,se=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,pe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\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",fe="[\\ud800-\\udfff]",ge="["+he+"]",ve="["+de+"]",me="\\d+",ye="[\\u2700-\\u27bf]",Ce="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+he+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ee="\\ud83c[\\udffb-\\udfff]",be="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Se="(?:"+Ce+"|"+we+")",Te="(?:"+Re+"|"+we+")",Pe="(?:"+ve+"|"+Ee+")"+"?",De="[\\ufe0e\\ufe0f]?"+Pe+("(?:\\u200d(?:"+[be,_e,Oe].join("|")+")[\\ufe0e\\ufe0f]?"+Pe+")*"),Ae="(?:"+[ye,_e,Oe].join("|")+")"+De,Ne="(?:"+[be+ve+"?",ve,_e,Oe,fe].join("|")+")",xe=RegExp("['’]","g"),Ie=RegExp(ve,"g"),Fe=RegExp(Ee+"(?="+Ee+")|"+Ne+De,"g"),Me=RegExp([Re+"?"+Ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Re,"$"].join("|")+")",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Re+Se,"$"].join("|")+")",Re+"?"+Se+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Re+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Ae].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ge=["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"],Ve=-1,We={};We[R]=We[S]=We[T]=We[P]=We[D]=We[A]=We["[object Uint8ClampedArray]"]=We[N]=We[x]=!0,We[l]=We[u]=We[_]=We[c]=We[O]=We[p]=We[d]=We[h]=We[g]=We[v]=We[m]=We[y]=We[C]=We[w]=We[b]=!1;var je={};je[l]=je[u]=je[_]=je[O]=je[c]=je[p]=je[R]=je[S]=je[T]=je[P]=je[D]=je[g]=je[v]=je[m]=je[y]=je[C]=je[w]=je[E]=je[A]=je["[object Uint8ClampedArray]"]=je[N]=je[x]=!0,je[d]=je[h]=je[b]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,ze=parseInt,Ue="object"==typeof e&&e&&e.Object===Object&&e,Ye="object"==typeof self&&self&&self.Object===Object&&self,qe=Ue||Ye||Function("return this")(),Ke=t&&!t.nodeType&&t,$e=Ke&&"object"==typeof o&&o&&!o.nodeType&&o,Qe=$e&&$e.exports===Ke,Xe=Qe&&Ue.process,Je=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,ot=Je&&Je.isSet,rt=Je&&Je.isTypedArray;function it(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 st(e,t,n,o){for(var r=-1,i=null==e?0:e.length;++r<i;){var s=e[r];t(o,s,n(s),e)}return o}function at(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(!t(e[n],n,e))return!1;return!0}function ct(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var s=e[n];t(s,n,e)&&(i[r++]=s)}return i}function pt(e,t){return!!(null==e?0:e.length)&&Et(e,t,0)>-1}function dt(e,t,n){for(var o=-1,r=null==e?0:e.length;++o<r;)if(n(t,e[o]))return!0;return!1}function ht(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}function ft(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}function gt(e,t,n,o){var r=-1,i=null==e?0:e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function vt(e,t,n,o){var r=null==e?0:e.length;for(o&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function mt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var yt=Rt("length");function Ct(e,t,n){var o;return n(e,(function(e,n,r){if(t(e,n,r))return o=n,!1})),o}function wt(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function Et(e,t,n){return t==t?function(e,t,n){var o=n-1,r=e.length;for(;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):wt(e,_t,n)}function bt(e,t,n,o){for(var r=n-1,i=e.length;++r<i;)if(o(e[r],t))return r;return-1}function _t(e){return e!=e}function Ot(e,t){var n=null==e?0:e.length;return n?Pt(e,t)/n:NaN}function Rt(e){return function(t){return null==t?void 0:t[e]}}function St(e){return function(t){return null==e?void 0:e[t]}}function Tt(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function Pt(e,t){for(var n,o=-1,r=e.length;++o<r;){var i=t(e[o]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Dt(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function At(e){return function(t){return e(t)}}function Nt(e,t){return ht(t,(function(t){return e[t]}))}function xt(e,t){return e.has(t)}function It(e,t){for(var n=-1,o=e.length;++n<o&&Et(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length;n--&&Et(t,e[n],0)>-1;);return n}function Mt(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}var Lt=St({À:"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"}),kt=St({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Gt(e){return"\\"+He[e]}function Vt(e){return Le.test(e)}function Wt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function jt(e,t){return function(n){return e(t(n))}}function Ht(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[r++]=n)}return i}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Ut(e){return Vt(e)?function(e){var t=Fe.lastIndex=0;for(;Fe.test(e);)++t;return t}(e):yt(e)}function Yt(e){return Vt(e)?function(e){return e.match(Fe)||[]}(e):function(e){return e.split("")}(e)}var qt=St({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Kt=function e(t){var n,o=(t=null==t?qe:Kt.defaults(qe.Object(),t,Kt.pick(qe,Ge))).Array,r=t.Date,de=t.Error,he=t.Function,fe=t.Math,ge=t.Object,ve=t.RegExp,me=t.String,ye=t.TypeError,Ce=o.prototype,we=he.prototype,Ee=ge.prototype,be=t["__core-js_shared__"],_e=we.toString,Oe=Ee.hasOwnProperty,Re=0,Se=(n=/[^.]+$/.exec(be&&be.keys&&be.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Te=Ee.toString,Pe=_e.call(ge),De=qe._,Ae=ve("^"+_e.call(Oe).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=Qe?t.Buffer:void 0,Fe=t.Symbol,Le=t.Uint8Array,He=Ne?Ne.allocUnsafe:void 0,Ue=jt(ge.getPrototypeOf,ge),Ye=ge.create,Ke=Ee.propertyIsEnumerable,$e=Ce.splice,Xe=Fe?Fe.isConcatSpreadable:void 0,Je=Fe?Fe.iterator:void 0,yt=Fe?Fe.toStringTag:void 0,St=function(){try{var e=ei(ge,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Qt=r&&r.now!==qe.Date.now&&r.now,Xt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Jt=fe.ceil,Zt=fe.floor,en=ge.getOwnPropertySymbols,tn=Ne?Ne.isBuffer:void 0,nn=t.isFinite,on=Ce.join,rn=jt(ge.keys,ge),sn=fe.max,an=fe.min,ln=r.now,un=t.parseInt,cn=fe.random,pn=Ce.reverse,dn=ei(t,"DataView"),hn=ei(t,"Map"),fn=ei(t,"Promise"),gn=ei(t,"Set"),vn=ei(t,"WeakMap"),mn=ei(ge,"create"),yn=vn&&new vn,Cn={},wn=Ti(dn),En=Ti(hn),bn=Ti(fn),_n=Ti(gn),On=Ti(vn),Rn=Fe?Fe.prototype:void 0,Sn=Rn?Rn.valueOf:void 0,Tn=Rn?Rn.toString:void 0;function Pn(e){if(zs(e)&&!Is(e)&&!(e instanceof xn)){if(e instanceof Nn)return e;if(Oe.call(e,"__wrapped__"))return Pi(e)}return new Nn(e)}var Dn=function(){function e(){}return function(t){if(!Bs(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function An(){}function Nn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function xn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mn;++t<n;)this.add(e[t])}function kn(e){var t=this.__data__=new Fn(e);this.size=t.size}function Gn(e,t){var n=Is(e),o=!n&&xs(e),r=!n&&!o&&ks(e),i=!n&&!o&&!r&&Js(e),s=n||o||r||i,a=s?Dt(e.length,me):[],l=a.length;for(var u in e)!t&&!Oe.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ai(u,l))||a.push(u);return a}function Vn(e){var t=e.length;return t?e[ko(0,t-1)]:void 0}function Wn(e,t){return Oi(yr(e),$n(t,0,e.length))}function jn(e){return Oi(yr(e))}function Hn(e,t,n){(void 0!==n&&!Ds(e[t],n)||void 0===n&&!(t in e))&&qn(e,t,n)}function Bn(e,t,n){var o=e[t];Oe.call(e,t)&&Ds(o,n)&&(void 0!==n||t in e)||qn(e,t,n)}function zn(e,t){for(var n=e.length;n--;)if(Ds(e[n][0],t))return n;return-1}function Un(e,t,n,o){return eo(e,(function(e,r,i){t(o,e,n(e),i)})),o}function Yn(e,t){return e&&Cr(t,wa(t),e)}function qn(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kn(e,t){for(var n=-1,r=t.length,i=o(r),s=null==e;++n<r;)i[n]=s?void 0:ga(e,t[n]);return i}function $n(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,o,r,i){var s,a=1&t,u=2&t,d=4&t;if(n&&(s=r?n(e,o,r,i):n(e)),void 0!==s)return s;if(!Bs(e))return e;var b=Is(e);if(b){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Oe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return yr(e,s)}else{var I=oi(e),F=I==h||I==f;if(ks(e))return dr(e,a);if(I==m||I==l||F&&!r){if(s=u||F?{}:ii(e),!a)return u?function(e,t){return Cr(e,ni(e),t)}(e,function(e,t){return e&&Cr(t,Ea(t),e)}(s,e)):function(e,t){return Cr(e,ti(e),t)}(e,Yn(s,e))}else{if(!je[I])return r?e:{};s=function(e,t,n){var o=e.constructor;switch(t){case _:return hr(e);case c:case p:return new o(+e);case O:return function(e,t){var n=t?hr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case S:case T:case P:case D:case A:case"[object Uint8ClampedArray]":case N:case x:return fr(e,n);case g:return new o;case v:case w:return new o(e);case y:return function(e){var t=new e.constructor(e.source,oe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new o;case E:return r=e,Sn?ge(Sn.call(r)):{}}var r}(e,I,a)}}i||(i=new kn);var M=i.get(e);if(M)return M;i.set(e,s),$s(e)?e.forEach((function(o){s.add(Qn(o,t,n,o,e,i))})):Us(e)&&e.forEach((function(o,r){s.set(r,Qn(o,t,n,r,e,i))}));var L=b?void 0:(d?u?qr:Yr:u?Ea:wa)(e);return at(L||e,(function(o,r){L&&(o=e[r=o]),Bn(s,r,Qn(o,t,n,r,e,i))})),s}function Xn(e,t,n){var o=n.length;if(null==e)return!o;for(e=ge(e);o--;){var r=n[o],i=t[r],s=e[r];if(void 0===s&&!(r in e)||!i(s))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new ye(i);return wi((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,o){var r=-1,i=pt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=ht(t,At(n))),o?(i=dt,s=!1):t.length>=200&&(i=xt,s=!1,t=new Ln(t));e:for(;++r<a;){var c=e[r],p=null==n?c:n(c);if(c=o||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,o)||l.push(c)}return l}Pn.templateSettings={escape:W,evaluate:j,interpolate:H,variable:"",imports:{_:Pn}},Pn.prototype=An.prototype,Pn.prototype.constructor=Pn,Nn.prototype=Dn(An.prototype),Nn.prototype.constructor=Nn,xn.prototype=Dn(An.prototype),xn.prototype.constructor=xn,In.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},In.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},In.prototype.get=function(e){var t=this.__data__;if(mn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Oe.call(t,e)?t[e]:void 0},In.prototype.has=function(e){var t=this.__data__;return mn?void 0!==t[e]:Oe.call(t,e)},In.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mn&&void 0===t?"__lodash_hash_undefined__":t,this},Fn.prototype.clear=function(){this.__data__=[],this.size=0},Fn.prototype.delete=function(e){var t=this.__data__,n=zn(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Fn.prototype.get=function(e){var t=this.__data__,n=zn(t,e);return n<0?void 0:t[n][1]},Fn.prototype.has=function(e){return zn(this.__data__,e)>-1},Fn.prototype.set=function(e,t){var n=this.__data__,o=zn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Mn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(hn||Fn),string:new In}},Mn.prototype.delete=function(e){var t=Jr(this,e).delete(e);return this.size-=t?1:0,t},Mn.prototype.get=function(e){return Jr(this,e).get(e)},Mn.prototype.has=function(e){return Jr(this,e).has(e)},Mn.prototype.set=function(e,t){var n=Jr(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},kn.prototype.clear=function(){this.__data__=new Fn,this.size=0},kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},kn.prototype.get=function(e){return this.__data__.get(e)},kn.prototype.has=function(e){return this.__data__.has(e)},kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Fn){var o=n.__data__;if(!hn||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mn(o)}return n.set(e,t),this.size=n.size,this};var eo=br(lo),to=br(uo,!0);function no(e,t){var n=!0;return eo(e,(function(e,o,r){return n=!!t(e,o,r)})),n}function oo(e,t,n){for(var o=-1,r=e.length;++o<r;){var i=e[o],s=t(i);if(null!=s&&(void 0===a?s==s&&!Xs(s):n(s,a)))var a=s,l=i}return l}function ro(e,t){var n=[];return eo(e,(function(e,o,r){t(e,o,r)&&n.push(e)})),n}function io(e,t,n,o,r){var i=-1,s=e.length;for(n||(n=si),r||(r=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?io(a,t-1,n,o,r):ft(r,a):o||(r[r.length]=a)}return r}var so=_r(),ao=_r(!0);function lo(e,t){return e&&so(e,t,wa)}function uo(e,t){return e&&ao(e,t,wa)}function co(e,t){return ct(t,(function(t){return Ws(e[t])}))}function po(e,t){for(var n=0,o=(t=lr(t,e)).length;null!=e&&n<o;)e=e[Si(t[n++])];return n&&n==o?e:void 0}function ho(e,t,n){var o=t(e);return Is(e)?o:ft(o,n(e))}function fo(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yt&&yt in ge(e)?function(e){var t=Oe.call(e,yt),n=e[yt];try{e[yt]=void 0;var o=!0}catch(e){}var r=Te.call(e);o&&(t?e[yt]=n:delete e[yt]);return r}(e):function(e){return Te.call(e)}(e)}function go(e,t){return e>t}function vo(e,t){return null!=e&&Oe.call(e,t)}function mo(e,t){return null!=e&&t in ge(e)}function yo(e,t,n){for(var r=n?dt:pt,i=e[0].length,s=e.length,a=s,l=o(s),u=1/0,c=[];a--;){var p=e[a];a&&t&&(p=ht(p,At(t))),u=an(p.length,u),l[a]=!n&&(t||i>=120&&p.length>=120)?new Ln(a&&p):void 0}p=e[0];var d=-1,h=l[0];e:for(;++d<i&&c.length<u;){var f=p[d],g=t?t(f):f;if(f=n||0!==f?f:0,!(h?xt(h,g):r(c,g,n))){for(a=s;--a;){var v=l[a];if(!(v?xt(v,g):r(e[a],g,n)))continue e}h&&h.push(g),c.push(f)}}return c}function Co(e,t,n){var o=null==(e=vi(e,t=lr(t,e)))?e:e[Si(Vi(t))];return null==o?void 0:it(o,e,n)}function wo(e){return zs(e)&&fo(e)==l}function Eo(e,t,n,o,r){return e===t||(null==e||null==t||!zs(e)&&!zs(t)?e!=e&&t!=t:function(e,t,n,o,r,i){var s=Is(e),a=Is(t),h=s?u:oi(e),f=a?u:oi(t),b=(h=h==l?m:h)==m,R=(f=f==l?m:f)==m,S=h==f;if(S&&ks(e)){if(!ks(t))return!1;s=!0,b=!1}if(S&&!b)return i||(i=new kn),s||Js(e)?zr(e,t,n,o,r,i):function(e,t,n,o,r,i,s){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!i(new Le(e),new Le(t)));case c:case p:case v:return Ds(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case w:return e==t+"";case g:var a=Wt;case C:var l=1&o;if(a||(a=Bt),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;o|=2,s.set(e,t);var h=zr(a(e),a(t),o,r,i,s);return s.delete(e),h;case E:if(Sn)return Sn.call(e)==Sn.call(t)}return!1}(e,t,h,n,o,r,i);if(!(1&n)){var T=b&&Oe.call(e,"__wrapped__"),P=R&&Oe.call(t,"__wrapped__");if(T||P){var D=T?e.value():e,A=P?t.value():t;return i||(i=new kn),r(D,A,n,o,i)}}if(!S)return!1;return i||(i=new kn),function(e,t,n,o,r,i){var s=1&n,a=Yr(e),l=a.length,u=Yr(t).length;if(l!=u&&!s)return!1;var c=l;for(;c--;){var p=a[c];if(!(s?p in t:Oe.call(t,p)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var h=!0;i.set(e,t),i.set(t,e);var f=s;for(;++c<l;){p=a[c];var g=e[p],v=t[p];if(o)var m=s?o(v,g,p,t,e,i):o(g,v,p,e,t,i);if(!(void 0===m?g===v||r(g,v,n,o,i):m)){h=!1;break}f||(f="constructor"==p)}if(h&&!f){var y=e.constructor,C=t.constructor;y==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof C&&C instanceof C||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,o,r,i)}(e,t,n,o,Eo,r))}function bo(e,t,n,o){var r=n.length,i=r,s=!o;if(null==e)return!i;for(e=ge(e);r--;){var a=n[r];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){var l=(a=n[r])[0],u=e[l],c=a[1];if(s&&a[2]){if(void 0===u&&!(l in e))return!1}else{var p=new kn;if(o)var d=o(u,c,l,e,t,p);if(!(void 0===d?Eo(c,u,3,o,p):d))return!1}}return!0}function _o(e){return!(!Bs(e)||(t=e,Se&&Se in t))&&(Ws(e)?Ae:se).test(Ti(e));var t}function Oo(e){return"function"==typeof e?e:null==e?Ya:"object"==typeof e?Is(e)?Ao(e[0],e[1]):Do(e):tl(e)}function Ro(e){if(!di(e))return rn(e);var t=[];for(var n in ge(e))Oe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function So(e){if(!Bs(e))return function(e){var t=[];if(null!=e)for(var n in ge(e))t.push(n);return t}(e);var t=di(e),n=[];for(var o in e)("constructor"!=o||!t&&Oe.call(e,o))&&n.push(o);return n}function To(e,t){return e<t}function Po(e,t){var n=-1,r=Ms(e)?o(e.length):[];return eo(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Do(e){var t=Zr(e);return 1==t.length&&t[0][2]?fi(t[0][0],t[0][1]):function(n){return n===e||bo(n,e,t)}}function Ao(e,t){return ui(e)&&hi(t)?fi(Si(e),t):function(n){var o=ga(n,e);return void 0===o&&o===t?va(n,e):Eo(t,o,3)}}function No(e,t,n,o,r){e!==t&&so(t,(function(i,s){if(r||(r=new kn),Bs(i))!function(e,t,n,o,r,i,s){var a=yi(e,n),l=yi(t,n),u=s.get(l);if(u)return void Hn(e,n,u);var c=i?i(a,l,n+"",e,t,s):void 0,p=void 0===c;if(p){var d=Is(l),h=!d&&ks(l),f=!d&&!h&&Js(l);c=l,d||h||f?Is(a)?c=a:Ls(a)?c=yr(a):h?(p=!1,c=dr(l,!0)):f?(p=!1,c=fr(l,!0)):c=[]:qs(l)||xs(l)?(c=a,xs(a)?c=sa(a):Bs(a)&&!Ws(a)||(c=ii(l))):p=!1}p&&(s.set(l,c),r(c,l,o,i,s),s.delete(l));Hn(e,n,c)}(e,t,s,n,No,o,r);else{var a=o?o(yi(e,s),i,s+"",e,t,r):void 0;void 0===a&&(a=i),Hn(e,s,a)}}),Ea)}function xo(e,t){var n=e.length;if(n)return ai(t+=t<0?n:0,n)?e[t]:void 0}function Io(e,t,n){var o=-1;return t=ht(t.length?t:[Ya],At(Xr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Po(e,(function(e,n,r){return{criteria:ht(t,(function(t){return t(e)})),index:++o,value:e}})),(function(e,t){return function(e,t,n){var o=-1,r=e.criteria,i=t.criteria,s=r.length,a=n.length;for(;++o<s;){var l=gr(r[o],i[o]);if(l){if(o>=a)return l;var u=n[o];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Fo(e,t,n){for(var o=-1,r=t.length,i={};++o<r;){var s=t[o],a=po(e,s);n(a,s)&&Ho(i,lr(s,e),a)}return i}function Mo(e,t,n,o){var r=o?bt:Et,i=-1,s=t.length,a=e;for(e===t&&(t=yr(t)),n&&(a=ht(e,At(n)));++i<s;)for(var l=0,u=t[i],c=n?n(u):u;(l=r(a,c,l,o))>-1;)a!==e&&$e.call(a,l,1),$e.call(e,l,1);return e}function Lo(e,t){for(var n=e?t.length:0,o=n-1;n--;){var r=t[n];if(n==o||r!==i){var i=r;ai(r)?$e.call(e,r,1):er(e,r)}}return e}function ko(e,t){return e+Zt(cn()*(t-e+1))}function Go(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Vo(e,t){return Ei(gi(e,t,Ya),e+"")}function Wo(e){return Vn(Da(e))}function jo(e,t){var n=Da(e);return Oi(n,$n(t,0,n.length))}function Ho(e,t,n,o){if(!Bs(e))return e;for(var r=-1,i=(t=lr(t,e)).length,s=i-1,a=e;null!=a&&++r<i;){var l=Si(t[r]),u=n;if(r!=s){var c=a[l];void 0===(u=o?o(c,l,a):void 0)&&(u=Bs(c)?c:ai(t[r+1])?[]:{})}Bn(a,l,u),a=a[l]}return e}var Bo=yn?function(e,t){return yn.set(e,t),e}:Ya,zo=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:Ba(t),writable:!0})}:Ya;function Uo(e){return Oi(Da(e))}function Yo(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=o(i);++r<i;)s[r]=e[r+t];return s}function qo(e,t){var n;return eo(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}function Ko(e,t,n){var o=0,r=null==e?o:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;o<r;){var i=o+r>>>1,s=e[i];null!==s&&!Xs(s)&&(n?s<=t:s<t)?o=i+1:r=i}return r}return $o(e,t,Ya,n)}function $o(e,t,n,o){t=n(t);for(var r=0,i=null==e?0:e.length,s=t!=t,a=null===t,l=Xs(t),u=void 0===t;r<i;){var c=Zt((r+i)/2),p=n(e[c]),d=void 0!==p,h=null===p,f=p==p,g=Xs(p);if(s)var v=o||f;else v=u?f&&(o||d):a?f&&d&&(o||!h):l?f&&d&&!h&&(o||!g):!h&&!g&&(o?p<=t:p<t);v?r=c+1:i=c}return an(i,4294967294)}function Qo(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var s=e[n],a=t?t(s):s;if(!n||!Ds(a,l)){var l=a;i[r++]=0===s?0:s}}return i}function Xo(e){return"number"==typeof e?e:Xs(e)?NaN:+e}function Jo(e){if("string"==typeof e)return e;if(Is(e))return ht(e,Jo)+"";if(Xs(e))return Tn?Tn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zo(e,t,n){var o=-1,r=pt,i=e.length,s=!0,a=[],l=a;if(n)s=!1,r=dt;else if(i>=200){var u=t?null:Gr(e);if(u)return Bt(u);s=!1,r=xt,l=new Ln}else l=t?[]:a;e:for(;++o<i;){var c=e[o],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 r(l,p,n)||(l!==a&&l.push(p),a.push(c))}return a}function er(e,t){return null==(e=vi(e,t=lr(t,e)))||delete e[Si(Vi(t))]}function tr(e,t,n,o){return Ho(e,t,n(po(e,t)),o)}function nr(e,t,n,o){for(var r=e.length,i=o?r:-1;(o?i--:++i<r)&&t(e[i],i,e););return n?Yo(e,o?0:i,o?i+1:r):Yo(e,o?i+1:0,o?r:i)}function or(e,t){var n=e;return n instanceof xn&&(n=n.value()),gt(t,(function(e,t){return t.func.apply(t.thisArg,ft([e],t.args))}),n)}function rr(e,t,n){var r=e.length;if(r<2)return r?Zo(e[0]):[];for(var i=-1,s=o(r);++i<r;)for(var a=e[i],l=-1;++l<r;)l!=i&&(s[i]=Zn(s[i]||a,e[l],t,n));return Zo(io(s,1),t,n)}function ir(e,t,n){for(var o=-1,r=e.length,i=t.length,s={};++o<r;){var a=o<i?t[o]:void 0;n(s,e[o],a)}return s}function sr(e){return Ls(e)?e:[]}function ar(e){return"function"==typeof e?e:Ya}function lr(e,t){return Is(e)?e:ui(e,t)?[e]:Ri(aa(e))}var ur=Vo;function cr(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:Yo(e,t,n)}var pr=$t||function(e){return qe.clearTimeout(e)};function dr(e,t){if(t)return e.slice();var n=e.length,o=He?He(n):new e.constructor(n);return e.copy(o),o}function hr(e){var t=new e.constructor(e.byteLength);return new Le(t).set(new Le(e)),t}function fr(e,t){var n=t?hr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gr(e,t){if(e!==t){var n=void 0!==e,o=null===e,r=e==e,i=Xs(e),s=void 0!==t,a=null===t,l=t==t,u=Xs(t);if(!a&&!u&&!i&&e>t||i&&s&&l&&!a&&!u||o&&s&&l||!n&&l||!r)return 1;if(!o&&!i&&!u&&e<t||u&&n&&r&&!o&&!i||a&&n&&r||!s&&r||!l)return-1}return 0}function vr(e,t,n,r){for(var i=-1,s=e.length,a=n.length,l=-1,u=t.length,c=sn(s-a,0),p=o(u+c),d=!r;++l<u;)p[l]=t[l];for(;++i<a;)(d||i<s)&&(p[n[i]]=e[i]);for(;c--;)p[l++]=e[i++];return p}function mr(e,t,n,r){for(var i=-1,s=e.length,a=-1,l=n.length,u=-1,c=t.length,p=sn(s-l,0),d=o(p+c),h=!r;++i<p;)d[i]=e[i];for(var f=i;++u<c;)d[f+u]=t[u];for(;++a<l;)(h||i<s)&&(d[f+n[a]]=e[i++]);return d}function yr(e,t){var n=-1,r=e.length;for(t||(t=o(r));++n<r;)t[n]=e[n];return t}function Cr(e,t,n,o){var r=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=o?o(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),r?qn(n,a,l):Bn(n,a,l)}return n}function wr(e,t){return function(n,o){var r=Is(n)?st:Un,i=t?t():{};return r(n,e,Xr(o,2),i)}}function Er(e){return Vo((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,s&&li(n[0],n[1],s)&&(i=r<3?void 0:i,r=1),t=ge(t);++o<r;){var a=n[o];a&&e(t,a,o,i)}return t}))}function br(e,t){return function(n,o){if(null==n)return n;if(!Ms(n))return e(n,o);for(var r=n.length,i=t?r:-1,s=ge(n);(t?i--:++i<r)&&!1!==o(s[i],i,s););return n}}function _r(e){return function(t,n,o){for(var r=-1,i=ge(t),s=o(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(i[l],l,i))break}return t}}function Or(e){return function(t){var n=Vt(t=aa(t))?Yt(t):void 0,o=n?n[0]:t.charAt(0),r=n?cr(n,1).join(""):t.slice(1);return o[e]()+r}}function Rr(e){return function(t){return gt(Wa(xa(t).replace(xe,"")),e,"")}}function Sr(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=Dn(e.prototype),o=e.apply(n,t);return Bs(o)?o:n}}function Tr(e){return function(t,n,o){var r=ge(t);if(!Ms(t)){var i=Xr(n,3);t=wa(t),n=function(e){return i(r[e],e,r)}}var s=e(t,n,o);return s>-1?r[i?t[s]:s]:void 0}}function Pr(e){return Ur((function(t){var n=t.length,o=n,r=Nn.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new ye(i);if(r&&!a&&"wrapper"==$r(s))var a=new Nn([],!0)}for(o=a?o:n;++o<n;){var l=$r(s=t[o]),u="wrapper"==l?Kr(s):void 0;a=u&&ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[$r(u[0])].apply(a,u[3]):1==s.length&&ci(s)?a[l]():a.thru(s)}return function(){var e=arguments,o=e[0];if(a&&1==e.length&&Is(o))return a.plant(o).value();for(var r=0,i=n?t[r].apply(this,e):o;++r<n;)i=t[r].call(this,i);return i}}))}function Dr(e,t,n,r,i,s,a,l,u,c){var p=128&t,d=1&t,h=2&t,f=24&t,g=512&t,v=h?void 0:Sr(e);return function m(){for(var y=arguments.length,C=o(y),w=y;w--;)C[w]=arguments[w];if(f)var E=Qr(m),b=Mt(C,E);if(r&&(C=vr(C,r,i,f)),s&&(C=mr(C,s,a,f)),y-=b,f&&y<c){var _=Ht(C,E);return Lr(e,t,Dr,m.placeholder,n,C,_,l,u,c-y)}var O=d?n:this,R=h?O[e]:e;return y=C.length,l?C=mi(C,l):g&&y>1&&C.reverse(),p&&u<y&&(C.length=u),this&&this!==qe&&this instanceof m&&(R=v||Sr(R)),R.apply(O,C)}}function Ar(e,t){return function(n,o){return function(e,t,n,o){return lo(e,(function(e,r,i){t(o,n(e),r,i)})),o}(n,e,t(o),{})}}function Nr(e,t){return function(n,o){var r;if(void 0===n&&void 0===o)return t;if(void 0!==n&&(r=n),void 0!==o){if(void 0===r)return o;"string"==typeof n||"string"==typeof o?(n=Jo(n),o=Jo(o)):(n=Xo(n),o=Xo(o)),r=e(n,o)}return r}}function xr(e){return Ur((function(t){return t=ht(t,At(Xr())),Vo((function(n){var o=this;return e(t,(function(e){return it(e,o,n)}))}))}))}function Ir(e,t){var n=(t=void 0===t?" ":Jo(t)).length;if(n<2)return n?Go(t,e):t;var o=Go(t,Jt(e/Ut(t)));return Vt(t)?cr(Yt(o),0,e).join(""):o.slice(0,e)}function Fr(e){return function(t,n,r){return r&&"number"!=typeof r&&li(t,n,r)&&(n=r=void 0),t=na(t),void 0===n?(n=t,t=0):n=na(n),function(e,t,n,r){for(var i=-1,s=sn(Jt((t-e)/(n||1)),0),a=o(s);s--;)a[r?s:++i]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:na(r),e)}}function Mr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ia(t),n=ia(n)),e(t,n)}}function Lr(e,t,n,o,r,i,s,a,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var p=[e,t,r,c?i:void 0,c?s:void 0,c?void 0:i,c?void 0:s,a,l,u],d=n.apply(void 0,p);return ci(e)&&Ci(d,p),d.placeholder=o,bi(d,e,t)}function kr(e){var t=fe[e];return function(e,n){if(e=ia(e),(n=null==n?0:an(oa(n),292))&&nn(e)){var o=(aa(e)+"e").split("e");return+((o=(aa(t(o[0]+"e"+(+o[1]+n)))+"e").split("e"))[0]+"e"+(+o[1]-n))}return t(e)}}var Gr=gn&&1/Bt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Xa;function Vr(e){return function(t){var n=oi(t);return n==g?Wt(t):n==C?zt(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Wr(e,t,n,r,a,l,u,c){var p=2&t;if(!p&&"function"!=typeof e)throw new ye(i);var d=r?r.length:0;if(d||(t&=-97,r=a=void 0),u=void 0===u?u:sn(oa(u),0),c=void 0===c?c:oa(c),d-=a?a.length:0,64&t){var h=r,f=a;r=a=void 0}var g=p?void 0:Kr(e),v=[e,t,n,r,a,h,f,l,u,c];if(g&&function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,a=128==o&&8==n||128==o&&256==n&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?vr(u,l,t[4]):l,e[4]=u?Ht(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?mr(u,l,t[6]):l,e[6]=u?Ht(e[5],s):t[6]);(l=t[7])&&(e[7]=l);128&o&&(e[8]=null==e[8]?t[8]:an(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(v,g),e=v[0],t=v[1],n=v[2],r=v[3],a=v[4],!(c=v[9]=void 0===v[9]?p?0:e.length:sn(v[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||16==t?function(e,t,n){var r=Sr(e);return function i(){for(var s=arguments.length,a=o(s),l=s,u=Qr(i);l--;)a[l]=arguments[l];var c=s<3&&a[0]!==u&&a[s-1]!==u?[]:Ht(a,u);if((s-=c.length)<n)return Lr(e,t,Dr,i.placeholder,void 0,a,c,void 0,void 0,n-s);var p=this&&this!==qe&&this instanceof i?r:e;return it(p,this,a)}}(e,t,c):32!=t&&33!=t||a.length?Dr.apply(void 0,v):function(e,t,n,r){var i=1&t,s=Sr(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=r.length,p=o(c+l),d=this&&this!==qe&&this instanceof t?s:e;++u<c;)p[u]=r[u];for(;l--;)p[u++]=arguments[++a];return it(d,i?n:this,p)}}(e,t,n,r);else var m=function(e,t,n){var o=1&t,r=Sr(e);return function t(){var i=this&&this!==qe&&this instanceof t?r:e;return i.apply(o?n:this,arguments)}}(e,t,n);return bi((g?Bo:Ci)(m,v),e,t)}function jr(e,t,n,o){return void 0===e||Ds(e,Ee[n])&&!Oe.call(o,n)?t:e}function Hr(e,t,n,o,r,i){return Bs(e)&&Bs(t)&&(i.set(t,e),No(e,t,void 0,Hr,i),i.delete(t)),e}function Br(e){return qs(e)?void 0:e}function zr(e,t,n,o,r,i){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=i.get(e);if(u&&i.get(t))return u==t;var c=-1,p=!0,d=2&n?new Ln:void 0;for(i.set(e,t),i.set(t,e);++c<a;){var h=e[c],f=t[c];if(o)var g=s?o(f,h,c,t,e,i):o(h,f,c,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!mt(t,(function(e,t){if(!xt(d,t)&&(h===e||r(h,e,n,o,i)))return d.push(t)}))){p=!1;break}}else if(h!==f&&!r(h,f,n,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Ur(e){return Ei(gi(e,void 0,Fi),e+"")}function Yr(e){return ho(e,wa,ti)}function qr(e){return ho(e,Ea,ni)}var Kr=yn?function(e){return yn.get(e)}:Xa;function $r(e){for(var t=e.name+"",n=Cn[t],o=Oe.call(Cn,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t}function Qr(e){return(Oe.call(Pn,"placeholder")?Pn:e).placeholder}function Xr(){var e=Pn.iteratee||qa;return e=e===qa?Oo:e,arguments.length?e(arguments[0],arguments[1]):e}function Jr(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Zr(e){for(var t=wa(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,hi(r)]}return t}function ei(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return _o(n)?n:void 0}var ti=en?function(e){return null==e?[]:(e=ge(e),ct(en(e),(function(t){return Ke.call(e,t)})))}:rl,ni=en?function(e){for(var t=[];e;)ft(t,ti(e)),e=Ue(e);return t}:rl,oi=fo;function ri(e,t,n){for(var o=-1,r=(t=lr(t,e)).length,i=!1;++o<r;){var s=Si(t[o]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&Hs(r)&&ai(s,r)&&(Is(e)||xs(e))}function ii(e){return"function"!=typeof e.constructor||di(e)?{}:Dn(Ue(e))}function si(e){return Is(e)||xs(e)||!!(Xe&&e&&e[Xe])}function ai(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function li(e,t,n){if(!Bs(n))return!1;var o=typeof t;return!!("number"==o?Ms(n)&&ai(t,n.length):"string"==o&&t in n)&&Ds(n[t],e)}function ui(e,t){if(Is(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xs(e))||(z.test(e)||!B.test(e)||null!=t&&e in ge(t))}function ci(e){var t=$r(e),n=Pn[t];if("function"!=typeof n||!(t in xn.prototype))return!1;if(e===n)return!0;var o=Kr(n);return!!o&&e===o[0]}(dn&&oi(new dn(new ArrayBuffer(1)))!=O||hn&&oi(new hn)!=g||fn&&"[object Promise]"!=oi(fn.resolve())||gn&&oi(new gn)!=C||vn&&oi(new vn)!=b)&&(oi=function(e){var t=fo(e),n=t==m?e.constructor:void 0,o=n?Ti(n):"";if(o)switch(o){case wn:return O;case En:return g;case bn:return"[object Promise]";case _n:return C;case On:return b}return t});var pi=be?Ws:il;function di(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ee)}function hi(e){return e==e&&!Bs(e)}function fi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in ge(n)))}}function gi(e,t,n){return t=sn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=sn(r.length-t,0),a=o(s);++i<s;)a[i]=r[t+i];i=-1;for(var l=o(t+1);++i<t;)l[i]=r[i];return l[t]=n(a),it(e,this,l)}}function vi(e,t){return t.length<2?e:po(e,Yo(t,0,-1))}function mi(e,t){for(var n=e.length,o=an(t.length,n),r=yr(e);o--;){var i=t[o];e[o]=ai(i,n)?r[i]:void 0}return e}function yi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ci=_i(Bo),wi=Xt||function(e,t){return qe.setTimeout(e,t)},Ei=_i(zo);function bi(e,t,n){var o=t+"";return Ei(e,function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return at(a,(function(n){var o="_."+n[0];t&n[1]&&!pt(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(o),n)))}function _i(e){var t=0,n=0;return function(){var o=ln(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Oi(e,t){var n=-1,o=e.length,r=o-1;for(t=void 0===t?o:t;++n<t;){var i=ko(n,r),s=e[i];e[i]=e[n],e[n]=s}return e.length=t,e}var Ri=function(e){var t=_s(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(U,(function(e,n,o,r){t.push(o?r.replace(te,"$1"):n||e)})),t}));function Si(e){if("string"==typeof e||Xs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ti(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Pi(e){if(e instanceof xn)return e.clone();var t=new Nn(e.__wrapped__,e.__chain__);return t.__actions__=yr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Di=Vo((function(e,t){return Ls(e)?Zn(e,io(t,1,Ls,!0)):[]})),Ai=Vo((function(e,t){var n=Vi(t);return Ls(n)&&(n=void 0),Ls(e)?Zn(e,io(t,1,Ls,!0),Xr(n,2)):[]})),Ni=Vo((function(e,t){var n=Vi(t);return Ls(n)&&(n=void 0),Ls(e)?Zn(e,io(t,1,Ls,!0),void 0,n):[]}));function xi(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:oa(n);return r<0&&(r=sn(o+r,0)),wt(e,Xr(t,3),r)}function Ii(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=o-1;return void 0!==n&&(r=oa(n),r=n<0?sn(o+r,0):an(r,o-1)),wt(e,Xr(t,3),r,!0)}function Fi(e){return(null==e?0:e.length)?io(e,1):[]}function Mi(e){return e&&e.length?e[0]:void 0}var Li=Vo((function(e){var t=ht(e,sr);return t.length&&t[0]===e[0]?yo(t):[]})),ki=Vo((function(e){var t=Vi(e),n=ht(e,sr);return t===Vi(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yo(n,Xr(t,2)):[]})),Gi=Vo((function(e){var t=Vi(e),n=ht(e,sr);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yo(n,void 0,t):[]}));function Vi(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Wi=Vo(ji);function ji(e,t){return e&&e.length&&t&&t.length?Mo(e,t):e}var Hi=Ur((function(e,t){var n=null==e?0:e.length,o=Kn(e,t);return Lo(e,ht(t,(function(e){return ai(e,n)?+e:e})).sort(gr)),o}));function Bi(e){return null==e?e:pn.call(e)}var zi=Vo((function(e){return Zo(io(e,1,Ls,!0))})),Ui=Vo((function(e){var t=Vi(e);return Ls(t)&&(t=void 0),Zo(io(e,1,Ls,!0),Xr(t,2))})),Yi=Vo((function(e){var t=Vi(e);return t="function"==typeof t?t:void 0,Zo(io(e,1,Ls,!0),void 0,t)}));function qi(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(Ls(e))return t=sn(e.length,t),!0})),Dt(t,(function(t){return ht(e,Rt(t))}))}function Ki(e,t){if(!e||!e.length)return[];var n=qi(e);return null==t?n:ht(n,(function(e){return it(t,void 0,e)}))}var $i=Vo((function(e,t){return Ls(e)?Zn(e,t):[]})),Qi=Vo((function(e){return rr(ct(e,Ls))})),Xi=Vo((function(e){var t=Vi(e);return Ls(t)&&(t=void 0),rr(ct(e,Ls),Xr(t,2))})),Ji=Vo((function(e){var t=Vi(e);return t="function"==typeof t?t:void 0,rr(ct(e,Ls),void 0,t)})),Zi=Vo(qi);var es=Vo((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ki(e,n)}));function ts(e){var t=Pn(e);return t.__chain__=!0,t}function ns(e,t){return t(e)}var os=Ur((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,r=function(t){return Kn(t,e)};return!(t>1||this.__actions__.length)&&o instanceof xn&&ai(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:ns,args:[r],thisArg:void 0}),new Nn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(r)}));var rs=wr((function(e,t,n){Oe.call(e,n)?++e[n]:qn(e,n,1)}));var is=Tr(xi),ss=Tr(Ii);function as(e,t){return(Is(e)?at:eo)(e,Xr(t,3))}function ls(e,t){return(Is(e)?lt:to)(e,Xr(t,3))}var us=wr((function(e,t,n){Oe.call(e,n)?e[n].push(t):qn(e,n,[t])}));var cs=Vo((function(e,t,n){var r=-1,i="function"==typeof t,s=Ms(e)?o(e.length):[];return eo(e,(function(e){s[++r]=i?it(t,e,n):Co(e,t,n)})),s})),ps=wr((function(e,t,n){qn(e,n,t)}));function ds(e,t){return(Is(e)?ht:Po)(e,Xr(t,3))}var hs=wr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var fs=Vo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&li(e,t[0],t[1])?t=[]:n>2&&li(t[0],t[1],t[2])&&(t=[t[0]]),Io(e,io(t,1),[])})),gs=Qt||function(){return qe.Date.now()};function vs(e,t,n){return t=n?void 0:t,Wr(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ms(e,t){var n;if("function"!=typeof t)throw new ye(i);return e=oa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ys=Vo((function(e,t,n){var o=1;if(n.length){var r=Ht(n,Qr(ys));o|=32}return Wr(e,o,t,n,r)})),Cs=Vo((function(e,t,n){var o=3;if(n.length){var r=Ht(n,Qr(Cs));o|=32}return Wr(t,o,e,n,r)}));function ws(e,t,n){var o,r,s,a,l,u,c=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ye(i);function f(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function g(e){return c=e,l=wi(m,t),p?f(e):a}function v(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-c>=s}function m(){var e=gs();if(v(e))return y(e);l=wi(m,function(e){var n=t-(e-u);return d?an(n,s-(e-c)):n}(e))}function y(e){return l=void 0,h&&o?f(e):(o=r=void 0,a)}function C(){var e=gs(),n=v(e);if(o=arguments,r=this,u=e,n){if(void 0===l)return g(u);if(d)return pr(l),l=wi(m,t),f(u)}return void 0===l&&(l=wi(m,t)),a}return t=ia(t)||0,Bs(n)&&(p=!!n.leading,s=(d="maxWait"in n)?sn(ia(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),C.cancel=function(){void 0!==l&&pr(l),c=0,o=u=r=l=void 0},C.flush=function(){return void 0===l?a:y(gs())},C}var Es=Vo((function(e,t){return Jn(e,1,t)})),bs=Vo((function(e,t,n){return Jn(e,ia(t)||0,n)}));function _s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(i);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(_s.Cache||Mn),n}function Os(e){if("function"!=typeof e)throw new ye(i);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)}}_s.Cache=Mn;var Rs=ur((function(e,t){var n=(t=1==t.length&&Is(t[0])?ht(t[0],At(Xr())):ht(io(t,1),At(Xr()))).length;return Vo((function(o){for(var r=-1,i=an(o.length,n);++r<i;)o[r]=t[r].call(this,o[r]);return it(e,this,o)}))})),Ss=Vo((function(e,t){return Wr(e,32,void 0,t,Ht(t,Qr(Ss)))})),Ts=Vo((function(e,t){return Wr(e,64,void 0,t,Ht(t,Qr(Ts)))})),Ps=Ur((function(e,t){return Wr(e,256,void 0,void 0,void 0,t)}));function Ds(e,t){return e===t||e!=e&&t!=t}var As=Mr(go),Ns=Mr((function(e,t){return e>=t})),xs=wo(function(){return arguments}())?wo:function(e){return zs(e)&&Oe.call(e,"callee")&&!Ke.call(e,"callee")},Is=o.isArray,Fs=Ze?At(Ze):function(e){return zs(e)&&fo(e)==_};function Ms(e){return null!=e&&Hs(e.length)&&!Ws(e)}function Ls(e){return zs(e)&&Ms(e)}var ks=tn||il,Gs=et?At(et):function(e){return zs(e)&&fo(e)==p};function Vs(e){if(!zs(e))return!1;var t=fo(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!qs(e)}function Ws(e){if(!Bs(e))return!1;var t=fo(e);return t==h||t==f||"[object AsyncFunction]"==t||"[object Proxy]"==t}function js(e){return"number"==typeof e&&e==oa(e)}function Hs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Bs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function zs(e){return null!=e&&"object"==typeof e}var Us=tt?At(tt):function(e){return zs(e)&&oi(e)==g};function Ys(e){return"number"==typeof e||zs(e)&&fo(e)==v}function qs(e){if(!zs(e)||fo(e)!=m)return!1;var t=Ue(e);if(null===t)return!0;var n=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_e.call(n)==Pe}var Ks=nt?At(nt):function(e){return zs(e)&&fo(e)==y};var $s=ot?At(ot):function(e){return zs(e)&&oi(e)==C};function Qs(e){return"string"==typeof e||!Is(e)&&zs(e)&&fo(e)==w}function Xs(e){return"symbol"==typeof e||zs(e)&&fo(e)==E}var Js=rt?At(rt):function(e){return zs(e)&&Hs(e.length)&&!!We[fo(e)]};var Zs=Mr(To),ea=Mr((function(e,t){return e<=t}));function ta(e){if(!e)return[];if(Ms(e))return Qs(e)?Yt(e):yr(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=oi(e);return(t==g?Wt:t==C?Bt:Da)(e)}function na(e){return e?(e=ia(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function oa(e){var t=na(e),n=t%1;return t==t?n?t-n:t:0}function ra(e){return e?$n(oa(e),0,4294967295):0}function ia(e){if("number"==typeof e)return e;if(Xs(e))return NaN;if(Bs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(K,"");var n=ie.test(e);return n||ae.test(e)?ze(e.slice(2),n?2:8):re.test(e)?NaN:+e}function sa(e){return Cr(e,Ea(e))}function aa(e){return null==e?"":Jo(e)}var la=Er((function(e,t){if(di(t)||Ms(t))Cr(t,wa(t),e);else for(var n in t)Oe.call(t,n)&&Bn(e,n,t[n])})),ua=Er((function(e,t){Cr(t,Ea(t),e)})),ca=Er((function(e,t,n,o){Cr(t,Ea(t),e,o)})),pa=Er((function(e,t,n,o){Cr(t,wa(t),e,o)})),da=Ur(Kn);var ha=Vo((function(e,t){e=ge(e);var n=-1,o=t.length,r=o>2?t[2]:void 0;for(r&&li(t[0],t[1],r)&&(o=1);++n<o;)for(var i=t[n],s=Ea(i),a=-1,l=s.length;++a<l;){var u=s[a],c=e[u];(void 0===c||Ds(c,Ee[u])&&!Oe.call(e,u))&&(e[u]=i[u])}return e})),fa=Vo((function(e){return e.push(void 0,Hr),it(_a,void 0,e)}));function ga(e,t,n){var o=null==e?void 0:po(e,t);return void 0===o?n:o}function va(e,t){return null!=e&&ri(e,t,mo)}var ma=Ar((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),e[t]=n}),Ba(Ya)),ya=Ar((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),Oe.call(e,t)?e[t].push(n):e[t]=[n]}),Xr),Ca=Vo(Co);function wa(e){return Ms(e)?Gn(e):Ro(e)}function Ea(e){return Ms(e)?Gn(e,!0):So(e)}var ba=Er((function(e,t,n){No(e,t,n)})),_a=Er((function(e,t,n,o){No(e,t,n,o)})),Oa=Ur((function(e,t){var n={};if(null==e)return n;var o=!1;t=ht(t,(function(t){return t=lr(t,e),o||(o=t.length>1),t})),Cr(e,qr(e),n),o&&(n=Qn(n,7,Br));for(var r=t.length;r--;)er(n,t[r]);return n}));var Ra=Ur((function(e,t){return null==e?{}:function(e,t){return Fo(e,t,(function(t,n){return va(e,n)}))}(e,t)}));function Sa(e,t){if(null==e)return{};var n=ht(qr(e),(function(e){return[e]}));return t=Xr(t),Fo(e,n,(function(e,n){return t(e,n[0])}))}var Ta=Vr(wa),Pa=Vr(Ea);function Da(e){return null==e?[]:Nt(e,wa(e))}var Aa=Rr((function(e,t,n){return t=t.toLowerCase(),e+(n?Na(t):t)}));function Na(e){return Va(aa(e).toLowerCase())}function xa(e){return(e=aa(e))&&e.replace(ue,Lt).replace(Ie,"")}var Ia=Rr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Fa=Rr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ma=Or("toLowerCase");var La=Rr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var ka=Rr((function(e,t,n){return e+(n?" ":"")+Va(t)}));var Ga=Rr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Va=Or("toUpperCase");function Wa(e,t,n){return e=aa(e),void 0===(t=n?void 0:t)?function(e){return ke.test(e)}(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var ja=Vo((function(e,t){try{return it(e,void 0,t)}catch(e){return Vs(e)?e:new de(e)}})),Ha=Ur((function(e,t){return at(t,(function(t){t=Si(t),qn(e,t,ys(e[t],e))})),e}));function Ba(e){return function(){return e}}var za=Pr(),Ua=Pr(!0);function Ya(e){return e}function qa(e){return Oo("function"==typeof e?e:Qn(e,1))}var Ka=Vo((function(e,t){return function(n){return Co(n,e,t)}})),$a=Vo((function(e,t){return function(n){return Co(e,n,t)}}));function Qa(e,t,n){var o=wa(t),r=co(t,o);null!=n||Bs(t)&&(r.length||!o.length)||(n=t,t=e,e=this,r=co(t,wa(t)));var i=!(Bs(n)&&"chain"in n&&!n.chain),s=Ws(e);return at(r,(function(n){var o=t[n];e[n]=o,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),r=n.__actions__=yr(this.__actions__);return r.push({func:o,args:arguments,thisArg:e}),n.__chain__=t,n}return o.apply(e,ft([this.value()],arguments))})})),e}function Xa(){}var Ja=xr(ht),Za=xr(ut),el=xr(mt);function tl(e){return ui(e)?Rt(Si(e)):function(e){return function(t){return po(t,e)}}(e)}var nl=Fr(),ol=Fr(!0);function rl(){return[]}function il(){return!1}var sl=Nr((function(e,t){return e+t}),0),al=kr("ceil"),ll=Nr((function(e,t){return e/t}),1),ul=kr("floor");var cl,pl=Nr((function(e,t){return e*t}),1),dl=kr("round"),hl=Nr((function(e,t){return e-t}),0);return Pn.after=function(e,t){if("function"!=typeof t)throw new ye(i);return e=oa(e),function(){if(--e<1)return t.apply(this,arguments)}},Pn.ary=vs,Pn.assign=la,Pn.assignIn=ua,Pn.assignInWith=ca,Pn.assignWith=pa,Pn.at=da,Pn.before=ms,Pn.bind=ys,Pn.bindAll=Ha,Pn.bindKey=Cs,Pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Is(e)?e:[e]},Pn.chain=ts,Pn.chunk=function(e,t,n){t=(n?li(e,t,n):void 0===t)?1:sn(oa(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,s=0,a=o(Jt(r/t));i<r;)a[s++]=Yo(e,i,i+=t);return a},Pn.compact=function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r},Pn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=o(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return ft(Is(n)?yr(n):[n],io(t,1))},Pn.cond=function(e){var t=null==e?0:e.length,n=Xr();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new ye(i);return[n(e[0]),e[1]]})):[],Vo((function(n){for(var o=-1;++o<t;){var r=e[o];if(it(r[0],this,n))return it(r[1],this,n)}}))},Pn.conforms=function(e){return function(e){var t=wa(e);return function(n){return Xn(n,e,t)}}(Qn(e,1))},Pn.constant=Ba,Pn.countBy=rs,Pn.create=function(e,t){var n=Dn(e);return null==t?n:Yn(n,t)},Pn.curry=function e(t,n,o){var r=Wr(t,8,void 0,void 0,void 0,void 0,void 0,n=o?void 0:n);return r.placeholder=e.placeholder,r},Pn.curryRight=function e(t,n,o){var r=Wr(t,16,void 0,void 0,void 0,void 0,void 0,n=o?void 0:n);return r.placeholder=e.placeholder,r},Pn.debounce=ws,Pn.defaults=ha,Pn.defaultsDeep=fa,Pn.defer=Es,Pn.delay=bs,Pn.difference=Di,Pn.differenceBy=Ai,Pn.differenceWith=Ni,Pn.drop=function(e,t,n){var o=null==e?0:e.length;return o?Yo(e,(t=n||void 0===t?1:oa(t))<0?0:t,o):[]},Pn.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?Yo(e,0,(t=o-(t=n||void 0===t?1:oa(t)))<0?0:t):[]},Pn.dropRightWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!0,!0):[]},Pn.dropWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!0):[]},Pn.fill=function(e,t,n,o){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&li(e,t,n)&&(n=0,o=r),function(e,t,n,o){var r=e.length;for((n=oa(n))<0&&(n=-n>r?0:r+n),(o=void 0===o||o>r?r:oa(o))<0&&(o+=r),o=n>o?0:ra(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},Pn.filter=function(e,t){return(Is(e)?ct:ro)(e,Xr(t,3))},Pn.flatMap=function(e,t){return io(ds(e,t),1)},Pn.flatMapDeep=function(e,t){return io(ds(e,t),1/0)},Pn.flatMapDepth=function(e,t,n){return n=void 0===n?1:oa(n),io(ds(e,t),n)},Pn.flatten=Fi,Pn.flattenDeep=function(e){return(null==e?0:e.length)?io(e,1/0):[]},Pn.flattenDepth=function(e,t){return(null==e?0:e.length)?io(e,t=void 0===t?1:oa(t)):[]},Pn.flip=function(e){return Wr(e,512)},Pn.flow=za,Pn.flowRight=Ua,Pn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o},Pn.functions=function(e){return null==e?[]:co(e,wa(e))},Pn.functionsIn=function(e){return null==e?[]:co(e,Ea(e))},Pn.groupBy=us,Pn.initial=function(e){return(null==e?0:e.length)?Yo(e,0,-1):[]},Pn.intersection=Li,Pn.intersectionBy=ki,Pn.intersectionWith=Gi,Pn.invert=ma,Pn.invertBy=ya,Pn.invokeMap=cs,Pn.iteratee=qa,Pn.keyBy=ps,Pn.keys=wa,Pn.keysIn=Ea,Pn.map=ds,Pn.mapKeys=function(e,t){var n={};return t=Xr(t,3),lo(e,(function(e,o,r){qn(n,t(e,o,r),e)})),n},Pn.mapValues=function(e,t){var n={};return t=Xr(t,3),lo(e,(function(e,o,r){qn(n,o,t(e,o,r))})),n},Pn.matches=function(e){return Do(Qn(e,1))},Pn.matchesProperty=function(e,t){return Ao(e,Qn(t,1))},Pn.memoize=_s,Pn.merge=ba,Pn.mergeWith=_a,Pn.method=Ka,Pn.methodOf=$a,Pn.mixin=Qa,Pn.negate=Os,Pn.nthArg=function(e){return e=oa(e),Vo((function(t){return xo(t,e)}))},Pn.omit=Oa,Pn.omitBy=function(e,t){return Sa(e,Os(Xr(t)))},Pn.once=function(e){return ms(2,e)},Pn.orderBy=function(e,t,n,o){return null==e?[]:(Is(t)||(t=null==t?[]:[t]),Is(n=o?void 0:n)||(n=null==n?[]:[n]),Io(e,t,n))},Pn.over=Ja,Pn.overArgs=Rs,Pn.overEvery=Za,Pn.overSome=el,Pn.partial=Ss,Pn.partialRight=Ts,Pn.partition=hs,Pn.pick=Ra,Pn.pickBy=Sa,Pn.property=tl,Pn.propertyOf=function(e){return function(t){return null==e?void 0:po(e,t)}},Pn.pull=Wi,Pn.pullAll=ji,Pn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mo(e,t,Xr(n,2)):e},Pn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Mo(e,t,void 0,n):e},Pn.pullAt=Hi,Pn.range=nl,Pn.rangeRight=ol,Pn.rearg=Ps,Pn.reject=function(e,t){return(Is(e)?ct:ro)(e,Os(Xr(t,3)))},Pn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var o=-1,r=[],i=e.length;for(t=Xr(t,3);++o<i;){var s=e[o];t(s,o,e)&&(n.push(s),r.push(o))}return Lo(e,r),n},Pn.rest=function(e,t){if("function"!=typeof e)throw new ye(i);return Vo(e,t=void 0===t?t:oa(t))},Pn.reverse=Bi,Pn.sampleSize=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:oa(t),(Is(e)?Wn:jo)(e,t)},Pn.set=function(e,t,n){return null==e?e:Ho(e,t,n)},Pn.setWith=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:Ho(e,t,n,o)},Pn.shuffle=function(e){return(Is(e)?jn:Uo)(e)},Pn.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&li(e,t,n)?(t=0,n=o):(t=null==t?0:oa(t),n=void 0===n?o:oa(n)),Yo(e,t,n)):[]},Pn.sortBy=fs,Pn.sortedUniq=function(e){return e&&e.length?Qo(e):[]},Pn.sortedUniqBy=function(e,t){return e&&e.length?Qo(e,Xr(t,2)):[]},Pn.split=function(e,t,n){return n&&"number"!=typeof n&&li(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=aa(e))&&("string"==typeof t||null!=t&&!Ks(t))&&!(t=Jo(t))&&Vt(e)?cr(Yt(e),0,n):e.split(t,n):[]},Pn.spread=function(e,t){if("function"!=typeof e)throw new ye(i);return t=null==t?0:sn(oa(t),0),Vo((function(n){var o=n[t],r=cr(n,0,t);return o&&ft(r,o),it(e,this,r)}))},Pn.tail=function(e){var t=null==e?0:e.length;return t?Yo(e,1,t):[]},Pn.take=function(e,t,n){return e&&e.length?Yo(e,0,(t=n||void 0===t?1:oa(t))<0?0:t):[]},Pn.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?Yo(e,(t=o-(t=n||void 0===t?1:oa(t)))<0?0:t,o):[]},Pn.takeRightWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!1,!0):[]},Pn.takeWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3)):[]},Pn.tap=function(e,t){return t(e),e},Pn.throttle=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new ye(i);return Bs(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),ws(e,t,{leading:o,maxWait:t,trailing:r})},Pn.thru=ns,Pn.toArray=ta,Pn.toPairs=Ta,Pn.toPairsIn=Pa,Pn.toPath=function(e){return Is(e)?ht(e,Si):Xs(e)?[e]:yr(Ri(aa(e)))},Pn.toPlainObject=sa,Pn.transform=function(e,t,n){var o=Is(e),r=o||ks(e)||Js(e);if(t=Xr(t,4),null==n){var i=e&&e.constructor;n=r?o?new i:[]:Bs(e)&&Ws(i)?Dn(Ue(e)):{}}return(r?at:lo)(e,(function(e,o,r){return t(n,e,o,r)})),n},Pn.unary=function(e){return vs(e,1)},Pn.union=zi,Pn.unionBy=Ui,Pn.unionWith=Yi,Pn.uniq=function(e){return e&&e.length?Zo(e):[]},Pn.uniqBy=function(e,t){return e&&e.length?Zo(e,Xr(t,2)):[]},Pn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zo(e,void 0,t):[]},Pn.unset=function(e,t){return null==e||er(e,t)},Pn.unzip=qi,Pn.unzipWith=Ki,Pn.update=function(e,t,n){return null==e?e:tr(e,t,ar(n))},Pn.updateWith=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:tr(e,t,ar(n),o)},Pn.values=Da,Pn.valuesIn=function(e){return null==e?[]:Nt(e,Ea(e))},Pn.without=$i,Pn.words=Wa,Pn.wrap=function(e,t){return Ss(ar(t),e)},Pn.xor=Qi,Pn.xorBy=Xi,Pn.xorWith=Ji,Pn.zip=Zi,Pn.zipObject=function(e,t){return ir(e||[],t||[],Bn)},Pn.zipObjectDeep=function(e,t){return ir(e||[],t||[],Ho)},Pn.zipWith=es,Pn.entries=Ta,Pn.entriesIn=Pa,Pn.extend=ua,Pn.extendWith=ca,Qa(Pn,Pn),Pn.add=sl,Pn.attempt=ja,Pn.camelCase=Aa,Pn.capitalize=Na,Pn.ceil=al,Pn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=ia(n))==n?n:0),void 0!==t&&(t=(t=ia(t))==t?t:0),$n(ia(e),t,n)},Pn.clone=function(e){return Qn(e,4)},Pn.cloneDeep=function(e){return Qn(e,5)},Pn.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},Pn.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},Pn.conformsTo=function(e,t){return null==t||Xn(e,t,wa(t))},Pn.deburr=xa,Pn.defaultTo=function(e,t){return null==e||e!=e?t:e},Pn.divide=ll,Pn.endsWith=function(e,t,n){e=aa(e),t=Jo(t);var o=e.length,r=n=void 0===n?o:$n(oa(n),0,o);return(n-=t.length)>=0&&e.slice(n,r)==t},Pn.eq=Ds,Pn.escape=function(e){return(e=aa(e))&&V.test(e)?e.replace(k,kt):e},Pn.escapeRegExp=function(e){return(e=aa(e))&&q.test(e)?e.replace(Y,"\\$&"):e},Pn.every=function(e,t,n){var o=Is(e)?ut:no;return n&&li(e,t,n)&&(t=void 0),o(e,Xr(t,3))},Pn.find=is,Pn.findIndex=xi,Pn.findKey=function(e,t){return Ct(e,Xr(t,3),lo)},Pn.findLast=ss,Pn.findLastIndex=Ii,Pn.findLastKey=function(e,t){return Ct(e,Xr(t,3),uo)},Pn.floor=ul,Pn.forEach=as,Pn.forEachRight=ls,Pn.forIn=function(e,t){return null==e?e:so(e,Xr(t,3),Ea)},Pn.forInRight=function(e,t){return null==e?e:ao(e,Xr(t,3),Ea)},Pn.forOwn=function(e,t){return e&&lo(e,Xr(t,3))},Pn.forOwnRight=function(e,t){return e&&uo(e,Xr(t,3))},Pn.get=ga,Pn.gt=As,Pn.gte=Ns,Pn.has=function(e,t){return null!=e&&ri(e,t,vo)},Pn.hasIn=va,Pn.head=Mi,Pn.identity=Ya,Pn.includes=function(e,t,n,o){e=Ms(e)?e:Da(e),n=n&&!o?oa(n):0;var r=e.length;return n<0&&(n=sn(r+n,0)),Qs(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Et(e,t,n)>-1},Pn.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:oa(n);return r<0&&(r=sn(o+r,0)),Et(e,t,r)},Pn.inRange=function(e,t,n){return t=na(t),void 0===n?(n=t,t=0):n=na(n),function(e,t,n){return e>=an(t,n)&&e<sn(t,n)}(e=ia(e),t,n)},Pn.invoke=Ca,Pn.isArguments=xs,Pn.isArray=Is,Pn.isArrayBuffer=Fs,Pn.isArrayLike=Ms,Pn.isArrayLikeObject=Ls,Pn.isBoolean=function(e){return!0===e||!1===e||zs(e)&&fo(e)==c},Pn.isBuffer=ks,Pn.isDate=Gs,Pn.isElement=function(e){return zs(e)&&1===e.nodeType&&!qs(e)},Pn.isEmpty=function(e){if(null==e)return!0;if(Ms(e)&&(Is(e)||"string"==typeof e||"function"==typeof e.splice||ks(e)||Js(e)||xs(e)))return!e.length;var t=oi(e);if(t==g||t==C)return!e.size;if(di(e))return!Ro(e).length;for(var n in e)if(Oe.call(e,n))return!1;return!0},Pn.isEqual=function(e,t){return Eo(e,t)},Pn.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?Eo(e,t,void 0,n):!!o},Pn.isError=Vs,Pn.isFinite=function(e){return"number"==typeof e&&nn(e)},Pn.isFunction=Ws,Pn.isInteger=js,Pn.isLength=Hs,Pn.isMap=Us,Pn.isMatch=function(e,t){return e===t||bo(e,t,Zr(t))},Pn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,bo(e,t,Zr(t),n)},Pn.isNaN=function(e){return Ys(e)&&e!=+e},Pn.isNative=function(e){if(pi(e))throw new de("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _o(e)},Pn.isNil=function(e){return null==e},Pn.isNull=function(e){return null===e},Pn.isNumber=Ys,Pn.isObject=Bs,Pn.isObjectLike=zs,Pn.isPlainObject=qs,Pn.isRegExp=Ks,Pn.isSafeInteger=function(e){return js(e)&&e>=-9007199254740991&&e<=9007199254740991},Pn.isSet=$s,Pn.isString=Qs,Pn.isSymbol=Xs,Pn.isTypedArray=Js,Pn.isUndefined=function(e){return void 0===e},Pn.isWeakMap=function(e){return zs(e)&&oi(e)==b},Pn.isWeakSet=function(e){return zs(e)&&"[object WeakSet]"==fo(e)},Pn.join=function(e,t){return null==e?"":on.call(e,t)},Pn.kebabCase=Ia,Pn.last=Vi,Pn.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=o;return void 0!==n&&(r=(r=oa(n))<0?sn(o+r,0):an(r,o-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,r):wt(e,_t,r,!0)},Pn.lowerCase=Fa,Pn.lowerFirst=Ma,Pn.lt=Zs,Pn.lte=ea,Pn.max=function(e){return e&&e.length?oo(e,Ya,go):void 0},Pn.maxBy=function(e,t){return e&&e.length?oo(e,Xr(t,2),go):void 0},Pn.mean=function(e){return Ot(e,Ya)},Pn.meanBy=function(e,t){return Ot(e,Xr(t,2))},Pn.min=function(e){return e&&e.length?oo(e,Ya,To):void 0},Pn.minBy=function(e,t){return e&&e.length?oo(e,Xr(t,2),To):void 0},Pn.stubArray=rl,Pn.stubFalse=il,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=pl,Pn.nth=function(e,t){return e&&e.length?xo(e,oa(t)):void 0},Pn.noConflict=function(){return qe._===this&&(qe._=De),this},Pn.noop=Xa,Pn.now=gs,Pn.pad=function(e,t,n){e=aa(e);var o=(t=oa(t))?Ut(e):0;if(!t||o>=t)return e;var r=(t-o)/2;return Ir(Zt(r),n)+e+Ir(Jt(r),n)},Pn.padEnd=function(e,t,n){e=aa(e);var o=(t=oa(t))?Ut(e):0;return t&&o<t?e+Ir(t-o,n):e},Pn.padStart=function(e,t,n){e=aa(e);var o=(t=oa(t))?Ut(e):0;return t&&o<t?Ir(t-o,n)+e:e},Pn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(aa(e).replace($,""),t||0)},Pn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&li(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=na(e),void 0===t?(t=e,e=0):t=na(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var r=cn();return an(e+r*(t-e+Be("1e-"+((r+"").length-1))),t)}return ko(e,t)},Pn.reduce=function(e,t,n){var o=Is(e)?gt:Tt,r=arguments.length<3;return o(e,Xr(t,4),n,r,eo)},Pn.reduceRight=function(e,t,n){var o=Is(e)?vt:Tt,r=arguments.length<3;return o(e,Xr(t,4),n,r,to)},Pn.repeat=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:oa(t),Go(aa(e),t)},Pn.replace=function(){var e=arguments,t=aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pn.result=function(e,t,n){var o=-1,r=(t=lr(t,e)).length;for(r||(r=1,e=void 0);++o<r;){var i=null==e?void 0:e[Si(t[o])];void 0===i&&(o=r,i=n),e=Ws(i)?i.call(e):i}return e},Pn.round=dl,Pn.runInContext=e,Pn.sample=function(e){return(Is(e)?Vn:Wo)(e)},Pn.size=function(e){if(null==e)return 0;if(Ms(e))return Qs(e)?Ut(e):e.length;var t=oi(e);return t==g||t==C?e.size:Ro(e).length},Pn.snakeCase=La,Pn.some=function(e,t,n){var o=Is(e)?mt:qo;return n&&li(e,t,n)&&(t=void 0),o(e,Xr(t,3))},Pn.sortedIndex=function(e,t){return Ko(e,t)},Pn.sortedIndexBy=function(e,t,n){return $o(e,t,Xr(n,2))},Pn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var o=Ko(e,t);if(o<n&&Ds(e[o],t))return o}return-1},Pn.sortedLastIndex=function(e,t){return Ko(e,t,!0)},Pn.sortedLastIndexBy=function(e,t,n){return $o(e,t,Xr(n,2),!0)},Pn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Ko(e,t,!0)-1;if(Ds(e[n],t))return n}return-1},Pn.startCase=ka,Pn.startsWith=function(e,t,n){return e=aa(e),n=null==n?0:$n(oa(n),0,e.length),t=Jo(t),e.slice(n,n+t.length)==t},Pn.subtract=hl,Pn.sum=function(e){return e&&e.length?Pt(e,Ya):0},Pn.sumBy=function(e,t){return e&&e.length?Pt(e,Xr(t,2)):0},Pn.template=function(e,t,n){var o=Pn.templateSettings;n&&li(e,t,n)&&(t=void 0),e=aa(e),t=ca({},t,o,jr);var r,i,s=ca({},t.imports,o.imports,jr),a=wa(s),l=Nt(s,a),u=0,c=t.interpolate||ce,p="__p += '",d=ve((t.escape||ce).source+"|"+c.source+"|"+(c===H?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),h="//# sourceURL="+(Oe.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Ve+"]")+"\n";e.replace(d,(function(t,n,o,s,a,l){return o||(o=s),p+=e.slice(u,l).replace(pe,Gt),n&&(r=!0,p+="' +\n__e("+n+") +\n'"),a&&(i=!0,p+="';\n"+a+";\n__p += '"),o&&(p+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var f=Oe.call(t,"variable")&&t.variable;f||(p="with (obj) {\n"+p+"\n}\n"),p=(i?p.replace(I,""):p).replace(F,"$1").replace(M,"$1;"),p="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=ja((function(){return he(a,h+"return "+p).apply(void 0,l)}));if(g.source=p,Vs(g))throw g;return g},Pn.times=function(e,t){if((e=oa(e))<1||e>9007199254740991)return[];var n=4294967295,o=an(e,4294967295);e-=4294967295;for(var r=Dt(o,t=Xr(t));++n<e;)t(n);return r},Pn.toFinite=na,Pn.toInteger=oa,Pn.toLength=ra,Pn.toLower=function(e){return aa(e).toLowerCase()},Pn.toNumber=ia,Pn.toSafeInteger=function(e){return e?$n(oa(e),-9007199254740991,9007199254740991):0===e?e:0},Pn.toString=aa,Pn.toUpper=function(e){return aa(e).toUpperCase()},Pn.trim=function(e,t,n){if((e=aa(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Jo(t)))return e;var o=Yt(e),r=Yt(t);return cr(o,It(o,r),Ft(o,r)+1).join("")},Pn.trimEnd=function(e,t,n){if((e=aa(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Jo(t)))return e;var o=Yt(e);return cr(o,0,Ft(o,Yt(t))+1).join("")},Pn.trimStart=function(e,t,n){if((e=aa(e))&&(n||void 0===t))return e.replace($,"");if(!e||!(t=Jo(t)))return e;var o=Yt(e);return cr(o,It(o,Yt(t))).join("")},Pn.truncate=function(e,t){var n=30,o="...";if(Bs(t)){var r="separator"in t?t.separator:r;n="length"in t?oa(t.length):n,o="omission"in t?Jo(t.omission):o}var i=(e=aa(e)).length;if(Vt(e)){var s=Yt(e);i=s.length}if(n>=i)return e;var a=n-Ut(o);if(a<1)return o;var l=s?cr(s,0,a).join(""):e.slice(0,a);if(void 0===r)return l+o;if(s&&(a+=l.length-a),Ks(r)){if(e.slice(a).search(r)){var u,c=l;for(r.global||(r=ve(r.source,aa(oe.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var p=u.index;l=l.slice(0,void 0===p?a:p)}}else if(e.indexOf(Jo(r),a)!=a){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+o},Pn.unescape=function(e){return(e=aa(e))&&G.test(e)?e.replace(L,qt):e},Pn.uniqueId=function(e){var t=++Re;return aa(e)+t},Pn.upperCase=Ga,Pn.upperFirst=Va,Pn.each=as,Pn.eachRight=ls,Pn.first=Mi,Qa(Pn,(cl={},lo(Pn,(function(e,t){Oe.call(Pn.prototype,t)||(cl[t]=e)})),cl),{chain:!1}),Pn.VERSION="4.17.15",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pn[e].placeholder=Pn})),at(["drop","take"],(function(e,t){xn.prototype[e]=function(n){n=void 0===n?1:sn(oa(n),0);var o=this.__filtered__&&!t?new xn(this):this.clone();return o.__filtered__?o.__takeCount__=an(n,o.__takeCount__):o.__views__.push({size:an(n,4294967295),type:e+(o.__dir__<0?"Right":"")}),o},xn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;xn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xr(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");xn.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");xn.prototype[e]=function(){return this.__filtered__?new xn(this):this[n](1)}})),xn.prototype.compact=function(){return this.filter(Ya)},xn.prototype.find=function(e){return this.filter(e).head()},xn.prototype.findLast=function(e){return this.reverse().find(e)},xn.prototype.invokeMap=Vo((function(e,t){return"function"==typeof e?new xn(this):this.map((function(n){return Co(n,e,t)}))})),xn.prototype.reject=function(e){return this.filter(Os(Xr(e)))},xn.prototype.slice=function(e,t){e=oa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new xn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=oa(t))<0?n.dropRight(-t):n.take(t-e)),n)},xn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xn.prototype.toArray=function(){return this.take(4294967295)},lo(xn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=Pn[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);r&&(Pn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,a=t instanceof xn,l=s[0],u=a||Is(t),c=function(e){var t=r.apply(Pn,ft([e],s));return o&&p?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(a=u=!1);var p=this.__chain__,d=!!this.__actions__.length,h=i&&!p,f=a&&!d;if(!i&&u){t=f?t:new xn(this);var g=e.apply(t,s);return g.__actions__.push({func:ns,args:[c],thisArg:void 0}),new Nn(g,p)}return h&&f?e.apply(this,s):(g=this.thru(c),h?o?g.value()[0]:g.value():g)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);Pn.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var r=this.value();return t.apply(Is(r)?r:[],e)}return this[n]((function(n){return t.apply(Is(n)?n:[],e)}))}})),lo(xn.prototype,(function(e,t){var n=Pn[t];if(n){var o=n.name+"";Oe.call(Cn,o)||(Cn[o]=[]),Cn[o].push({name:t,func:n})}})),Cn[Dr(void 0,2).name]=[{name:"wrapper",func:void 0}],xn.prototype.clone=function(){var e=new xn(this.__wrapped__);return e.__actions__=yr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yr(this.__views__),e},xn.prototype.reverse=function(){if(this.__filtered__){var e=new xn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},xn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Is(e),o=t<0,r=n?e.length:0,i=function(e,t,n){var o=-1,r=n.length;for(;++o<r;){var i=n[o],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=an(t,e+s);break;case"takeRight":e=sn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=i.start,a=i.end,l=a-s,u=o?a:s-1,c=this.__iteratees__,p=c.length,d=0,h=an(l,this.__takeCount__);if(!n||!o&&r==l&&h==l)return or(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var g=-1,v=e[u+=t];++g<p;){var m=c[g],y=m.iteratee,C=m.type,w=y(v);if(2==C)v=w;else if(!w){if(1==C)continue e;break e}}f[d++]=v}return f},Pn.prototype.at=os,Pn.prototype.chain=function(){return ts(this)},Pn.prototype.commit=function(){return new Nn(this.value(),this.__chain__)},Pn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ta(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Pn.prototype.plant=function(e){for(var t,n=this;n instanceof An;){var o=Pi(n);o.__index__=0,o.__values__=void 0,t?r.__wrapped__=o:t=o;var r=o;n=n.__wrapped__}return r.__wrapped__=e,t},Pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof xn){var t=e;return this.__actions__.length&&(t=new xn(this)),(t=t.reverse()).__actions__.push({func:ns,args:[Bi],thisArg:void 0}),new Nn(t,this.__chain__)}return this.thru(Bi)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return or(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,Je&&(Pn.prototype[Je]=function(){return this}),Pn}();qe._=Kt,void 0===(r=function(){return Kt}.call(t,n,t,o))||(o.exports=r)}).call(this)}).call(this,n(16),n(93)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l}));
30/*! *****************************************************************************
31Copyright (c) Microsoft Corporation. All rights reserved.
32Licensed under the Apache License, Version 2.0 (the "License"); you may not use
33this file except in compliance with the License. You may obtain a copy of the
34License at http://www.apache.org/licenses/LICENSE-2.0
35
36THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
37KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
38WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
39MERCHANTABLITY OR NON-INFRINGEMENT.
40
41See the Apache Version 2.0 License for specific language governing permissions
42and limitations under the License.
43***************************************************************************** */
44var o=function(e,t){return(o=Object.setPrototypeOf||{__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 r(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}},function(e,t,n){e.exports={container:"table-cell-renderer__container___3m_v3",dirty:"table-cell-renderer__dirty___3CwdP",invalid:"table-cell-renderer__invalid___Km2Ng",placeholder:"table-cell-renderer__placeholder___Qs3DS",loading:"table-cell-renderer__loading___-dzUP"}},function(e,t,n){e.exports={container:"create-project__container___2DIW6",content:"create-project__content___1SU_8",title:"create-project__title___343-n",input:"create-project__input___2qU26",uri:"create-project__uri___2GOja",host:"create-project__host___1nx9S",dbTypeCard:"create-project__dbTypeCard___3L-YK",projectCard:"create-project__projectCard___oD_7y",row:"create-project__row___192qd",multipleCellRow:"create-project__multipleCellRow___RiV7q",saveCard:"create-project__saveCard___16hl5",open:"create-project__open___2NBzV",filepicker:"create-project__filepicker___ybnfE",error:"create-project__error___1b5cM",footer:"create-project__footer___1-F6h",button:"create-project__button___2scOE"}},function(e,t,n){e.exports={container:"tree-row-array__container___NgqRN",meta:"tree-row-array__meta___1CqZk",fieldValue:"tree-row-array__fieldValue___1julL",active:"tree-row-array__active___a1hP0",expanded:"tree-row-array__expanded___baMMz",expandButton:"tree-row-array__expandButton___2NbJA",loader:"tree-row-array__loader___28ua9",icon:"tree-row-array__icon___13WUm",fieldName:"tree-row-array__fieldName___2niPB",fieldType:"tree-row-array__fieldType___BvV14"}},function(e,t,n){e.exports={container:"model-list-tab__container___2iQfz",content:"model-list-tab__content___18lyk",header:"model-list-tab__header___2qZiM",title:"model-list-tab__title___26jdJ",search:"model-list-tab__search___3P72x",section:"model-list-tab__section___tpUs2",allModels:"model-list-tab__allModels___19QwC",sectionTitle:"model-list-tab__sectionTitle___3UTvk",list:"model-list-tab__list___ypFQI",model:"model-list-tab__model___2e6Vy",active:"model-list-tab__active___2uFbZ",spacer:"model-list-tab__spacer___vRes_",count:"model-list-tab__count___2D01o"}},,function(e,t,n){"use strict";function o(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return g(e,Error)}}function r(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function i(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function s(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function a(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return"undefined"!=typeof Event&&g(e,Event)}function p(e){return"undefined"!=typeof Element&&g(e,Element)}function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function h(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function f(e){return u(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"k",(function(){return a})),n.d(t,"i",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return p})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"g",(function(){return g}))},function(e,t,n){e.exports={container:"string-list-input__container___3C7YP",input:"string-list-input__input___GYVaG",text:"string-list-input__text___1G-5O",dropdown:"string-list-input__dropdown___3patO",item:"string-list-input__item___2P1do",hidden:"string-list-input__hidden___SPIVP"}},function(e,t,n){e.exports={dialog:"fatal-error__dialog___2e9jL",container:"fatal-error__container___1ikgw",image:"fatal-error__image___2Jyar",isDetailsOpen:"fatal-error__isDetailsOpen___2remK",title:"fatal-error__title___14r-A",subtitle:"fatal-error__subtitle___3im0P",telemetryButton:"fatal-error__telemetryButton___3s4Hg",githubButton:"fatal-error__githubButton___1sykH",reopenButton:"fatal-error__reopenButton___3pXoX",toggleDetailsButton:"fatal-error__toggleDetailsButton___1fnrm",open:"fatal-error__open___1wy8r",dump:"fatal-error__dump___1sYCO"}},function(e,t,n){"use strict";(function(e,o,r){n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"m",(function(){return u})),n.d(t,"k",(function(){return c})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return v})),n.d(t,"l",(function(){return b})),n.d(t,"j",(function(){return _})),n.d(t,"e",(function(){return O}));var i=n(10);n(41);function s(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}var a={};function l(){return s()?o:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function u(){var e=l(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var o=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return o(n[0])+o(n[1])+o(n[2])+o(n[3])+o(n[4])+o(n[5])+o(n[6])+o(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function c(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+o}}function p(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function d(e){var t=l();if(!("console"in t))return e();var n=t.console,o={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(o[e]=n[e],n[e]=n[e].__sentry_original__)}));var r=e();return Object.keys(o).forEach((function(e){n[e]=o[e]})),r}function h(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function g(){try{return document.location.href}catch(e){return""}}function v(e){try{for(var t=e,n=[],o=0,r=0,i=" > ".length,s=void 0;t&&o++<5&&!("html"===(s=m(t))||o>1&&r+n.length*i+s.length>=80);)n.push(s),r+=s.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function m(e){var t,n,o,r,s,a=e,l=[];if(!a||!a.tagName)return"";if(l.push(a.tagName.toLowerCase()),a.id&&l.push("#"+a.id),(t=a.className)&&Object(i.k)(t))for(n=t.split(/\s+/),s=0;s<n.length;s++)l.push("."+n[s]);var u=["type","name","title","alt"];for(s=0;s<u.length;s++)o=u[s],(r=a.getAttribute(o))&&l.push("["+o+'="'+r+'"]');return l.join("")}var y=Date.now(),C=0,w={now:function(){var e=Date.now()-y;return e<C&&(e=C),C=e,e},timeOrigin:y},E=function(){if(s())try{return(e="perf_hooks",r.require(e)).performance}catch(e){return w}var e;return l().performance&&void 0===performance.timeOrigin&&(performance.timeOrigin=performance.timing&&performance.timing.navigationStart||y),l().performance||w}();function b(){return(E.timeOrigin+E.now())/1e3}function _(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var o=Date.parse(""+t);return isNaN(o)?6e4:o-e}function O(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}}).call(this,n(70),n(16),n(94)(e))},function(e,t,n){e.exports={container:"common__container___v9Z4o",button:"common__button___1lK9k",label:"common__label___3Krp2",open:"common__open___3fMuY",exists:"common__exists___2kUqF"}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return C}));var o=n(1),r=n(0),i=n.n(r);if(!r.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!o.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var s=!1;function a(){return s}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(){var e=Object(r.useState)(0)[1];return Object(r.useCallback)((function(){e((function(e){return e+1}))}),[])}function c(e){return Object(o.getDependencyTree)(e)}var p,d=1e4,h=new Set;function f(){void 0===p&&(p=setTimeout(g,1e4))}function g(){p=void 0;var e=Date.now(),t=h,n=Array.isArray(t),o=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(o>=t.length)break;r=t[o++]}else{if((o=t.next()).done)break;r=o.value}var i=r,s=i.current;s&&e>=s.cleanAt&&(s.reaction.dispose(),i.current=null,h.delete(i))}h.size>0&&f()}var v={};function m(e){return"observer"+e}function y(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=v),a())return e();var r,s=(n.useForceUpdate||u)(),l=i.a.useRef(null);if(!l.current){var p=new o.Reaction(m(t),(function(){g.mounted?s():(p.dispose(),l.current=null)})),g=function(e){return{cleanAt:Date.now()+d,reaction:e}}(p);l.current=g,r=l,h.add(r),f()}var y,C,w=l.current.reaction;if(i.a.useDebugValue(w,c),i.a.useEffect((function(){var e;return e=l,h.delete(e),l.current?l.current.mounted=!0:(l.current={reaction:new o.Reaction(m(t),(function(){s()})),cleanAt:1/0},s()),function(){l.current.reaction.dispose(),l.current=null}}),[]),w.track((function(){try{y=e()}catch(e){C=e}})),C)throw C;return y}function C(e,t){if(a())return e;var n,o,i,s=l({forwardRef:!1},t),u=e.displayName||e.name,c=function(t,n){return y((function(){return e(t,n)}),u)};return c.displayName=u,n=s.forwardRef?Object(r.memo)(Object(r.forwardRef)(c)):Object(r.memo)(c),o=e,i=n,Object.keys(o).forEach((function(e){w[e]||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})),n.displayName=u,n}var w={$$typeof:!0,render:!0,compare:!0,type:!0};function E(e){var t=e.children,n=e.render,o=t||n;return"function"!=typeof o?null:y(o)}function b(e,t,n,o,r){var i="children"===t?"render":"children",s="function"==typeof e[t],a="function"==typeof e[i];return s&&a?new Error("MobX Observer: Do not use children and render in the same time in`"+n):s||a?null:new Error("Invalid prop `"+r+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}E.propTypes={children:b,render:b},E.displayName="Observer"}).call(this,n(16))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports={container:"skeleton__container___emhhy",tab1:"skeleton__tab1___13CKf",tab2:"skeleton__tab2___20qW1",tabEmptySpace:"skeleton__tabEmptySpace___1c609",filter1:"skeleton__filter1___2tWTs",filter2:"skeleton__filter2___1ZdyJ",filter3:"skeleton__filter3___3BYCU",filter4:"skeleton__filter4___iWTiO",separator:"skeleton__separator___1tYZc",button1:"skeleton__button1___6HgGH",btnSpace:"skeleton__btnSpace___ERzWk",pulsate:"skeleton__pulsate___3n5_x",table:"skeleton__table___N0zn4"}},function(e,t,n){e.exports={container:"tree-row-object__container___tiqPF",meta:"tree-row-object__meta___3T6oK",fieldValue:"tree-row-object__fieldValue___1MRLp",active:"tree-row-object__active___2Q43x",expanded:"tree-row-object__expanded___3O-JY",expandButton:"tree-row-object__expandButton___RAtuw",loader:"tree-row-object__loader___fBBjz",icon:"tree-row-object__icon___3MDEZ",fieldName:"tree-row-object__fieldName___1dIuL",fieldType:"tree-row-object__fieldType___27hAV"}},function(e,t,n){e.exports={container:"graphic__container___ugThw",logo:"graphic__logo___130JZ",squares:"graphic__squares___1cDNo",square1:"graphic__square1___18fj3",square2:"graphic__square2___zNZU3",square3:"graphic__square3___2tpLu",typePrisma:"graphic__typePrisma___1HxKX",typeStudio:"graphic__typeStudio___1gh8n",appInfo:"graphic__appInfo___3m2Z3",appInfoItem:"graphic__appInfoItem___gz79K"}},function(e,t,n){e.exports={whereContainer:"where-filter__whereContainer___3UaZ6",rowContainer:"where-filter__rowContainer___2PYYW",invalid:"where-filter__invalid___33BWy",deleteButton:"where-filter__deleteButton___1O7H5",addButton:"where-filter__addButton___1ruqz",tooltip:"where-filter__tooltip___2-WH1",button:"where-filter__button___1jfJa",fieldDropdown:"where-filter__fieldDropdown___-2zJa",operationDropdown:"where-filter__operationDropdown___XuSzX",input:"where-filter__input___33AvP"}},function(e,t,n){e.exports={text:"pagination-filter__text___S7_Tb",separator:"pagination-filter__separator___3_Ts0",tooltip:"pagination-filter__tooltip___3d1E_",tooltipBody:"pagination-filter__tooltipBody___3ovSD",input:"pagination-filter__input___32x5L"}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return g}));n(4);var o=n(10),r=n(83),i=n(13),s=n(41);function a(e,t,n){if(t in e){var o=e[t],r=n(o);if("function"==typeof r)try{r.prototype=r.prototype||{},Object.defineProperties(r,{__sentry_original__:{enumerable:!1,value:o}})}catch(e){}e[t]=r}}function l(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function u(e){if(Object(o.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Object(o.f)(e)){var s=e,a={};a.type=s.type;try{a.target=Object(o.c)(s.target)?Object(i.h)(s.target):Object.prototype.toString.call(s.target)}catch(e){a.target="<unknown>"}try{a.currentTarget=Object(o.c)(s.currentTarget)?Object(i.h)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(e){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Object(o.g)(e,CustomEvent)&&(a.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,r)&&(a[r]=s);return a}return e}function c(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function p(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var o=f(e,t);return c(o)>n?p(e,t-1,n):o}function d(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(o.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(i.e)(t)+"]":t}function h(e,t,n,i){if(void 0===n&&(n=1/0),void 0===i&&(i=new r.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=d(e);return Object(o.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var s=d(t,e);if(Object(o.i)(s))return s;var a=u(t),l=Array.isArray(t)?[]:{};if(i.memoize(t))return"[Circular ~]";for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(l[c]=h(c,a[c],n-1,i));return i.unmemoize(t),l}function f(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return h(e,n,t)})))}catch(e){return"**non-serializable**"}}function g(e,t){void 0===t&&(t=40);var n=Object.keys(u(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(s.d)(n[0],t);for(var o=n.length;o>0;o--){var r=n.slice(0,o).join(", ");if(!(r.length>t))return o===n.length?r:Object(s.d)(r,t)}return""}}).call(this,n(16))},function(e,t,n){e.exports={container:"shortcut-dialog__container___2Uj92",title:"shortcut-dialog__title___35LJu",content:"shortcut-dialog__content___JX2dC",section:"shortcut-dialog__section___qIMbC",sectionName:"shortcut-dialog__sectionName___gQWtp",row:"shortcut-dialog__row___GU8Z7",name:"shortcut-dialog__name___Geqvf",keys:"shortcut-dialog__keys___3ARYB",separator:"shortcut-dialog__separator___3QFiT"}},function(e,t,n){e.exports={container:"splash__container___1YIMq",projects:"splash__projects___2HdlU",createProject:"splash__createProject___1q5Ia",invisible:"splash__invisible___1iChG",projectList:"splash__projectList___1hLKq",footer:"splash__footer___1R8nF",button:"splash__button___2v-g3"}},function(e,t,n){t.AgGridReact=n(95).AgGridReact,t.AgGridColumn=n(72).AgGridColumn},function(e,t,n){e.exports={container:"tab__container___3Kpmb",title:"tab__title___2ul-B",active:"tab__active___KKPVa",preview:"tab__preview___1Ggra",modelListTabIcon:"tab__modelListTabIcon___3Kc_-",closeButton:"tab__closeButton___1ZYuG",dirtyIndicator:"tab__dirtyIndicator___21LsQ"}},function(e,t,n){e.exports={container:"error-dialog__container___pEH_e",fullscreen:"error-dialog__fullscreen___2NzEq",header:"error-dialog__header___EXidN",title:"error-dialog__title___2wop9",dump:"error-dialog__dump___KYbsJ",trace:"error-dialog__trace___1g7Ee",toggleTraceButton:"error-dialog__toggleTraceButton___2Gt7S",open:"error-dialog__open___2vYxB",traceText:"error-dialog__traceText___23JHu"}},function(e,t,n){e.exports={container:"project-list__container___2sXSM",header:"project-list__header___bI6_x",search:"project-list__search___2gTEC",list:"project-list__list___YkOZf",project:"project-list__project___2RWIn",projectMeta:"project-list__projectMeta___YJ6I7",projectName:"project-list__projectName___2bz0Q",projectDir:"project-list__projectDir___2-i7U"}},,,,function(e,t,n){e.exports={input:"boolean-input__input___3YpBM"}},function(e,t,n){e.exports={container:"relation-input__container___1WXtC",table:"relation-input__table___1Dvdg",wipeIn:"relation-input__wipeIn___3vRn4"}},function(e,t,n){e.exports={container:"table-cell-header__container___13mm4",sortable:"table-cell-header__sortable___2yeLr",title:"table-cell-header__title___EPFko",sortIndicator:"table-cell-header__sortIndicator___PH7Pn",visible:"table-cell-header__visible___1Cp2G",asc:"table-cell-header__asc___2pqml",desc:"table-cell-header__desc___3ke4p"}},function(e,t,n){e.exports={container:"autosuggest__container___2qjda",input:"autosuggest__input___1IP9E",dropdown:"autosuggest__dropdown___3yFi_",match:"autosuggest__match___3ktdc",highlight:"autosuggest__highlight___2b60V"}},function(e,t,n){e.exports={container:"tree-row-scalar__container___39WF3",meta:"tree-row-scalar__meta___29Ap5",fieldValue:"tree-row-scalar__fieldValue___2Pozq",active:"tree-row-scalar__active___1vV1h",icon:"tree-row-scalar__icon___3C_cB",fieldName:"tree-row-scalar__fieldName___1MOJv"}},function(e,t,n){e.exports={container:"tree-row-enum__container___3qlvX",meta:"tree-row-enum__meta___1N38A",fieldValue:"tree-row-enum__fieldValue___2jNj9",active:"tree-row-enum__active___24OEt",icon:"tree-row-enum__icon___2bEwH",fieldName:"tree-row-enum__fieldName____cz8S"}},function(e,t,n){e.exports={container:"databrowser__container___1bjSq",header:"databrowser__header___2n4uV",separator:"databrowser__separator___1pAfj",refreshBtn:"databrowser__refreshBtn___2Gh0s",deleteBtn:"databrowser__deleteBtn___2od-Y",pendingActions:"databrowser__pendingActions___KskOX"}},function(e,t,n){(function(e){("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"0.248.0"}}).call(this,n(16))},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(87)},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var o=n(10);function r(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,o=n.length;if(o<=150)return n;t>o&&(t=o);var r=Math.max(t-60,0);r<5&&(r=0);var i=Math.min(r+140,o);return i>o-5&&(i=o),i===o&&(r=Math.max(i-140,0)),n=n.slice(r,i),r>0&&(n="'{snip} "+n),i<o&&(n+=" {snip}"),n}function s(e,t){if(!Array.isArray(e))return"";for(var n=[],o=0;o<e.length;o++){var r=e[o];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t){return!!Object(o.k)(e)&&(Object(o.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t,n){e.exports={container:"tab-close-confirm-dialog__container___39fyK",content:"tab-close-confirm-dialog__content___vDOEo",title:"tab-close-confirm-dialog__title___2uUVs",subtitle:"tab-close-confirm-dialog__subtitle___20VoJ",footer:"tab-close-confirm-dialog__footer___1rkzP",discardBtn:"tab-close-confirm-dialog__discardBtn___8D_yb"}},function(e,t,n){e.exports={label:"dropdown__label___YgdfJ",button:"dropdown__button___3xS77",open:"dropdown__open___-e2ns",textButton:"dropdown__textButton___sGVgo",caret:"dropdown__caret___1qGs0",dropdown:"dropdown__dropdown___1Vyuu"}},function(e,t,n){e.exports={dialog:"readonly-dialog__dialog___fRVg0",container:"readonly-dialog__container___1Yr4K",illustration:"readonly-dialog__illustration___1kF0d",title:"readonly-dialog__title___3FBm-",content:"readonly-dialog__content___3wMXN",confirmButton:"readonly-dialog__confirmButton___2z6Tg"}},function(e,t,n){e.exports={container:"pending-actions__container___rRrZt",separator:"pending-actions__separator___PdyAh",action:"pending-actions__action___vs1zx",discardBtn:"pending-actions__discardBtn___3G48w",confirmBtn:"pending-actions__confirmBtn___11W0g"}},function(e,t,n){e.exports={container:"button__container___3JwB8",wide:"button__wide___zFraP",ghost:"button__ghost___1AqAA",blue:"button__blue___2UViu",disabled:"button__disabled___2YAWg"}},function(e,t,n){e.exports={container:"error__container___2BZJp",slideInTop:"error__slideInTop___2ApAK",closeButton:"error__closeButton___1Jesd",content:"error__content___2cYYh",title:"error__title___2d-0F",subtitle:"error__subtitle___1B0pk"}},function(e,t,n){e.exports={container:"connection-error__container___1wfpO",slideInTop:"connection-error__slideInTop___3kDcH",visible:"connection-error__visible____-IuC",pulsingDot:"connection-error__pulsingDot___zan7Y",pulse:"connection-error__pulse___2JpC9",title:"connection-error__title___2gDRQ",subtitle:"connection-error__subtitle___aLh6z"}},function(e,t,n){e.exports={tooltip:"field-filter__tooltip___3ggWg",search:"field-filter__search___3KyTd",checkbox:"field-filter__checkbox___1xjjC",name:"field-filter__name___1VWps",type:"field-filter__type___1nlfj"}},function(e,t,n){e.exports={container:"label__container___1-ZPT",actions:"label__actions___H0CUW",label:"label__label___26xNs",annotation:"label__annotation___254Yv",spacing:"label__spacing___3_wh8"}},,function(e,t,n){e.exports={container:"header__container___27bfL",connectivityIcon:"header__connectivityIcon___3tR_C",connected:"header__connected___2dvwz",disconnected:"header__disconnected___36Zgv",logo:"header__logo___3xoBS"}},function(e,t,n){e.exports={container:"table-empty-overlay__container___aqyso",illustration:"table-empty-overlay__illustration___1cDnh",title:"table-empty-overlay__title___bBIOx",subtitle:"table-empty-overlay__subtitle___U37Yi"}},function(e,t,n){e.exports={container:"spinner__container___382HS",one:"spinner__one___wpqjK",two:"spinner__two___24EM8",three:"spinner__three___KujVe",pulse:"spinner__pulse___1waL4"}},,function(e,t,n){e.exports={input:"string-input__input___1-wqd"}},function(e,t,n){e.exports={container:"input__container___2tuDB",input:"input__input___2y3V7",file:"input__file___23xmo"}},function(e,t,n){e.exports={container:"dropdown-menu__container___hBvHv",item:"dropdown-menu__item___8IXYS",highlighted:"dropdown-menu__highlighted___3AzXm"}},function(e,t,n){e.exports={container:"checkbox__container___2IDlh",checkbox:"checkbox__checkbox___2mfYm",checked:"checkbox__checked___2xTUv"}},function(e,t,n){e.exports={container:"layout__container___1n0mR",header:"layout__header___SYsle",body:"layout__body___UaADf"}},function(e,t,n){e.exports={container:"studio__container___2U_w5",themeLight:"studio__themeLight___3EeiS",themeDark:"studio__themeDark___1kRof"}},function(e,t,n){e.exports={container:"file-picker__container___1ZwkE",input:"file-picker__input___1SgiU",filename:"file-picker__filename___6A19_"}},function(e,t,n){"use strict";
45/*
46object-assign
47(c) Sindre Sorhus
48@license MIT
49*/var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=s(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))r.call(n,c)&&(l[c]=n[c]);if(o){a=o(n);for(var p=0;p<a.length;p++)i.call(n,a[p])&&(l[a[p]]=n[a[p]])}}return l}},function(e,t,n){"use strict";(function(e){
50/**
51 * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v23.1.1
52 * @link http://www.ag-grid.com/
53' * @license MIT
54 */
55Object.defineProperty(t,"__esModule",{value:!0});
56/**
57 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
58 * @version v23.1.1
59 * @link http://www.ag-grid.com/
60 * @license MIT
61 */
62var n=function(){function e(e,t,n,o){void 0===o&&(o=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,o||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.fromHexString=function(t){var n=t.match(e.hexRe);if(n)return new e((o=parseInt(n[1],16))/255,(r=parseInt(n[2],16))/255,(i=parseInt(n[3],16))/255,(s=void 0!==n[4]?parseInt(n[4],16):255)/255);if(n=t.match(e.shortHexRe)){var o=parseInt(n[1],16),r=parseInt(n[2],16),i=parseInt(n[3],16),s=void 0!==n[4]?parseInt(n[4],16):15;return new e((o+=16*o)/255,(r+=16*r)/255,(i+=16*i)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var n=t.match(e.rgbRe);if(n)return new e(+n[1]/255,+n[2]/255,+n[3]/255);if(n=t.match(e.rgbaRe))return new e(+n[1]/255,+n[2]/255,+n[3]/255,+n[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,o,r){void 0===r&&(r=1);var i=e.HSBtoRGB(t,n,o);return new e(i[0],i[1],i[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],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 o=Math.min(e,t,n),r=Math.max(e,t,n),i=NaN;if(o!==r){var s=r-o,a=(r-e)/s,l=(r-t)/s,u=(r-n)/s;i=e===r?u-l:t===r?2+a-u:4+l-a,(i/=6)<0&&(i+=1)}return[360*i,0!==r?(r-o)/r:0,r]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var o=0,r=0,i=0;if(0===t)o=r=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:o=n,r=c,i=l;break;case 1:o=u,r=n,i=l;break;case 2:o=l,r=n,i=c;break;case 3:o=l,r=u,i=n;break;case 4:o=c,r=l,i=n;break;case 5:o=n,r=l,i=u}}return[o,r,i]},e.prototype.derive=function(t,n,o,r){var i=e.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&o>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*o,1),0);var u=Math.max(Math.min(this.a*r,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.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();
63/**
64 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
65 * @version v23.1.1
66 * @link http://www.ag-grid.com/
67 * @license MIT
68 */function o(e,t){void 0===t&&(t=",");for(var n,o,r,i=[],s=function(e){return"\r"===e||"\n"===e},a=!1,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){i[l]||(i[l]=[]),i[l][u]||(i[l][u]="")};if(f(),'"'===d){if(a)return'"'===h?(i[l][u]+='"',c++):a=!1,n=l,o=u,r=c,"continue";if(void 0===p||p===t||s(p))return a=!0,n=l,o=u,r=c,"continue"}if(!a){if(d===t)return u++,f(),n=l,o=u,r=c,"continue";if(s(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,n=l,o=u,r=c,"continue"}i[l][u]+=d,n=l,o=u,r=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=n,c=o,p=r;return i}var r,i,s,a,l,u,c=Object.freeze({__proto__:null,stringToArray:o});
69/**
70 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
71 * @version v23.1.1
72 * @link http://www.ag-grid.com/
73 * @license MIT
74 */function p(){return void 0===i&&(i=/*@cc_on!@*/!!document.documentMode),i}function d(){return void 0===s&&(s=!p()&&!!window.StyleMedia),s}function h(){if(void 0===r){var e=window;r=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||(t=e.safari&&e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return r}function f(){if(void 0===a){var e=window;a=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return a}function g(){if(void 0===l){var e=window;l=void 0!==e.InstallTrigger}return l}var v=Object.freeze({__proto__:null,isBrowserIE:p,isBrowserEdge:d,isBrowserSafari:h,isBrowserChrome:f,isBrowserFirefox:g,isIOSUserAgent:function(){return void 0===u&&(u=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),u},getMaxDivHeight:function(){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 o=2*e;if(n.style.height=o+"px",o>t||n.clientHeight!==o)break;e=o}return document.body.removeChild(n),e},getScrollbarWidth:function(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;return t.parentNode&&t.parentNode.removeChild(t),n},hasOverflowScrolling:function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),n=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var o=window.getComputedStyle(t);if("touch"===o.overflowScrolling&&(n=!0),!n)for(var r=0,i=e;r<i.length;r++)if("touch"===o[i[r]+"OverflowScrolling"]){n=!0;break}return t.parentNode&&t.parentNode.removeChild(t),n},getBodyWidth:function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},getBodyHeight:function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}});
75/**
76 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
77 * @version v23.1.1
78 * @link http://www.ag-grid.com/
79 * @license MIT
80 */function m(e){return null==e||""===e?null:e}function y(e,t){return void 0===t&&(t=!1),null!=e&&(t||""!==e)}function C(e){return!y(e)}function w(e){return y(e)&&e.toString?e.toString():null}function E(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.keys(e).map((function(t){return e[t]}))}var b=Object.freeze({__proto__:null,makeNull:m,exists:y,missing:C,missingOrEmpty:function(e){return!e||C(e)||0===e.length},toStringOrNull:w,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:function(e,t,n){void 0===n&&(n=!1);var o=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&r)return 0;if(o)return-1;if(r)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"==typeof e){if(!n)return i(e,t);try{return e.localeCompare(t)}catch(n){return i(e,t)}}return i(e,t)},find:function e(t,n,o){if(null==t)return null;if(!Array.isArray(t))return e(E(t),n,o);for(var r=t,i=null,s=0;s<r.length;s++){var a=r[s];if("string"==typeof n){if(a[n]===o){i=a;break}}else if(n(a)){i=a;break}}return i},values:E}),_=/[&<>"']/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};
81/**
82 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
83 * @version v23.1.1
84 * @link http://www.ag-grid.com/
85 * @license MIT
86 */function R(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function S(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}var T=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function o(e){if(0==(4294967168&e))return t(e);var o="";return 0==(4294965248&e)?o=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),o=t(e>>12&15|224),o+=n(e,6)):0==(4292870144&e)&&(o=t(e>>18&7|240),o+=n(e,12),o+=n(e,6)),o+=t(63&e|128)}for(var r=function(e){for(var t,n,o=[],r=0,i=e.length;r<i;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<i?56320==(64512&(n=e.charCodeAt(r++)))?o.push(((1023&t)<<10)+(1023&n)+65536):(o.push(t),r--):o.push(t);return o}(e),i=r.length,s=-1,a="";++s<i;)a+=o(r[s]);return a},camelCaseToHyphen:R,hyphenToCamelCase:S,capitalise:function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()},escape:function(e){return null!=e&&e.replace?e.replace(_,(function(e){return O[e]})):e},camelCaseToHumanText:function(e){return e&&null!=e?e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" "):null}});
87/**
88 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
89 * @version v23.1.1
90 * @link http://www.ag-grid.com/
91 * @license MIT
92 */function P(e,t){if(t&&0!==t.length){if(!(t.indexOf(" ")>=0)){if(e.classList)e.classList.add(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ");n.indexOf(t)<0&&(n.push(t),e.setAttribute("class",n.join(" ")))}else e.setAttribute("class",t);return e}t.split(" ").forEach((function(t){return P(e,t)}))}}function D(e,t){if(e.classList)e.classList.remove(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ").filter((function(e){return e!==t})).join(" ");e.setAttribute("class",n)}}function A(e,t,n){n?P(e,t):D(e,t)}function N(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var n=e.className===t,o=e.className.indexOf(" "+t+" ")>=0,r=0===e.className.indexOf(t+" "),i=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return n||o||r||i}return!1}function x(e,t){A(e,"ag-hidden",!t)}function I(e){var t=window.getComputedStyle(e),n=t.height,o=t.width,r=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(o),paddingTop:parseFloat(r),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(c),marginLeft:parseFloat(p),boxSizing:d}}function F(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function M(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n],r=e.children[n];r!==o&&e.insertBefore(o,r)}}function G(e,t){t=W(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function V(e,t){t=W(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function W(e){return"number"==typeof e?e+"px":e}function j(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function H(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function B(e){return j(e)||H(e)}var z=Object.freeze({__proto__:null,addCssClass:P,removeCssClass:D,addOrRemoveCssClass:A,radioCssClass:function(e,t,n){for(var o=e.parentElement.firstChild;o;)t&&A(o,t,o===e),n&&A(o,n,o!==e),o=o.nextSibling},containsClass:N,setDisplayed:x,setVisible:function(e,t){A(e,"ag-invisible",!t)},isElementChildOfClass:function(e,t,n){for(var o=0;e;){if(N(e,t))return!0;if(e=e.parentElement,n&&++o>n)break}return!1},getElementSize:I,getInnerHeight:function(e){var t=I(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height},getInnerWidth:function(e){var t=I(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width},getAbsoluteHeight:function(e){var t=I(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)},getAbsoluteWidth:function(e){var t=I(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)},getScrollLeft:function(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),f()&&(n=e.scrollWidth-e.clientWidth-n)),n},setScrollLeft:function(e,t,n){n&&((h()||f())&&(t=e.scrollWidth-e.clientWidth-t),g()&&(t*=-1)),e.scrollLeft=t},clearElement:F,removeElement:function(e,t){M(e.querySelector(t))},removeFromParent:M,isVisible:function(e){return null!==e.offsetParent},loadTemplate:L,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:function(e){return e&&e.clientHeight?e.clientHeight:0},offsetWidth:function(e){return e&&e.clientWidth?e.clientWidth:0},ensureDomOrder:function(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))},setDomChildOrder:k,insertTemplateWithDomOrder:function(e,t,n){var o;return n?(n.insertAdjacentHTML("afterend",t),o=n.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,o=e.firstChild),o},prependDC:function(e,t){y(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:function(e,t){t&&Object.keys(t).forEach((function(n){var o=S(n);o&&(e.style[o]=t[n])}))},isHorizontalScrollShowing:function(e){return e.clientWidth<e.scrollWidth},isVerticalScrollShowing:function(e){return e.clientHeight<e.scrollHeight},setElementWidth:function(e,t){"flex"===t?(e.style.width=null,e.style.minWidth=null,e.style.maxWidth=null,e.style.flex="1 1 auto"):G(e,t)},setFixedWidth:G,setElementHeight:function(e,t){"flex"===t?(e.style.height=null,e.style.minHeight=null,e.style.maxHeight=null,e.style.flex="1 1 auto"):V(e,t)},setFixedHeight:V,formatSize:W,isNode:j,isElement:H,isNodeOrElement:B,copyNodeList:function(e){for(var t=e?e.length:0,n=[],o=0;o<t;o++)n.push(e[o]);return n},iterateNamedNodeMap:function(e,t){if(e)for(var n=0;n<e.length;n++){var o=e[n];t(o.name,o.value)}},setCheckboxState:function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0}});
93/**
94 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
95 * @version v23.1.1
96 * @link http://www.ag-grid.com/
97 * @license MIT
98 */function U(e,t){e&&!C(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 Y(e,t){return e[t]}function q(e,t,n){e[t]=n}function K(e,t,n,o){var r=Y(e,n);void 0!==r&&q(t,n,o?o(r):r)}var $=Object.freeze({__proto__:null,iterateObject:U,cloneObject:function(e){for(var t={},n=Object.keys(e),o=0;o<n.length;o++){var r=n[o],i=e[r];t[r]=i}return t},deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},getProperty:Y,setProperty:q,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];n.forEach((function(n){return K(e,t,n)}))},copyPropertyIfPresent:K,getAllKeysInObjects:function(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)},mergeDeep:function e(t,n,o){void 0===o&&(o=!0),y(n)&&U(n,(function(n,r){var i=t[n];i!==r&&("object"!=typeof i||"object"!=typeof r||Array.isArray(i)?(o||void 0!==r)&&(t[n]=r):e(i,r))}))},assign:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){y(t)&&U(t,(function(t,n){e[t]=n}))})),e},missingOrEmptyObject:function(e){return C(e)||0===Object.keys(e).length},get:function(e,t,n){if(null==e)return n;for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return n;var i=r[o[0]];return null!=i?i:n},set:function(e,t,n){if(null!=e){for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return;r[o[0]]=n}},deepFreeze:function e(t){return Object.freeze(t),E(t).filter((function(e){return null!=e})).forEach((function(t){"object"!=typeof t&&"function"!=typeof t||e(t)})),t},getValueUsingField:function(e,t,n){if(t&&e){if(!n)return e[t];for(var o=t.split("."),r=e,i=0;i<o.length;i++)if(C(r=r[o[i]]))return null;return r}}});
99/**
100 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
101 * @version v23.1.1
102 * @link http://www.ag-grid.com/
103 * @license MIT
104 */var Q=Object.freeze({__proto__:null,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 o=0;o<e.length;o++){var r=e[o];Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var i=0,s=0,a=0,l=0,u=0,c=0;c<t;c++)i+=c,s+=u=e[c],l+=c*c,a+=c*u;var p=(t*a-i*s)/(t*l-i*i),d=s/t-p*i/t,h=[];for(c=0;c<=t;c++)h.push(parseFloat((c*p+d).toFixed(n)));return h},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return U(e,(function(e,n){var o=R(e);t.push(o+": "+n+";")})),t.join(" ")},message:function(e){var t=document.createElement("div"),n=document.querySelector("#__ag__message");if(t.innerHTML=e,!n){n=L('<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)}))}});
105/**
106 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
107 * @version v23.1.1
108 * @link http://www.ag-grid.com/
109 * @license MIT
110 */function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var o=e[n];if(y(o))return o}return null}function J(e){if(e&&e.length)return e[e.length-1]}function Z(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&re(e,(function(e,o){return n?n(e,t[o]):t[o]===e}))}function ee(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function te(e,t){ie(t,(function(t){return ee(e,t)}))}function ne(e,t,n){e.splice(n,0,t)}function oe(e,t){return e.indexOf(t)>-1}function re(e,t){if(null==e)return!0;for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function ie(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n],n)}function se(e,t){if(null==e)return null;for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var ae=Object.freeze({__proto__:null,firstExistingValue:X,anyExists:function(e){return e&&null!=X(e)},existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:J,areEqual:Z,compareArrays:function(e,t){return Z(e,t)},shallowCompare:function(e,t){return Z(e,t)},sortNumerically:function(e){return e.sort((function(e,t){return e-t}))},removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var o=e[n]===t,r=e[n+1]===t;o&&r&&e.splice(n+1,1)}},removeFromArray:ee,removeAllFromArray:te,insertIntoArray:ne,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){ne(e,t[o],n)}},moveInArray:function(e,t,n){te(e,t),ie(t.slice().reverse(),(function(t){return ne(e,t,n)}))},includes:oe,flatten:function(e){return[].concat.apply([],e)},pushAll:function(e,t){null!=t&&null!=e&&ie(t,(function(t){return e.push(t)}))},toStrings:function(e){return se(e,w)},findIndex:function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1},every:re,some:function(e,t){if(null==e)return!1;for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1},forEach:ie,map:se,filter:function(e,t){if(null==e)return null;for(var n=[],o=0;o<e.length;o++)t(e[o],o)&&n.push(e[o]);return n},reduce:function(e,t,n){if(null==e||null==n)return null;for(var o=n,r=0;r<e.length;r++)o=t(o,e[r],r);return o},forEachSnapshotFirst:function(e,t){e&&e.slice(0).forEach(t)}});
111/**
112 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
113 * @version v23.1.1
114 * @link http://www.ag-grid.com/
115 * @license MIT
116 */function le(e,t){for(var n=""+e;n.length<t;)n="0"+n;return n}function ue(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}var ce=Object.freeze({__proto__:null,padStart:le,createArrayOfNumbers:function(e,t){for(var n=[],o=e;o<=t;o++)n.push(o);return n},isNumeric:function(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)},getMaxSafeInteger:function(){return Number.MAX_SAFE_INTEGER||9007199254740991},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="",o=0;o<t;o++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e){return"number"!=typeof e?"":ue(Math.round(100*e)/100)},formatNumberCommas:ue,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}});
117/**
118 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
119 * @version v23.1.1
120 * @link http://www.ag-grid.com/
121 * @license MIT
122 */function pe(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return le(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return le(e,2)})).join(":")),o}function de(e){if(!e)return null;var t=e.split(" "),n=t[0],o=t[1];if(!n)return null;var r=n.split("-").map((function(e){return parseInt(e,10)}));if(3!==r.filter((function(e){return!isNaN(e)})).length)return null;var i=r[0],s=r[1],a=r[2],l=new Date(i,s-1,a);if(l.getFullYear()!==i||l.getMonth()!==s-1||l.getDate()!==a)return null;if(!o||"00:00:00"===o)return l;var u=o.split(":").map((function(e){return parseInt(e,10)})),c=u[0],p=u[1],d=u[2];return c>=0&&c<24&&l.setHours(c),p>=0&&p<60&&l.setMinutes(p),d>=0&&d<60&&l.setSeconds(d),l}var he=Object.freeze({__proto__:null,serialiseDate:pe,parseDateTimeFromString:de}),fe=["touchstart","touchend","touchmove","touchcancel"],ge=["mouseover","mouseout","mouseenter","mouseleave"],ve={};
123/**
124 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
125 * @version v23.1.1
126 * @link http://www.ag-grid.com/
127 * @license MIT
128 */var me,ye=(me={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof ve[e])return ve[e];var t=document.createElement(me[e]||"div"),n=(e="on"+e)in t;return n||(t.setAttribute(e,"return;"),n="function"==typeof t[e]),t=null,ve[e]=n});function Ce(e){var t=e;return t.target||t.srcElement}function we(e){for(var t=[],n=Ce(e);n;)t.push(n),n=n.parentElement;return t}function Ee(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:we(e)}var be=Object.freeze({__proto__:null,stopPropagationForAgGrid:function(e){e.__ag_Grid_Stop_Propagation=!0},isStopPropagationForAgGrid:function(e){return!0===e.__ag_Grid_Stop_Propagation},isEventSupported:ye,getCellCompForEvent:function(e,t){for(var n=Ce(t);n;){var o=e.getDomData(n,"cellComp");if(o)return o;n=n.parentElement}return null},addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},getTarget:Ce,isElementInEventPath:function(e,t){return!(!t||!e)&&Ee(t).indexOf(e)>=0},createEventPath:we,addAgGridEventPath:function(e){e.__agGridEventPath=Ee(e)},getEventPath:Ee,addSafePassiveEventListener:function(e,t,n,o){var r=oe(fe,n)?{passive:!0}:void 0;oe(ge,n)?e&&e.addEventListenerOutsideAngular&&e.addEventListenerOutsideAngular(t,n,o,r):t.addEventListener(n,o,r)}}),_e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Oe=/([^\s,]+)/g,Re={};
129/**
130 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
131 * @version v23.1.1
132 * @link http://www.ag-grid.com/
133 * @license MIT
134 */function Se(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function Te(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a=n&&!o;window.clearTimeout(o),o=window.setTimeout((function(){o=null,n||e.apply(s,r)}),t),a&&e.apply(s,r)}}var Pe=Object.freeze({__proto__:null,doOnce:function(e,t){Re[t]||(e(),Re[t]=!0)},getFunctionParameters:function(e){var t=e.toString().replace(_e,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(Oe)||[]},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},executeInAWhile:function(e){Se(e,400)},executeNextVMTurn:function(e){Se(e,0)},executeAfter:Se,debounce:Te,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:function(e){e&&e()}});
135/**
136 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
137 * @version v23.1.1
138 * @link http://www.ag-grid.com/
139 * @license MIT
140 */function De(e,t,n,o){var r=o?xe:Ne,i=t.map((function(t){return{value:t,relevance:r(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 Ae(e){var t,n,o,r=e.toLowerCase(),i=new Array(r.length-1);for(t=n=0,o=i.length;n<=o;t=n+=1)i[t]=r.slice(t,t+2);return i}function Ne(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=Ae(e),i=Ae(t),s=r.length+i.length,a=0;for(n=0,o=r.length;n<o;n++){var l,u=r[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 xe(e,t){for(var n=e.replace(/\s/g,""),o=t.replace(/\s/g,""),r=0,i=0,s=0;s<n.length;s++){var a=o.indexOf(n[s]);-1!==a&&(i=a,r+=100*(o.length-i)/o.length,r*=r)}return r}var Ie=Object.freeze({__proto__:null,fuzzyCheckStrings:function(e,t,n){var o={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return o[e]=De(e,n)})),o},fuzzySuggestions:De,get_bigrams:Ae,string_distances:Ne,string_weighted_distances:xe}),Fe={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",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};
141/**
142 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
143 * @version v23.1.1
144 * @link http://www.ag-grid.com/
145 * @license MIT
146 */function Me(e,t,n,o){var r=null,i=n&&n.getColDef().icons;if(i&&(r=i[e]),t&&!r){var s=t.getIcons();s&&(r=s[e])}if(!r){var a=document.createElement("span"),l=Fe[e];return l||(o?l=e:(console.warn("ag-Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),a}var u=void 0;if("function"==typeof r)u=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");u=r}return"string"==typeof u?L(u):B(u)?u:void console.warn("ag-Grid: iconRenderer should return back a string or a dom object")}var Le=Object.freeze({__proto__:null,iconNameClassMap:Fe,createIcon:function(e,t,n){var o=Me(e,t,n);if(o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r},createIconNoSpan:Me}),ke=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_Z=90,e.KEY_Y=89,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e}();
147/**
148 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
149 * @version v23.1.1
150 * @link http://www.ag-grid.com/
151 * @license MIT
152 */function Ge(e,t){return(e.which||e.keyCode)===t}var Ve=Object.freeze({__proto__:null,isKeyPressed:Ge,isCharacterKey:function(e){var t=e.which;return"number"==typeof t&&t?!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&16!==e.which:void 0===t},isEventFromPrintableCharacter:function(e){var t=String.fromCharCode(e.charCode);if(Ge(e,ke.KEY_NEW_LINE))return!1;if(e.altKey||e.ctrlKey)return!1;if(y(e.key)){var n=1===e.key.length,o=function(e){return(d()||p())&&"Del"===e.key&&46===e.charCode}(e);return n||o}return"qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}".indexOf(t)>=0},isUserSuppressingKeyboardEvent:function(e,t,n,o,r){var i=e.getSuppressKeyboardEventFunc(),s=o.getColDef().suppressKeyboardEvent;if(!i&&!s)return!1;var a={event:t,editing:r,column:o,api:e.getApi(),node:n,data:n.data,colDef:o.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!s||!s(a))||!!i&&i(a)}});
153/**
154 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
155 * @version v23.1.1
156 * @link http://www.ag-grid.com/
157 * @license MIT
158 */var We=Object.freeze({__proto__:null,keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}});
159/**
160 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
161 * @version v23.1.1
162 * @link http://www.ag-grid.com/
163 * @license MIT
164 */var je=Object.freeze({__proto__:null,normalizeWheel:function(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}},isLeftClick:function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},areEventsNear:function(e,t,n){if(0===n)return!1;var o=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(o,r)<=n}});
165/**
166 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
167 * @version v23.1.1
168 * @link http://www.ag-grid.com/
169 * @license MIT
170 */var He=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(e){for(var n=function(e,n){var o=t[e.id],r=t[n.id],i=void 0!==o,s=void 0!==r;return i&&s?o-r:!i&&!s?e.__objectId-n.__objectId:i?1:-1},o=!1,r=0;r<e.length-1;r++)if(n(e[r],e[r+1])>0){o=!0;break}o&&e.sort(n)}},traverseNodesWithKey:function(e,t){var n=[];!function e(o){o.forEach((function(o){if(o.group||o.hasChildren()){n.push(o.key);var r=n.join("|");t(o,r),e(o.childrenAfterGroup),n.pop()}}))}(e)}});
171/**
172 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
173 * @version v23.1.1
174 * @link http://www.ag-grid.com/
175 * @license MIT
176 */var Be,ze=Object.freeze({__proto__:null,convertToSet:function(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}}),Ue=function(){return(Ue=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ye=Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue({},Q),ae),v),c),he),z),be),Pe),Ie),b),Le),Ve),We),je),ce),$),He),ze),T),qe=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}();
177/**
178 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
179 * @version v23.1.1
180 * @link http://www.ag-grid.com/
181 * @license MIT
182 */(
183/**
184 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
185 * @version v23.1.1
186 * @link http://www.ag-grid.com/
187 * @license MIT
188 */
189Be=t.PromiseStatus||(t.PromiseStatus={}))[Be.IN_PROGRESS=0]="IN_PROGRESS",Be[Be.RESOLVED=1]="RESOLVED";var Ke=function(){function e(e){var n=this;this.status=t.PromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],e((function(e){return n.onDone(e)}),(function(e){return n.onReject(e)}))}return e.all=function(t){return new e((function(e){var n=t.length,o=new Array(n);ie(t,(function(t,r){t.then((function(t){o[r]=t,0===--n&&e(o)}))}))}))},e.resolve=function(t){return new e((function(e){return e(t)}))},e.prototype.then=function(e){this.status===t.PromiseStatus.IN_PROGRESS?this.waiters.push(e):e(this.resolution)},e.prototype.map=function(t){var n=this;return new e((function(e){return n.then((function(n){return e(t(n))}))}))},e.prototype.resolveNow=function(e,n){return this.status==t.PromiseStatus.IN_PROGRESS?e:n(this.resolution)},e.prototype.onDone=function(e){this.status=t.PromiseStatus.RESOLVED,this.resolution=e,ie(this.waiters,(function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),$e=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}(),Qe=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=Ye.toStringOrNull(e);for(var n=0;;){var o=void 0;if(e?(o=e,0!==n&&(o+="_"+n)):t?(o=t,0!==n&&(o+="_"+n)):o=""+n,!this.existingKeys[o])return this.existingKeys[o]=!0,o;n++}},e}(),Xe=function(){function e(e,t){if(this.beanWrappers={},this.componentsMappedByName={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),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 Ye.values(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},e.prototype.createComponentFromElement=function(e,t,n){var o=e.nodeName,r=n?n[e.getAttribute("ref")]:void 0;return this.createComponent(o,t,e,r)},e.prototype.createComponent=function(e,t,n,o){if(this.componentsMappedByName&&this.componentsMappedByName[e]){this.componentsMappedByName[e];var r=new this.componentsMappedByName[e](o);return this.wireBean(r,t),r}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),Ye.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),Ye.iterateObject(this.beanWrappers,(function(t,n){var o;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(o=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,i,s=e.getBeansForParameters(o,n.bean.name),a=(r=n.bean,i=[null].concat(s),new(r.bind.apply(r,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?e.prototype.constructor.name:""+e,void console.error("context item "+n+" is not a bean")}var o={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=o},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=t.lookupBeanInstance(o,n.beanName,n.optional);e[n.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){Ye.iterateObject(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var i=t.getBeansForParameters(r,o);e[n].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var o=n.constructor;if(o.hasOwnProperty("__agBeanMetaData"))t(o.__agBeanMetaData,this.getBeanName(o));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,o=[];return e&&Ye.iterateObject(e,(function(e,r){var i=n.lookupBeanInstance(t,r);o[Number(e)]=i})),o},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 o=this.beanWrappers[t];return o?o.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){n.forEachMetaDataInHierarchy(e,(function(n){var o=n[t];o&&o.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.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e}();
190/**
191 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
192 * @version v23.1.1
193 * @link http://www.ag-grid.com/
194 * @license MIT
195 */function Je(e,t,n){var o=st(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function Ze(e,t,n){var o=st(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function et(e,t,n){var o=st(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function tt(e){return function(t){st(t).beanName=e}}function nt(e){return function(t,n,o){rt(t,e,!1,t,n,null)}}function ot(e){return function(t,n,o){rt(t,e,!0,t,n,null)}}function rt(e,t,n,o,r,i){if(null!==t)if("number"!=typeof i){var s=st(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,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 it(e){return function(t,n,o){var r,i="function"==typeof t?t:t.constructor;if("number"==typeof o){var s=void 0;n?(r=st(i),s=n):(r=st(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][o]=e}}}function st(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}
196/**
197 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
198 * @version v23.1.1
199 * @link http://www.ag-grid.com/
200 * @license MIT
201 */var at,lt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ut=function(e,t){return function(n,o){t(n,o,e)}},ct=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={}}var t;return t=e,e.prototype.setBeans=function(e,t,n){if(void 0===n&&(n=null),this.logger=e.create("EventService"),n){var o=t.useAsyncEvents();this.addGlobalListener(n,o)}},e.prototype.getListeners=function(e,t){var n=t?this.allAsyncListeners:this.allSyncListeners,o=n.get(e);return o||(o=new Set,n.set(e,o)),o},e.prototype.addEventListener=function(e,t,n){var o=this;return void 0===n&&(n=!1),this.getListeners(e,n).add(t),function(){return o.removeEventListener(e,t,n)}},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n).delete(t)},e.prototype.addModalPriorityEventListener=function(e,n,o){return void 0===o&&(o=!1),this.addEventListener(e+t.PRIORITY,n,o)},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,n){var o=this,r=e.type,i=function(t){return t.forEach((function(t){n?o.dispatchAsync((function(){return t(e)})):t(e)}))};i(this.getListeners(r+t.PRIORITY,n)),i(this.getListeners(r,n)),(n?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(t){n?o.dispatchAsync((function(){return t(r,e)})):t(r,e)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},e.PRIORITY="-P1",lt([ut(0,it("loggerFactory")),ut(1,it("gridOptionsWrapper")),ut(2,it("globalEventListener"))],e.prototype,"setBeans",null),e=t=lt([tt("eventService")],e)}();(
202/**
203 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
204 * @version v23.1.1
205 * @link http://www.ag-grid.com/
206 * @license MIT
207 */
208at=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",at.CommunityAllModules="@ag-grid-community/all",at.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",at.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",at.CsvExportModule="@ag-grid-community/csv-export",at.RowNodeCache="@ag-grid-community/row-node-cache",at.EnterpriseCoreModule="@ag-grid-enterprise/core",at.EnterpriseAllModules="@ag-grid-enterprise/all",at.RowGroupingModule="@ag-grid-enterprise/row-grouping",at.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",at.FiltersToolPanelModule="@ag-grid-enterprise/filters-tool-panel",at.MenuModule="@ag-grid-enterprise/menu",at.SetFilterModule="@ag-grid-enterprise/set-filter",at.StatusBarModule="@ag-grid-enterprise/status-bar",at.SideBarModule="@ag-grid-enterprise/side-bar",at.RangeSelectionModule="@ag-grid-enterprise/range-selection",at.MasterDetailModule="@ag-grid-enterprise/master-detail",at.RichSelectModule="@ag-grid-enterprise/rich-select",at.GridChartsModule="@ag-grid-enterprise/charts",at.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",at.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",at.ExcelExportModule="@ag-grid-enterprise/excel-export",at.ClipboardModule="@ag-grid-enterprise/clipboard",at.DateTimeCellEditorModule="@ag-grid-enterprise/date-time-cell-editor",at.AngularModule="@ag-grid-community/angular",at.ReactModule="@ag-grid-community/react",at.VueModule="@ag-grid-community/vue",at.PolymerModule="@ag-grid-community/polymer";
209/**
210 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
211 * @version v23.1.1
212 * @link http://www.ag-grid.com/
213 * @license MIT
214 */
215var pt=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&&Ye.doOnce((function(){console.warn("ag-Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid-packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(e,t){if(this.isRegistered(e))return!0;var n=t+e,o="ag-Grid: unable to use "+t+" as module "+e+" is not present. Please see: https://www.ag-grid.com/javascript-grid-modules/";return Ye.doOnce((function(){console.warn(o)}),n),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return Ye.values(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),dt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ht=function(){function e(e,t,n,o){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ct,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=n,this.primary=o}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.colDef.flex&&(this.flex=this.colDef.flex),this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var n=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=Ye.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!n,this.tooltipFieldContainsDots=Ye.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!n,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(Ye.missing(this.colDef)||Ye.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function n(e,t,n){Ye.doOnce((function(){n?console.warn(e,n):Ye.doOnce((function(){return console.warn(e)}),t)}),t)}if(!pt.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){Ye.exists(e[o])&&(pt.isPackageBased()?n("ag-Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):n("ag-Grid: "+o+" is only valid with ag-Grid Enterprise Module "+t.ModuleNames.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(pt.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(pt.isPackageBased()?n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),pt.isRegistered(t.ModuleNames.DateTimeCellEditorModule)||"agRichSelect"!==this.colDef.cellEditor&&"agDateTimeCellEditor"!==this.colDef.cellEditor||(pt.isPackageBased()?n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnDateTimeMissing"):n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+t.ModuleNames.DateTimeCellEditorModule,"ColumnDateTimeMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){Ye.exists(e[t])&&n("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}Ye.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&n("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),Ye.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup","ColumnCheck_sksldjf"),Ye.get(this,"colDef.cellRendererParams.keyMap",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_ieiruhgdf"),Ye.get(this,"colDef.cellRendererParams.keyMap",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_uitolghj"),e.floatingCellRenderer&&(n("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer","ColumnCheck_soihwewe"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(n("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework","ColumnCheck_zdkiouhwer"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams","ColumnCheck_retiuhjs"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(n("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter","ColumnCheck_qwroeihjdf"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(n("ag-Grid: since v12, cellFormatter is now valueFormatter","ColumnCheck_eoireknml"),Ye.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&n("ag-Grid: since v15, headerCellTemplate is gone, use header component instead.","ColumnCheck_eroihxcm"),e.headerCellRenderer&&n("ag-Grid: since v15, headerCellRenderer is gone, use header component instead.","ColumnCheck_terteuh"),e.volatile&&n("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells.","ColumnCheck_weoihjxcv"),e.suppressSorting&&(n("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.","ColumnCheck_43ljrer",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(n("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.","ColumnCheck_erlkhfdm",this.colDef),this.colDef.filter=!1),e.suppressResize&&(n("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.","ColumnCheck_weoihjxcv",this.colDef),this.colDef.resizable=!1),e.tooltip&&(n("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.","ColumnCheck_adslknjwef",this.colDef),this.colDef.tooltipValueGetter=e.tooltip),e.suppressToolPanel&&(n("ag-Grid: since v22, colDef.suppressToolPanel is gone, instead use suppressColumnsToolPanel / suppressFiltersToolPanel.","ColumnCheck_weihjlsjkdf",this.colDef),this.colDef.suppressColumnsToolPanel=!0)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===ke.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===ke.SORT_DESC},e.prototype.isSortNone=function(){return Ye.missing(this.sort)},e.prototype.isSorting=function(){return Ye.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,o){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);o&&Ye.mergeDeep(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===ke.PINNED_LEFT?this.pinned=ke.PINNED_LEFT:e===ke.PINNED_RIGHT?this.pinned=ke.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===ke.PINNED_LEFT||this.pinned===ke.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===ke.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===ke.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(Ye.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(Ye.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(t,n){void 0===n&&(n="api"),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.flex&&"flex"!==n&&(this.flex=0),this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,n)))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("ag-Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("ag-Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("ag-Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",dt([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),dt([nt("columnUtils")],e.prototype,"columnUtils",void 0),dt([nt("columnApi")],e.prototype,"columnApi",void 0),dt([nt("gridApi")],e.prototype,"gridApi",void 0),dt([nt("context")],e.prototype,"context",void 0),dt([Ze],e.prototype,"initialise",null),e}(),ft=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gt=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new ct,this.groupId=t,this.instanceId=n,this.originalColumnGroup=e,this.pinned=o}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=Ye.last(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(o){t===o&&(n=!0),o instanceof e&&o.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()})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof ht?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof ht?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var n=this;if(this.isPadding())for(;n.getParent()&&n.isPadding();)n=n.getParent();n.originalColumnGroup.isExpandable()?this.children.forEach((function(o){switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.originalColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:n.originalColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:o instanceof e&&o.isPadding()&&!o.displayedChildren.length||t.displayedChildren.push(o)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.HEADER_GROUP_PADDING="padding",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",ft([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),vt=function(){function e(e,t,n,o){this.localEventService=new ct,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=n,this.level=o}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 ht?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?gt.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(ht.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,o=!1,r=this.findChildren(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();if(l===gt.HEADER_GROUP_SHOW_OPEN)t=!0,o=!0;else if(l===gt.HEADER_GROUP_SHOW_CLOSED)n=!0,o=!0;else{if(t=!0,n=!0,l===gt.HEADER_GROUP_PADDING)o=o||a.children.some((function(e){return void 0!==e.getColumnGroupShow()}))}}}var u=t&&n&&o;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildren=function(){var t=this.children,n=t[0];if(n&&(!n.isPadding||!n.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),mt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},yt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ct=function(e,t){return function(n,o){t(n,o,e)}},wt=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,n){var o=new Qe;if(n){var r=n.map((function(e){return e.getId()}));o.addExistingKeys(r)}var i=n?n.slice():null,s=this.recursivelyCreateColumns(e,0,t,i,o,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,o);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof vt&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var n=this,o=[];return e.forEach((function(e){var r=n.createAutoGroupTreeItem(t,e);o.push(r)})),o},e.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,o=this.findDepth(e)-1;o>=0;o--){var r=new vt(null,"FAKE_PATH_"+t.getId()+"}_"+o,!0,o);this.context.wireBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},e.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof vt;)t++,n=n[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,n,o){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof vt){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,o);a.setChildren(l),r.push(a)}else{for(var u=void 0,c=void 0,p=n-1;p>=t;p--){var d=o.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new vt(h,d,!0,t);this.context.wireBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u){if(r.push(u),e.some((function(e){return e instanceof vt}))){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},e.prototype.findMaxDept=function(e,t){for(var n=t,o=0;o<e.length;o++){var r=e[o];if(r instanceof vt){var i=r,s=this.findMaxDept(i.getChildren(),t+1);n<s&&(n=s)}}return n},e.prototype.recursivelyCreateColumns=function(e,t,n,o,r,i){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(n,e,t,o,r,i):s.createColumn(n,e,o,r,i),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,n,o,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId,null),l=new vt(s,a,!1,n);this.context.wireBean(l);var u=this.recursivelyCreateColumns(s.children,n+1,e,o,r,l);return l.setChildren(u),l},e.prototype.createMergedColGroupDef=function(e){var t={};return Ye.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),Ye.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,n,o,r){var i=this.mergeColDefs(t);this.checkForDeprecatedItems(i);var s=this.findExistingColumn(t,n);if(s)s.setColDef(i,t);else{var a=o.getUniqueKey(i.colId,i.field);s=new ht(i,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var n=Ye.find(t,(function(t){var n=t.getUserProvidedColDef();return!!n&&(n===e||!(null===n.colId||void 0===n.colId)&&n.colId===e.colId)}));return n&&Ye.removeFromArray(t,n),n},e.prototype.mergeColDefs=function(e){var t={};return Ye.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),Ye.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var n;if(e.type instanceof Array){e.type.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e.type}else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");n=e.type.split(",")}var o=Ye.assign({},this.gridOptionsWrapper.getColumnTypes(),mt);n.forEach((function(e){var n=o[e.trim()];n?Ye.assign(t,n):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},yt([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),yt([nt("columnUtils")],e.prototype,"columnUtils",void 0),yt([nt("context")],e.prototype,"context",void 0),yt([Ct(0,it("loggerFactory"))],e.prototype,"setBeans",null),e=yt([tt("columnFactory")],e)}(),Et=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_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_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_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_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_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_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}(),bt=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}(),_t=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ot=function(e,t){return function(n,o){t(n,o,e)}},Rt=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0,this.flexActive=!1}return e.prototype.init=function(){this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var e=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns,r=this.columnFactory.createColumnTree(e,!0,o);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,o),this.extractPivotColumns(t,o),this.createValueColumns(t,o),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isImmutableColumns()&&n&&this.resetColumnState(!0,t);var i={type:Et.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(i);var s={type:Et.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s),this.flexActive=this.getDisplayedCenterColumns().some((function(e){return!!e.getFlex()}))},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},e.prototype.checkDisplayedVirtualColumns=function(){if(null!=this.displayedCenterColumns){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");if(this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")){var t={type:Et.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent||!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;Z(r,e)&&i===n&&(o=t)})),o},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,n=this.displayedRightColumns?Ye.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?Ye.last(this.displayedLeftColumns):null,n=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===n,e)}))},e.prototype.autoSizeColumns=function(e,t,n){var o=this;void 0===n&&(n="api"),this.animationFrameService.flushAllFrames();var r=[],i=-1;for(null==t&&(t=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==i;)i=0,this.actionOnGridColumns(e,(function(e){if(r.indexOf(e)>=0)return!1;var s=o.autoWidthCalculator.getPreferredWidthForColumn(e,t);if(s>0){var a=o.normaliseColumnWidth(e,s);e.setActualWidth(a,n),r.push(e),i++}return!0}),n);if(r.length){var s={type:Et.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"};this.eventService.dispatchEvent(s)}},e.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns([e],t,n)},e.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns(n,e,t)},e.prototype.getColumnsFromTree=function(e){var t=[],n=function(e){for(var o=0;o<e.length;o++){var r=e[o];r instanceof ht?t.push(r):r instanceof vt&&n(r.getChildren())}};return n(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case ke.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case ke.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,n,o){for(var r,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)!!o&&o(u)&&i.push(s);i.push(u)}s=u,r=a},l=0;l<t.length;l++)a(l),l=r;return i},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,n,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),n=e.getLeft()+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&n<o)&&!(t>r&&n>r)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,n,o,r,i){var s=this;if(void 0===i&&(i="api"),e&&!Ye.missingOrEmpty(e)){var a=!1;if(e.forEach((function(e){var r=s.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;Ye.removeFromArray(t,r)}o(r),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var l={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Et.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Et.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Et.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Et.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Et.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,n,o,r){var i=this;t.length=0,Ye.exists(e)&&e.forEach((function(e){var n=i.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(r);var s={type:n,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Et.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Et.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Et.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},e.prototype.setColumnWidths=function(e,t,n,o){var r=this;void 0===o&&(o="api");var i=[];e.forEach((function(e){var n=r.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(t=!t),t)){var o=r.getDisplayedColAfter(n);if(!o)return;var s=n.getActualWidth()-e.newWidth,a=o.getActualWidth()+s;i.push({width:a,ratios:[1],columns:[o]})}})),0!==i.length&&(this.resizeColumnSets(i,n,o),this.flexActive&&this.refreshFlexedColumns())},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,o=0,r=0,i=!0;return t.forEach((function(e){o+=e.getMinWidth(),e.getMaxWidth()>0?r+=e.getMaxWidth():i=!1})),n>=o&&(!i||n<=r)},e.prototype.resizeColumnSets=function(e,t,n){if(!e||e.every(this.checkMinAndMaxWidthsForSet.bind(this))){var o=[],r=[];e.forEach((function(e){var t=e.width,i=e.columns,s=e.ratios,a={},l={};i.forEach((function(e){return r.push(e)}));for(var u=!0,c=0,p=function(){if(++c>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";u=!1;var e=[],n=0,o=t;i.forEach((function(t,r){if(l[t.getId()])o-=a[t.getId()];else{e.push(t);var i=s[r];n+=i}}));var r=1/n;e.forEach((function(n,i){var c;i===e.length-1?c=o:(c=Math.round(s[i]*t*r),o-=c),c<n.getMinWidth()?(c=n.getMinWidth(),l[n.getId()]=!0,u=!0):n.getMaxWidth()>0&&c>n.getMaxWidth()&&(c=n.getMaxWidth(),l[n.getId()]=!0,u=!0),a[n.getId()]=c}))};u;){if("break"===p())break}i.forEach((function(e){var t=a[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),o.push(e))}))}));var i=o.length>0;if(i&&(this.setLeftValues(n),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),i||t){var s={type:Et.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(s)}}else if(t){var a=e&&e.length>0?e[0].columns:null,l={type:Et.EVENT_COLUMN_RESIZED,columns:a,column:a&&1===a.length?a[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(l)}},e.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){e.setAggFunc(t);var o={type:Et.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)}},e.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var o=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,o);var r={type:Et.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(r)},e.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 o=this.getGridColumns(e);if(!!this.doesMovePassRules(o,t)){Ye.moveInArray(this.gridColumns,o,t),this.updateDisplayedColumns(n);var r={type:Et.EVENT_COLUMN_MOVED,columns:o,column:1===o.length?o[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return Ye.moveInArray(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,n=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(n=!1):t=!0})),n},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof vt){var o=n;if(o.getColGroupDef()&&o.getColGroupDef().marryChildren){var r=[];o.getLeafColumns().forEach((function(t){var n=e.indexOf(t);r.push(n)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>o.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},e.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var o=this.gridColumns[e];this.moveColumn(o,t,n)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case ke.PINNED_LEFT:return this.leftWidth;case ke.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),n=this.getWidthOfColsInList(this.displayedRightColumns);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 o={type:Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case ke.PINNED_LEFT:return this.getDisplayedLeftColumns();case ke.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return Ye.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return Ye.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},e.prototype.setColumnsVisible=function(e,t,n){var o=this;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:Et.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},e.prototype.setColumnsPinned=function(e,t,n){var o,r=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),o=!0===t||t===ke.PINNED_LEFT?ke.PINNED_LEFT:t===ke.PINNED_RIGHT?ke.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),n,(function(){return{type:Et.EVENT_COLUMN_PINNED,pinned:o,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,n,o){var r=this;if(!Ye.missingOrEmpty(e)){var i=[];if(e.forEach((function(e){var n=r.getGridColumn(e);n&&(!1!==t(n)&&i.push(n))})),i.length&&(this.updateDisplayedColumns(n),Ye.exists(o)&&o)){var s=o();s.columns=i,s.column=1===i.length?i[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],n=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var o=t.getParent();o.getOriginalColumnGroup().getLevel()!==n;)o=o.getParent();if(o!==e)return o}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&Ye.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:o,width:e.getActualWidth(),pivotIndex:n,pinned:e.getPinned(),rowGroupIndex:t,flex:e.getFlex()}},e.prototype.getColumnState=function(){if(Ye.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,n){return t.indexOf(e.colId)-t.indexOf(n.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var n=this.getColumnsFromTree(this.primaryColumnTree),o=[],r=1e3,i=1e3;n&&n.forEach((function(e){var t=e.getColDef().rowGroupIndex,n=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};Ye.missing(t)&&n&&(l.rowGroupIndex=r++),Ye.missing(s)&&a&&(l.pivotIndex=i++),o.push(l)})),this.setColumnState(o,e,t)},e.prototype.setColumnState=function(e,t,n){var o=this;if(void 0===t&&(t=!1),void 0===n&&(n="api"),Ye.missingOrEmpty(this.primaryColumns))return!1;var r=this.getColumnState();this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},u=[];if(e&&(e.forEach((function(e){if(Ye.exists(o.getAutoColumn(e.colId)))u.push(e);else{var t=o.getPrimaryColumn(e.colId);t?(o.syncColumnWithStateItem(t,e,a,l,n),Ye.removeFromArray(i,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),this.flexActive&&this.refreshFlexedColumns(void 0,void 0,!0)),i.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),u.forEach((function(e){var t=o.getAutoColumn(e.colId);o.syncColumnWithStateItem(t,e,a,l,n)})),e){var c=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return c.indexOf(e.getId())-c.indexOf(t.getId())}))}if(this.putFixedColumnsFirst(),this.updateDisplayedColumns(n),!t){var p={type:Et.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(p)}return this.raiseColumnEvents(r,n),s},e.prototype.raiseColumnEvents=function(e,t){var n=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var o=this.getColumnState(),r=function(r,i,s){if(!Z(e.map(i).sort(),o.map(i).sort())){var a={type:r,columns:s,column:1===s.length?s[0]:null,api:n.gridApi,columnApi:n.columnApi,source:t};n.eventService.dispatchEvent(a)}},i=function(t){var o=[],r={};return e.forEach((function(e){r[e.colId]=e})),n.gridColumns.forEach((function(e){var n=r[e.getColId()];n&&!t(n,e)||o.push(e)})),o};r(Et.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns);r(Et.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns);r(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns);this.raiseColumnPinnedEvent(i((function(e,t){return e.pinned!==t.getPinned()})),t);var s=i((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t);this.raiseColumnResizeEvent(i((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n={type:Et.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},e.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n={type:Et.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},e.prototype.raiseColumnResizeEvent=function(e,t){if(e.length){var n={type:Et.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},e.prototype.raiseColumnMovedEvent=function(e,t){for(var n=[],o=this.getColumnState(),r=function(t){var r=e[t],s=o[t];if(!r||s.hide)return"continue";if(r.colId!==s.colId){var a=Ye.find(i.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));n.push(a)}},i=this,s=0;s<o.length;s++)r(s);if(n.length){var a={type:Et.EVENT_COLUMN_MOVED,columns:n,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(a)}},e.prototype.sortColumnListUsingIndexes=function(e,t,n){return e[t.getId()]-e[n.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,n,o,r){if(e){e.setVisible(!t.hide,r),e.setPinned(t.pinned);var i=this.gridOptionsWrapper.getMinColWidth();null!=t.flex&&(e.setFlex(t.flex),!this.flexActive&&t.flex&&(this.flexActive=!0)),t.width&&i&&t.width>=i&&e.setActualWidth(t.width,r),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,r),this.valueColumns.push(e)):(Ye.exists(t.aggFunc)&&console.warn("ag-Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1,r)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,r),n[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,r),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,r),o[e.getId()]=t.pivotIndex):e.setPivotActive(!1,r)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var o=t(e);o&&n.push(o)})),n},e.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("ag-Grid: could not find column "+e),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var n=0;n<t.length;n++)if(this.columnsMatch(t[n],e))return t[n];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&Ye.exists(this.groupAutoColumns)&&!Ye.missing(this.groupAutoColumns)?Ye.find(this.groupAutoColumns,(function(n){return t.columnsMatch(n,e)})):null},e.prototype.columnsMatch=function(e,t){var n=e===t,o=e.getColDef()===t,r=e.getColId()==t;return n||o||r},e.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var o=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,o):o},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,n){var o=t?t.getColGroupDef():null;return o?this.getHeaderName(o,null,e,t,n):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,n,o,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:n,originalColumnGroup:o,location:r,api:this.gridOptionsWrapper.getApi(),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?Ye.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,r=null;if(Ye.exists(o))r=o?o.getAggFunc():null,n=!0;else{var i=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();i&&s?(r=e.getAggFunc(),n=!0):n=!1}if(n){var a="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof gt)return e;var n=this.getAllDisplayedColumnGroups(),o="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof gt){var i=n;(o?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},e.prototype.extractColumns=function(e,t,n,o,r){var i=this;t||(t=[]);var s=t.filter((function(e){return i.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return i.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));s.forEach((function(e){return n(e,!1)}));var u=[];return l.forEach((function(e){"number"==typeof o(e.getColDef())&&u.push(e)})),u.sort((function(e,t){var n=o(e.getColDef()),r=o(t.getColDef());return n===r?0:n<r?-1:1})),l.forEach((function(e){if(r(e.getColDef())){if(u.indexOf(e)>=0)return;u.push(e)}})),u.forEach((function(e){return n(e,!0)})),a.concat(u)},e.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.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof vt){var n={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(n)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof vt){var n=t;e.push({groupId:n.getGroupId(),open:n.isExpanded()})}})),e},e.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=n.getOriginalColumnGroup(t);i&&i.isExpanded()!==r&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),o.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),o.forEach((function(e){var t={type:Et.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,n){var o;void 0===n&&(n="api"),o=e instanceof vt?e.getId():e,this.setColumnGroupState([{groupId:o,open:t}],n)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof vt)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof vt){var o=n;o.getId()===e&&(t=o)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&Ye.includes(e.groupAutoColumns,t),o=e.valueColumns&&Ye.includes(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&Ye.includes(e.groupAutoColumns,t)||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){Ye.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&Ye.exists(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var n=e&&e.length>0;if(n||this.secondaryColumnsPresent){if(n){this.processSecondaryColumnDefinitions(e);var o=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=o.columnTree,this.secondaryHeaderRowCount=o.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){var o=function(e){e.forEach((function(e){if(Ye.exists(e.children)){var r=e;n&&n(r),o(r.children)}else{t&&t(e)}}))};e&&o(e)}},e.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:Et.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!Ye.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(n){e.lastPrimaryOrder.indexOf(n)>=0&&(t=!1)})),!t){var n=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),o=this.gridColumns.filter((function(e){return n.indexOf(e)<0})),r=n.slice();o.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=r.indexOf(e)>=0,o=n.indexOf(e)<0;t&&o&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var o=n.map((function(e){return r.indexOf(e)})),i=Math.max.apply(Math,o);Ye.insertIntoArray(r,e,i+1)}else r.push(e)}else r.push(e)})),this.gridColumns=r}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var e=this.gridColumns.filter((function(e){return e.getColDef().lockPosition})),t=this.gridColumns.filter((function(e){return!e.getColDef().lockPosition}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!Ye.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.refreshFlexedColumns(void 0,void 0,!0),this.updateBodyWidths();var t={type:Et.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,n=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(r){if(o){var i=t.getWidthOfColsInList(r);r.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var s=0;r.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}Ye.removeAllFromArray(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof gt&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ht&&t.push(e)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case ke.PINNED_LEFT:n=this.displayedLeftHeaderRows[t];break;case ke.PINNED_RIGHT:n=this.displayedRightHeaderRows[t];break;default:n=this.displayedCentreHeaderRows[t]}return Ye.missing(n)&&(n=[]),n},e.prototype.updateDisplayedVirtualGroups=function(e){this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={};var t=function(n,o,r){for(var i=!1,s=0;s<n.length;s++){var a=n[s],l=void 0;if(a instanceof ht)l=!0===e[a.getId()];else l=t(a.getDisplayedChildren(),o,r+1);l&&(i=!0,o[r]||(o[r]=[]),o[r].push(a))}return i};t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return this.displayedCenterColumns.filter(this.isColumnInViewport.bind(this))},e.prototype.refreshFlexedColumns=function(e,t,n){if(void 0===t&&(t="flex"),this.flexActive&&(this.flexViewportWidth=e||this.flexViewportWidth,this.flexViewportWidth)){var o=this.displayedCenterColumns.filter((function(e){return!e.getFlex()})),r=this.displayedCenterColumns.filter((function(e){return e.getFlex()}));if(r.length){var i,s=[];e:for(;;){var a=r.reduce((function(e,t){return e+t.getFlex()}),0);i=this.flexViewportWidth-this.getWidthOfColsInList(o);for(var l=0;l<r.length;l++){var u=r[l],c=i*u.getFlex()/a,p=void 0;if(c<u.getMinWidth()?p=u.getMinWidth():null!=u.getMaxWidth()&&c>u.getMaxWidth()&&(p=u.getMaxWidth()),p){u.setActualWidth(p,t),Ye.removeFromArray(r,u),o.push(u);continue e}s[l]=Math.round(c)}break}var d=i;r.forEach((function(e,n){e.setActualWidth(Math.min(s[n],d),t),d-=s[n]})),this.setLeftValues(t),n||(this.updateBodyWidths(),this.fireResizedEventForColumns(r,t))}else this.flexActive=!1}},e.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var r=[],i=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?i.push(e):r.push(e)}));for(var s=r.slice(0),a=!1,l=function(e){Ye.removeFromArray(r,e),i.push(e)};!a;){a=!0;var u=e-this.getWidthOfColsInList(i);if(u<=0)r.forEach((function(e){e.setMinimum(t)}));else for(var c=u/this.getWidthOfColsInList(r),p=u,d=r.length-1;d>=0;d--){var h=r[d],f=Math.round(h.getActualWidth()*c);if(f<h.getMinWidth())h.setMinimum(t),l(h),a=!1;else if(h.isGreaterThanMax(f))h.setActualWidth(h.getMaxWidth(),t),l(h),a=!1;else{0===d?h.setActualWidth(p,t):h.setActualWidth(f,t)}p-=f}}this.setLeftValues(t),this.updateBodyWidths(),n||this.fireResizedEventForColumns(s,t)}},e.prototype.fireResizedEventForColumns=function(e,t){var n=this;e.forEach((function(e){var o={type:Et.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:n.gridApi,columnApi:n.columnApi,source:t};n.eventService.dispatchEvent(o)}))},e.prototype.buildDisplayedTrees=function(e){var t=[],n=[],o=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:o.push(e)}}));var r=new bt;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,ke.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,ke.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof gt&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn(),n=this.gridOptionsWrapper.isGroupSuppressRow();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e&&!n){var o=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(o,this.groupAutoColumns)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},e.prototype.autoColsEqual=function(e,t){return Z(e,t,(function(e,t){return e.getColId()===t.getColId()}))},e.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},e.prototype.hasFloatingFilters=function(){var e=this.gridOptionsWrapper.getDefaultColDef();return null!=e&&!0===e.floatingFilter||null!=this.columnDefs&&this.columnDefs.some((function(e){return!0===e.floatingFilter}))},_t([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_t([nt("expressionService")],e.prototype,"expressionService",void 0),_t([nt("columnFactory")],e.prototype,"columnFactory",void 0),_t([nt("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),_t([nt("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),_t([nt("eventService")],e.prototype,"eventService",void 0),_t([nt("columnUtils")],e.prototype,"columnUtils",void 0),_t([nt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),_t([nt("autoGroupColService")],e.prototype,"autoGroupColService",void 0),_t([ot("aggFuncService")],e.prototype,"aggFuncService",void 0),_t([ot("valueCache")],e.prototype,"valueCache",void 0),_t([ot("animationFrameService")],e.prototype,"animationFrameService",void 0),_t([nt("columnApi")],e.prototype,"columnApi",void 0),_t([nt("gridApi")],e.prototype,"gridApi",void 0),_t([Ze],e.prototype,"init",null),_t([Ot(0,it("loggerFactory"))],e.prototype,"setBeans",null),e=_t([tt("columnController")],e)}(),St=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Tt=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){var t=this.gridOptionsWrapper,n=null!=e.minWidth?e.minWidth:t.getMinColWidth(),o=null!=e.maxWidth?e.maxWidth:t.getMaxColWidth()||Ye.getMaxSafeInteger(),r=null!=e.width?e.width:t.getColWidth();return Math.max(Math.min(r,o),n)},e.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1,r=function(t,i){for(var s=0;s<t.length;s++){if(o)return;var a=t[s];if(a instanceof vt)r(a.getChildren(),i+1),n[i]=a;else a===e&&(o=!0)}};return r(t,0),o?n:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var o=this;t&&t.forEach((function(t){t instanceof vt&&o.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof gt&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof gt&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},St([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=St([tt("columnUtils")],e)}(),Pt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dt=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,n,o,r){var i,s,a=this,l=[],u=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),c=[],p=!s,d=0;d<r.length;d++)if(p||r[d]!==s[d]){var h=a.createColumnGroup(r[d],n,u,o);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=i[d];0===c.length?l.push(e):Ye.last(c).addChild(e);i=c,s=r})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,n,o){var r=e.getGroupId(),i=t.getInstanceIdForKey(r),s=n[gt.createUniqueId(r,i)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),Ye.exists(s)?s.reset():(s=new gt(e,r,i,o),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={},n=function(e){e.forEach((function(e){if(e instanceof gt){var o=e;t[e.getUniqueId()]=o,n(o.getChildren())}}))};return e&&n(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof gt){var o=e;n.setupParentsIntoColumns(o.getChildren(),o)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1,r=function(e,i){for(var s=0;s<e.length;s++){if(o)return;var a=e[s];if(a instanceof vt)r(a.getChildren(),i+1),n[i]=a;else a===t&&(o=!0)}};return r(e,0),o?n:(console.warn("could not get path"),null)},Pt([nt("columnUtils")],e.prototype,"columnUtils",void 0),Pt([nt("context")],e.prototype,"context",void 0),e=Pt([tt("displayedGroupCreator")],e)}(),At=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},Nt=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","enableMultiRowDragging","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","processChartOptions","getChartToolbarItems","fillOperation"],e.ALL_PROPERTIES=At(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),xt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},It=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned","chartDataType"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","flex","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","sortable","resizable","singleClickEdit","floatingFilter"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=xt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Ft=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 o=e.DEFAULT_BY_KEY[t];o?n.push(o):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.forEach((function(t){var o=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));o=r}else o=t;n.push(o)})),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}(),Mt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lt=function(e,t){return function(n,o){t(n,o,e)}},kt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};
216/**
217 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
218 * @version v23.1.1
219 * @link http://www.ag-grid.com/
220 * @license MIT
221 */function Gt(e){return!0===e||"true"===e}var Vt=function(){function e(){this.propertyEventService=new ct,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.removeEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener)},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var o=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),o),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 r=function(e){return"ag-Grid: '"+e+"' is not supported on the Server-Side Row Model"};Ye.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupDefaultExpanded")),Ye.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeFooter")),Ye.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&pt.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("ag-Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.updateLayoutClassesListener=this.updateLayoutClasses.bind(this),this.addEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener)},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),o=kt(It.ALL_PROPERTIES,It.FRAMEWORK_PROPERTIES);e.checkProperties(n,o,o,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=kt(Nt.ALL_PROPERTIES,Nt.FRAMEWORK_PROPERTIES,Ye.values(Et).map((function(e){return jt.getCallbackForEvent(e)}))),n=kt(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,n,o,r){var i=Ye.fuzzyCheckStrings(e,t,n);Ye.iterateObject(i,(function(e,t){console.warn("ag-grid: invalid "+o+" 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 "+o+" properties please check: "+r)},e.prototype.getDomData=function(e,t){var n=e[this.domDataKey];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var o=e[this.domDataKey];Ye.missing(o)&&(o={},e[this.domDataKey]=o),o[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return Gt(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return Gt(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return Gt(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return Gt(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return Ye.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===ke.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return Gt(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return Gt(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return Gt(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return Gt(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return Gt(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return Gt(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return Gt(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return Gt(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return Gt(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!Gt(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return Gt(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=Gt(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return Gt(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return Gt(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return Gt(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return Gt(this.gridOptions.groupMultiAutoColumn)||Gt(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return Gt(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return Gt(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return Gt(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return Gt(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return Gt(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return Gt(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return Gt(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return Gt(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return Gt(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isPivotSuppressAutoColumn=function(){return Gt(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return Gt(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return Gt(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return Gt(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return Gt(this.gridOptions.suppressRowDrag)},e.prototype.isSuppressMoveWhenRowDragging=function(){return Gt(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isEnableMultiRowDragging=function(){return Gt(this.gridOptions.enableMultiRowDragging)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||ke.DOM_LAYOUT_NORMAL;return-1===[ke.DOM_LAYOUT_PRINT,ke.DOM_LAYOUT_AUTO_HEIGHT,ke.DOM_LAYOUT_NORMAL].indexOf(e)?(Ye.doOnce((function(){return console.warn("ag-Grid: "+e+" is not valid for DOM Layout, valid values are "+ke.DOM_LAYOUT_NORMAL+", "+ke.DOM_LAYOUT_AUTO_HEIGHT+" and "+ke.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),ke.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return Gt(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return Gt(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Gt(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return Gt(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return Gt(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return Gt(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return Gt(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return Gt(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return Gt(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return Gt(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return Gt(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return Gt(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return Gt(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return Gt(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return Gt(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return Gt(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return Gt(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return this.gridOptions.undoRedoCellEditingLimit},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return Gt(this.gridOptions.embedFullWidthRows)||Gt(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isImmutableData=function(){return Gt(this.gridOptions.immutableData)},e.prototype.isImmutableColumns=function(){return Gt(this.gridOptions.immutableColumns)},e.prototype.isEnsureDomOrder=function(){return Gt(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!Gt(this.gridOptions.enableCharts)&&pt.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return Gt(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return Gt(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return Gt(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.isPaginateChildRows=function(){return!!(this.isGroupSuppressRow()||this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren())||Gt(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return Gt(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return Gt(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(e){return!e&&Gt(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return Gt(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return Gt(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return Gt(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return Gt(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return Gt(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return Gt(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return Gt(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return Gt(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return Gt(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return Gt(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return Gt(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return Gt(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Gt(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return Gt(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return Gt(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return Gt(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return Gt(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return Gt(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return Gt(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return Gt(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return Gt(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Gt(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getAsyncTransactionWaitMillis=function(){return Ye.exists(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:ke.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return Gt(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Gt(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return Gt(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return Gt(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return Gt(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return pt.isRegistered(t.ModuleNames.RangeSelectionModule)&&Gt(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return Gt(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return Gt(this.gridOptions.enableFillHandle)},e.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},e.prototype.isSuppressMultiRangeSelection=function(){return Gt(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return Gt(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return Gt(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){return!!Gt(this.gridOptions.masterDetail)&&pt.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return Gt(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){return this.gridOptions.keepDetailRowsCount>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return Gt(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return Gt(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return Gt(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isFunctionsReadOnly=function(){return Gt(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return Gt(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return Gt(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return Gt(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return Gt(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return Gt(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Gt(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){return!!Gt(this.gridOptions.treeData)&&pt.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return Gt(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return Gt(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return Gt(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return Gt(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return e=this.gridOptions.viewportRowModelPageSize,t=5,e>0?e:t;var e,t},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return Gt(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return Ye.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var n=this.gridOptions,o=n[e];if(o!==t){n[e]=t;var r={type:e,currentValue:t,previousValue:o};this.propertyEventService.dispatchEvent(r)}},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===ke.DOM_LAYOUT_AUTO_HEIGHT,n=e===ke.DOM_LAYOUT_PRINT,o=e===ke.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){Ye.addOrRemoveCssClass(e,"ag-layout-auto-height",t),Ye.addOrRemoveCssClass(e,"ag-layout-normal",o),Ye.addOrRemoveCssClass(e,"ag-layout-print",n)}))},e.prototype.addEventListener=function(e,t){n.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,t)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipShowDelay=function(){var e=this.gridOptions.tooltipShowDelay;return Ye.exists(e)?(e<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,e)):null},e.prototype.isTooltipMouseTrack=function(){return Gt(this.gridOptions.tooltipMouseTrack)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&Ye.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&Ye.exists(e)?e:document},e.prototype.getMinColWidth=function(){if(this.gridOptions.minColWidth>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var e=this.getFromTheme(null,"headerCellMinWidth");return Math.max(e,n.MIN_COL_WIDTH)},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(Ye.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=ke.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0;this.scrollWidth=e?this.gridOptions.scrollbarWidth:Ye.getScrollbarWidth()}return this.scrollWidth},e.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var n={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},o={};Object.keys(n).forEach((function(t){var r=n[t],i=e.gridOptions[t];if(void 0!==i){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+r),o[r]=i}})),Object.keys(o).length>0&&!Ye.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=Ft.parse(t.sideBar));var r=this.gridOptions.sideBar;if(Object.keys(o).length>0&&r&&r.toolPanels){var i=r.toolPanels.filter((function(e){return"columns"===e.id}));1===i.length&&Ye.mergeDeep(i[0],{componentParams:o})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.deprecatedEmbedFullWidthRows&&console.warn("ag-Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing."),t.doesDataFlower&&console.warn("ag-Grid: since v21.1, doesDataFlower is deprecated. Master/Detail is the new way for showing child data for a row and was introduced over a year ago. Please migrate your code to use master/detail instead."),t.enableOldSetFilterModel&&console.warn("ag-Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards."),t.floatingFilter&&(console.warn("ag-Grid: since v23.1, floatingFilter on the gridOptions is deprecated. Please use floatingFilter on the colDef instead."),t.defaultColDef||(t.defaultColDef={}),null==t.defaultColDef.floatingFilter&&(t.defaultColDef.floatingFilter=!0));var s=function(e,n,o){null!=t[e]&&(console.warn("ag-grid: since version "+o+", '"+e+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==t[n]&&(t[n]=t[e]))};s("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),s("deltaRowDataMode","immutableData","23.1.x"),s("deltaColumnMode","immutableColumns","23.1.x")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&Ye.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(Ye.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),Ye.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,n){var o=e.gridOptions.localeText;return o&&o[t]?o[t]:n}},e.prototype.globalEventHandler=function(e,t){var n=jt.getCallbackForEvent(e);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||Ye.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var n={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context},o=this.gridOptions.getRowHeight(n);if(null!=o)return{height:o,estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var r=this.getDefaultRowHeight(),i=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:r,s=Math.min(r,i);if(this.columnController.isAutoRowHeightActive()){if(t)return{height:i,estimated:!0};var a=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(a,s),estimated:!1}}return{height:i,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",Mt([nt("gridOptions")],e.prototype,"gridOptions",void 0),Mt([nt("columnController")],e.prototype,"columnController",void 0),Mt([nt("eventService")],e.prototype,"eventService",void 0),Mt([nt("gridApi")],e.prototype,"gridApi",void 0),Mt([nt("columnApi")],e.prototype,"columnApi",void 0),Mt([nt("environment")],e.prototype,"environment",void 0),Mt([nt("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),Mt([nt("context")],e.prototype,"context",void 0),Mt([Lt(0,it("gridApi")),Lt(1,it("columnApi"))],e.prototype,"agWire",null),Mt([et],e.prototype,"destroy",null),Mt([Ze],e.prototype,"init",null),e=n=Mt([tt("gridOptionsWrapper")],e)}(),Wt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},jt=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,o){void 0===o&&(o=!1),Ht(n),"object"!=typeof t&&(t={});var r=t,i=function(e){return void 0!==n[e]};return Wt(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEach((function(e){return r[e]=n[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toBoolean(n[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toNumber(n[t])})),o||e.EVENTS.filter((function(t){return i(t)||i(e.getCallbackForEvent(t))})).forEach((function(e){return Vt.checkEventDeprecation(e)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,n,o,r){if(t){Ht(t);var i=n,s=function(e){return t[e]};Wt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(s).forEach((function(e){return i[e]=t[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(s).forEach((function(n){return i[n]=e.toBoolean(t[n].currentValue)})),e.NUMBER_PROPERTIES.filter(s).forEach((function(n){return i[n]=e.toNumber(t[n].currentValue)})),t.enableCellTextSelection&&o.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&o.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&o.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&o.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&o.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&o.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&o.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&o.setDatasource(t.datasource.currentValue),t.headerHeight&&o.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&o.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&r.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&o.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&o.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.suppressMoveWhenRowDragging&&o.setSuppressMoveWhenRowDragging(e.toBoolean(t.suppressMoveWhenRowDragging.currentValue)),t.suppressRowClickSelection&&o.setSuppressRowClickSelection(e.toBoolean(t.suppressRowClickSelection.currentValue)),t.gridAutoHeight&&o.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&o.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&o.setSideBar(t.sideBar.currentValue);var a={type:Et.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};Ye.iterateObject(t,(function(e,t){a[e]=t})),o.dispatchEvent(a)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=Nt.STRING_PROPERTIES,e.OBJECT_PROPERTIES=Nt.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=Nt.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=Nt.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=Nt.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=Nt.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=Nt.ALL_PROPERTIES,e}();
222/**
223 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
224 * @version v23.1.1
225 * @link http://www.ag-grid.com/
226 * @license MIT
227 */function Ht(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}
228/**
229 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
230 * @version v23.1.1
231 * @link http://www.ag-grid.com/
232 * @license MIT
233 */jt.EVENTS=Ye.values(Et);var Bt,zt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ut=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.getContext=function(){return e.context},this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},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 ct),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,n){var o=this;if(!this.destroyed){e instanceof HTMLElement?Ye.addSafePassiveEventListener(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function(){return e.removeEventListener(t,n),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==r})),null};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.wireDependentBean=function(e,t){return e.destroy&&this.addDestroyFunc(e.destroy.bind(e)),this.wireBean(e,t)},e.prototype.wireBean=function(e,t){return(t||this.getContext()).wireBean(e),e},e.EVENT_DESTROYED="destroyed",zt([nt("context")],e.prototype,"context",void 0),zt([nt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),zt([et],e.prototype,"destroy",null),e}(),Yt=(Bt=function(e,t){return(Bt=Object.setPrototypeOf||{__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}Bt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),qt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kt=new qe,$t=function(e){function t(t){var n=e.call(this)||this;return n.childComponents=[],n.annotatedEventListeners=[],n.displayed=!0,n.visible=!0,n.compId=Kt.next(),t&&n.setTemplate(t),n}return Yt(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e,t){var n=this,o=Ye.copyNodeList(e.childNodes);Ye.forEach(o,(function(o){if(o instanceof HTMLElement){var r=n.getContext().createComponentFromElement(o,(function(e){n.copyAttributesFromNode(o,e.getGui())}),t);if(r){if(r.addItems&&o.children.length){n.createChildComponentsFromTags(o);var i=Array.prototype.slice.call(o.children);r.addItems(i)}n.swapComponentForNode(r,e,o)}else o.childNodes&&n.createChildComponentsFromTags(o)}}))},t.prototype.copyAttributesFromNode=function(e,t){Ye.iterateNamedNodeMap(e.attributes,(function(e,n){return t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var o=e.getGui();t.replaceChild(o,n),t.insertBefore(document.createComment(n.nodeName),o),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors((function(o){n[o.attributeName]===t&&(n[o.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,o=t.constructor.name;n&&n[o]&&n[o].querySelectors&&Ye.forEach(n[o].querySelectors,(function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=Ye.loadTemplate(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),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 o=e.eGui.querySelector(n.querySelector);o&&(t[n.attributeName]=o.__agComponent||o)}))}},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");Ye.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),Ye.forEach(t,(function(t){var n=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,n),e.annotatedEventListeners.push({eventName:t.eventName,listener:n})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],n=Object.getPrototypeOf(this);null!=n;){var o=n.__agComponentMetaData,r=n.constructor.name;if(void 0===r){var i=/function\s([^(]{1,})\(/.exec(n.constructor.toString());i&&i.length>1&&(r=i[1].trim())}o&&o[r]&&o[r][e]&&(t=t.concat(o[r][e])),n=Object.getPrototypeOf(n)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(Ye.forEach(this.annotatedEventListeners,(function(t){return e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},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),Ye.isNodeOrElement(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.childComponents.push(n)}},t.prototype.addFeature=function(e,t){this.wireDependentBean(e,t)},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,Ye.setVisible(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,Ye.setDisplayed(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){Ye.forEach(this.childComponents,(function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners(),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){Ye.addCssClass(this.eGui,e)},t.prototype.removeCssClass=function(e){Ye.removeCssClass(this.eGui,e)},t.prototype.addOrRemoveCssClass=function(e,t){Ye.addOrRemoveCssClass(this.eGui,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",qt([Je],t.prototype,"createChildComponentsPreConstruct",null),t}(Ut),Qt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qt(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){Ye.addCssClass(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&Ye.removeCssClass(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}($t);function Jt(e){return Zt.bind(this,"[ref="+e+"]")}function Zt(e,t,n,o){null!==e?"number"!=typeof o?tn(t,"querySelectors",{attributeName:n,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function en(e,t,n){null!==e?tn(t,"listenerMethods",{methodName:n,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function tn(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}
234/**
235 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
236 * @version v23.1.1
237 * @link http://www.ag-grid.com/
238 * @license MIT
239 */(e,e.constructor.name);o[t]||(o[t]=[]),o[t].push(n)}var nn,on=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return on(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===ke.KEY_BACKSPACE||e.keyPress===ke.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==ke.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e));Ye.exists(t)&&n.setValue(t,!0),this.addDestroyableEventListener(n.getGui(),"keydown",(function(e){var t=e.keyCode===ke.KEY_PAGE_UP,n=e.keyCode===ke.KEY_PAGE_DOWN;(t||n)&&e.preventDefault()}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;Ye.isBrowserSafari()||e.getFocusableElement().focus();var t=e.getInputElement();if(this.highlightAllOnFocus)t.select();else{var n=e.getValue(),o=Ye.exists(n)&&n.length||0;o&&t.setSelectionRange(o,o)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.focusOut=function(){var e=this.eInput.getInputElement();Ye.isBrowserIE()&&e.setSelectionRange(0,0)},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',rn([Jt("eInput")],t.prototype,"eInput",void 0),t}(Xt),an=function(){function e(e,t,n){var o=this;this.alive=!0,e.newDateComponent(t).then((function(e){o.alive?(o.dateComp=e,n.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),o.tempValue&&e.setDate(o.tempValue)):e.destroy&&e.destroy()}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp&&this.dateComp.destroy&&this.dateComp.destroy()},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e}(),ln=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions?e.filterOptions:t,this.mapCustomOptions(),this.selectDefaultItem(e)},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){"string"!=typeof t&&(t.displayKey?t.displayName?t.test?e.customFilterOptions[t.displayKey]=t:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("ag-Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),un=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.applyActive=!1,t.hidePopup=null,t.appliedModel=null,t}return un(t,e),t.prototype.onFilterChanged=function(){console.warn("ag-Grid: you should not call onFilterChanged() directly on the filter, please call\n gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.postConstruct=function(){var e='\n <div>\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper" ref="eFilterBodyWrapper">\n '+this.createBodyTemplate()+"\n </div>\n </div>";this.setTemplate(e)},t.prototype.init=function(e){this.setParams(e),this.resetUiToDefaults(!0),this.updateUiVisibility(),this.setupOnBtApplyDebounce()},t.prototype.setParams=function(e){if(this.providedFilterParams=e,e.newRowsAction===t.NEW_ROWS_ACTION_KEEP)this.newRowsActionKeep=!0;else if(e.newRowsAction===t.NEW_ROWS_ACTION_CLEAR)this.newRowsActionKeep=!1;else{var n=this.rowModel.getType(),o=[ke.ROW_MODEL_TYPE_SERVER_SIDE,ke.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=o.indexOf(n)>=0}this.applyActive=t.isUseApplyButton(e),this.createButtonPanel(e)},t.prototype.createButtonPanel=function(e){var t=this,n=!0===e.clearButton,o=!0===e.resetButton;if(this.applyActive||n||o){var r=this.gridOptionsWrapper.getLocaleTextFunc(),i=document.createElement("div");Ye.addCssClass(i,"ag-filter-apply-panel");var s=function(e,n){var o=Ye.loadTemplate('<button type="button" class="ag-standard-button ag-filter-apply-panel-button">'+e+"</button>");i.appendChild(o),t.addDestroyableEventListener(o,"click",n)};n&&s(r("clearFilter","Clear Filter"),(function(){return t.onBtClear()})),o&&s(r("resetFilter","Reset Filter"),(function(){return t.onBtReset()})),this.applyActive&&s(r("applyFilter","Apply Filter"),(function(){return t.onBtApply()})),this.eFilterBodyWrapper.parentElement.appendChild(i)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=Ye.debounce(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){e?this.setModelIntoUi(e):this.resetUiToDefaults(),this.updateUiVisibility(),this.applyModel()},t.prototype.onBtClear=function(){this.resetUiToDefaults(),this.updateUiVisibility(),this.onUiChanged()},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.appliedModel;return this.appliedModel=this.getModelFromUi(),!this.areModelsEqual(this.appliedModel,e)},t.prototype.onBtApply=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t});var n=this.providedFilterParams,o=n.closeOnApply,r=n.applyButton,i=n.resetButton;o&&!e&&this.hidePopup&&(r||i)&&(this.hidePopup(),this.hidePopup=null)},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||(this.resetUiToDefaults(),this.appliedModel=null)},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e){void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),e?this.onBtApply(!0):this.applyActive||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(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 applyButton = true"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return e.apply&&!e.applyButton&&(console.warn("ag-Grid: as of ag-Grid v21, filterParams.apply is now filterParams.applyButton, please change to applyButton"),e.applyButton=!0),!0===e.applyButton},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.NEW_ROWS_ACTION_KEEP="keep",t.NEW_ROWS_ACTION_CLEAR="clear",cn([Jt("eFilterBodyWrapper")],t.prototype,"eFilterBodyWrapper",void 0),cn([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),cn([nt("rowModel")],t.prototype,"rowModel",void 0),cn([Ze],t.prototype,"postConstruct",null),t}($t),dn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(nn||(nn={}));var fn,gn={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",inRangeStart:"From",inRangeEnd:"To",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dn(t,e),t.prototype.showValueFrom=function(e){return!this.doesFilterHaveHiddenInput(e)&&e!==t.EMPTY},t.prototype.showValueTo=function(e){return e===t.IN_RANGE},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.eJoinOperatorAnd.setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(nn.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(nn.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(nn.One),condition2:this.createCondition(nn.Two)}:this.createCondition(nn.One):null},t.prototype.getCondition1Type=function(){return this.eType1.getValue()},t.prototype.getCondition2Type=function(){return this.eType2.getValue()},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;if(o){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,nn.One),this.setConditionIntoUi(t.condition2,nn.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(!0),this.eJoinOperatorOr.setValue(!1),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,nn.One),this.setConditionIntoUi(null,nn.Two)}},t.prototype.doesFilterPass=function(e){var t=this.getModel();if(t.operator){var n=t,o=this.individualConditionPasses(e,n.condition1),r=this.individualConditionPasses(e,n.condition2);return"AND"===n.operator?o&&r:o||r}var i=t;return this.individualConditionPasses(e,i)},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new ln,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions();t.forEach((function(t){var n=function(){var n="string"==typeof t?t:t.displayKey;return{value:n,text:e.translate(n)}};e.eType1.addOption(n()),e.eType2.addOption(n())}));var n=t.length<=1;this.eType1.setDisabled(n),this.eType2.setDisabled(n)},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(nn.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(nn.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.isConditionUiComplete(nn.One),t=this.allowTwoConditions&&e;Ye.setDisplayed(this.eCondition2Body,t),Ye.setDisplayed(this.eType2.getGui(),t),Ye.setDisplayed(this.eJoinOperatorPanel,t)},t.prototype.resetUiToDefaults=function(e){var t="ag-simple-filter-and-or-"+this.getCompId(),n=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.optionsFactory.getDefaultOption();this.eType1.setValue(o,e),this.eType2.setValue(o,e),this.eJoinOperatorAnd.setValue(!0,e).setName(t).setLabel(n("andCondition","AND")),this.eJoinOperatorOr.setValue(!1,e).setName(t).setLabel(n("orCondition","OR"))},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),n=gn[e];return!n&&this.optionsFactory.getCustomOption(e)&&(n=this.optionsFactory.getCustomOption(e).displayName),t(e,n)},t.prototype.addChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",hn([Jt("eOptions1")],t.prototype,"eType1",void 0),hn([Jt("eOptions2")],t.prototype,"eType2",void 0),hn([Jt("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),hn([Jt("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),hn([Jt("eCondition2Body")],t.prototype,"eCondition2Body",void 0),hn([Jt("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),t}(pn),mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mn(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("ag-Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.nullComparator=function(e,n,o){if(null==o)switch(e){case t.EMPTY:return 0;case t.EQUALS:return this.scalarFilterParams.includeBlanksInEquals?0:1;case t.NOT_EQUAL:return this.scalarFilterParams.includeBlanksInEquals?1:0;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInGreaterThan?1:-1;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInLessThan?-1:1}return this.comparator()(n,o)},t.prototype.individualConditionPasses=function(e,n){var o=this.scalarFilterParams.valueGetter(e.node),r=this.mapRangeFromModel(n),i=r.from,s=r.to,a=n.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=i||l.hideFilterInput))return l.test(i,o);var u=this.nullComparator(a,i,o);switch(a){case t.EQUALS:return 0===u;case t.NOT_EQUAL:return 0!==u;case t.GREATER_THAN:return u>0;case t.GREATER_THAN_OR_EQUAL:return u>=0;case t.LESS_THAN:return u<0;case t.LESS_THAN_OR_EQUAL:return u<=0;case t.IN_RANGE:var c=this.nullComparator(a,s,o);return this.scalarFilterParams.inRangeInclusive?u>=0&&c<=0:u>0&&c<0;default:throw new Error("Unexpected type of filter: "+a)}},t}(vn),Cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},En=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cn(t,e),t.prototype.mapRangeFromModel=function(e){return{from:de(e.dateFrom),to:de(e.dateTo)}},t.prototype.setValueFromFloatingFilter=function(e){if(null!=e){var t=de(e);this.dateCondition1FromComp.setDate(t)}else this.dateCondition1FromComp.setDate(null);this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},t.prototype.setConditionIntoUi=function(e,t){var n=e?[de(e.dateFrom),de(e.dateTo)]:[null,null],o=n[0],r=n[1],i=this.getFromToComponents(t),s=i[0],a=i[1];s.setDate(o),a.setDate(r)},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),this.dateCondition1FromComp.setDate(null),this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t,this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t={onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams};this.dateCondition1FromComp=new an(this.userComponentFactory,t,this.eCondition1PanelFrom),this.dateCondition1ToComp=new an(this.userComponentFactory,t,this.eCondition1PanelTo),this.dateCondition2FromComp=new an(this.userComponentFactory,t,this.eCondition2PanelFrom),this.dateCondition2ToComp=new an(this.userComponentFactory,t,this.eCondition2PanelTo),this.addDestroyFunc((function(){e.dateCondition1FromComp.destroy(),e.dateCondition1ToComp.destroy(),e.dateCondition2FromComp.destroy(),e.dateCondition2ToComp.destroy()}))},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===nn.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">\n </div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo">\n </div>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===nn.One?this.getCondition1Type():this.getCondition2Type();if(t===vn.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(t))return!0;var n=this.getFromToComponents(e),o=n[0],r=n[1];return null!=o.getDate()&&(t!==vn.IN_RANGE||null!=r.getDate())},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.createCondition=function(e){var n=e===nn.One?this.getCondition1Type():this.getCondition2Type(),o=this.getFromToComponents(e),r=o[0],i=o[1];return{dateFrom:pe(r.getDate()),dateTo:pe(i.getDate()),type:n,filterType:t.FILTER_TYPE}},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc()("dateFormatOoo","yyyy-mm-dd");this.dateCondition1FromComp.setInputPlaceholder(e),this.dateCondition1ToComp.setInputPlaceholder(e),this.dateCondition2FromComp.setInputPlaceholder(e),this.dateCondition2ToComp.setInputPlaceholder(e)},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.getCondition1Type();x(this.eCondition1PanelFrom,this.showValueFrom(t)),x(this.eCondition1PanelTo,this.showValueTo(t));var n=this.getCondition2Type();x(this.eCondition2PanelFrom,this.showValueFrom(n)),x(this.eCondition2PanelTo,this.showValueTo(n))},t.prototype.getFromToComponents=function(e){return e===nn.One?[this.dateCondition1FromComp,this.dateCondition1ToComp]:[this.dateCondition2FromComp,this.dateCondition2ToComp]},t.FILTER_TYPE="date",t.DEFAULT_FILTER_OPTIONS=[yn.EQUALS,yn.GREATER_THAN,yn.LESS_THAN,yn.NOT_EQUAL,yn.IN_RANGE],wn([Jt("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),wn([Jt("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),wn([Jt("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),wn([Jt("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),wn([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(yn),bn=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ct,this.eElement=e,this.preventMouseClick=t;var o=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",o,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{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 o=this.touchStart;window.setTimeout((function(){var r=n.touchStart===o;if(n.touching&&r&&!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)!Ye.areEventsNear(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}(),_n=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),On=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return _n(t,e),t.prototype.init=function(e){var n=Ye.firstExistingValue(e.template,t.TEMPLATE);n=n&&n.trim?n.trim():n,this.setTemplate(n),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=Ye.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var o=Ye.createIconNoSpan(e,this.gridOptionsWrapper,n);t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new bn(this.getGui(),!0),o=t.isSuppressMenuHide(),r=o&&Ye.exists(this.eMenu),i=r?new bn(this.eMenu,!0):n;if(this.params.enableMenu){var s=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(i,bn[s],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addDestroyableEventListener(n,bn.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),r&&this.addDestroyFunc((function(){return i.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||Ye.isIOSUserAgent()&&!t)Ye.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0");var n=this.eMenu.style;n.transition="opacity 0.2s, border 0.2s",n["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.setMouseOverParent=function(e){this.gridOptionsWrapper.isSuppressMenuHide()||(this.eMenu.style.opacity=e?"1":"0")},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){Ye.removeFromParent(this.eSortAsc),Ye.removeFromParent(this.eSortDesc),Ye.removeFromParent(this.eSortNone),Ye.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,ht.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",(function(n){var o=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!(o||r)){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}})),this.addDestroyableEventListener(this.params.column,ht.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,Et.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(Ye.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),Ye.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),Ye.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&Ye.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&Ye.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();Ye.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),n=t.indexOf(e),o=t.length>1,r=e.isSorting()&&o;Ye.setDisplayed(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():Ye.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,ht.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();Ye.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation"> <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on"> <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span> <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span> <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span> <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span> <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span> <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span> </div></div>',On([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),On([nt("sortController")],t.prototype,"sortController",void 0),On([nt("menuFactory")],t.prototype,"menuFactory",void 0),On([nt("eventService")],t.prototype,"eventService",void 0),On([Jt("eFilter")],t.prototype,"eFilter",void 0),On([Jt("eSortAsc")],t.prototype,"eSortAsc",void 0),On([Jt("eSortDesc")],t.prototype,"eSortDesc",void 0),On([Jt("eSortNone")],t.prototype,"eSortNone",void 0),On([Jt("eSortOrder")],t.prototype,"eSortOrder",void 0),On([Jt("eMenu")],t.prototype,"eMenu",void 0),On([Jt("eLabel")],t.prototype,"eLabel",void 0),On([Jt("eText")],t.prototype,"eText",void 0),t}($t),Sn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Tn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Sn(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Ye.isStopPropagationForAgGrid(t)){var n=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Ye.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",n),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",n),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var o=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(o,vt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(o,vt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new bn(e);this.addDestroyableEventListener(n,bn.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();Ye.setDisplayed(this.eOpenIcon,e),Ye.setDisplayed(this.eCloseIcon,!e)}else Ye.setDisplayed(this.eOpenIcon,!1),Ye.setDisplayed(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Ye.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Ye.setDisplayed(this.eOpenIcon,!1),void Ye.setDisplayed(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(Ye.exists(e)){var t=Ye.escape(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation"><span ref="agLabel" class="ag-header-group-text" role="columnheader"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',Tn([nt("columnController")],t.prototype,"columnController",void 0),Tn([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Tn([Jt("agOpened")],t.prototype,"eOpenIcon",void 0),Tn([Jt("agClosed")],t.prototype,"eCloseIcon",void 0),t}($t),Dn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},An=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.highlighted=null,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var n=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(n)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,o){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:o}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var n=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(n)},e.prototype.getRowIndexString=function(){return this.rowPinned===ke.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===ke.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=Ye.exists(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,n),this.checkRowSelectable();var r=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(r)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&Ye.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.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.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.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var n=this.createGlobalRowEvent(Et.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(n),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var n=this.columnController.getPrimaryColumn(e),o=this.valueService.getValue(n,this);this.valueService.setValue(this,n,t),this.dispatchCellChangedEvent(n,t,o)},e.prototype.setGroupValue=function(e,t){var n=this.columnController.getGridColumn(e);Ye.missing(this.groupData)&&(this.groupData={});var o=n.getColId(),r=this.groupData[o];r!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(n,t,r))},e.prototype.setAggData=function(e){var t=this,n=Ye.getAllKeysInObjects([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.columnController.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(n,r,i)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyRowGroupNode=function(){return this.group&&Ye.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,o){var r={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:o};this.dispatchLocalEvent(r)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,n=!1,o=!1;if(this.childrenAfterGroup)for(var r=0;r<this.childrenAfterGroup.length;r++){var i=this.childrenAfterGroup[r];if(i.selectable)switch(i.isSelected()){case!0:t=!0;break;case!1:n=!0;break;default:o=!0}}e=o?void 0:!(!t||n)||!(!t&&n)&&void 0,this.selectThisNode(e)},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===ke.PINNED_TOP||this.rowPinned===ke.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),n=!0===e.newValue,o=!0===e.clearSelection,r=!0===e.suppressFinishActions,i=!0===e.rangeSelect,s=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(i){var a=this.selectionController.getLastSelectedNode()!==this,l=this.gridOptionsWrapper.isRowSelectionMulti();if(a&&l)return this.doRowRangeSelection()}var u=0;s&&this.group||this.selectThisNode(n)&&u++;if(t&&this.group&&(u+=this.selectChildNodes(n,s)),!r){if(n&&(o||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var c={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(c)}n&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=this.gridOptionsWrapper.isGroupSelectsChildren(),t=this.selectionController.getLastSelectedNode(),n=this.rowModel.getNodesInRangeForSelection(this,t),o=0;n.forEach((function(t){t.group&&e||t.selectThisNode(!0)&&o++})),this.selectionController.updateGroupsFromChildrenSelections();var r={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(r),o},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var n=this.createGlobalRowEvent(Et.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(n),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterFilter:this.childrenAfterGroup;if(!Ye.missing(n)){for(var o=0,r=0;r<n.length;r++)o+=n[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return o}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new ct),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,n=this,o=!0,r=!1;o&&!r;){var i=n.parent;Ye.exists(i)&&n.firstChild?i.rowGroupColumn===e&&(r=!0,t=i):o=!1,n=i}return r?t:null},e.prototype.isFullWidthCell=function(){var e=this.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e(this)},e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",Dn([nt("eventService")],e.prototype,"mainEventService",void 0),Dn([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Dn([nt("selectionController")],e.prototype,"selectionController",void 0),Dn([nt("columnController")],e.prototype,"columnController",void 0),Dn([nt("valueService")],e.prototype,"valueService",void 0),Dn([nt("rowModel")],e.prototype,"rowModel",void 0),Dn([nt("context")],e.prototype,"context",void 0),Dn([nt("valueCache")],e.prototype,"valueCache",void 0),Dn([nt("columnApi")],e.prototype,"columnApi",void 0),Dn([nt("gridApi")],e.prototype,"gridApi",void 0),e}(),Nn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},In=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.labelSeparator="",t.labelAlignment="left",t.config={},t.label="",t}return Nn(t,e),t.prototype.postConstruct=function(){Ye.addCssClass(this.getGui(),"ag-labeled"),Ye.addCssClass(this.eLabel,"ag-label");var e=this.config,t=e.labelSeparator,n=e.label,o=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){this.eLabel.innerText=this.label+this.labelSeparator,Ye.addOrRemoveCssClass(this.eLabel,"ag-hidden",""===this.label)},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return Ye.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),Ye.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),Ye.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Ye.setElementWidth(this.eLabel,e),this},xn([Ze],t.prototype,"postConstruct",null),t}($t),Fn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return Fn(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),Ye.addCssClass(this.getGui(),this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addDestroyableEventListener(this,t.EVENT_CHANGED,(function(){e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Ye.setFixedWidth(this.getGui(),e),this},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return e&&t.setAttribute("disabled","true"),Ye.addOrRemoveCssClass(t,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(In),Ln=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.config={},t.TEMPLATE='\n <div role="presentation">\n <label ref="eLabel" class="ag-input-field-label"></label>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <%displayField% ref="eInput" class="ag-input-field-input"></%displayField%>\n </div>\n </div>',t}return Ln(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),Ye.addCssClass(this.eLabel,this.className+"-label"),Ye.addCssClass(this.eWrapper,this.className+"-input-wrapper"),Ye.addCssClass(this.eInput,this.className+"-input"),Ye.addCssClass(this.getGui(),"ag-input-field");var t=this.eInput.id?this.eInput.id:"ag-input-id-"+this.getCompId();this.eLabel.htmlFor=t,this.eInput.id=t;var n=this.config,o=n.width,r=n.value;null!=o&&this.setWidth(o),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.eInput,"input",(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setInputType=function(){this.inputType&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Ye.setElementWidth(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){var t=this.eInput;return e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder"),this},t.prototype.setDisabled=function(t){return t?this.eInput.setAttribute("disabled","true"):this.eInput.removeAttribute("disabled"),e.prototype.setDisabled.call(this,t)},kn([Jt("eLabel")],t.prototype,"eLabel",void 0),kn([Jt("eWrapper")],t.prototype,"eWrapper",void 0),kn([Jt("eInput")],t.prototype,"eInput",void 0),t}(Mn),Vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},jn=function(e){function t(){var t=e.call(this)||this;return t.className="ag-checkbox",t.displayTag="input",t.inputType="checkbox",t.labelAlignment="right",t.selected=!1,t.readOnly=!1,t.passive=!1,t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return Vn(t,e),t.prototype.addInputListeners=function(){this.addDestroyableEventListener(this.eInput,"click",this.onCheckboxClick.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){Ye.addOrRemoveCssClass(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return Ye.addOrRemoveCssClass(this.eWrapper,"ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){var e=this.getNextValue();this.passive?this.dispatchChange(e):this.setValue(e)},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.selected="boolean"==typeof e?e:void 0,this.eInput.checked=this.selected,this.eInput.indeterminate=void 0===this.selected,t||this.dispatchChange(this.selected))},t.prototype.dispatchChange=function(e,n){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,event:n});var o=this.getInputElement(),r={type:Et.EVENT_CHECKBOX_CHANGED,id:o.id,name:o.name,selected:e};this.eventService.dispatchEvent(r)},t.prototype.onCheckboxClick=function(e){this.selected=e.target.checked,this.refreshSelectedClass(this.selected),this.dispatchChange(this.selected,e)},t.prototype.refreshSelectedClass=function(e){Ye.addOrRemoveCssClass(this.eWrapper,"ag-checked",!0===e),Ye.addOrRemoveCssClass(this.eWrapper,"ag-indeterminate",null==e)},Wn([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Wn([nt("eventService")],t.prototype,"eventService",void 0),t}(Gn),Hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zn=function(e){function t(){return e.call(this,'<div class="ag-selection-checkbox"><ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox></div>')||this}return Hn(t,e),t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();this.eCheckbox.setValue(e,!0)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return Ye.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return Ye.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckbox,jn.EVENT_CHANGED,(function(e){e.selected?t.onUncheckedClicked(e.event||{}):t.onCheckedClicked()})),this.addDestroyableEventListener(this.rowNode,An.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setDisplayed(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},Bn([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Bn([nt("eventService")],t.prototype,"eventService",void 0),Bn([Jt("eCheckbox")],t.prototype,"eCheckbox",void 0),t}($t),Un={propertyName:"dateComponent",isCellRenderer:function(){return!1}},Yn={propertyName:"headerComponent",isCellRenderer:function(){return!1}},qn={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},Kn={propertyName:"groupRowInnerRenderer",isCellRenderer:function(){return!0}},$n={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},Qn={propertyName:"pinnedRowCellRenderer",isCellRenderer:function(){return!0}},Xn={propertyName:"cellEditor",isCellRenderer:function(){return!1}},Jn={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},Zn={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},eo={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},to={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},no={propertyName:"filter",isCellRenderer:function(){return!1}},oo={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},ro={propertyName:"toolPanel",isCellRenderer:function(){return!1}},io={propertyName:"statusPanel",isCellRenderer:function(){return!1}},so=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(fn||(fn={}));var ao,lo=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Un,"agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,Yn,"agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,qn,"agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Kn,null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,n){return this.createAndInitUserComponent(null,e,{propertyName:t,isCellRenderer:function(){return!0}},n)},e.prototype.newCellRenderer=function(e,t,n){return void 0===n&&(n=!1),this.createAndInitUserComponent(e,t,n?Qn:$n,null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,Xn,"agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,Jn,null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Zn,"agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,eo,"agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){return this.createAndInitUserComponent(e.colDef,e,to,"agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,n,o){return this.createAndInitUserComponent(e,t,no,n,!1,o)},e.prototype.newSetFilterCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,$n,null,!0)},e.prototype.newFloatingFilterComponent=function(e,t,n){return this.createAndInitUserComponent(e,t,oo,n,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,ro)},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,io)},e.prototype.createAndInitUserComponent=function(e,t,n,o,r,i){void 0===r&&(r=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,n,t,o,r);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,n.propertyName,t,s.paramsFromSelector);this.addReactHacks(l);var u=i?i(l,a):l,c=this.initComponent(a,u);return null==c?Ke.resolve(a):c.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=Ye.cloneObject(t));var n=this.context.getBean("frameworkComponentWrapper");n&&(e.frameworkComponentWrapper=n)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var n=new e;return this.initComponent(n,t),n},e.prototype.lookupComponentClassDef=function(e,t,n,o){void 0===n&&(n=null);var r,i=null,s=null,a=null,l=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?i=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?s=u:a=u)),l=e[t+"Framework"],r=e[t+"Selector"]}if(s&&l||i&&l||a&&l)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(l&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(r&&(i||s||a||l))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(l)return{componentFromFramework:!0,component:l,source:fn.HARDCODED,paramsFromSelector:null};if(s)return{componentFromFramework:!1,component:s,source:fn.HARDCODED,paramsFromSelector:null};if(a)return this.agComponentUtils.adaptFunction(t,a,!1,fn.HARDCODED);var c,p=r?r(n):null;if(!(c=p&&p.component?p.component:i||o))return null;var d=this.lookupFromRegisteredComponents(t,c);return d?{componentFromFramework:d.componentFromFramework,component:d.component,source:d.source,paramsFromSelector:p?p.params:null}:null},e.prototype.lookupFromRegisteredComponents=function(e,t){var n=null!=t?t:e,o=this.userComponentRegistry.retrieve(n);return null==o?null:o.componentFromFramework?{component:o.component,componentFromFramework:!0,source:fn.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(o.component)?{component:o.component,componentFromFramework:!1,source:o.source==ao.REGISTERED?fn.REGISTERED_BY_NAME:fn.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,o.component,o.componentFromFramework,o.source==ao.REGISTERED?fn.REGISTERED_BY_NAME:fn.DEFAULT)},e.prototype.createFinalParams=function(e,t,n,o){void 0===o&&(o=null);var r={};Ye.mergeDeep(r,n);var i=e?e[t+"Params"]:null;return null!=i&&("function"==typeof i?Ye.mergeDeep(r,i(n)):"object"==typeof i&&Ye.mergeDeep(r,i)),Ye.mergeDeep(r,o),r},e.prototype.createComponentInstance=function(e,t,n,o,r){var i,s=t.propertyName,a=this.lookupComponentClassDef(e,s,n,o);if(!a||!a.component){var l=e?e[s]:o,u=l||o;return r||console.error("Could not find component "+u+", did you forget to configure this component?"),null}if(a.componentFromFramework){var c=a.component,p=this.componentMetadataProvider.retrieve(s);i=this.frameworkComponentWrapper.wrap(c,p.mandatoryMethodList,p.optionalMethodList,t,o)}else i=new a.component;return{componentInstance:i,paramsFromSelector:a.paramsFromSelector}},e.prototype.initComponent=function(e,t){if(this.context.wireBean(e),null!=e.init)return e.init(t)},so([nt("gridOptions")],e.prototype,"gridOptions",void 0),so([nt("context")],e.prototype,"context",void 0),so([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),so([nt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),so([nt("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),so([ot("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e=so([tt("userComponentFactory")],e)}(),uo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),co=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},po=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return uo(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),n=null==e.value,o=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var r=e.node;if(r.footer)o=(e.colDef&&e.colDef.showRowGroup)!==(r.rowGroupColumn&&r.rowGroupColumn.getColId())}this.cellIsBlank=t||n||o,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===ke.PINNED_LEFT,t=this.params.pinned===ke.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!n:this.columnController.isPinningLeft()?!e:!n},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){Ye.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var n=e*t,o=this.getGui(),r=this.gridOptionsWrapper.isEnableRtl()?"paddingRight":"paddingLeft";o.style[r]=n+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,An.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||Ye.get(e.colDef,"cellRendererParams.innerRenderer",null)||Ye.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var n=Ye.cloneObject(this.params);n.value=this.params.value,"function"==typeof t?e=t(n):"string"==typeof t?e=this.expressionService.evaluate(t,n):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,n=this.params,o=this.displayedGroup.rowGroupColumn,r=o||n.column,i=this.params.value,s=r?this.valueFormatterService.formatValue(r,n.node,n.scope,i):null;n.valueFormatted=s,(e=n.fullWidth?this.useFullWidth(n):this.useInnerRenderer(this.params.colDef.cellRendererParams,r.getColDef(),n))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,n){var o=this,r=null,i=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(i&&null!=i.component&&i.source!=fn.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,n);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=fn.DEFAULT?this.userComponentFactory.newCellRenderer(t,n):s&&s.source==fn.DEFAULT&&Ye.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,n):this.userComponentFactory.newCellRenderer({},n)}return null!=r?r.then((function(e){null!=e?Ye.bindCellRendererToHtmlElement(r,o.eValue):o.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value})):this.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value,r},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?Ye.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,An.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){Ye.exists(this.params.value)&&(this.eValue.innerText=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var n=new zn;this.getContext().wireBean(n),n.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc((function(){return n.destroy()}))}Ye.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,n=Ye.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),o=Ye.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(n),this.eContracted.appendChild(o),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(e.node,An.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,An.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){Ye.isKeyPressed(e,ke.KEY_ENTER)&&!this.params.suppressEnterExpand&&(this.params.column&&this.params.column.isCellEditable(this.params.node)||(e.preventDefault(),this.onExpandOrContract()))},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var n=t.rowGroupColumn;this.draggedFromHideOpenParents=!!n&&!e.isRowGroupDisplayed(n.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var o=t.parent;!Ye.missing(o);){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroup=o;break}o=o.parent}Ye.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){Ye.isStopPropagationForAgGrid(e)||(Ye.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){Ye.isStopPropagationForAgGrid(e)||(Ye.isElementInEventPath(this.eExpanded,e)||Ye.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract())},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;Ye.setDisplayed(this.eContracted,!t),Ye.setDisplayed(this.eExpanded,t)}else Ye.setDisplayed(this.eExpanded,!1),Ye.setDisplayed(this.eContracted,!1);var n=this.displayedGroup,o=this.columnController.isPivotMode()&&n.leafGroup,r=!n.isExpandable(),i=n.footer||r||o;this.addOrRemoveCssClass("ag-row-group",!i),this.addOrRemoveCssClass("ag-row-group-leaf-indent",i)},t.prototype.destroy=function(){this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy(),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper"><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',co([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),co([nt("expressionService")],t.prototype,"expressionService",void 0),co([nt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),co([nt("columnController")],t.prototype,"columnController",void 0),co([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),co([Jt("eExpanded")],t.prototype,"eExpanded",void 0),co([Jt("eContracted")],t.prototype,"eContracted",void 0),co([Jt("eCheckbox")],t.prototype,"eCheckbox",void 0),co([Jt("eValue")],t.prototype,"eValue",void 0),co([Jt("eChildCount")],t.prototype,"eChildCount",void 0),t}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},go=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return ho(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),o=e.formatValue(n),r=Ye.exists(o)?o:n,i=t>=0;this.eDelta.innerHTML=i?"↑"+r:"↓"+r,Ye.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",i),Ye.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!i)},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(){Ye.removeCssClass(this.eValue,"ag-value-change-value-highlight"),Ye.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue&&(Ye.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:Ye.exists(e.value)?this.eValue.innerHTML=t:Ye.clearElement(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())){if("number"==typeof t&&"number"==typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&Ye.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',fo([nt("filterManager")],t.prototype,"filterManager",void 0),t}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yo=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 vo(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=Ye.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&Ye.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(Ye.missing(t)&&(t=""),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=t,Ye.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:Ye.exists(e.value)?this.eCurrent.innerHTML=t:Ye.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',mo([nt("filterManager")],t.prototype,"filterManager",void 0),t}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Eo=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Co(t,e),t.prototype.init=function(e){var t=Ye.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=n("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},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>',wo([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),wo([Jt("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),wo([Jt("eLoadingText")],t.prototype,"eLoadingText",void 0),t}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_o=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Oo=function(e){function t(){return e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this}return bo(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,Ye.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(n){var o={value:n},r=t.valueFormatterService.formatValue(e.column,null,null,n),i=null!=r;o.text=i?r:n,t.eSelect.addOption(o)})),this.eSelect.setValue(e.value,!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},_o([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),_o([nt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),_o([Jt("eSelect")],t.prototype,"eSelect",void 0),t}(Xt),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ro(t,e),t.prototype.isPopup=function(){return!0},t}(sn),To=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Po=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return To(t,e),t.prototype.isPopup=function(){return!0},t}(Oo),Do=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ao=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},No=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Do(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),Ye.exists(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==ke.KEY_LEFT||t==ke.KEY_UP||t==ke.KEY_RIGHT||t==ke.KEY_DOWN||e.shiftKey&&t==ke.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){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>',Ao([Jt("eTextArea")],t.prototype,"eTextArea",void 0),t}(Xt),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Io=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xo(t,e),t.prototype.mapRangeFromModel=function(e){return{from:e.filter,to:e.filterTo}},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),[this.eValueFrom1,this.eValueFrom2,this.eValueTo1,this.eValueTo2].forEach((function(e){return e.setValue(null,t)})),this.resetPlaceholder()},t.prototype.setConditionIntoUi=function(e,t){var n=t===nn.One,o=n?this.eValueFrom1:this.eValueFrom2,r=n?this.eValueTo1:this.eValueTo2;o.setValue(e?""+e.filter:null),r.setValue(e?""+e.filterTo:null)},t.prototype.setValueFromFloatingFilter=function(e){this.eValueFrom1.setValue(e),this.eValueFrom2.setValue(null),this.eValueTo1.setValue(null),this.eValueTo2.setValue(null)},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.addValueChangedListeners()},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValueFrom1.onValueChange(t),this.eValueFrom2.onValueChange(t),this.eValueTo1.onValueChange(t),this.eValueTo2.onValueChange(t)},t.prototype.resetPlaceholder=function(){var e=this.translate.bind(this),t=this.getCondition1Type()===yn.IN_RANGE,n=this.getCondition2Type()===yn.IN_RANGE;this.eValueFrom1.setInputPlaceholder(e(t?"inRangeStart":"filterOoo")),this.eValueTo1.setInputPlaceholder(e(t?"inRangeEnd":"filterOoo")),this.eValueFrom2.setInputPlaceholder(e(n?"inRangeStart":"filterOoo")),this.eValueTo2.setInputPlaceholder(e(n?"inRangeEnd":"filterOoo"))},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),this.eValueFrom1.getInputElement().focus()},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===nn.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-number-field class="ag-filter-from ag-filter-filter" ref="eValueFrom'+t+'"></ag-input-number-field>\n <ag-input-number-field class="ag-filter-to ag-filter-filter" ref="eValueTo'+t+'"></ag-input-number-field>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===nn.One,n=t?this.getCondition1Type():this.getCondition2Type(),o=t?this.eValueFrom1:this.eValueFrom2,r=t?this.eValueTo1:this.eValueTo2,i=this.stringToFloat(o.getValue()),s=this.stringToFloat(r.getValue());return n!==vn.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||(n===vn.IN_RANGE?null!=i&&null!=s:null!=i))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var t=Ye.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.createCondition=function(e){var n=e===nn.One,o=n?this.getCondition1Type():this.getCondition2Type(),r=n?this.eValueFrom1:this.eValueFrom2,i=this.stringToFloat(r.getValue()),s=n?this.eValueTo1:this.eValueTo2,a=this.stringToFloat(s.getValue()),l={filterType:t.FILTER_TYPE,type:o};return this.doesFilterHaveHiddenInput(o)||(l.filter=i,l.filterTo=a),l},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.showValueFrom(this.getCondition1Type());Ye.setDisplayed(this.eValueFrom1.getGui(),t);var n=this.showValueTo(this.getCondition1Type());Ye.setDisplayed(this.eValueTo1.getGui(),n);var o=this.showValueFrom(this.getCondition2Type());Ye.setDisplayed(this.eValueFrom2.getGui(),o);var r=this.showValueTo(this.getCondition2Type());Ye.setDisplayed(this.eValueTo2.getGui(),r)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[yn.EQUALS,yn.NOT_EQUAL,yn.LESS_THAN,yn.LESS_THAN_OR_EQUAL,yn.GREATER_THAN,yn.GREATER_THAN_OR_EQUAL,yn.IN_RANGE],Io([Jt("eValueFrom1")],t.prototype,"eValueFrom1",void 0),Io([Jt("eValueFrom2")],t.prototype,"eValueFrom2",void 0),Io([Jt("eValueTo1")],t.prototype,"eValueTo1",void 0),Io([Jt("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(yn),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ko=function(e){function t(){return e.call(this)||this}return Mo(t,e),t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',Lo([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}($t),Go=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wo=function(e){function t(){return e.call(this)||this}return Go(t,e),t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',Vo([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}($t),jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ho=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return jo(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(Xt),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(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-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return Bo(t,e),t.prototype.init=function(e){var t=this;this.shouldUseBrowserDatePicker(e)&&(p()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.getInputElement().type="date"),this.listener=e.onDateChanged,this.addDestroyableEventListener(this.eDateInput.getInputElement(),"input",(function(e){e.target===document.activeElement&&t.listener()}))},t.prototype.getDate=function(){return de(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(pe(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:f()||g()},zo([Jt("eDateInput")],t.prototype,"eDateInput",void 0),t}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yo(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,n=this.conditionToString(t.condition1),o=this.conditionToString(t.condition2);return n+" "+t.operator+" "+o}var r=e;return this.conditionToString(r)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}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 ln,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.prototype.isTypeEditable=function(e){return!this.doesFilterHaveHiddenInput(e)&&e&&e!==vn.IN_RANGE&&e!==vn.EMPTY},t}($t),Ko=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$o=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qo=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; overflow: hidden;"></div>\n </div>')||this}return Ko(t,e),t.prototype.getDefaultFilterOptions=function(){return En.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type===vn.IN_RANGE?e.dateFrom+"-"+e.dateTo:null!=e.dateFrom?""+e.dateFrom:""+e.type},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent(),this.eReadOnlyText.setDisabled(!0)},t.prototype.setEditable=function(e){x(this.eDateWrapper,e),x(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var o=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(o),o){if(t){var r=t;this.dateComp.setDate(de(r.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=pe(this.dateComp.getDate());this.params.parentFilterInstance((function(n){n&&n.onFloatingFilterChanged(e.getLastType(),t)}))},t.prototype.createDateComponent=function(){var e=this,t=pn.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:Te(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new an(this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},$o([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),$o([Jt("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),$o([Jt("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(qo),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xo(t,e),t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getValue=function(e){var t=e.getValue();return(t=m(t))&&""===t.trim()&&(t=null),t},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValue1.onValueChange(t),this.eValue2.onValueChange(t)},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.comparator=this.textFilterParams.textCustomComparator||t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter||(1==this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===nn.One?this.eValue1:this.eValue2).setValue(e?e.filter:null)},t.prototype.createCondition=function(e){var n=e===nn.One,o=n?this.getCondition1Type():this.getCondition2Type(),r=n?this.eValue1:this.eValue2,i=this.getValue(r),s={filterType:t.FILTER_TYPE,type:o};return this.doesFilterHaveHiddenInput(o)||(s.filter=i),s},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),[this.eValue1,this.eValue2].forEach((function(e){return e.setValue(null,t)})),this.resetPlaceholder()},t.prototype.resetPlaceholder=function(){var e=this.translate.bind(this)("filterOoo","Filter...");[this.eValue1,this.eValue2].forEach((function(t){return t.setInputPlaceholder(e)}))},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.setValue(e),this.eValue2.setValue(null)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===nn.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-text-field class="ag-filter-filter" ref="eValue'+t+'"></ag-input-text-field>\n </div>'},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());x(this.eValue1.getGui(),t);var n=this.showValueFrom(this.getCondition2Type());x(this.eValue2.getGui(),n)},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),this.eValue1.getInputElement().focus()},t.prototype.isConditionUiComplete=function(e){var t=e===nn.One,n=t?this.getCondition1Type():this.getCondition2Type();return n!==vn.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||null!=this.getValue(t?this.eValue1:this.eValue2))},t.prototype.individualConditionPasses=function(e,t){var n=t.filter,o=t.type,r=this.textFilterParams.valueGetter(e.node),i=this.formatter(r),s=this.optionsFactory.getCustomOption(o);if(s&&(null!=n||s.hideFilterInput))return s.test(n,i);if(null==r)return o===vn.NOT_EQUAL||o===vn.NOT_CONTAINS;var a=this.formatter(n);return this.comparator(o,i,a)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[vn.CONTAINS,vn.NOT_CONTAINS,vn.EQUALS,vn.NOT_EQUAL,vn.STARTS_WITH,vn.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,n,o){switch(e){case t.CONTAINS:return n.indexOf(o)>=0;case t.NOT_CONTAINS:return-1===n.indexOf(o);case t.EQUALS:return n===o;case t.NOT_EQUAL:return n!=o;case t.STARTS_WITH:return 0===n.indexOf(o);case t.ENDS_WITH:var r=n.lastIndexOf(o);return r>=0&&r===n.length-o.length;default:return console.warn("invalid filter type "+e),!1}},Jo([Jt("eValue1")],t.prototype,"eValue1",void 0),Jo([Jt("eValue2")],t.prototype,"eValue2",void 0),t}(vn),er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return er(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){if(!this.isEventFromFloatingFilter(t)){this.setLastTypeFromModel(e);var n=this.getTextFromModel(e);this.eFloatingFilterInput.setValue(n);var o=this.canWeEditAfterModelFromParentFilter(e);this.setEditable(o)}},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=pn.isUseApplyButton(this.params.filterParams);var n=pn.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o=Te(this.syncUpWithParentFilter.bind(this),n),r=this.eFloatingFilterInput.getGui();this.addDestroyableEventListener(r,"input",o),this.addDestroyableEventListener(r,"keypress",o),this.addDestroyableEventListener(r,"keydown",o);var i=t.column.getDefinition();i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0)},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=this.eFloatingFilterInput.getValue(),o=Ge(e,ke.KEY_ENTER);this.applyActive&&!o||this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),n)}))},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},tr([Jt("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),tr([Ze],t.prototype,"postConstruct",null),t}(qo),or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t.prototype.getDefaultFilterOptions=function(){return Fo.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==vn.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(nr),ir=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return Zo.DEFAULT_FILTER_OPTIONS},t}(nr),ar=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
240/**
241 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
242 * @version v23.1.1
243 * @link http://www.ag-grid.com/
244 * @license MIT
245 */!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(ao||(ao={}));var lr,ur=function(){function e(){this.agGridDefaults={agDateInput:Uo,agColumnHeader:Rn,agColumnGroupHeader:Pn,agTextColumnFloatingFilter:sr,agNumberColumnFloatingFilter:rr,agDateColumnFloatingFilter:Qo,agAnimateShowChangeCellRenderer:go,agAnimateSlideCellRenderer:yo,agGroupCellRenderer:po,agGroupRowRenderer:po,agLoadingCellRenderer:Eo,agCellEditor:sn,agTextCellEditor:sn,agSelectCellEditor:Oo,agPopupTextCellEditor:So,agPopupSelectCellEditor:Po,agLargeTextCellEditor:No,agTextColumnFilter:Zo,agNumberColumnFilter:Fo,agDateColumnFilter:En,agLoadingOverlay:ko,agNoRowsOverlay:Wo,agTooltipComponent:Ho},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},e.prototype.registerComponent=function(e,t){var n=this.translateIfDeprecated(e);this.frameworkComponents[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComponents[n]=t},e.prototype.registerFwComponent=function(e,t){var n=this.translateIfDeprecated(e);this.jsComponents[n]?console.error("Trying to register a component that you have already registered for plain javascript: "+n):this.frameworkComponents[n]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:ao.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:ao.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:ao.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-Grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(Ye.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},ar([nt("gridOptions")],e.prototype,"gridOptions",void 0),ar([nt("context")],e.prototype,"context",void 0),ar([Ze],e.prototype,"init",null),e=ar([tt("userComponentRegistry")],e)}(),cr=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 o=0;o<e.childrenAfterGroup.length;o++){var r=e.childrenAfterGroup[o];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[o],t,n):n&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];){var o={rowNode:t,children:null};this.mapToItems[t.id]=o,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var o=e;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),t.forEach((function(e){return n.nodeIdsToColumns[o.id][e.getId()]=!0})),o=o.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,o=0;o<t;o++){var r=this.mapToItems[n.id],i=this.mapToItems[n.parent.id];i.children||(i.children=[]),i.children.push(r),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}(),pr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dr=function(e,t){return function(n,o){t(n,o,e)}},hr=function(){function e(){this.events=[]}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.events.push(this.eventService.addEventListener(Et.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.events.push(this.eventService.addEventListener(Et.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)))},e.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()})),this.events=[]},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return Ye.iterateObject(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},e.prototype.getSelectedRows=function(){var e=[];return Ye.iterateObject(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;Ye.iterateObject(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new cr(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,n={},o=0;return Ye.iterateObject(this.selectedNodes,(function(r,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];o+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),Ye.iterateObject(n,(function(e,t){t.calculateSelectedFromChildren()})),o},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){Ye.exists(t)&&e.id!==t.id&&(Ye.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},e.prototype.syncInNewRowNode=function(e){Ye.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var o=0,r=n.length;o<r;o++){var i=n[o];i.isSelected()?t.push(i):i.group&&i.children&&e(i.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")}else console.warn("getBestCostNodeSelection is only available when using normal row model")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return Ye.iterateObject(this.selectedNodes,(function(t,n){n&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===ke.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 Ye.iterateObject(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==ke.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()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},pr([nt("eventService")],e.prototype,"eventService",void 0),pr([nt("rowModel")],e.prototype,"rowModel",void 0),pr([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),pr([nt("columnApi")],e.prototype,"columnApi",void 0),pr([nt("gridApi")],e.prototype,"gridApi",void 0),pr([dr(0,it("loggerFactory"))],e.prototype,"setBeans",null),pr([Ze],e.prototype,"init",null),pr([et],e.prototype,"destroy",null),e=pr([tt("selectionController")],e)}(),fr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gr=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error("ag-Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n){void 0===n&&(n=!0),this.columnController.setColumnWidths([{key:e,newWidth:t}],!1,n)},e.prototype.setColumnWidths=function(e,t){void 0===t&&(t=!0),this.columnController.setColumnWidths(e,!1,t)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e,t){return this.columnController.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){return this.columnController.autoSizeColumns(e,t,"api")},e.prototype.autoSizeAllColumns=function(e){this.columnController.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},fr([nt("columnController")],e.prototype,"columnController",void 0),e=fr([tt("columnApi")],e)}();
246/**
247 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
248 * @version v23.1.1
249 * @link http://www.ag-grid.com/
250 * @license MIT
251 */(
252/**
253 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
254 * @version v23.1.1
255 * @link http://www.ag-grid.com/
256 * @license MIT
257 */
258lr=t.CellRangeType||(t.CellRangeType={}))[lr.VALUE=0]="VALUE",lr[lr.DIMENSION=1]="DIMENSION";
259/**
260 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
261 * @version v23.1.1
262 * @link http://www.ag-grid.com/
263 * @license MIT
264 */
265var vr,mr,yr,Cr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(vr=t.DragSourceType||(t.DragSourceType={}))[vr.ToolPanel=0]="ToolPanel",vr[vr.HeaderCell=1]="HeaderCell",vr[vr.RowDrag=2]="RowDrag",vr[vr.ChartPanel=3]="ChartPanel",(mr=t.VerticalDirection||(t.VerticalDirection={}))[mr.Up=0]="Up",mr[mr.Down=1]="Down",(yr=t.HorizontalDirection||(t.HorizontalDirection={}))[yr.Left=0]="Left",yr[yr.Right=1]="Right";var wr,Er=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var n;return n=e,e.prototype.init=function(){this.ePinnedIcon=Ye.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Ye.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Ye.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Ye.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Ye.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Ye.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Ye.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Ye.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Ye.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.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)},e.prototype.removeDragSource=function(e){var t=Ye.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),Ye.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},e.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()},e.prototype.onDragging=function(e,t){var n=this.getHorizontalDirection(e),o=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var r=Ye.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(r!==this.lastDropTarget)this.leaveLastTargetIfExists(e,n,o,t),this.enterDragTargetIfExists(r,e,n,o,t),this.lastDropTarget=r;else if(r&&r.onDragging){var i=this.createDropTargetEvent(r,e,n,o,t);r.onDragging(i)}},e.prototype.enterDragTargetIfExists=function(e,t,n,o,r){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,o,r);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,n,o){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,n,o);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],n=e.getSecondaryContainers?e.getSecondaryContainers():null;return n&&(t=t.concat(n)),t},e.prototype.isMouseOnDropTarget=function(e,t){var n=!1;return this.getAllContainersFromDropTarget(t).filter((function(e){return e})).forEach((function(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var r=e.clientX>=o.left&&e.clientX<=o.right,i=e.clientY>=o.top&&e.clientY<=o.bottom;r&&i&&(n=!0)}})),n&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},e.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},e.prototype.findExternalZone=function(e){var t=this.dropTargets.filter((function(e){return e.external}));return Ye.find(t,(function(t){return t.getContainer()===e.getContainer()}))},e.prototype.getHorizontalDirection=function(e){var n=this.eventLastTime.clientX,o=e.clientX;return n===o?null:n>o?t.HorizontalDirection.Left:t.HorizontalDirection.Right},e.prototype.getVerticalDirection=function(e){var n=this.eventLastTime.clientY,o=e.clientY;return n===o?null:n>o?t.VerticalDirection.Up:t.VerticalDirection.Down},e.prototype.createDropTargetEvent=function(e,t,n,o,r){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this.gridApi,l=this.columnApi,u=this.dragItem,c=this.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:o,hDirection:n,dragSource:c,fromNudge:r,dragItem:u,api:a,columnApi:l,dropZoneTarget:i}},e.prototype.positionGhost=function(e){var t=this.eGhost,n=t.getBoundingClientRect().height,o=Ye.getBodyWidth()-2,r=Ye.getBodyHeight()-2,i=e.pageY-n/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=window.pageYOffset||a.documentElement.scrollTop,u=window.pageXOffset||a.documentElement.scrollLeft;o>0&&s+t.clientWidth>o+u&&(s=o+u-t.clientWidth),s<0&&(s=0),r>0&&i+t.clientHeight>r+l&&(i=r+l-t.clientHeight),i<0&&(i=0),t.style.left=s+"px",t.style.top=i+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=Ye.loadTemplate(n.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&Ye.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),o=this.dragSource.dragItemName;Ye.isFunction(o)&&(o=o()),t.innerHTML=Ye.escape(o),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument();this.eGhostParent=r.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,t){var o;switch(void 0===t&&(t=!1),Ye.clearElement(this.eGhostIcon),e||(e=this.dragSource.defaultIconName||n.ICON_NOT_ALLOWED),e){case n.ICON_PINNED:o=this.ePinnedIcon;break;case n.ICON_MOVE:o=this.eMoveIcon;break;case n.ICON_LEFT:o=this.eLeftIcon;break;case n.ICON_RIGHT:o=this.eRightIcon;break;case n.ICON_GROUP:o=this.eGroupIcon;break;case n.ICON_AGGREGATE:o=this.eAggregateIcon;break;case n.ICON_PIVOT:o=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:o=this.eDropNotAllowedIcon;break;case n.ICON_HIDE:o=this.eHideIcon}Ye.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",t),o===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||o&&this.eGhostIcon.appendChild(o)},e.ICON_PINNED="pinned",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.ICON_HIDE="hide",e.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>',Cr([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Cr([nt("dragService")],e.prototype,"dragService",void 0),Cr([nt("environment")],e.prototype,"environment",void 0),Cr([nt("columnApi")],e.prototype,"columnApi",void 0),Cr([nt("gridApi")],e.prototype,"gridApi",void 0),Cr([Ze],e.prototype,"init",null),Cr([et],e.prototype,"destroy",null),e=n=Cr([tt("dragAndDropService")],e)}(),br=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_r=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Or=function(e){function n(t,n,o,r){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" role="presentation"></div>')||this;return i.rowNode=t,i.column=n,i.cellValue=o,i.beans=r,i}return br(n,e),n.prototype.postConstruct=function(){this.getGui().appendChild(Ye.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new Tr(this,this.beans,this.rowNode,this.column):new Sr(this,this.beans,this.rowNode,this.column);this.addFeature(e,this.beans.context)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isEnableMultiRowDragging())return 1;var e=this.beans.selectionController.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&&Ye.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(){var e=this,n={rowNode:this.rowNode,columns:[this.column],defaultTextValue:this.cellValue},o=this.column.getColDef().rowDragText,r={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var t=e.getSelectedCount();return o?o(n,t):1===t?e.cellValue:t+" rows"},getDragItem:function(){return n},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(r)}))},_r([Ze],n.prototype,"postConstruct",null),n}($t),Rr=function(e){function t(t,n,o){var r=e.call(this)||this;return r.parent=t,r.column=o,r.rowNode=n,r}return br(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);Ye.isFunction(this.column.getColDef().rowDrag)?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(Ut),Sr=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return br(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},_r([Ze],t.prototype,"postConstruct",null),t}(Rr),Tr=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return br(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridPanel.getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)},_r([Ze],t.prototype,"postConstruct",null),t}(Rr),Pr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ar=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.getGuiCalledOnChild=!1,n.cellEditor=t,n}return Pr(t,e),t.prototype.onKeyDown=function(e){Ye.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(n){var o=this;this.params=n,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){o.cellEditor.destroy&&o.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.getPopupPosition=function(){if(this.cellEditor.getPopupPosition)return this.cellEditor.getPopupPosition()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",Dr([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Xt),Nr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ir=function(e){function t(t,n,o,r,i){var s=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return s.rowNode=t,s.column=n,s.cellValue=o,s.beans=r,s.eCell=i,s}return Nr(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Ye.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag,o=Ye.isBrowserIE();o||e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e}):function(){try{var n=JSON.stringify(t.rowNode.data);o?e.dataTransfer.setData("text",n):(e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n))}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},xr([Ze],t.prototype,"postConstruct",null),t}($t),Fr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
266/**
267 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
268 * @version v23.1.1
269 * @link http://www.ag-grid.com/
270 * @license MIT
271 */!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(wr||(wr={}));var Lr,kr=function(e){function t(t,n){var o=e.call(this)||this;return o.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=wr.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=t,o.location=n,o}return Fr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addDestroyableEventListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addDestroyableEventListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onMouseMove.bind(this)),this.addDestroyableEventListener(e,"mousedown",this.onMouseDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=wr.WAITING_TO_SHOW},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===wr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=wr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===wr.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=wr.NOTHING},t.prototype.destroyTooltipComp=function(){Ye.addCssClass(this.tooltipComp.getGui(),"ag-tooltip-hiding");var e=this.tooltipPopupDestroyFunc,t=this.tooltipComp;window.setTimeout((function(){e(),t.destroy&&t.destroy()}),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=this.parentComp.getTooltipText();if(e){this.state=wr.SHOWING,this.tooltipInstanceCount++;var t={location:this.location,api:this.gridApi,columnApi:this.columnApi,colDef:this.parentComp.getComponentHolder(),column:this.parentComp.getColumn,context:this.gridOptionsWrapper.getContext(),rowIndex:this.parentComp.getCellPosition&&this.parentComp.getCellPosition().rowIndex,value:e},n=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.newTooltipComponent(t).then(n)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==wr.SHOWING||this.tooltipInstanceCount!==e)t.destroy&&t.destroy();else{var n=t.getGui();this.tooltipComp=t,Ye.containsClass(n,"ag-tooltip")||Ye.addCssClass(n,"ag-tooltip-custom"),this.tooltipPopupDestroyFunc=this.popupService.addPopup(!1,n,!1),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}},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)},Mr([nt("popupService")],t.prototype,"popupService",void 0),Mr([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Mr([nt("columnApi")],t.prototype,"columnApi",void 0),Mr([nt("gridApi")],t.prototype,"gridApi",void 0),Mr([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Mr([Ze],t.prototype,"postConstruct",null),t}(Ut),Gr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vr=function(){return(Vr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Wr=function(e){function n(t,n,o,r,i,s,a){var l=e.call(this)||this;if(l.hasChartRange=!1,l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=n,l.column=o,l.rowNode=r,l.rowComp=i,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=l.beans.rangeController&&n.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusController.isCellFocused(l.cellPosition),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled&&l.beans.rangeController){var u=l.beans.rangeController;l.rangeCount=u.getCellRangeCount(l.cellPosition),l.hasChartRange=l.getHasChartRange()}return l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return Gr(n,e),n.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],n=this.column,o=this.getCellWidth(),r=this.modifyLeftForPrintLayout(this.getCellLeft()),i=this.getInitialValueToRender(),s=Ye.get(this.column,"colDef.template",null)?i:Ye.escape(i);this.tooltip=this.getToolTip();var a=Ye.escape(this.tooltip),l=Ye.escape(n.getId()),u="",c="",p=this.preProcessStylesFromColDef(),d=this.getInitialCssClasses(),h=this.getStylesForRowSpanning(),f=Ye.escape(this.getAriaColumnIndex());return this.usingWrapper&&(u='<div ref="eCellWrapper" class="ag-cell-wrapper" role="presentation">\n <span ref="eCellValue" role="gridcell" aria-colindex="'+f+'" class="ag-cell-value" '+e+">",c="</span></div>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="'+(this.usingWrapper?"presentation":"gridcell")+'"'),this.usingWrapper||t.push(" aria-colindex="+f),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+Ye.escape(d.join(" "))+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&Ye.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+Number(o)+"px; left: "+Number(r)+"px; "+Ye.escape(p)+" "+Ye.escape(h)+'" >'),t.push(u),Ye.exists(s,!0)&&t.push(s),t.push(c),t.push("</div>"),t.join("")},n.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},n.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.refreshHandle(),Ye.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.addFeature(new kr(this,"cell"),this.beans.context)},n.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);Ye.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},n.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Ye.last(this.colsSpanning):this.column).getLeft()},n.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},n.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},n.prototype.setupColSpan=function(){Ye.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},n.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(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnController.getDisplayedColAfter(n))&&!Ye.missing(n))&&o===n.getPinned();r++);return t},n.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();Ye.areEqual(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},n.prototype.getAriaColumnIndex=function(){return(this.beans.columnController.getAllDisplayedColumns().indexOf(this.column)+1).toString()},n.prototype.refreshAriaIndex=function(){var e=this.getAriaColumnIndex();(this.usingWrapper?this.eCellValue:this.getGui()).setAttribute("aria-colindex",e)},n.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-auto-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),Ye.pushAll(e,this.preProcessClassesFromColDef()),Ye.pushAll(e,this.preProcessCellClassRules()),Ye.pushAll(e,this.getInitialRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},n.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},n.prototype.getRenderedRow=function(){return this.rowComp},n.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},n.prototype.getCellRenderer=function(){return this.cellRenderer},n.prototype.getCellEditor=function(){return this.cellEditor},n.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editingCell){var t=this.getComponentHolder(),n=e&&e.newData,o=e&&e.suppressFlash||t.suppressCellFlash,r=e&&e.forceRefresh,i=this.value;this.value=this.getValue();var s=!this.valuesAreEqual(i,this.value);if(r||s){this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value),!n&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!o&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},n.prototype.flashCell=function(){this.animateCell("data-changed")},n.prototype.animateCell=function(e){var t="ag-cell-"+e,n="ag-cell-"+e+"-animation",o=this.getGui();Ye.addCssClass(o,t),Ye.removeCssClass(o,n),window.setTimeout((function(){Ye.removeCssClass(o,t),Ye.addCssClass(o,n),window.setTimeout((function(){Ye.removeCssClass(o,n)}),1e3)}),500)},n.prototype.replaceContentsAfterRefresh=function(){Ye.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},n.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=Vr({},this.rowNode.data),this.angular1Compile())},n.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){return t.remove()}))}}},n.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&Ye.addStylesToElement(this.getGui(),e)},n.prototype.preProcessStylesFromColDef=function(){return Ye.cssStyleObjectToMarkup(this.processStylesFromColDef())},n.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var n={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;return t}},n.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return Ye.addCssClass(e.getGui(),t)}))},n.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},n.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},n.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.chooseCellRenderer(),this.usingCellRenderer)this.createCellRendererInstance();else{var n=this.getValueToUse();null!=n&&(this.eParentOfValue.innerHTML=Ye.escape(n))}},n.prototype.attemptCellRendererRefresh=function(){if(Ye.missing(this.cellRenderer)||!this.cellRenderer||Ye.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),n=this.cellRenderer.refresh(t);return!0===n||void 0===n},n.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){var t=Ye.exists(e);if(!t||this.tooltip!==e.toString()){Ye.exists(this.tooltip);this.tooltip=e,this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&(t?this.eParentOfValue.setAttribute("title",this.tooltip):this.eParentOfValue.removeAttribute("title"))}}},n.prototype.valuesAreEqual=function(e,t){var n=this.getComponentHolder(),o=n?n.equals:null;return o?o(e,t):e===t},n.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&Ye.exists(t))return Ye.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var n=e.tooltipValueGetter||e.tooltip;return n?n({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data}):null},n.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?Ye.escape(this.tooltip):this.tooltip},n.prototype.processCellClassRules=function(e,t){var n=this.getComponentHolder();this.beans.stylingService.processClassRules(n.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:n,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},n.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){return Ye.addCssClass(e.getGui(),t)}),(function(t){return Ye.removeCssClass(e.getGui(),t)}))},n.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){return e.push(t)}),(function(e){})),e},n.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,this.includeRowDraggingComponent=!1,void(this.includeDndSourceComponent=!1);var t="function"==typeof e.checkboxSelection,n="function"==typeof e.rowDrag,o="function"==typeof e.dndSource;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=n||!0===e.rowDrag,this.includeDndSourceComponent=o||!0===e.dndSource;var r=this.beans.gridOptionsWrapper.isEnableCellTextSelection();this.usingWrapper=r||this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},n.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var t=this.createCellRendererParams(),o=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",t);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",t)&&this.rowNode.rowPinned?(this.cellRendererType=n.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):o?(this.cellRendererType=n.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},n.prototype.createCellRendererInstance=function(e){var t=this;if(void 0===e&&(e=!1),this.usingCellRenderer){var o=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(o||r||this.autoHeightCell)&&(e=!1);var i=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===n.CELL_RENDERER_TYPE_NORMAL;this.createCellRendererFunc=function(){t.createCellRendererFunc=null;var e=t.beans.userComponentFactory.newCellRenderer(t.getComponentHolder(),i,!a);e&&e.then(s)},e?this.beans.taskQueue.createTask(this.createCellRendererFunc,this.rowNode.rowIndex,"createTasksP2"):this.createCellRendererFunc()}},n.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),Ye.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},n.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.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.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,n){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,n)}}},n.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},n.prototype.getValueToUse=function(){return null!=this.valueFormatted?this.valueFormatted:this.value},n.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},n.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),o=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&n&&!o;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},n.prototype.onMouseEvent=function(e,t){if(!Ye.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},n.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,Et.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},n.prototype.createEvent=function(e,t){var n={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(n.$scope=this.scope),n},n.prototype.onMouseOut=function(e){var t=this.createEvent(e,Et.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},n.prototype.onMouseOver=function(e){var t=this.createEvent(e,Et.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},n.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,Et.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.startRowOrCellEdit()},n.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},n.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},n.prototype.startEditingIfEnabled=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var o=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(e,t,n);this.createCellEditor(r).then(o),Ye.missing(this.cellEditor)&&n&&this.focusCell(!0)}},n.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(n){if(!(n.isPopup&&n.isPopup()))return n;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var o=new Ar(n);return t.beans.context.wireBean(o),o.init(e),o}))},n.prototype.afterCellEditorCreated=function(e,t){if(!(e!==this.cellEditorVersion)&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var n=this.createEvent(null,Et.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(n)}else t.destroy&&t.destroy()},n.prototype.addInCellEditor=function(){Ye.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},n.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null,n=this.beans.gridOptionsWrapper.isStopEditingWhenGridLosesFocus();this.hideEditorPopup=this.beans.popupService.addPopup(n,t,!0,(function(){e.onPopupEditorClosed()}));var o={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0};"under"===(this.cellEditor&&this.cellEditor.getPopupPosition?this.cellEditor.getPopupPosition():"over")?this.beans.popupService.positionPopupUnderComponent(o):this.beans.popupService.positionPopupOverComponent(o),this.angular1Compile()},n.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusController.isCellFocused(this.cellPosition)&&this.focusCell(!0))},n.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;Ye.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),Ye.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),Ye.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),Ye.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),Ye.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)}},n.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},n.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},n.prototype.parseValue=function(e){var t=this.getComponentHolder(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return Ye.exists(o)?this.beans.expressionService.evaluate(o,n):e},n.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,e)},n.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},n.prototype.isEditing=function(){return this.editingCell},n.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case ke.KEY_ENTER:this.onEnterKeyDown();break;case ke.KEY_F2:this.onF2KeyDown();break;case ke.KEY_ESCAPE:this.onEscapeKeyDown();break;case ke.KEY_TAB:this.onTabKeyDown(e);break;case ke.KEY_BACKSPACE:case ke.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case ke.KEY_DOWN:case ke.KEY_UP:case ke.KEY_RIGHT:case ke.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},n.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},n.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.cellPosition,!0),e.preventDefault())},n.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController){var t=this.beans.rangeController.extendLatestRangeInDirection(e);t&&this.beans.rowRenderer.ensureCellVisible(t)}},n.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},n.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},n.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,ke.KEY_DOWN,this.cellPosition,!1):this.startRowOrCellEdit(ke.KEY_ENTER)},n.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,ke.KEY_DOWN,this.cellPosition,!1)},n.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(ke.KEY_F2)},n.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},n.prototype.onKeyPress=function(e){if(!(Ye.getTarget(e)!==this.getGui())&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):Ye.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},n.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.editingCell&&t.isRowSelection()){var n=!this.rowNode.isSelected();(n||t.isRowDeselection())&&this.rowNode.setSelected(n)}e.preventDefault()},n.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,o=e.shiftKey,r=e.target,i=this.beans,s=i.eventService,a=i.rangeController;if(!this.isRightClickInExistingRange(e)){if(!o||a&&!a.getCellRanges().length){var l=(Ye.isBrowserIE()||Ye.isBrowserEdge())&&r.classList.contains("ag-cell");this.focusCell(l)}else e.preventDefault();if(!this.containsWidget(r)){if(a){var u=this.cellPosition;if(o)a.extendLatestRangeToCell(u);else{var c=t||n;a.setRangeToCell(u,c)}}s.dispatchEvent(this.createEvent(e,Et.EVENT_CELL_MOUSE_DOWN))}}},n.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeController;if(t&&(t.isCellInAnyRange(this.getCellPosition())&&2===e.button))return!0;return!1},n.prototype.containsWidget=function(e){return Ye.isElementChildOfClass(e,"ag-selection-checkbox",3)},n.prototype.isDoubleClickOnIPad=function(){if(!Ye.isIOSUserAgent()||Ye.isEventSupported("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},n.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,o=t.gridOptionsWrapper,r=this.createEvent(e,Et.EVENT_CELL_CLICKED);n.dispatchEvent(r);var i=this.getComponentHolder();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(o.isSingleClickEdit()||i.singleClickEdit)&&!o.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},n.prototype.getCellPosition=function(){return this.cellPosition},n.prototype.getParentRow=function(){return this.eParentRow},n.prototype.setParentRow=function(e){this.eParentRow=e},n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},n.prototype.destroy=function(){this.createCellRendererFunc&&this.beans.taskQueue.cancelTask(this.createCellRendererFunc),this.stopEditing(),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null),this.selectionHandle&&this.selectionHandle.destroy(),e.prototype.destroy.call(this)},n.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px",this.refreshAriaIndex()},n.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout&&this.column.getPinned()!==ke.PINNED_LEFT?this.column.getPinned()===ke.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},n.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},n.prototype.getRangeBorders=function(){var e,t,n=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,s=!1,a=!1,l=this.cellPosition.column,u=this.beans,c=u.rangeController,p=u.columnController;o?(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.cellPosition,e)}));e||(a=!0),t||(i=!0);for(var h=0;h<d.length&&!(r&&i&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),v=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellPosition)&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(v,this.cellPosition)&&(s=!0),!a&&f.columns.indexOf(e)<0&&(a=!0),!i&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:s,left:a}},n.prototype.getInitialRangeClasses=function(){var e=[];if(!this.rangeSelectionEnabled||!this.rangeCount)return e;e.push("ag-cell-range-selected"),this.hasChartRange&&e.push("ag-cell-range-chart");var t=Math.min(this.rangeCount,4);if(e.push("ag-cell-range-selected-"+t),this.isSingleCell()&&e.push("ag-cell-range-single-cell"),this.rangeCount>0){var n=this.getRangeBorders();n.top&&e.push("ag-cell-range-top"),n.right&&e.push("ag-cell-range-right"),n.bottom&&e.push("ag-cell-range-bottom"),n.left&&e.push("ag-cell-range-left")}return this.selectionHandle&&e.push("ag-cell-range-handle"),e},n.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){var e=this.beans.rangeController;if(e){var t=this.cellPosition,n=this.rangeCount,o=e.getCellRangeCount(t),r=this.getGui();n!==o&&(Ye.addOrRemoveCssClass(r,"ag-cell-range-selected",0!==o),Ye.addOrRemoveCssClass(r,"ag-cell-range-selected-1",1===o),Ye.addOrRemoveCssClass(r,"ag-cell-range-selected-2",2===o),Ye.addOrRemoveCssClass(r,"ag-cell-range-selected-3",3===o),Ye.addOrRemoveCssClass(r,"ag-cell-range-selected-4",o>=4),this.rangeCount=o);var i=this.getHasChartRange();i!==this.hasChartRange&&(this.hasChartRange=i,Ye.addOrRemoveCssClass(r,"ag-cell-range-chart",this.hasChartRange)),this.updateRangeBorders(),Ye.addOrRemoveCssClass(r,"ag-cell-range-single-cell",this.isSingleCell()),this.refreshHandle()}},n.prototype.getHasChartRange=function(){var e=this.beans.rangeController;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return Ye.includes([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},n.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=e.rangeController,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var s=Ye.last(r),a=this.getCellPosition(),l=1===i&&(n.isEnableFillHandle()||n.isEnableRangeHandle())&&!this.editingCell;if(this.hasChartRange){var u=r[0].type===t.CellRangeType.DIMENSION&&o.isCellInSpecificRange(a,r[0]);Ye.addOrRemoveCssClass(this.getGui(),"ag-cell-range-chart-category",u),l=s.type===t.CellRangeType.VALUE}return l&&null!=s.endRow&&o.isContiguousRange(s)&&o.isBottomRightCell(s,a)},n.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,n=e.context,o=e.rangeController,r=Ye.last(o.getCellRanges()).type,i=t.isEnableFillHandle()&&Ye.missing(r)?"fill":"range";this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle.destroy(),this.selectionHandle=void 0),this.selectionHandle||(this.selectionHandle=n.createComponentFromElement(document.createElement("ag-"+i+"-handle"))),this.selectionHandle.refresh(this)},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.refreshHandle=function(){if(this.beans.rangeController){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle.destroy(),this.selectionHandle=null),e&&this.addSelectionHandle(),Ye.addOrRemoveCssClass(this.getGui(),"ag-cell-range-handle",!!this.selectionHandle)}},n.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,o=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left,s=this.getGui();Ye.addOrRemoveCssClass(s,"ag-cell-range-top",n),Ye.addOrRemoveCssClass(s,"ag-cell-range-right",o),Ye.addOrRemoveCssClass(s,"ag-cell-range-bottom",r),Ye.addOrRemoveCssClass(s,"ag-cell-range-left",i)},n.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,Ye.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},n.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,Ye.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},n.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.eCellValue=this.getRefElement("eCellValue"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.addRowDragging=function(){var e=this.beans.gridOptionsWrapper.isPagination(),t=this.beans.gridOptionsWrapper.isRowDragManaged(),n=this.beans.gridOptionsWrapper.isRowModelDefault();if(t){if(!n)return void Ye.doOnce((function(){return console.warn("ag-Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(e)return void Ye.doOnce((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var o=new Or(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(o,this.beans.context),this.eCellWrapper.insertBefore(o.getGui(),this.eParentOfValue)},n.prototype.addDndSource=function(){var e=new Ir(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.addFeature(e,this.beans.context),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addSelectionCheckbox=function(){var e=new zn;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,null)}))},n.prototype.isSingleCell=function(){var e=this.beans.rangeController;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},n.prototype.onCellFocused=function(e){var t=this.beans.focusController.isCellFocused(this.cellPosition);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&Ye.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t);if(t&&e&&e.forceBrowserFocus){var n=this.getFocusableElement();n.focus(),document.activeElement&&document.activeElement!==document.body||n.focus()}var o=this.beans.gridOptionsWrapper.isFullRowEdit();t||o||!this.editingCell||this.stopRowOrCellEdit()},n.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,n=!1,o=this.getValue();if(!e)this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),n=!0);if(this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(Ye.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var r=this.cellRendererGui;r&&this.getGui().appendChild(r)}this.setInlineEditingClass(),n&&t!==o&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var i=this.createEvent(null,Et.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)}else this.editingCell=!1},n.DOM_DATA_KEY_CELL_COMP="cellComp",n.CELL_RENDERER_TYPE_NORMAL="cellRenderer",n.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",n}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hr=function(){return(Hr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Br=function(e){function n(t,n,o,r,i,s,a,l,u,c,p){var d=e.call(this)||this;return d.eAllRowContainers=[],d.active=!0,d.rowContainerReadyCount=0,d.refreshNeeded=!1,d.columnRefreshPending=!1,d.cellComps={},d.createSecondPassFuncs=[],d.removeFirstPassFuncs=[],d.removeSecondPassFuncs=[],d.initialised=!1,d.elementOrderChanged=!1,d.lastMouseDownOnDragger=!1,d.parentScope=t,d.beans=a,d.bodyContainerComp=n,d.pinnedLeftContainerComp=o,d.pinnedRightContainerComp=r,d.fullWidthContainerComp=i,d.rowNode=s,d.rowIsEven=d.rowNode.rowIndex%2==0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=u,d.printLayout=c,d.embedFullWidth=p,d.setAnimateFlags(l),d}return jr(n,e),n.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEach((function(e){return Ye.removeCssClass(e,"ag-opacity-zero")}))}))},n.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var n=[],o=this.rowNode.rowHeight,r=this.getInitialRowClasses(t).join(" "),i=Ye.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=Ye.escape(a),u=this.getInitialRowTopStyle(),c=this.rowNode.getRowIndexString(),p=this.beans.gridPanel.headerRootComp.getHeaderRowCount();return n.push("<div"),n.push(' role="row"'),n.push(' row-index="'+c+'" aria-rowindex="'+(p+this.rowNode.rowIndex+1)+'"'),n.push(i?' row-id="'+i+'"':""),n.push(a?' row-business-key="'+l+'"':""),n.push(' comp-id="'+this.getCompId()+'"'),n.push(' class="'+r+'"'),n.push(' style="height: '+o+"px; "+u+" "+s+'">'),n.push(e),n.push("</div>"),n.join("")},n.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},n.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},n.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+n+"px; ":"transform: translateY("+n+"px);"},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},n.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},n.prototype.lazyCreateCells=function(e,t){if(this.active){var n=this.createCells(e);t.innerHTML=n.template,this.callAfterRowAttachedOnCells(n.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},n.prototype.createRowContainer=function(e,t,n){var o=this,r=this.useAnimationFrameForCreate,i=r?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(i.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(o.getCompId());o.afterRowAttached(e,s),n(s),r?o.beans.taskQueue.createTask(o.lazyCreateCells.bind(o,t,s),o.rowNode.rowIndex,"createTasksP1"):(o.callAfterRowAttachedOnCells(i.cellComps,s),o.rowContainerReadyCount=3)}))},n.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=Hr({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},n.prototype.setupRowContainers=function(){var e=this.rowNode.isFullWidthCell(),t=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnController.isPivotMode(),r=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowNode.stub?this.createFullWidthRows(n.LOADING_CELL_RENDERER,n.LOADING_CELL_RENDERER_COMP_NAME):t?this.createFullWidthRows(n.DETAIL_CELL_RENDERER,n.DETAIL_CELL_RENDERER_COMP_NAME):e?this.createFullWidthRows(n.FULL_WIDTH_CELL_RENDERER,null):r?this.createFullWidthRows(n.GROUP_ROW_RENDERER,n.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},n.prototype.setupNormalRowContainers=function(){var e,t=this,n=[],o=[];this.printLayout?e=this.beans.columnController.getAllDisplayedColumns():(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return t.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,o,(function(e){return t.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,n,(function(e){return t.ePinnedLeftRow=e}))},n.prototype.createFullWidthRows=function(e,t){var n=this;if(this.fullWidthRow=!0,this.embedFullWidth){if(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,(function(e){n.eFullWidthRowBody=e}),(function(e){n.fullWidthRowComponentBody=e})),this.printLayout)return;this.createFullWidthRowContainer(this.pinnedLeftContainerComp,ke.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){n.eFullWidthRowLeft=e}),(function(e){n.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,ke.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){n.eFullWidthRowRight=e}),(function(e){n.fullWidthRowComponentRight=e}))}else this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){n.eFullWidthRow=e}),(function(e){n.fullWidthRowComponent=e}))},n.prototype.setAnimateFlags=function(e){if(e){var t=Ye.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.fullWidthRow},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n,o){if(!t||!n)return!0;if(!n.refresh)return!1;var r=e.createFullWidthParams(t,o);return n.refresh(r)},n=t(this.eFullWidthRow,this.fullWidthRowComponent,null),o=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),r=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,ke.PINNED_LEFT),i=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,ke.PINNED_RIGHT);return n&&o&&r&&i},n.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,An.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,An.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,Et.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.addListenersForCellComps=function(){var e=this;this.addDestroyableEventListener(this.rowNode,An.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addDestroyableEventListener(this.rowNode,An.EVENT_CELL_CHANGED,(function(t){e.forEachCellComp((function(e){return e.onCellChanged(t)}))}))},n.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},n.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.eAllRowContainers.forEach((function(t){Ye.removeCssClass(t,"ag-row-highlight-above"),Ye.removeCssClass(t,"ag-row-highlight-below"),e&&Ye.addCssClass(t,"ag-row-highlight-"+e)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},n.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},n.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponent),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponentBody),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,ke.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,ke.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},n.prototype.getContainerForCell=function(e){switch(e){case ke.PINNED_LEFT:return this.ePinnedLeftRow;case ke.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},n.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},n.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.createTask(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex,"createTasksP1")}else this.refreshNeeded=!0},n.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,n;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],n=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,n),this.elementOrderChanged=!1;var o=Object.keys(this.cellComps);e.forEach((function(e){return Ye.removeFromArray(o,e.getId())})),t.forEach((function(e){return Ye.removeFromArray(o,e.getId())})),n.forEach((function(e){return Ye.removeFromArray(o,e.getId())}));var r=o.filter(this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(r)}},n.prototype.onColumnMoved=function(){this.elementOrderChanged=!0},n.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var n=t.cellComps[e];Ye.missing(n)||(n.detach(),n.destroy(),t.cellComps[e]=null)}))},n.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),n=this.cellComps[e];if(!n||this.isCellInWrongRow(n))return!0;var o=n.isEditing(),r=this.beans.focusController.isCellFocused(n.getCellPosition());if(o||r){var i=n.getColumn();return!(t.indexOf(i)>=0)}return!0},n.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),n=e.getColumn().getPinned(),o=this.getContainerForCell(n),r=e.getParentRow();r!==o&&(r&&r.removeChild(t),o.appendChild(t),e.setParentRow(o),this.elementOrderChanged=!0)}},n.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),n=this.getContainerForCell(t.getPinned());return e.getParentRow()!==n},n.prototype.insertCellsIntoContainer=function(e,t){var n=this;if(e){var o=[],r=[];if(t.forEach((function(t){var i=t.getId(),s=n.cellComps[i];s?n.ensureCellInCorrectContainer(s):n.createNewCell(t,e,o,r)})),o.length>0&&(Ye.appendHtml(e,o.join("")),this.callAfterRowAttachedOnCells(r,e)),this.elementOrderChanged&&this.beans.gridOptionsWrapper.isEnsureDomOrder()){var i=t.map((function(e){return n.getCellForCol(e)}));Ye.setDomChildOrder(e,i)}}},n.prototype.addDomData=function(e){var t=this.beans.gridOptionsWrapper;t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,null)}))},n.prototype.createNewCell=function(e,t,n,o){var r=new Wr(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),i=r.getCreateTemplate();n.push(i),o.push(r),this.cellComps[e.getId()]=r,r.setParentRow(t),this.elementOrderChanged=!0},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"mousedown":this.onRowMouseDown(t)}},n.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!Ye.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(Et.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){this.lastMouseDownOnDragger=Ye.isElementChildOfClass(e.target,"ag-row-drag",3)},n.prototype.onRowClick=function(e){if(!(Ye.isStopPropagationForAgGrid(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Et.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!r&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:o})}}}},n.prototype.createFullWidthRowContainer=function(e,n,o,r,i,s,a){var l=this,u=this.createTemplate("",o);e.appendRowTemplate(u,(function(){var o=e.getRowElement(l.getCompId()),u=l.createFullWidthParams(o,n),c=function(e){if(l.isAlive()){var t=e.getGui();o.appendChild(t),a(e)}else e.destroy&&e.destroy()},p=l.beans.detailRowCompCache.get(l.rowNode,n);if(p)c(p);else{var d=l.beans.userComponentFactory.newFullWidthCellRenderer(u,r,i);if(!d){var h=pt.isRegistered(t.ModuleNames.MasterDetailModule);return void("agDetailCellRenderer"!==i||h?console.error("ag-Grid: fullWidthCellRenderer "+i+" not found"):console.warn("ag-Grid: cell renderer agDetailCellRenderer (for master detail) not found. Did you forget to include the master detail module?"))}d.then(c)}l.afterRowAttached(e,o),s(o),l.angular1Compile(o)}))},n.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},n.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},n.prototype.getInitialRowClasses=function(e){var t=[],n=this.beans.gridOptionsWrapper.isTreeData(),o=this.rowNode;return Ye.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),o.isRowPinned()&&t.push("ag-row-pinned"),o.isSelected()&&t.push("ag-row-selected"),o.group?(t.push("ag-row-group"),t.push("ag-row-level-"+o.level),o.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(o.parent?o.parent.level+1:"0")),o.stub&&t.push("ag-row-loading"),this.fullWidthRow&&t.push("ag-full-width-row"),(n?o.allChildrenCount:o.group&&!o.footer)&&t.push(o.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),o.dragging&&t.push("ag-row-dragging"),Ye.pushAll(t,this.processClassesFromGridOptions()),Ye.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return Ye.addOrRemoveCssClass(e,"ag-row-last",t)})))},n.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},n.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(Et.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},n.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(Et.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Et.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),this.editingRow||(this.forEachCellComp((function(o){var r=o===n;r?o.startEditingIfEnabled(e,t,r):o.startEditingIfEnabled(null,null,r)})),this.setEditingRow(!0))},n.prototype.forEachCellComp=function(e){Ye.iterateObject(this.cellComps,(function(t,n){n&&e(n)}))},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return Ye.addCssClass(e,t)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return Ye.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return Ye.removeCssClass(e,t)}))}))},n.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},n=this.beans.gridOptionsWrapper.getRowClass();if(n){if("function"==typeof n)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(n)}var o=this.beans.gridOptionsWrapper.getRowClassFunc();o&&t(o({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()}));return e},n.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return Ye.cssStyleObjectToMarkup(e)},n.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return Ye.addStylesToElement(t,e)}))},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope});return Ye.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.createCells=function(e){var t=this,n=[],o=[];return e.forEach((function(e){var r=new Wr(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),i=r.getCreateTemplate();n.push(i),o.push(r),t.cellComps[e.getId()]=r})),{template:n.join(""),cellComps:o}},n.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-row-selected",e)}))},n.prototype.callAfterRowAttachedOnCells=function(e,t){var n=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),n.editingRow&&e.startEditingIfEnabled()}))},n.prototype.afterRowAttached=function(e,t){var n=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(Ye.exists(n.rowNode.rowTop)){var e=n.roundRowTopToBounds(n.rowNode.rowTop);n.setRowTop(e)}else Ye.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.createTask(this.addHoverFunctionality.bind(this,t),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t)},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,An.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||Ye.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,An.EVENT_MOUSE_LEAVE,(function(){Ye.removeCssClass(e,"ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),o)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(Ye.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Et.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+Et.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Et.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Et.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroy=function(t){(void 0===t&&(t=!1),this.active=!1,this.destroyFullWidthComponents(),t)?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var n=this.createRowEvent(Et.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(n),this.beans.eventService.dispatchEvent(n),e.prototype.destroy.call(this)},n.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},n.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&Ye.exists(e)){var t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=n})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+n+")"}))}},n.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getRenderedCellForColumn=function(e){var t=this,n=this.cellComps[e.getColId()];if(n)return n;var o=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return t&&-1!==t.getColSpanningList().indexOf(e)}));return o.length?o[0]:void 0},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes())},n.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),n=this.rowNode.rowIndex%2==0,o=this.rowIsEven!==n,r=this.beans.gridPanel.headerRootComp.getHeaderRowCount();o&&(this.rowIsEven=n),this.eAllRowContainers.forEach((function(i){i.setAttribute("row-index",t),i.setAttribute("aria-rowindex",(r+e.rowNode.rowIndex+1).toString()),o&&(Ye.addOrRemoveCssClass(i,"ag-row-even",n),Ye.addOrRemoveCssClass(i,"ag-row-odd",!n))}))},n.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},n.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},n.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},n.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},n.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},n.DOM_DATA_KEY_RENDERED_ROW="renderedRow",n.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",n.GROUP_ROW_RENDERER="groupRowRenderer",n.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",n.LOADING_CELL_RENDERER="loadingCellRenderer",n.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",n.DETAIL_CELL_RENDERER="detailCellRenderer",n.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",n}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ur=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yr=function(e,t){return function(n,o){t(n,o,e)}},qr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return zr(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.getGridCore=function(){return this.gridCore},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,Et.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.registerCellEventListeners=function(){var e=this;this.addDestroyableEventListener(this.eventService,Et.EVENT_CELL_FOCUSED,(function(t){e.forEachCellComp((function(e){return e.onCellFocused(t)}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_FLASH_CELLS,(function(t){e.forEachCellComp((function(e){return e.onFlashCells(t)}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,(function(){e.forEachCellComp((function(e){return e.onColumnHover()}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.forEachCellComp((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addDestroyableEventListener(this.eventService,Et.EVENT_RANGE_SELECTION_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRangeSelectionChanged()}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_MOVED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_PINNED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_VISIBLE,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addDestroyableEventListener(this.eventService,Et.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnController.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.forEachCellComp((function(e){e.getColumn()===t&&n(e)}))},o=function(){n((function(e){return e.onLeftChanged()}))},r=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(ht.EVENT_LEFT_CHANGED,o),t.addEventListener(ht.EVENT_WIDTH_CHANGED,r),t.addEventListener(ht.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(ht.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(ht.EVENT_LEFT_CHANGED,o),t.removeEventListener(ht.EVENT_WIDTH_CHANGED,r),t.removeEventListener(ht.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(ht.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.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.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){Ye.missing(e)&&(e={type:Et.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function n(n,o){var r=o.getCellForCol(e);r&&t.push(r)}return Ye.iterateObject(this.rowCompsByIndex,n),Ye.iterateObject(this.floatingBottomRowComps,n),Ye.iterateObject(this.floatingTopRowComps,n),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWidth)},t.prototype.refreshFloatingRows=function(e,t,n,o,r,i){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new Br(s.$scope,r,n,o,i,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return Ye.missing(e)||Ye.iterateObject(this.rowCompsByIndex,(function(n,o){var r=o.getRowNode();e.indexOf(r)>=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusController.getFocusCellToUseAfterRefresh();if(Ye.missing(t))return null;var n=document.activeElement,o=this.gridOptionsWrapper.getDomData(n,Wr.DOM_DATA_KEY_CELL_COMP);return Ye.missing(o)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&e.recycleRows,o=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=this.binRowComps(n);this.redraw(r,o),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var n=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(n)}))}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,n){n.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,n){return n.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){Ye.iterateObject(this.rowCompsByIndex,e),Ye.iterateObject(this.floatingTopRowComps,e),Ye.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,n){var o=this.rowCompsByIndex[t];o&&o.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellRenderer();n&&t.push(n)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,n){var o,r,i=this;Ye.exists(e)&&(o={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===ke.PINNED_TOP?o.top[e.id]=!0:e.rowPinned===ke.PINNED_BOTTOM?o.bottom[e.id]=!0:o.normal[e.id]=!0}))),Ye.exists(t)&&(r={},t.forEach((function(e){var t=i.columnController.getGridColumn(e);Ye.exists(t)&&(r[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),i=t.id,s=t.rowPinned;if(Ye.exists(o))if(s===ke.PINNED_BOTTOM){if(!o.bottom[i])return}else if(s===ke.PINNED_TOP){if(!o.top[i])return}else if(!o.normal[i])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();r&&!r[t]||n(e)}))};Ye.iterateObject(this.rowCompsByIndex,(function(e,t){s(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t),e.prototype.destroy.call(this)},t.prototype.binRowComps=function(e){var t,n=this,o={};return e?(t=[],Ye.iterateObject(this.rowCompsByIndex,(function(e,r){var i=r.getRowNode();Ye.exists(i.id)?(o[i.id]=r,delete n.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),o},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCompsByIndex).filter((function(e){return!t[e]}));this.removeRowComps(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=Ye.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow),o=function(e,o){var r=Number(e);(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(o)&&n.push(r)};return Ye.iterateObject(this.rowCompsByIndex,o),Ye.iterateObject(e,o),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw(e);this.removeRowCompsNotToDraw(r),this.printLayout&&(t=!1);var i=[],s=[];r.forEach((function(r){var a=o.createOrUpdateRowComp(r,e,t,n);Ye.exists(a)&&(s.push(a),Ye.pushAll(i,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),Ye.executeNextVMTurn(i),n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask(this.destroyRowComps.bind(this,e,t)):this.destroyRowComps(e,t),this.checkAngularCompile(),this.gridPanel.updateRowCount()},t.prototype.flushContainers=function(e){Ye.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];Ye.iterateObject(this.rowCompsByIndex,(function(t,n){if(n.isFullWidth()){var o=n.getRowNode().rowIndex;e.push(o.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];Ye.iterateObject(this.rowCompsByIndex,(function(t,n){if(n.isFullWidth()&&!n.refreshFullWidth()){var o=n.getRowNode().rowIndex;e.push(o.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,n,o){var r,i=this.rowCompsByIndex[e];if(i||(r=this.paginationProxy.getRow(e),Ye.exists(r)&&Ye.exists(t)&&t[r.id]&&r.alreadyRendered&&(i=t[r.id],t[r.id]=null)),!i){if(r||(r=this.paginationProxy.getRow(e)),!Ye.exists(r))return;i=this.createRowComp(r,n,o)}else i.ensureDomOrder();return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[e]=i,i},t.prototype.destroyRowComps=function(e,t){var n=[];Ye.iterateObject(e,(function(e,o){o&&(o.destroy(t),Ye.pushAll(n,o.getAndClearDelayedDestroyFunctions()))})),Ye.executeInAWhile(n)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.paginationProxy.getPixelOffset(),r=this.maxDivHeightScaler.getOffset(),i=this.gridPanel.getVScrollPosition(),s=i.top,a=i.bottom,l=this.gridOptionsWrapper.getRowBufferInPixels(),u=s+o+r-l,c=a+o+r+l;this.ensureAllRowsInRangeHaveHeightsCalculated(u,c);var p=this.paginationProxy.getRowIndexAtPixel(u),d=this.paginationProxy.getRowIndexAtPixel(c),h=this.paginationProxy.getPageFirstRow(),f=this.paginationProxy.getPageLastRow();p<h&&(p=h),d>f&&(d=f),e=p,t=d}else e=0,t=-1;var g=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,v=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),m=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);g&&!v&&t-e>m&&(t=e+m);var y=e!==this.firstRenderedRow,C=t!==this.lastRenderedRow;if(y||C){this.firstRenderedRow=e,this.lastRenderedRow=t;var w={type:Et.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var E={type:Et.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(E)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusController.isRowNodeFocused(t),o=e.isEditing(),r=t.detail;return!!(n||o||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowComp=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=n&&!o&&!this.printLayout,i=new Br(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,r,this.printLayout,this.embedFullWidthRows);return i.init(),i},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,n,o){for(var r=n,i=!1;!i;){if(this.gridOptionsWrapper.isEnableRtl()?t===ke.KEY_LEFT&&(r=this.getLastCellOfColSpan(r)):t===ke.KEY_RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(t,r),Ye.missing(r))i=!0;else{var s=this.rowPositionUtils.getRowNode(r);if(!s.detail&&!s.isFullWidthCell())if(s.group){var a=this.columnController.isPivotMode();this.gridOptionsWrapper.isGroupUseEntireRow(a)||(i=!0)}else i=!0}}if(o){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(Ye.exists(l)){var u=l({key:t,previousCellPosition:n,nextCellPosition:r||null,event:e});Ye.exists(u)?(u.floating&&(Ye.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),r={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):r=null}}if(r){this.ensureCellVisible(r);var c=this.getComponentForCell(r);c&&(r=c.getCellPosition(),this.ensureCellVisible(r),this.focusController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(r))}},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:Ye.last(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){Ye.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,n){var o=this.getComponentForCell(e);o&&o.startRowOrCellEdit(t,n)},t.prototype.getComponentForCell=function(e){var t;switch(e.rowPinned){case ke.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case ke.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;this.moveToCellAfter(e,n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusController.getFocusedCell();if(Ye.missing(t))return!1;var n=this.getComponentForCell(t);return!Ye.missing(n)&&this.moveToCellAfter(n,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var n=e.getCellPosition();e.stopEditing();var o=this.findNextCellToFocusOn(n,t,!0),r=Ye.exists(o);return r&&(o.startEditingIfEnabled(null,null,!0),o.focusCell(!1)),r},t.prototype.moveToNextEditingRow=function(e,t){var n=e.getCellPosition(),o=this.findNextCellToFocusOn(n,t,!0),r=Ye.exists(o);return r&&this.moveEditToNextCellOrRow(e,o),r},t.prototype.moveToNextCellNotEditing=function(e,t){var n=e.getCellPosition(),o=this.findNextCellToFocusOn(n,t,!1),r=Ye.exists(o);return r&&o.focusCell(!0),r},t.prototype.moveEditToNextCellOrRow=function(e,t){var n=e.getCellPosition(),o=t.getCellPosition();if(n.rowIndex===o.rowIndex&&n.rowPinned===o.rowPinned)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var r=e.getRenderedRow(),i=t.getRenderedRow();e.setFocusOutOnEditor(),r.stopEditing(),i.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var o=e;;){t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if(Ye.exists(r)){var i=r({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});Ye.exists(i)?(i.floating&&(Ye.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),i.rowPinned=i.floating),o={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}):o=null}if(!o)return null;if(n){var s=this.lookupRowNodeForCell(o);if(!o.column.isCellEditable(s))continue}Ye.missing(o.rowPinned)&&this.gridPanel.ensureIndexVisible(o.rowIndex),o.column.isPinned()||this.gridPanel.ensureColumnVisible(o.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(o);if(!Ye.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(o),a}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===ke.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===ke.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},Ur([nt("paginationProxy")],t.prototype,"paginationProxy",void 0),Ur([nt("columnController")],t.prototype,"columnController",void 0),Ur([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ur([nt("$scope")],t.prototype,"$scope",void 0),Ur([nt("eventService")],t.prototype,"eventService",void 0),Ur([nt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ur([nt("rowModel")],t.prototype,"rowModel",void 0),Ur([nt("loggerFactory")],t.prototype,"loggerFactory",void 0),Ur([nt("focusController")],t.prototype,"focusController",void 0),Ur([nt("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Ur([nt("columnApi")],t.prototype,"columnApi",void 0),Ur([nt("gridApi")],t.prototype,"gridApi",void 0),Ur([nt("beans")],t.prototype,"beans",void 0),Ur([nt("maxDivHeightScaler")],t.prototype,"maxDivHeightScaler",void 0),Ur([nt("animationFrameService")],t.prototype,"animationFrameService",void 0),Ur([nt("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Ur([ot("rangeController")],t.prototype,"rangeController",void 0),Ur([Yr(0,it("loggerFactory"))],t.prototype,"agWire",null),t=Ur([tt("rowRenderer")],t)}(Ut),Kr=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,n,o,r){Ye.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,n,o,r)},e.addToolPanelClassesFromColDef=function(e,t,n,o,r){Ye.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o,r)},e.addColumnClassesFromCollDef=function(e,t,n,o,r,i){if(!Ye.missing(e)){var s;if("function"==typeof e)s=e({colDef:t,column:r,columnGroup:i,context:o.getContext(),api:o.getApi()});else s=e;"string"==typeof s?Ye.addCssClass(n,s):Array.isArray(s)&&s.forEach((function(e){Ye.addCssClass(n,e)}))}},e}(),$r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xr=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return $r(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addDestroyableEventListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Qr([nt("columnHoverService")],t.prototype,"columnHoverService",void 0),Qr([Ze],t.prototype,"postConstruct",null),t}(Ut),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zr=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=r,i.beans=o,i.printLayout=o.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,i}return Jr(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Ye.last(this.colsSpanning):this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,ht.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=Ye.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),n=this.getColumnOrGroup().getOldLeft();this.setLeft(n),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===ke.PINNED_LEFT?t:e.getPinned()===ke.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){if(Ye.exists(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ht){var t=this.beans.columnController.getAllDisplayedColumns().indexOf(this.columnOrGroup);this.ariaEl.setAttribute("aria-colindex",(t+1).toString())}else this.ariaEl.removeAttribute("aria-colindex")},t}(Ut),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ti=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ni=function(e){function t(t,n){var o=e.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.cbSelectAll=t,o.column=n;var r=n.getColDef();return o.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,o}return ei(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,jn.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,o=function(o){e.gridOptionsWrapper.isGroupSelectsChildren()&&o.group||(o.isSelected()?t++:o.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(o):this.gridApi.forEachNode(o),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===ke.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},ti([nt("gridApi")],t.prototype,"gridApi",void 0),ti([nt("columnApi")],t.prototype,"columnApi",void 0),ti([nt("eventService")],t.prototype,"eventService",void 0),ti([nt("rowModel")],t.prototype,"rowModel",void 0),ti([nt("selectionController")],t.prototype,"selectionController",void 0),ti([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ti([Ze],t.prototype,"postConstruct",null),t}(Ut),oi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ri=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ii=function(e){function n(t,o,r){var i=e.call(this,n.TEMPLATE)||this;return i.column=t,i.dragSourceDropTarget=o,i.pinned=r,i}return oi(n,e),n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),n=e.sortable,o=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,n,o),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(n),this.addColumnHoverListener(),this.addMouseListeners(),this.addFeature(new Xr([this.column],this.getGui())),this.addDestroyableEventListener(this.column,ht.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(new ni(this.cbSelectAll,this.column));var r=new Zr(this.column,this.getGui(),this.beans);r.init(),this.addDestroyFunc(r.destroy.bind(r)),this.addAttributes(),Kr.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},n.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);Ye.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.addMouseListeners=function(){var e=this.onMouseOverOut.bind(this);this.addGuiEventListener("mouseenter",e),this.addGuiEventListener("mouseleave",e)},n.prototype.onMouseOverOut=function(e){this.headerComp&&this.headerComp.setMouseOverParent&&this.headerComp.setMouseOverParent("mouseenter"===e.type)},n.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();Ye.addCssClass(t,"ag-header-cell-sortable")}},n.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();Ye.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},n.prototype.appendHeaderComp=function(e,t,n){var o=this,r={column:this.column,displayName:e,enableSorting:t,enableMenu:n,showColumnMenu:function(e){o.gridApi.showColumnMenuAfterButtonClick(o.column,e)},progressSort:function(e){o.sortController.progressSort(o.column,!!e,"uiColumnSorted")},setSort:function(e,t){o.sortController.setSortForColumn(o.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},i=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(r).then(i)},n.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e),this.headerComp=t},n.prototype.onColumnMovingChanged=function(){this.column.isMoving()?Ye.addCssClass(this.getGui(),"ag-header-cell-moving"):Ye.removeCssClass(this.getGui(),"ag-header-cell-moving")},n.prototype.setupMove=function(e,n){var o=this,r=this.column.getColDef(),i=this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||r.lockPosition;if((!i||r.enableRowGroup||r.enablePivot)&&e){var s={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:Er.ICON_HIDE,getDragItem:function(){return o.createDragItem()},dragItemName:n,dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return!i&&o.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return!i&&o.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(s,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(s)}))}},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var n=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(n);var o=!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize,r=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();if(o){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")}));var i=new bn(this.eResize);this.addDestroyableEventListener(i,bn.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")})),this.addDestroyFunc(i.destroy.bind(i))}}else Ye.removeFromParent(this.eResize)},n.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),o=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnController.setColumnWidths(o,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&Ye.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,Ye.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.addFeature(new kr(this,"header")))},n.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,ht.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,ht.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,ht.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},n.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==ke.PINNED_LEFT&&(t*=-1):this.pinned===ke.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on"> <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div> <ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',ri([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ri([nt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ri([nt("columnController")],n.prototype,"columnController",void 0),ri([nt("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),ri([nt("menuFactory")],n.prototype,"menuFactory",void 0),ri([nt("gridApi")],n.prototype,"gridApi",void 0),ri([nt("columnApi")],n.prototype,"columnApi",void 0),ri([nt("sortController")],n.prototype,"sortController",void 0),ri([nt("eventService")],n.prototype,"eventService",void 0),ri([nt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ri([nt("columnHoverService")],n.prototype,"columnHoverService",void 0),ri([nt("beans")],n.prototype,"beans",void 0),ri([Jt("eResize")],n.prototype,"eResize",void 0),ri([Jt("cbSelectAll")],n.prototype,"cbSelectAll",void 0),ri([Ze],n.prototype,"init",null),n}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ai=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},li=function(e){function n(t,o,r){var i=e.call(this,n.TEMPLATE)||this;return i.childColumnsDestroyFuncs=[],i.columnGroup=t,i.dragSourceDropTarget=o,i.pinned=r,i}return si(n,e),n.prototype.postConstruct=function(){Kr.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(new Xr(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new Zr(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},n.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,ht.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},n.prototype.getColumn=function(){return this.columnGroup},n.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},n.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.addFeature(new kr(this,"headerGroup")))},n.prototype.onColumnMovingChanged=function(){Ye.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},n.prototype.appendHeaderGroupComp=function(e){var t=this,n={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var o=this.columnGroup,r=o.getLeafColumns();o.getParent()&&o.getParent().getLeafColumns().length===r.length;)o=o.getParent();var i=o.getColGroupDef();i&&(e=i.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(n).then(s)},n.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},n.prototype.addClasses=function(){var e=this.columnGroup.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+e+"-group")},n.prototype.setupMove=function(e,n){var o=this;if(e&&!this.isSuppressMoving()){var r=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),i={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:Er.ICON_HIDE,dragItemName:n,getDragItem:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,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(i,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(i)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),Ye.removeFromArray(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()},n.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,gt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},n.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},n.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(ht.EVENT_WIDTH_CHANGED,t),n.addEventListener(ht.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){n.removeEventListener(ht.EVENT_WIDTH_CHANGED,t),n.removeEventListener(ht.EVENT_VISIBLE_CHANGED,t)}))}))},n.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},n.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},n.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,n,"uiColumnResized")}))}}else Ye.removeFromParent(this.eHeaderCellResize)},n.prototype.onResizeStart=function(e){var t=this,n=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=n.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var o=null;if(e&&(o=this.columnController.getDisplayedGroupAfter(this.columnGroup)),o){var r=o.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;Ye.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizing=function(e,t){var n=[],o=this.normaliseDragChange(t);n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+o}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o}),this.columnController.resizeColumnSets(n,e,"uiColumnDragged"),e&&Ye.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==ke.PINNED_LEFT&&(t*=-1):this.pinned===ke.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-group-cell" role="presentation"> <div ref="agResize" class="ag-header-cell-resize" role="presentation"></div></div>',ai([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ai([nt("columnController")],n.prototype,"columnController",void 0),ai([nt("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),ai([nt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ai([nt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ai([nt("gridApi")],n.prototype,"gridApi",void 0),ai([nt("columnApi")],n.prototype,"columnApi",void 0),ai([nt("beans")],n.prototype,"beans",void 0),ai([Ze],n.prototype,"postConstruct",null),n}($t),ui=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ci=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pi=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 ui(t,e),t.prototype.init=function(e){this.params=e,this.eFloatingFilterText.setDisabled(!0)},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var o=n.getModelAsString(e);t.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")},ci([Jt("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),t}($t),di=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fi=function(e){function n(t){var o=e.call(this,n.TEMPLATE)||this;return o.column=t,o}return di(n,e),n.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(new Xr([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},n.prototype.setupFloatingFilter=function(){var e=this,t=this.column.getColDef();t.filter&&t.floatingFilter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?(e.setupWithFloatingFilter(t),e.setupSyncWithFilter()):e.setupEmpty()})):this.setupEmpty()):this.setupEmpty()},n.prototype.setupLeftPositioning=function(){var e=new Zr(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},n.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){var n=e.getFilterComponent().resolveNow(null,(function(e){return e.getModel()}));e.onParentModelChanged(n,t)};this.addDestroyableEventListener(this.column,ht.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},n.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},n.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){A(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,ht.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var n=e.getGui();A(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),A(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),x(this.eButtonWrapper,!this.suppressFilterButton);var o=Me("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(o),this.eFloatingFilterBody.appendChild(n),e.afterGuiAttached&&e.afterGuiAttached()}else t()},n.prototype.parentFilterInstance=function(e){this.getFilterComponent().then(e)},n.prototype.getFilterComponent=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI")},n.prototype.getFloatingFilterInstance=function(){var e,o=this.column.getColDef();if("string"==typeof o.filter)e=n.filterToFloatingFilterNames[o.filter];else if(o.filterFramework);else if(!0===o.filter){e=pt.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}var r=this.filterManager.createFilterParams(this.column,this.column.getColDef()),i=this.userComponentFactory.createFinalParams(o,"filter",r),s={api:this.gridApi,column:this.column,filterParams:i,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!o.floatingFilterComponentParams&&!!o.floatingFilterComponentParams.suppressFilterButton;var a=this.userComponentFactory.newFloatingFilterComponent(o,s,e);if(!a){var l=this.getFilterComponentPrototype(o);if(l&&l.prototype&&l.prototype.getModelAsString){var u=this.userComponentFactory.createUserComponentFromConcreteClass(pi,s);a=Ke.resolve(u)}}return a},n.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},n.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},n.prototype.setupEmpty=function(){x(this.eButtonWrapper,!1)},n.prototype.currentParentModel=function(){return this.getFilterComponent().resolveNow(null,(function(e){return e.getModel()}))},n.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(n){return n.onParentModelChanged(e,t)}))},n.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},n.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n.TEMPLATE='<div class="ag-header-cell" role="presentation">\n <div ref="eFloatingFilterBody" role="columnheader"></div>\n <div class="ag-floating-filter-button" ref="eButtonWrapper" role="presentation">\n <button type="button" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter"></button>\n </div>\n </div>',hi([nt("columnHoverService")],n.prototype,"columnHoverService",void 0),hi([nt("eventService")],n.prototype,"eventService",void 0),hi([nt("beans")],n.prototype,"beans",void 0),hi([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),hi([nt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),hi([nt("gridApi")],n.prototype,"gridApi",void 0),hi([nt("columnApi")],n.prototype,"columnApi",void 0),hi([nt("filterManager")],n.prototype,"filterManager",void 0),hi([nt("menuFactory")],n.prototype,"menuFactory",void 0),hi([Jt("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),hi([Jt("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),hi([Jt("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),hi([Ze],n.prototype,"postConstruct",null),n}($t),gi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
272/**
273 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
274 * @version v23.1.1
275 * @link http://www.ag-grid.com/
276 * @license MIT
277 */!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(Lr||(Lr={}));var mi,yi=function(e){function t(t,n,o,r){var i=e.call(this,'<div class="ag-header-row" role="row" />')||this;i.headerComps={},i.dept=t,i.type=n,i.pinned=o,i.dropTarget=r;var s=Lr[n].toLowerCase().replace(/_/g,"-");return i.addCssClass("ag-header-row-"+s),h()&&(i.getGui().style.transform="translateZ(0)"),i}return gi(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(n){e(t.headerComps[n])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var n=t.headerComps[e];t.getGui().removeChild(n.getGui()),n.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,n=this.columnController.getHeaderRowCount(),o=[],r=0;this.columnController.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnController.hasFloatingFilters()&&(n++,r=1),e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+r),s=0;s<i;s++)o.push(e);o.push(t);for(s=0;s<r;s++)o.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=o[s];this.getGui().style.top=a+"px",this.getGui().style.height=o[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT?C(this.pinned)?this.columnController.getContainerWidth(ke.PINNED_RIGHT)+this.columnController.getContainerWidth(ke.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDepth=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT){if(C(this.pinned)){var t=[];return[ke.PINNED_LEFT,null,ke.PINNED_RIGHT].forEach((function(n){var o=e.columnController.getVirtualHeaderGroupRow(n,e.type==Lr.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(o)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==Lr.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=Object.keys(this.headerComps),n=[];if(this.getItemsAtDepth().forEach((function(o){if(!o.isEmptyGroup()){var r,i,s=o.getUniqueId(),a=e.getGui();t.indexOf(s)>=0?ee(t,s):(r=e.createHeaderComp(o),e.headerComps[s]=r,i=r.getGui(),a.appendChild(i)),n.push(s)}})),this.removeAndDestroyChildComponents(t),this.gridOptionsWrapper.isEnsureDomOrder()){var o=n.map((function(t){return e.headerComps[t].getGui()}));k(this.getGui(),o)}},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case Lr.COLUMN:t=new ii(e,this.dropTarget,this.pinned);break;case Lr.COLUMN_GROUP:t=new li(e,this.dropTarget,this.pinned);break;case Lr.FLOATING_FILTER:t=new fi(e)}return this.getContext().wireBean(t),t},vi([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),vi([nt("columnController")],t.prototype,"columnController",void 0),vi([nt("eventService")],t.prototype,"eventService",void 0),vi([Ze],t.prototype,"init",null),t}($t),Ci=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wi=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!Ye.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?Er.ICON_PINNED:Er.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,r=n.filter((function(e){return o[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnController.setColumnsVisible(o,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnController.setColumnsPinned(o,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),n=t+this.gridPanel.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()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!Ye.missing(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var r=this.normaliseDirection(e.hDirection),i=e.dragSource.type,s=e.dragSource.getDragItem().columns;s=s.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(i,s,r,o,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),n=Ye.sortNumerically(e.map((function(e){return t.indexOf(e)}))),o=n[0];return Ye.last(n)-o!==n.length-1?null:o},e.prototype.attemptMoveColumns=function(e,n,o,r,i){var s=o===t.HorizontalDirection.Left,a=o===t.HorizontalDirection.Right,l=this.calculateValidMoves(n,a,r),u=this.calculateOldIndex(n);if(0!==l.length){var c=l[0],p=null!==u&&!i;if(e==t.DragSourceType.HeaderCell&&(p=null!==u),p){if(s&&c>=u)return;if(a&&c<=u)return}for(var d=0;d<l.length;d++){var h=l[d];if(this.columnController.doesMovePassRules(n,h))return void this.columnController.moveColumns(n,h,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){if(this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable})))return[];var o,r=this.columnController.getDisplayedColumns(this.pinned),i=this.columnController.getAllGridColumns(),s=r.filter((function(t){return Ye.includes(e,t)})),a=r.filter((function(t){return!Ye.includes(e,t)})),l=i.filter((function(t){return!Ye.includes(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];o=l.indexOf(h)+1}else-1===(o=l.indexOf(a[0]))&&(o=0);var f=[o];if(t)for(var g=o+1,v=i.length-1;g<=v;)f.push(g),g++;else{g=o,v=i.length-1;for(var m=i[g];g<=v&&this.isColumnHidden(r,m);)g++,f.push(g),m=i[g];g=o-1;for(;g>=0;)f.push(g),g--}return f},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(Er.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Er.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Er.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var n=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(n.length>0&&(this.dragAndDropService.setGhostIcon(Er.ICON_PINNED),this.failedMoveAttempts>7)){var o=this.needToMoveLeft?ke.PINNED_LEFT:ke.PINNED_RIGHT;this.setColumnsPinned(n,o,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Ci([nt("loggerFactory")],e.prototype,"loggerFactory",void 0),Ci([nt("columnController")],e.prototype,"columnController",void 0),Ci([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ci([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ci([Ze],e.prototype,"init",null),e}(),Ei=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bi=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;(this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly())||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Er.ICON_PINNED:Er.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},Ei([nt("columnController")],e.prototype,"columnController",void 0),Ei([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),_i=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
278/**
279 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
280 * @version v23.1.1
281 * @link http://www.ag-grid.com/
282 * @license MIT
283 */!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(mi||(mi={}));var Oi,Ri=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case ke.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case ke.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new wi(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new bi(this.pinned);this.context.wireBean(e),this.dropListeners[mi.ColumnMove]=this.moveColumnController,this.dropListeners[mi.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel?mi.Pivot:mi.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},_i([nt("context")],e.prototype,"context",void 0),_i([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),_i([nt("columnController")],e.prototype,"columnController",void 0),_i([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_i([Ze],e.prototype,"init",null),e}(),Si=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ti=function(){function e(e,t,n){this.headerRowComps=[],this.events=[],this.eContainer=e,this.pinned=n,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.events=[this.eventService.addEventListener(Et.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))]},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===ke.PINNED_LEFT,t=this.pinned===ke.PINNED_RIGHT,n=this.columnController,o=this.gridOptionsWrapper.isEnableRtl();if(e||t){var r=n[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(o&&e||!o&&t)&&(r+=this.scrollWidth),G(this.eContainer,r)}},e.prototype.destroy=function(){this.removeHeaderRowComps(),this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.getRowComps=function(){return this.headerRowComps},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,n=new Ri(this.pinned,t);this.context.wireBean(n),n.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){return e.destroy()})),this.headerRowComps.length=0,F(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var n=t!==e-1?Lr.COLUMN_GROUP:Lr.COLUMN,o=new yi(t,n,this.pinned,this.dropTarget);this.context.wireBean(o),this.headerRowComps.push(o),o.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(o.getGui())}if(!this.columnController.isPivotMode()&&this.columnController.hasFloatingFilters()){o=new yi(e,Lr.FLOATING_FILTER,this.pinned,this.dropTarget);this.context.wireBean(o),this.headerRowComps.push(o),o.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(o.getGui())}},Si([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Si([nt("context")],e.prototype,"context",void 0),Si([nt("columnController")],e.prototype,"columnController",void 0),Si([nt("eventService")],e.prototype,"eventService",void 0),Si([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Si([Ze],e.prototype,"init",null),Si([et],e.prototype,"destroy",null),e}(),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Di=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ai=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Pi(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new Ti(this.eHeaderContainer,this.eHeaderViewport,null),n=new Ti(this.ePinnedLeftHeader,null,ke.PINNED_LEFT),o=new Ti(this.ePinnedRightHeader,null,ke.PINNED_RIGHT);this.childContainers=[t,n,o],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){this.childContainers.forEach((function(e){return e.destroy()})),e.prototype.destroy.call(this)},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();A(this.getGui(),"ag-pivot-on",e),A(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+1+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){x(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){x(this.ePinnedRightHeader,e)},t.prototype.getHeaderRowCount=function(){return 0===this.childContainers.length?0:this.childContainers[0].getRowComps().length},t.TEMPLATE='\n <div class="ag-header" role="presentation">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="rowgroup"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',Di([Jt("ePinnedLeftHeader")],t.prototype,"ePinnedLeftHeader",void 0),Di([Jt("ePinnedRightHeader")],t.prototype,"ePinnedRightHeader",void 0),Di([Jt("eHeaderContainer")],t.prototype,"eHeaderContainer",void 0),Di([Jt("eHeaderViewport")],t.prototype,"eHeaderViewport",void 0),Di([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Di([nt("columnController")],t.prototype,"columnController",void 0),Di([nt("eventService")],t.prototype,"eventService",void 0),Di([nt("gridApi")],t.prototype,"gridApi",void 0),Di([nt("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Di([Ze],t.prototype,"postConstruct",null),t}($t),Ni=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xi=function(){function e(){this.allFilters=new Map,this.quickFilter=null,this.quickFilterParts=null,this.processingFilterChange=!1,this.eventListenerDestroyers=[]}var n;return n=e,e.prototype.init=function(){this.eventListenerDestroyers=[this.eventService.addEventListener(Et.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(Et.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this))],this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},e.prototype.setFilterModel=function(e){var t=this,n=[];if(e){var o=Ye.convertToSet(Object.keys(e));this.allFilters.forEach((function(r,i){var s=e[i];t.setModelOnFilterWrapper(r.filterPromise,s),n.push(r.filterPromise),o.delete(i)})),o.forEach((function(o){var r=t.columnController.getPrimaryColumn(o);if(r){var i=t.getOrCreateFilterWrapper(r,"NO_UI");t.setModelOnFilterWrapper(i.filterPromise,e[o]),n.push(i.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+o)}))}else this.allFilters.forEach((function(e){t.setModelOnFilterWrapper(e.filterPromise,null),n.push(e.filterPromise)}));Ke.all(n).then((function(e){return t.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},e.prototype.getFilterModel=function(){var e={};return this.allFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"==typeof o.getModel){var r=o.getModel();Ye.exists(r)&&(e[n]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;this.allFilters.forEach((function(t){e||t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e,t){this.allFilters.forEach((function(n){var o=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(o,e,t)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){var n=e.data,o=!0;return this.allFilters.forEach((function(r){if(o&&null!=r){var i=r.filterPromise.resolveNow(void 0,(function(e){return e}));if(null!=i&&i!==t&&i.isFilterActive()){if(!i.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");o=i.doesFilterPass({node:e,data:n})}}})),o},e.prototype.parseQuickFilter=function(e){return Ye.exists(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-Side Row Model"),null):null},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(e){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged",e),this.checkExternalFilter(),this.allFilters.forEach((function(e){e.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var t={type:Et.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};e&&Ye.mergeDeep(t,e),this.processingFilterChange=!0,this.eventService.dispatchEvent(t),this.processingFilterChange=!1},e.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this,o=this.columnController.getAllColumnsForQuickFilter();return Ye.some(o,(function(o){var r=n.getQuickFilterTextForColumn(o,e);return Ye.exists(r)&&r.indexOf(t)>=0}))},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return Ye.every(this.quickFilterParts,(function(o){return n?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e))&&!(this.advancedFilterPresent&&!this.doesFilterPass(e,t)))},e.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var r={value:n,node:t,data:t.data,column:e,colDef:o,context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(r)}return Ye.exists(n)?n.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var t=this,o=[];ie(this.columnController.getAllColumnsForQuickFilter(),(function(n){var r=t.getQuickFilterTextForColumn(n,e);Ye.exists(r)&&o.push(r)})),e.quickFilterAggregateText=o.join(n.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){this.allFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(n){return t.valueService.getValue(e,n,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(e,t){var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allFilters.set(e.getColId(),n)),n},e.prototype.cachedFilter=function(e){return this.allFilters.get(e.getColId())},e.prototype.createFilterInstance=function(e,n){var o,r=this,i=pt.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",s=Ye.cloneObject(e.getColDef()),a=this.createFilterParams(e,s,n);a.filterChangedCallback=this.onFilterChanged.bind(this),a.filterModifiedCallback=function(){var t={type:Et.EVENT_FILTER_MODIFIED,api:r.gridApi,columnApi:r.columnApi,column:e,filterInstance:o};r.eventService.dispatchEvent(t)};var l=this.userComponentFactory.newFilterComponent(s,a,i,(function(e,t){return Ye.assign(e,{doesRowPassOtherFilter:r.doesRowPassOtherFilters.bind(r,t)})}));return l&&l.then((function(e){return o=e})),l},e.prototype.createFilterParams=function(e,t,n){void 0===n&&(n=null);var o={api:this.gridOptionsWrapper.getApi(),column:e,colDef:t,rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return n&&(o.$scope=n),o},e.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:Ke.resolve(null)};return n.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,n.filterPromise=this.createFilterInstance(e,n.scope),n.filterPromise&&this.putIntoGui(n,t),n},e.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new Ke((function(r){e.filterPromise.then((function(i){var s=i.getGui();if(Ye.missing(s)&&console.warn("getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=Ye.loadTemplate(s)),o.appendChild(s),e.scope){var a=n.$compile(o)(e.scope);e.compiledElement=a,window.setTimeout((function(){return e.scope.$apply()}),0)}r(o),n.eventService.dispatchEvent({type:Et.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;this.allFilters.forEach((function(n){!e.columnController.getPrimaryColumn(n.column)&&(t=!0,e.disposeFilterWrapper(n,"filterDestroyed"))})),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(o){o.setModel(null),o.destroy&&o.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),n.allFilters.delete(e.column.getColId())}))},e.prototype.destroy=function(){var e=this;this.allFilters.forEach((function(t){return e.disposeFilterWrapper(t,"filterDestroyed")})),this.eventListenerDestroyers.length&&(this.eventListenerDestroyers.forEach((function(e){return e()})),this.eventListenerDestroyers.length=0)},e.QUICK_FILTER_SEPARATOR="\n",Ni([nt("$compile")],e.prototype,"$compile",void 0),Ni([nt("$scope")],e.prototype,"$scope",void 0),Ni([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ni([nt("valueService")],e.prototype,"valueService",void 0),Ni([nt("columnController")],e.prototype,"columnController",void 0),Ni([nt("rowModel")],e.prototype,"rowModel",void 0),Ni([nt("eventService")],e.prototype,"eventService",void 0),Ni([nt("columnApi")],e.prototype,"columnApi",void 0),Ni([nt("gridApi")],e.prototype,"gridApi",void 0),Ni([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ni([Ze],e.prototype,"init",null),Ni([et],e.prototype,"destroy",null),e=n=Ni([tt("filterManager")],e)}(),Ii=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fi=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),this.initialised||this.init(),t){var r,i=e.getColDef(),s=i.field,a=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],c=!o&&t.aggData&&void 0!==t.aggData[a];if(n&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&c?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=Ye.getValueUsingField(l,s,e.isFieldContainsDots()):u?r=t.groupData[a]:c?r=t.aggData[a]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(r=Ye.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}return r}},e.prototype.setValue=function(e,t,n,o){var r=this.columnController.getPrimaryColumn(t);if(e&&r){Ye.missing(e.data)&&(e.data={});var i=r.getColDef(),s=i.field,a=i.newValueHandler,l=i.valueSetter;if(Ye.missing(s)&&Ye.missing(a)&&Ye.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,c={node:e,data:e.data,oldValue:this.getValue(r,e),newValue:n,colDef:r.getColDef(),column:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(c.newValue=n,void 0===(u=a&&Ye.exists(a)?a(c):Ye.exists(l)?this.expressionService.evaluate(l,c):this.setValueUsingField(e.data,s,n,r.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(r,e);var p=r.getColDef().onCellValueChanged;"function"==typeof p&&setTimeout((function(){return p(c)}),0);var d={type:Et.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,colDef:c.colDef,columnApi:c.columnApi,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue,source:o};this.eventService.dispatchEvent(d)}}}},e.prototype.setValueUsingField=function(e,t,n,o){if(!t)return!1;if(o)for(var r=t.split("."),i=e;r.length>0&&i;){var s=r.shift();0===r.length?i[s]=n:i=i[s]}else e[t]=n;return!0},e.prototype.executeFilterValueGetter=function(e,t,n,o){var r={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)};return this.expressionService.evaluate(e,r)},e.prototype.executeValueGetter=function(e,t,n,o){var r=n.getId(),i=this.valueCache.getValue(o,r);if(void 0!==i)return i;var s={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(o,r,a),a},e.prototype.getValueCallback=function(e,t){var n=this.columnController.getPrimaryColumn(t);return n?this.getValue(n,e):null},e.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),o=e.getColDef().keyCreator,r=o?o({value:n}):n;return"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&Ye.doOnce((function(){console.warn("ag-Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se ag-Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r},Ii([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ii([nt("expressionService")],e.prototype,"expressionService",void 0),Ii([nt("columnController")],e.prototype,"columnController",void 0),Ii([nt("eventService")],e.prototype,"eventService",void 0),Ii([nt("valueCache")],e.prototype,"valueCache",void 0),Ii([Ze],e.prototype,"init",null),e=Ii([tt("valueService")],e)}(),Mi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Li=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(Vt.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");Ye.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=Ye.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(Ye.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),Ye.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},Mi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Mi([Ze],e.prototype,"postConstruct",null),e}(),ki=function(){return(ki=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Gi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vi=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},Wi=function(){function e(e,t){this.isMultiRowDrag=!1,this.events=[],this.isGridSorted=!1,this.isGridFiltered=!1,this.isRowGroupActive=!1,this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.events.push(this.eventService.addEventListener(Et.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this))),this.onSortChanged(),this.onFilterChanged(),this.onRowGroupChanged()},e.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()}))},e.prototype.onSortChanged=function(){var e=this.sortController.getSortModel();this.isGridSorted=!Ye.missingOrEmpty(e)},e.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},e.prototype.onRowGroupChanged=function(){var e=this.columnController.getRowGroupColumns();this.isRowGroupActive=!Ye.missingOrEmpty(e)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},e.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?Er.ICON_NOT_ALLOWED:Er.ICON_MOVE},e.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},e.prototype.getRowNodes=function(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes;var t=this.gridOptionsWrapper.isEnableMultiRowDragging(),n=this.selectionController.getSelectedNodes(),o=e.dragItem.rowNode;return t&&-1!==n.indexOf(o)?(this.isMultiRowDrag=!0,Vi(n)):(this.isMultiRowDrag=!1,[o])},e.prototype.onDragEnter=function(e){this.dispatchEvent(Et.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.isFromThisGrid=function(e){return this.gridPanel.getGui().contains(e.dragSource.eElement)},e.prototype.isDropZoneWithinThisGrid=function(e){var t=this.gridPanel.getGui(),n=e.dropZoneTarget;return!t.contains(n)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(Et.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){var n,o=this,r=this.isFromThisGrid(e);r?(n=[e.dragItem.rowNode],this.isMultiRowDrag&&(n=Vi(this.selectionController.getSelectedNodes()).sort((function(e,t){return o.getRowIndexNumber(e)-o.getRowIndexNumber(t)}))),e.dragItem.rowNodes=n):n=e.dragItem.rowNodes,this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!r?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(n[0],t):this.moveRows(n,t))},e.prototype.getRowIndexNumber=function(e){return parseInt(J(e.getRowIndexString().split("-")),10)},e.prototype.moveRowAndClearHighlight=function(e){var t=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),o=n&&"below"===n.highlighted,r=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes,s=o?1:0;if(this.isFromThisGrid(e))i.forEach((function(e){e.rowTop<r&&(s-=1)})),this.moveRows(i,r,s);else{var a=this.gridOptionsWrapper.getRowNodeIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(r)+1;"above"===this.clientSideRowModel.getHighlightPosition(r)&&l--,this.clientSideRowModel.updateRowData({add:i.map((function(e){return e.data})).filter((function(e){return!t.clientSideRowModel.getRowNode(a?a(e):e.id)})),addIndex:l})}this.clearRowHighlight()},e.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},e.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.addRowDropZone=function(e){var n=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("ag-Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(t){e.onDragEnter(n.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(o.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(o.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(o.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(ki({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return Er.ICON_MOVE},external:!0},o))}else Ye.doOnce((function(){return console.warn("ag-Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},e.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),o=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){o(n),e.onDragEnter(t.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_ENTER,n))}:o,onDragLeave:e.onDragLeave?function(n){r(n),e.onDragLeave(t.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){s(n),e.onDragStop(t.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:o,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},e.prototype.draggingToRowDragEvent=function(e,n){var o,r=this.mouseEventService.getNormalisedPosition(n).y,i=-1,s=null;switch(r>this.rowModel.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(r),s=this.rowModel.getRow(i)),n.vDirection){case t.VerticalDirection.Down:o="down";break;case t.VerticalDirection.Up:o="up";break;default:o=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:i,overNode:s,y:r,vDirection:o}},e.prototype.dispatchEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},e.prototype.onDragLeave=function(e){this.dispatchEvent(Et.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(e){this.dispatchEvent(Et.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Gi([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Gi([nt("rowModel")],e.prototype,"rowModel",void 0),Gi([nt("columnController")],e.prototype,"columnController",void 0),Gi([nt("focusController")],e.prototype,"focusController",void 0),Gi([nt("sortController")],e.prototype,"sortController",void 0),Gi([nt("filterManager")],e.prototype,"filterManager",void 0),Gi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Gi([nt("selectionController")],e.prototype,"selectionController",void 0),Gi([ot("rangeController")],e.prototype,"rangeController",void 0),Gi([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),Gi([nt("eventService")],e.prototype,"eventService",void 0),Gi([Ze],e.prototype,"postConstruct",null),Gi([et],e.prototype,"destroy",null),e}(),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bi=function(e){function n(){var t=e.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n <div class="ag-center-cols-clipper" ref="eCenterColsClipper" role="presentation" unselectable="on">\n <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n <div class="ag-center-cols-container" ref="eCenterContainer" role="rowgroup" unselectable="on"></div>\n </div>\n </div>\n <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n </div>\n <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n </div>')||this;return t.scrollLeft=-1,t.scrollTop=-1,t.resetLastHorizontalScrollElementDebounced=Ye.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return ji(n,e),n.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},n.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},n.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},n.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.mouseEventService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var n=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return n()}))})),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){e.addDestroyableEventListener(t,"focusin",(function(){Ye.addCssClass(t,"ag-has-focus")})),e.addDestroyableEventListener(t,"focusout",(function(e){t.contains(e.relatedTarget)||Ye.removeCssClass(t,"ag-has-focus")}))}))},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},n.prototype.onCenterViewportResized=function(){Ye.isVisible(this.eCenterViewport)?(this.checkViewportAndScrolls(),this.columnController.refreshFlexedColumns(this.getCenterWidth())):this.bodyHeight=0},n.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){return Ye.addOrRemoveCssClass(t,"ag-selectable",e)}))},n.prototype.addRowDragListener=function(){var e=new Wi(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e),this.rowDragFeature=e},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var n=!1,o=t.relatedTarget;Ye.exists(o)&&!n;){var r=!!e.gridOptionsWrapper.getDomData(o,Ar.DOM_KEY_POPUP_EDITOR_WRAPPER),i=e.eBodyViewport===o||e.eBottom===o||e.eTop===o;n=r||i,o=o.parentNode}n||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},n.prototype.addAngularApplyCheck=function(){var e=this,t=!1,n=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addDestroyableEventListener(this.eventService,Et.EVENT_VIRTUAL_COLUMNS_CHANGED,n)},n.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},n.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!Ye.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var n={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController)};e.dragService.addDragSource(n),e.addDestroyFunc((function(){return e.dragService.removeDragSource(n)}))}))},n.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(o){return e.addDestroyableEventListener(o,t,n)}))}))},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(o){e.addDestroyableEventListener(o,t,n)}))}))},n.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var n=Ye.getTarget(t);n!==e.eBodyViewport&&n!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},n.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},n.prototype.getRowForEvent=function(e){for(var t=Ye.getTarget(e);t;){var n=this.gridOptionsWrapper.getDomData(t,Br.DOM_DATA_KEY_RENDERED_ROW);if(n)return n;t=t.parentElement}return null},n.prototype.processKeyboardEvent=function(e,t){var n=Ye.getCellCompForEvent(this.gridOptionsWrapper,t);if(n){var o=n.getRenderedRow().getRowNode(),r=n.getColumn(),i=n.isEditing();if(!Ye.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,o,r,i))switch(e){case"keydown":!i&&this.navigationService.handlePageScrollingKey(t)||n.onKeyDown(t),this.doGridOperations(t,n);break;case"keypress":n.onKeyPress(t)}if("keydown"===e){var s=n.createEvent(t,Et.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=n.createEvent(t,Et.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case ke.KEY_A:return this.onCtrlAndA(e);case ke.KEY_C:return this.onCtrlAndC(e);case ke.KEY_V:return this.onCtrlAndV();case ke.KEY_D:return this.onCtrlAndD(e);case ke.KEY_Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case ke.KEY_Y:return this.undoRedoService.redo()}},n.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Ye.isStopPropagationForAgGrid(t)){var n=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?(this.preventDefaultOnContextMenu(t),this.handleContextMenuMouseEvent(t,null,n,o)):(o&&o.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;Ye.isIOSUserAgent()&&this.eAllCellContainers.forEach((function(t){var n=new bn(t);e.addDestroyableEventListener(n,bn.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,o)})),e.addDestroyFunc((function(){return n.destroy()}))}))},n.prototype.handleContextMenuMouseEvent=function(e,t,n,o){var r=n?n.getRowNode():null,i=o?o.getColumn():null,s=null;if(i){var a=e||t;o.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}this.onContextMenu(e,t,r,i,s)},n.prototype.onContextMenu=function(e,t,n,o,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var i=e||t.touches[0];this.contextMenuFactory.showMenu(n,o,r,i),(e||t).preventDefault()}},n.prototype.preventDefaultOnContextMenu=function(e){var t=this.gridOptionsWrapper,n=e.which;(t.isPreventDefaultOnContextMenu()||t.isSuppressMiddleClickScrolls()&&2===n)&&e.preventDefault()},n.prototype.onCtrlAndA=function(e){var t=this.columnController,n=this.pinnedRowModel,o=this.paginationProxy,r=this.rangeController,i=ke.PINNED_BOTTOM,s=ke.PINNED_TOP;if(r&&o.isRowsToRender()){var a=[n.isEmpty(s),n.isEmpty(i)],l=a[0]?null:s,u=void 0,c=void 0;a[1]?(u=null,c=this.paginationProxy.getRowCount()-1):(u=i,c=n.getPinnedBottomRowData().length-1);var p=t.getAllDisplayedColumns();if(Ye.missingOrEmpty(p))return;r.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:c,rowEndPinned:u,columnStart:p[0],columnEnd:Ye.last(p)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){pt.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){pt.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},n.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var o,r=this.paginationProxy.getRow(e);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,u=l+r.rowHeight,c=this.getVScrollPosition(),p=this.heightScaler.getOffset(),d=c.top+p,h=c.bottom+p,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),v=this.heightScaler.getScrollPositionForPixel(u-f),m=Math.min((g+v)/2,l),y=null;"top"===t?y=g:"bottom"===t?y=v:"middle"===t?y=m:d>l?y=g:h<u&&(y=v),null!==y&&(this.eBodyViewport.scrollTop=y,this.rowRenderer.redrawAfterScroll()),o=i!==r.rowTop||s!==r.rowHeight}while(o);this.animationFrameService.flushAllFrames()}}},n.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return Ye.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||Ye.isVerticalScrollShowing(this.eBodyViewport)},n.prototype.isHorizontalScrollShowing=function(){return Ye.isHorizontalScrollShowing(this.eCenterViewport)},n.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize(),this.scrollLeft!==this.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},n.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},n.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),n=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,o=t?0:n,r=Ye.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+n+"px)",Ye.setFixedHeight(this.eHorizontalScrollBody,o),Ye.setFixedHeight(this.eBodyHorizontalScrollViewport,o+(r?1:0)),Ye.setFixedHeight(this.eBodyHorizontalScrollContainer,o)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},n.prototype.updateRowCount=function(){var e=(this.headerRootComp.getHeaderRowCount()+this.paginationProxy.getRowCount()).toString();this.getGui().setAttribute("aria-rowcount",e)},n.prototype.updateColumnCount=function(){var e=this.beans.columnController.getAllDisplayedColumns();this.getGui().setAttribute("aria-colcount",e.length.toString())},n.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var n,o,r=t.getLeft(),i=r+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(n=l-a-s,o=l-a):(n=a,o=s+a);var u=n>r,c=o<i,p=s<t.getActualWidth(),d=u||p,h=c,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-r:l-i:d?r:i-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},n.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},n.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},n.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.eBodyViewport.clientWidth;n>0?this.columnController.sizeColumnsToFit(n,"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.getCenterContainer=function(){return this.eCenterContainer},n.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},n.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},n.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},n.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new Li({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new Li({eContainer:this.eFullWidthContainer}),pinnedLeft:new Li({eContainer:this.eLeftContainer}),pinnedRight:new Li({eContainer:this.eRightContainer}),floatingTop:new Li({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new Li({eContainer:this.eLeftTop}),floatingTopPinnedRight:new Li({eContainer:this.eRightTop}),floatingTopFullWidth:new Li({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new Li({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new Li({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new Li({eContainer:this.eRightBottom}),floatingBottomFullWidth:new Li({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},Ye.iterateObject(this.rowContainerComponents,(function(t,n){n&&e.getContext().wireBean(n)}))},n.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();Ye.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),Ye.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,Et.EVENT_HEIGHT_SCALE_CHANGED,t)},n.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},n.prototype.getRowContainers=function(){return this.rowContainerComponents},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},n.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},n.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},n.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},n.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth());this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},n.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,n=this.columnController.getPinnedLeftContainerWidth(),o=this.pinningLeft=!this.printLayout&&n>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==o&&this.headerRootComp.setLeftVisible(o),r.forEach((function(t){return Ye.setDisplayed(t,e.pinningLeft)})),o&&r.forEach((function(e){return Ye.setFixedWidth(e,n)}))},n.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),n=this.pinningRight=!this.printLayout&&t>0,o=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==n&&this.headerRootComp.setRightVisible(n),o.forEach((function(e){return Ye.setDisplayed(e,n)})),n&&o.forEach((function(e){return Ye.setFixedWidth(e,t)}))},n.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},n.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),Ye.setFixedWidth(this.eHorizontalRightSpacer,e),Ye.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),Ye.setFixedWidth(this.eHorizontalLeftSpacer,t),Ye.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},n.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Et.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},n.prototype.setHeaderAndFloatingHeights=function(){var e,t,n,o=this,r=o.columnController,i=o.gridOptionsWrapper,s=o.pinnedRowModel,a=o.eTop,l=o.eBottom,u=0,c=r.getHeaderRowCount();r.isPivotMode()?(t=i.getPivotGroupHeaderHeight(),n=i.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(c++,u=1),t=i.getGroupHeaderHeight(),n=i.getHeaderHeight());var p=c-(1+u);e=u*i.getFloatingFiltersHeight(),e+=p*t,e+=n,this.headerRootComp.setHeight(e);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},n.prototype.getBodyHeight=function(){return this.bodyHeight},n.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},n.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},n.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},n.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(e),this.scrollTop=e,this.redrawRowsAfterScroll()},n.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},n.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},n.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,n=t.scrollWidth,o=t.clientWidth,r=Math.floor(Ye.getScrollLeft(e,this.enableRtl));r<0||r+o>n||(this.doHorizontalScroll(r),this.resetLastHorizontalScrollElementDebounced())},n.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},n.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:Et.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},n.prototype.redrawRowsAfterScroll=function(){var e={type:Et.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},n.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},n.prototype.getCenterViewportScrollLeft=function(){return Ye.getScrollLeft(this.eCenterViewport,this.enableRtl)},n.prototype.setCenterViewportScrollLeft=function(e){Ye.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},n.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.eCenterViewport,o=n.clientWidth,r=n.scrollWidth;if(!(Math.abs(t)+o>r||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var i=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;Ye.setScrollLeft(i,e,this.enableRtl)}},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Hi([nt("alignedGridsService")],n.prototype,"alignedGridsService",void 0),Hi([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Hi([nt("columnController")],n.prototype,"columnController",void 0),Hi([nt("rowRenderer")],n.prototype,"rowRenderer",void 0),Hi([nt("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Hi([nt("eventService")],n.prototype,"eventService",void 0),Hi([nt("animationFrameService")],n.prototype,"animationFrameService",void 0),Hi([nt("navigationService")],n.prototype,"navigationService",void 0),Hi([nt("autoHeightCalculator")],n.prototype,"autoHeightCalculator",void 0),Hi([nt("columnAnimationService")],n.prototype,"columnAnimationService",void 0),Hi([nt("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),Hi([nt("paginationAutoPageSizeService")],n.prototype,"paginationAutoPageSizeService",void 0),Hi([nt("beans")],n.prototype,"beans",void 0),Hi([nt("paginationProxy")],n.prototype,"paginationProxy",void 0),Hi([nt("columnApi")],n.prototype,"columnApi",void 0),Hi([nt("gridApi")],n.prototype,"gridApi",void 0),Hi([nt("dragService")],n.prototype,"dragService",void 0),Hi([nt("mouseEventService")],n.prototype,"mouseEventService",void 0),Hi([nt("$scope")],n.prototype,"$scope",void 0),Hi([nt("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Hi([nt("valueService")],n.prototype,"valueService",void 0),Hi([nt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Hi([nt("maxDivHeightScaler")],n.prototype,"heightScaler",void 0),Hi([nt("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Hi([nt("undoRedoService")],n.prototype,"undoRedoService",void 0),Hi([ot("rangeController")],n.prototype,"rangeController",void 0),Hi([ot("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Hi([ot("clipboardService")],n.prototype,"clipboardService",void 0),Hi([Jt("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Hi([Jt("eCenterContainer")],n.prototype,"eCenterContainer",void 0),Hi([Jt("eCenterViewport")],n.prototype,"eCenterViewport",void 0),Hi([Jt("eLeftContainer")],n.prototype,"eLeftContainer",void 0),Hi([Jt("eRightContainer")],n.prototype,"eRightContainer",void 0),Hi([Jt("eCenterColsClipper")],n.prototype,"eCenterColsClipper",void 0),Hi([Jt("eHorizontalScrollBody")],n.prototype,"eHorizontalScrollBody",void 0),Hi([Jt("eHorizontalLeftSpacer")],n.prototype,"eHorizontalLeftSpacer",void 0),Hi([Jt("eHorizontalRightSpacer")],n.prototype,"eHorizontalRightSpacer",void 0),Hi([Jt("eBodyHorizontalScrollViewport")],n.prototype,"eBodyHorizontalScrollViewport",void 0),Hi([Jt("eBodyHorizontalScrollContainer")],n.prototype,"eBodyHorizontalScrollContainer",void 0),Hi([Jt("eFullWidthContainer")],n.prototype,"eFullWidthContainer",void 0),Hi([Jt("eTop")],n.prototype,"eTop",void 0),Hi([Jt("eLeftTop")],n.prototype,"eLeftTop",void 0),Hi([Jt("eRightTop")],n.prototype,"eRightTop",void 0),Hi([Jt("eTopContainer")],n.prototype,"eTopContainer",void 0),Hi([Jt("eTopViewport")],n.prototype,"eTopViewport",void 0),Hi([Jt("eTopFullWidthContainer")],n.prototype,"eTopFullWidthContainer",void 0),Hi([Jt("eBottom")],n.prototype,"eBottom",void 0),Hi([Jt("eLeftBottom")],n.prototype,"eLeftBottom",void 0),Hi([Jt("eRightBottom")],n.prototype,"eRightBottom",void 0),Hi([Jt("eBottomContainer")],n.prototype,"eBottomContainer",void 0),Hi([Jt("eBottomViewport")],n.prototype,"eBottomViewport",void 0),Hi([Jt("eBottomFullWidthContainer")],n.prototype,"eBottomFullWidthContainer",void 0),Hi([Jt("headerRoot")],n.prototype,"headerRootComp",void 0),Hi([Jt("overlayWrapper")],n.prototype,"overlayWrapper",void 0),Hi([Ze],n.prototype,"init",null),n}($t),zi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ui=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case ke.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case ke.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case ke.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;Ye.iterateObject(this.detailGridInfoMap,(function(n,o){Ye.exists(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(pt.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){pt.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){if(pt.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){pt.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")&&this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var t=this.immutableService.createTransactionForRowData(e),n=t[0],o=t[1];this.clientSideRowModel.updateRowData(n,o),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,n=0,o=0,r=this;!function i(){var s=(new Date).getTime();r.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var r=(new Date).getTime(),l=a-s,u=r-a;console.log("duration: processing = "+l+"ms, reflow = "+u+"ms"),t++,n+=l,o+=u,t<e?window.setTimeout(i,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+n/t+"ms"),console.log("average reflow = "+o/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){Ye.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),Ye.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:ke.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){Ye.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=ke.STEP_EVERYTHING,n={group:ke.STEP_EVERYTHING,filter:ke.STEP_FILTER,map:ke.STEP_MAP,aggregate:ke.STEP_AGGREGATE,sort:ke.STEP_SORT,pivot:ke.STEP_PIVOT};if(Ye.exists(e)&&(t=n[e]),Ye.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(n).join(", "));else{var o={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(o)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){Ye.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){Ye.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.getToolPanelInstance=function(e){return this.gridCore.getToolPanelInstance(e)},e.prototype.addVirtualRowListener=function(e,t,n){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){Ye.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:ke.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){Ye.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){Ye.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){Ye.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e,t){var n=this.columnController.getPrimaryColumn(e);if(n){var o=this.filterManager.getFilterComponent(n,"NO_UI"),r=o.resolveNow(null,(function(e){return e}));return t&&(r?setTimeout(t,0,r):o.then(t)),r}},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusController.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridPanel.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridPanel.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.setSideBarPosition=function(e){this.gridCore.setSideBarPosition(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){Ye.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){Ye.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnController.getPrimaryColumn(e);return Ye.missing(n)&&(n=this.columnController.getGridColumn(e)),Ye.missing(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("ag-Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the ag-Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return Ye.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){console.warn("ag-Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getChartModels=function(){if(pt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&pt.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.createRangeChart=function(e){if(pt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&pt.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createPivotChart=function(e){if(pt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&pt.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterMouseEvent(n,t)},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t};Ye.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(n,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyTransaction=function(e){var t=null;if(this.clientSideRowModel){if(e&&null!=e.addIndex){Ye.doOnce((function(){return console.warn("ag-Grid: as of v23.1, transaction.addIndex is deprecated. If you want precision control of adding data, use immutableData instead")}),"transaction.addIndex deprecated")}t=this.clientSideRowModel.updateRowData(e)}else if(this.infiniteRowModel){Ye.doOnce((function(){return console.warn("ag-Grid: as of v23.1, transactions for Infinite Row Model are deprecated. If you want to make updates to data in Infinite Row Models, then refresh the data.")}),"applyTransaction infiniteRowModel deprecated"),this.infiniteRowModel.updateRowData(e)}else console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel.");return this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.updateRowData=function(e){return Ye.doOnce((function(){return console.warn("ag-Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){Ye.doOnce((function(){return console.warn("ag-Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infiniteRowModel?this.infiniteRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},zi([ot("immutableService")],e.prototype,"immutableService",void 0),zi([ot("csvCreator")],e.prototype,"csvCreator",void 0),zi([ot("excelCreator")],e.prototype,"excelCreator",void 0),zi([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),zi([nt("filterManager")],e.prototype,"filterManager",void 0),zi([nt("columnController")],e.prototype,"columnController",void 0),zi([nt("selectionController")],e.prototype,"selectionController",void 0),zi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),zi([nt("valueService")],e.prototype,"valueService",void 0),zi([nt("alignedGridsService")],e.prototype,"alignedGridsService",void 0),zi([nt("eventService")],e.prototype,"eventService",void 0),zi([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),zi([nt("context")],e.prototype,"context",void 0),zi([nt("rowModel")],e.prototype,"rowModel",void 0),zi([nt("sortController")],e.prototype,"sortController",void 0),zi([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),zi([nt("focusController")],e.prototype,"focusController",void 0),zi([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),zi([ot("rangeController")],e.prototype,"rangeController",void 0),zi([ot("clipboardService")],e.prototype,"clipboardService",void 0),zi([ot("aggFuncService")],e.prototype,"aggFuncService",void 0),zi([nt("menuFactory")],e.prototype,"menuFactory",void 0),zi([ot("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),zi([nt("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),zi([nt("valueCache")],e.prototype,"valueCache",void 0),zi([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),zi([ot("statusBarService")],e.prototype,"statusBarService",void 0),zi([ot("chartService")],e.prototype,"chartService",void 0),zi([ot("undoRedoService")],e.prototype,"undoRedoService",void 0),zi([Ze],e.prototype,"init",null),e=zi([tt("gridApi")],e)}(),Yi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qi=function(e,t){return function(n,o){t(n,o,e)}},Ki=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},e.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},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Yi([qi(0,it("loggerFactory"))],e.prototype,"setBeans",null),e=Yi([tt("expressionService")],e)}(),$i=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qi=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var o=this.waitingCallbacks[e],r=this;if(!o){o=[],this.waitingCallbacks[e]=o;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&o.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],o=0;o<n.length;o++){(0,n[o])()}if(this.$scope){var r=this;window.setTimeout((function(){r.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},$i([nt("$scope")],e.prototype,"$scope",void 0),e=$i([tt("templateService")],e)}(),Xi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ji=function(){function e(){this.popupList=[],this.events=[]}return e.prototype.init=function(){var e=this;this.events=[this.eventService.addEventListener(Et.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){Ye.addCssClass(e.element,"ag-keyboard-focus")}))})),this.eventService.addEventListener(Et.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){Ye.removeCssClass(e.element,"ag-keyboard-focus")}))}))]},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),o=this.keepYWithinBounds(e,t.top-n.top),r=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=r+"px";var i,s=n.right-n.left-r;function a(){return t.right-n.left-2}function l(){return t.left-n.left-r}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=o+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),n=t.x,o=t.y,r=e.ePopup,i=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:r,x:n,y:o,nudgeX:i,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},e.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",o=this.getParentRect(),r=t.left-o.left;"right"===n&&(r-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:r,y:t.top-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,n,o,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:e,type:o,eventSource:t,mouseEvent:n})},e.prototype.positionPopup=function(e){var t=e.x,n=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(n+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),n=this.keepYWithinBounds(e,n)),e.ePopup.style.left=t+"px",e.ePopup.style.top=n+"px"},e.prototype.getParentRect=function(){var e=this.getPopupParent(),t=this.gridOptionsWrapper.getDocument();e===t.body&&(e=t.documentElement);var n=getComputedStyle(e),o=e.getBoundingClientRect();return{top:o.top+parseFloat(n.borderTopWidth)||0,left:o.left+parseFloat(n.borderLeftWidth)||0,right:o.right+parseFloat(n.borderRightWidth)||0,bottom:o.bottom+parseFloat(n.borderBottomWidth)||0}},e.prototype.keepYWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),o=n.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=n.documentElement.getBoundingClientRect(),a=r===n.body,l=Math.min(200,i.height),u=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,u=Ye.getAbsoluteHeight(e.ePopup)-l);var c=a?Ye.getAbsoluteHeight(o)+o.scrollTop:i.height;a&&(c-=Math.abs(s.top-i.top));var p=c-l-u;return Math.min(Math.max(t,0),Math.abs(p))},e.prototype.keepXWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),o=n.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=n.documentElement.getBoundingClientRect(),a=r===n.body,l=e.ePopup,u=Math.min(200,i.width),c=0;e.minWidth&&e.minWidth<u?u=e.minWidth:l.offsetWidth>0&&(u=l.offsetWidth,l.style.minWidth=u+"px",c=Ye.getAbsoluteWidth(l)-u);var p=a?Ye.getAbsoluteWidth(o)+o.scrollLeft:i.width;a&&(p-=Math.abs(s.left-i.left));var d=p-u-c;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.addAsModalPopup=function(e,t,n,o){return this.addPopup(!0,e,t,n,o)},e.prototype.addPopup=function(e,t,n,o,r,i){var s=this,a=this.gridOptionsWrapper.getDocument();(new Date).getTime();if(!a)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var l=Ye.findIndex(this.popupList,(function(e){return e.element===t}));if(-1!==l)return this.popupList[l].hideFunc;var u=this.getPopupParent();u.appendChild(t),t.style.top="0px",t.style.left="0px";var c=document.createElement("div"),p=this.environment.getTheme().theme;p&&Ye.addCssClass(c,p),Ye.addCssClass(c,"ag-popup"),Ye.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),Ye.addCssClass(t,"ag-popup-child"),c.appendChild(t),u.appendChild(c),i?this.setAlwaysOnTop(c,!0):this.bringPopupToFront(c);var d=!1,h=function(e){(e.which||e.keyCode)===ke.KEY_ESCAPE&&c.contains(document.activeElement)&&v(null)},f=function(e){v(e)},g=function(e){v(null,e)},v=function(e,n){s.isEventFromCurrentPopup(e,n,t)||s.isEventSameChainAsOriginalEvent(r,e,n)||d||(d=!0,u.removeChild(c),a.removeEventListener("keydown",h),a.removeEventListener("mousedown",f),a.removeEventListener("touchstart",g),a.removeEventListener("contextmenu",f),s.eventService.removeEventListener(Et.EVENT_DRAG_STARTED,f),o&&o(),s.popupList=s.popupList.filter((function(e){return e.element!==t})))};return window.setTimeout((function(){n&&a.addEventListener("keydown",h),e&&(a.addEventListener("mousedown",f),s.eventService.addEventListener(Et.EVENT_DRAG_STARTED,f),a.addEventListener("touchstart",g),a.addEventListener("contextmenu",f))}),0),this.popupList.push({element:t,hideFunc:v}),v},e.prototype.isEventFromCurrentPopup=function(e,t,n){var o=e||t;if(!o)return!1;var r=Ye.findIndex(this.popupList,(function(e){return e.element===n}));if(-1===r)return!1;for(var i=r;i<this.popupList.length;i++){var s=this.popupList[i];if(Ye.isElementInEventPath(s.element,o))return!0}for(var a=o.target;a&&a!=document.body;){if(a.classList.contains("ag-custom-component-popup")||null===a.parentElement)return!0;a=a.parentElement}},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,n){var o=null;if(t?o=t:n&&(o=n.touches[0]),o&&e){var r=t?t.screenX:0,i=t?t.screenY:0,s=Math.abs(e.screenX-r)<5,a=Math.abs(e.screenY-i)<5;if(s&&a)return!0}return!1},e.prototype.getWrapper=function(e){for(;!Ye.containsClass(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return Ye.containsClass(e,"ag-popup")?e:null},e.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(Ye.addOrRemoveCssClass(n,"ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},e.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),o=n.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=r.length,s=this.getWrapper(e);if(s&&!(o<=1)&&t.contains(e)){var a=n.indexOf(s);if(i)Ye.containsClass(s,"ag-always-on-top")?a!==o-1&&Ye.last(r).insertAdjacentElement("afterend",s):a!==o-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==o-1&&Ye.last(n).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},Xi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xi([nt("environment")],e.prototype,"environment",void 0),Xi([nt("eventService")],e.prototype,"eventService",void 0),Xi([Ze],e.prototype,"init",null),Xi([et],e.prototype,"destroy",null),e=Xi([tt("popupService")],e)}(),Zi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},es=function(e,t){return function(n,o){t(n,o,e)}},ts=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new ns(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},Zi([es(0,it("gridOptionsWrapper"))],e.prototype,"setBeans",null),e=Zi([tt("loggerFactory")],e)}(),ns=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}(),os=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rs=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var o=document.createElement("span");o.style.position="fixed";var r=this.gridPanel.getCenterContainer();r.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),t||this.cloneItemIntoDummy(n,o);var i=o.offsetWidth;return r.removeChild(o),i+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(n){if(n instanceof ii){var o=n;o.getColumn()===e&&(t=o)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var n=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return n.cloneItemIntoDummy(e,t)}))},e.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var o=document.createElement("div");Ye.containsClass(n,"ag-header-cell")&&(Ye.addCssClass(o,"ag-header"),Ye.addCssClass(o,"ag-header-row"),o.style.position="static"),o.style.display="table-row",o.appendChild(n),t.appendChild(o)},os([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),os([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=os([tt("autoWidthCalculator")],e)}(),is=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ss=function(){function e(){}return e.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)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="ew-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},is([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),is([nt("dragService")],e.prototype,"dragService",void 0),is([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=is([tt("horizontalResizeService")],e)}(),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ls=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},us=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return as(n,e),n.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var n=this.createTemplate();if(this.setTemplate(n),[this.gridApi,this.rowRenderer,this.popupService].forEach((function(t){return t.registerGridCore(e)})),pt.isRegistered(t.ModuleNames.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var o=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(o)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var r=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}));var i=this.getGui();this.addDestroyableEventListener(this.eventService,Et.EVENT_KEYBOARD_FOCUS,(function(){Ye.addCssClass(i,"ag-keyboard-focus")})),this.addDestroyableEventListener(this.eventService,Et.EVENT_MOUSE_FOCUS,(function(){Ye.removeCssClass(i,"ag-keyboard-focus")}))},n.prototype.createTemplate=function(){var e=pt.isRegistered(t.ModuleNames.SideBarModule),n=pt.isRegistered(t.ModuleNames.StatusBarModule);return'<div class="ag-root-wrapper">\n '+(pt.isRegistered(t.ModuleNames.RowGroupingModule)?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n '+(e?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(n?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(pt.isRegistered(t.ModuleNames.EnterpriseCoreModule)?"<ag-watermark></ag-watermark>":"")+"\n </div>"},n.prototype.onGridSizeChanged=function(){var e={type:Et.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";Ye.addCssClass(this.getGui(),e)},n.prototype.getRootGui=function(){return this.getGui()},n.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},n.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("ag-Grid: sideBar is not loaded")},n.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("ag-Grid: sideBar is not loaded")},n.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.getSideBar=function(){return this.gridOptions.sideBar},n.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(e);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},n.prototype.setSideBar=function(e){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=Ft.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},n.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},n.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},n.prototype.destroy=function(){this.logger.log("Grid DOM removed"),e.prototype.destroy.call(this)},n.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t=null),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var n=this.rowModel.getRowCount(),o="function"==typeof e,r=-1,i=0;i<n;i++){var s=this.rowModel.getRow(i);if(o){if(e(s)){r=i;break}}else if(e===s||e===s.data){r=i;break}}r>=0&&this.gridPanel.ensureIndexVisible(r,t)},ls([nt("gridOptions")],n.prototype,"gridOptions",void 0),ls([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ls([nt("rowModel")],n.prototype,"rowModel",void 0),ls([nt("resizeObserverService")],n.prototype,"resizeObserverService",void 0),ls([nt("columnController")],n.prototype,"columnController",void 0),ls([nt("rowRenderer")],n.prototype,"rowRenderer",void 0),ls([nt("filterManager")],n.prototype,"filterManager",void 0),ls([nt("eventService")],n.prototype,"eventService",void 0),ls([nt("eGridDiv")],n.prototype,"eGridDiv",void 0),ls([nt("$scope")],n.prototype,"$scope",void 0),ls([nt("quickFilterOnScope")],n.prototype,"quickFilterOnScope",void 0),ls([nt("popupService")],n.prototype,"popupService",void 0),ls([nt("focusController")],n.prototype,"focusController",void 0),ls([nt("loggerFactory")],n.prototype,"loggerFactory",void 0),ls([nt("columnApi")],n.prototype,"columnApi",void 0),ls([nt("gridApi")],n.prototype,"gridApi",void 0),ls([nt("environment")],n.prototype,"environment",void 0),ls([ot("clipboardService")],n.prototype,"clipboardService",void 0),ls([Jt("gridPanel")],n.prototype,"gridPanel",void 0),ls([Jt("sideBar")],n.prototype,"sideBarComp",void 0),ls([Jt("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),ls([Ze],n.prototype,"init",null),n}($t),cs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ps=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:o,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var n,o=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),i=document.createElement("div");Ye.addCssClass(i,"ag-menu"),r.guiPromise.then((function(e){return i.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&n()};this.eventService.addEventListener("bodyScroll",s);n=this.popupService.addAsModalPopup(i,!0,(function(){o.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(i),r.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:n};e.afterGuiAttached(t)}})),this.hidePopup=n,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},cs([nt("eventService")],e.prototype,"eventService",void 0),cs([nt("filterManager")],e.prototype,"filterManager",void 0),cs([nt("popupService")],e.prototype,"popupService",void 0),e=cs([tt("menuFactory")],e)}(),ds=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hs=function(){function e(){this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=Ye.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),Ye.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");Ye.exists(t)&&Ye.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",n);var o=null,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(o=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:n,touchStartListener:o,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var o=t.touches[0];this.touchLastTime=o,this.touchStart=o,t.cancelable&&t.preventDefault();var r=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,s=[{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:r,options:{passive:!0}},{target:i,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(o,this.touchStart,e.eElement)},e.prototype.onMouseDown=function(e,t){var n=this,o=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||o._alreadyProcessedByDragService||(o._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var r=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0);var i=[{target:r,type:"mousemove",listener:function(t,o){return n.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t,o){return n.onMouseUp(t,e.eElement)}},{target:r,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},e.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.addEventListener(n,o,r)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.removeEventListener(n,o,r)}))}))},e.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels,o=Ye.exists(n)?n:4;return Ye.areEventsNear(e,t,o)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:Et.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},e.prototype.onMouseMove=function(e,t){this.onCommonMove(e,this.mouseStartEvent,t)},e.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},e.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},e.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:Et.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},ds([nt("loggerFactory")],e.prototype,"loggerFactory",void 0),ds([nt("eventService")],e.prototype,"eventService",void 0),ds([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ds([nt("columnApi")],e.prototype,"columnApi",void 0),ds([nt("gridApi")],e.prototype,"gridApi",void 0),ds([Ze],e.prototype,"init",null),ds([et],e.prototype,"destroy",null),e=ds([tt("dragService")],e)}(),fs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gs=function(){function e(){var e=this;this.getSortModel=function(){return e.getColumnsWithSortingOrdered().map((function(e){return{colId:e.getColId(),sort:e.getSort()}}))}}var t;return t=e,e.prototype.progressSort=function(e,t,n){void 0===n&&(n="api");var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,n)},e.prototype.setSortForColumn=function(e,t,n,o){if(void 0===o&&(o="api"),t!==ke.SORT_ASC&&t!==ke.SORT_DESC&&(t=null),e.setSort(t,o),e.getSort()){var r=Number((new Date).valueOf());e.setSortedAt(r)}else e.setSortedAt(null);n&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,o),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:Et.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var n;if(n=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(n)||n.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+n),null;var o,r=n.indexOf(e.getSort()),i=r<0,s=r==n.length-1;return o=i||s?n[0]:n[r+1],t.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("ag-grid: invalid sort type "+o),null):o},e.prototype.setSortModel=function(e,t){var n=this;void 0===t&&(t="api");var o=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(r){var i=null,s=-1;if(o&&r.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof r.getColId()&&n.compareColIds(l,r)&&(i=l.sort,s=a)}i?(r.setSort(i,t),r.setSortedAt(s)):(r.setSort(null,t),r.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e.sort((function(e,t){return e.sortedAt-t.sortedAt})),e},e.prototype.getSortForRowController=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{inverter:e.getSort()===ke.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[ke.SORT_ASC,ke.SORT_DESC,null],fs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),fs([nt("columnController")],e.prototype,"columnController",void 0),fs([nt("eventService")],e.prototype,"eventService",void 0),fs([nt("columnApi")],e.prototype,"columnApi",void 0),fs([nt("gridApi")],e.prototype,"gridApi",void 0),e=t=fs([tt("sortController")],e)}(),vs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ms=function(){function e(){this.keyboardFocusActive=!1,this.events=[]}return e.prototype.init=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.clearFocusedCell.bind(this);this.events=[this.eventService.addEventListener(Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.eventService.addEventListener(Et.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addEventListener(Et.EVENT_COLUMN_GROUP_OPENED,t),this.eventService.addEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,t)];var n=this.activateKeyboardMode.bind(this);e.addEventListener("keydown",n),this.events.push((function(){return e.removeEventListener("keydown",n)}));var o=this.activateMouseMode.bind(this);e.addEventListener("mousedown",o),this.events.push((function(){return e.removeEventListener("mousedown",o)}))},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.isKeyboardFocus=function(){return this.keyboardFocusActive},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.activateMouseMode=function(){this.keyboardFocusActive=!1,this.eventService.dispatchEvent({type:Et.EVENT_MOUSE_FOCUS})},e.prototype.activateKeyboardMode=function(){this.keyboardFocusActive=!0,this.eventService.dispatchEvent({type:Et.EVENT_KEYBOARD_FOCUS})},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCellPosition&&this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var n=this.gridOptionsWrapper.getDomData(t,Wr.DOM_DATA_KEY_CELL_COMP);if(n)return n.getCellPosition();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,n,o){void 0===o&&(o=!1);var r=Ye.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:Ye.makeNull(n),column:r},this.onCellFocused(o)},e.prototype.isCellFocused=function(e){return!Ye.missing(this.focusedCellPosition)&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(e,t){if(Ye.missing(this.focusedCellPosition))return!1;var n=Ye.makeNull(t);return this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===n},e.prototype.findFocusableElements=function(e,t){var n=".ag-hidden, .ag-hidden *, .ag-disabled, .ag-disabled *";t&&(n+=", "+t);var o=Array.from(e.querySelectorAll("[tabindex], input, select, button, textarea")),r=Array.from(e.querySelectorAll(n));if(!r.length)return o;var i;return i=r,o.filter((function(e){return-1===i.indexOf(e)}))},e.prototype.onCellFocused=function(e){var t={type:Et.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCellPosition&&(t.rowIndex=this.focusedCellPosition.rowIndex,t.column=this.focusedCellPosition.column,t.rowPinned=this.focusedCellPosition.rowPinned),this.eventService.dispatchEvent(t)},vs([nt("eventService")],e.prototype,"eventService",void 0),vs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),vs([nt("columnController")],e.prototype,"columnController",void 0),vs([nt("columnApi")],e.prototype,"columnApi",void 0),vs([nt("gridApi")],e.prototype,"gridApi",void 0),vs([Ze],e.prototype,"init",null),vs([et],e.prototype,"destroy",null),e=vs([tt("focusController")],e)}(),ys=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cs=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return Ye.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var n=Ye.getEventPath(e),o=0;o<n.length;o++){var r=n[o][t.GRID_DOM_KEY];if(Ye.exists(r))return r===this.gridInstanceId}return!1},e.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},e.prototype.getNormalisedPosition=function(e){var t=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,n=e.x,o=e.y;if(t){var r=this.gridPanel.getVScrollPosition();return{x:n+this.gridPanel.getHScrollPosition().left,y:o+r.top}}return{x:n,y:o}},e.gridInstanceSequence=new qe,e.GRID_DOM_KEY="__ag_grid_instance",ys([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ys([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),ys([Ze],e.prototype,"init",null),e=t=ys([tt("mouseEventService")],e)}(),ws=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Es=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var n=t,o=!1;!o;){switch(e){case ke.KEY_UP:n=this.getCellAbove(n);break;case ke.KEY_DOWN:n=this.getCellBelow(n);break;case ke.KEY_RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case ke.KEY_LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("ag-Grid: unknown key for navigation "+e)}o=!n||this.isCellGoodToFocusOn(n)}return n},e.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case ke.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case ke.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!n.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case ke.PINNED_BOTTOM:return null;case ke.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(ke.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ke.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(ke.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ke.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===ke.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===ke.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.rowModel.getRowCount()-1<=n},e.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return 0===t?n===ke.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(ke.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:ke.PINNED_TOP}},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var i=this.getRowBelow(e);if(Ye.missing(i))return null;n=i?i.rowIndex:null,o=i?i.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=Ye.last(t);var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(Ye.missing(i))return null;n=i?i.rowIndex:null,o=i?i.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},ws([nt("columnController")],e.prototype,"columnController",void 0),ws([nt("rowModel")],e.prototype,"rowModel",void 0),ws([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ws([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=ws([tt("cellNavigationService")],e)}(),bs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_s=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=yo,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=go,this.cellRendererMap[t.GROUP]=po},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return Ye.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",bs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),bs([nt("expressionService")],e.prototype,"expressionService",void 0),bs([nt("eventService")],e.prototype,"eventService",void 0),bs([Ze],e.prototype,"init",null),e=t=bs([tt("cellRendererFactory")],e)}(),Os=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rs=function(){function e(){}return e.prototype.formatValue=function(e,t,n,o,r,i){void 0===i&&(i=!0);var s,a=null,l=e.getColDef();if(r?s=r:i&&(s=t&&t.rowPinned&&l.pinnedRowValueFormatter?l.pinnedRowValueFormatter:l.valueFormatter),s){var u={value:o,node:t,data:t?t.data:null,colDef:l,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};u.$scope=n,a=this.expressionService.evaluate(s,u)}else if(l.refData)return l.refData[o]||"";return null==a&&Array.isArray(o)&&(a=o.join(", ")),a},Os([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Os([nt("expressionService")],e.prototype,"expressionService",void 0),e=Os([tt("valueFormatterService")],e)}(),Ss=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ts=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.inputType="radio",t}return Ss(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){var e=this.getNextValue();this.setValue(e)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addDestroyableEventListener(this.eventService,Et.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}(jn),Ps=function(){function e(){}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListenerOutsideAngular=function(e,t,n,o){e.addEventListener(t,n,o)},e}(),Ds=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},As=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:Et.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Ds([nt("eventService")],e.prototype,"eventService",void 0),Ds([nt("columnController")],e.prototype,"columnController",void 0),Ds([nt("columnApi")],e.prototype,"columnApi",void 0),Ds([nt("gridApi")],e.prototype,"gridApi",void 0),Ds([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Ds([tt("scrollVisibleService")],e)}(),Ns=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xs=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,n,o){this.processClassRules(e.cellClassRules,t,n,o),this.processStaticCellClasses(e,t,n)},e.prototype.processClassRules=function(e,t,n,o){if("object"==typeof e&&null!==e)for(var r=Object.keys(e),i=0;i<r.length;i++){var s=r[i],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?n(s):o&&o(s)}},e.prototype.processStaticCellClasses=function(e,t,n){if(e.cellClass){var o=void 0;if("function"==typeof e.cellClass)o=(0,e.cellClass)(t);else o=e.cellClass;"string"==typeof o?n(o):Array.isArray(o)&&o.forEach((function(e){n(e)}))}},Ns([nt("expressionService")],e.prototype,"expressionService",void 0),e=Ns([tt("stylingService")],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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ms=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Is(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Et.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Et.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},Fs([nt("eventService")],t.prototype,"eventService",void 0),Fs([nt("columnApi")],t.prototype,"columnApi",void 0),Fs([nt("gridApi")],t.prototype,"gridApi",void 0),t=Fs([tt("columnHoverService")],t)}(Ut),Ls=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ks=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},Ls([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Ls([tt("columnAnimationService")],e)}(),Gs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vs=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,n=[],o=this.gridOptionsWrapper.isTreeData(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return o&&r&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),r=!1),r?e.forEach((function(e,o){n.push(t.createOneAutoGroupColumn(e,o))})):n.push(this.createOneAutoGroupColumn()),n},e.prototype.createOneAutoGroupColumn=function(e,n){var o,r=this.generateDefaultColDef(e);o=e?ke.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var i=this.gridOptionsWrapper.getAutoGroupColumnDef();(Ye.mergeDeep(r,i),(r=this.columnFactory.mergeColDefs(r)).colId=o,this.gridOptionsWrapper.isTreeData())||Ye.missing(r.field)&&Ye.missing(r.valueGetter)&&Ye.missing(r.filterValueGetter)&&(r.filter=!1);n&&n>0&&(r.headerCheckboxSelection=!1);var s=new ht(r,null,o,!0);return this.context.wireBean(s),s},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework)||(n.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();Ye.assign(n,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),o.cellRenderer&&Ye.assign(n,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererParams:o.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},e.GROUP_AUTO_COLUMN_BUNDLE_ID=ke.GROUP_AUTO_COLUMN_ID,Gs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Gs([nt("context")],e.prototype,"context",void 0),Gs([nt("columnController")],e.prototype,"columnController",void 0),Gs([nt("columnFactory")],e.prototype,"columnFactory",void 0),e=t=Gs([tt("autoGroupColService")],e)}(),Ws=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),js=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(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.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return Ws(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addDestroyableEventListener(this.eventService,Et.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,o){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:Et.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:Et.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 Ye.missing(this.topRowBounds)||Ye.missing(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.pixelOffset=Ye.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},t.prototype.setZeroRows=function(){this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Ye.isNumeric(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 o=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=o-1}}else this.setZeroRows()},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Ye.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},js([nt("rowModel")],t.prototype,"rowModel",void 0),js([nt("eventService")],t.prototype,"eventService",void 0),js([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),js([nt("selectionController")],t.prototype,"selectionController",void 0),js([nt("columnApi")],t.prototype,"columnApi",void 0),js([nt("gridApi")],t.prototype,"gridApi",void 0),js([Ze],t.prototype,"postConstruct",null),t=js([tt("paginationProxy")],t)}(Ut),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bs(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},zs([nt("eventService")],t.prototype,"eventService",void 0),zs([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),zs([nt("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),t=zs([tt("paginationAutoPageSizeService")],t)}(Ut),Ys=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qs=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},e.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},Ys([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ys([Ze],e.prototype,"init",null),e=Ys([tt("valueCache")],e)}(),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$s=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ks(t,e),t.prototype.init=function(){this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,Et.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==ke.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(),o=new cr(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},$s([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),$s([nt("rowModel")],t.prototype,"rowModel",void 0),$s([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),$s([nt("eventService")],t.prototype,"eventService",void 0),$s([Ze],t.prototype,"init",null),t=$s([tt("changeDetectionService")],t)}(Ut),Xs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Js=function(e,t){return function(n,o){t(n,o,e)}},Zs=function(){function e(){this.consuming=!1,this.events=[]}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.events=[this.eventService.addEventListener(Et.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))]},e.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()})),this.events=[]},e.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)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case Et.EVENT_COLUMN_MOVED:case Et.EVENT_COLUMN_VISIBLE:case Et.EVENT_COLUMN_PINNED:case Et.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case Et.EVENT_COLUMN_GROUP_OPENED:var o=e;t.processGroupOpenedEvent(o);break;case Et.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(e){var t,n=e.columnGroup;if(n){var o=n.getGroupId();t=this.columnController.getOriginalColumnGroup(o)}n&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+n.isExpanded()),this.columnController.setColumnGroupOpened(t,n.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,n=this,o=e.column;if(o&&(t=this.columnController.getPrimaryColumn(o.getColId())),!o||t){var r=this.getColumnIds(e),i=this.getMasterColumns(e);switch(e.type){case Et.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(r,s.toIndex,"alignedGridChanged");break;case Et.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(r,a.visible,"alignedGridChanged");break;case Et.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(r,l.pinned,"alignedGridChanged");break;case Et.EVENT_COLUMN_RESIZED:var u=e;i.forEach((function(t){n.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth());var o=[{key:t.getColId(),newWidth:t.getActualWidth()}];n.columnController.setColumnWidths(o,!1,u.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(c)}))}},Xs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xs([nt("columnController")],e.prototype,"columnController",void 0),Xs([nt("eventService")],e.prototype,"eventService",void 0),Xs([Js(0,it("loggerFactory"))],e.prototype,"setBeans",null),Xs([Ze],e.prototype,"init",null),Xs([et],e.prototype,"destroy",null),e=Xs([tt("alignedGridsService")],e)}(),ea=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ta=function(){function e(){}return e.prototype.adaptFunction=function(e,t,n,o){if(null==t)return{component:null,componentFromFramework:n,source:o,paramsFromSelector:null};var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:n,component:r.functionAdapter(t),source:o,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),n=typeof t;return"string"===n||"number"===n||"boolean"===n?Ye.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},ea([nt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=ea([tt("agComponentUtils")],e)}(),na=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},oa=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","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)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},na([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),na([Ze],e.prototype,"postConstruct",null),e=na([tt("componentMetadataProvider")],e)}(),ra=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ia=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},ra([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),ra([nt("context")],e.prototype,"context",void 0),ra([nt("columnApi")],e.prototype,"columnApi",void 0),ra([nt("gridApi")],e.prototype,"gridApi",void 0),ra([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ra([nt("expressionService")],e.prototype,"expressionService",void 0),ra([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),ra([nt("$compile")],e.prototype,"$compile",void 0),ra([nt("templateService")],e.prototype,"templateService",void 0),ra([nt("valueService")],e.prototype,"valueService",void 0),ra([nt("eventService")],e.prototype,"eventService",void 0),ra([nt("columnController")],e.prototype,"columnController",void 0),ra([nt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),ra([ot("rangeController")],e.prototype,"rangeController",void 0),ra([nt("focusController")],e.prototype,"focusController",void 0),ra([ot("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),ra([nt("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),ra([nt("popupService")],e.prototype,"popupService",void 0),ra([nt("valueFormatterService")],e.prototype,"valueFormatterService",void 0),ra([nt("stylingService")],e.prototype,"stylingService",void 0),ra([nt("columnHoverService")],e.prototype,"columnHoverService",void 0),ra([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),ra([nt("animationFrameService")],e.prototype,"taskQueue",void 0),ra([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ra([nt("sortController")],e.prototype,"sortController",void 0),ra([nt("filterManager")],e.prototype,"filterManager",void 0),ra([nt("maxDivHeightScaler")],e.prototype,"maxDivHeightScaler",void 0),ra([nt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),ra([nt("detailRowCompCache")],e.prototype,"detailRowCompCache",void 0),ra([nt("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),ra([nt("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),ra([nt("selectionController")],e.prototype,"selectionController",void 0),ra([Ze],e.prototype,"postConstruct",null),e=ra([tt("beans")],e)}(),sa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},aa={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:40,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:28,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:30,rowHeight:42,chartMenuPanelWidth:240}},la={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},ua={},ca=function(){function e(){}return e.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),o=aa[n][t],r=0;if(ua[e]||(ua[e]={}),ua[e][t])return ua[e][t];if(la[t]){var i=la[t],s=document.createElement("div");s.style.position="absolute";var a=i.reduce((function(t,n,o){0===o&&Ye.addCssClass(t,e);var r=document.createElement("div");return r.style.position="static",Ye.addCssClass(r,n),t.appendChild(r),r}),s);if(document.body){document.body.appendChild(s);var l=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(a)[l],10),document.body.removeChild(s)}}return ua[e][t]=r||o,ua[e][t]},e.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},e.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},e.prototype.getTheme=function(){for(var e,t=/\bag-(material|(?:theme-([\w\-]*)))\b/,n=this.eGridDiv;n&&!(e=t.exec(n.className));)n=n.parentElement;if(!e)return{};var o=e[0];if(void 0===e[2]){var r=o.replace("ag-","ag-theme-");Ye.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+o+" with "+r+".")}),"using-old-theme")}return{theme:o,el:n,themeFamily:o.replace(/-dark$/,"")}},sa([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=sa([tt("environment")],e)}(),pa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},da=function(){function e(){this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],o),this.schedule()},e.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},e.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},e.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}},e.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,o=this.createTasksP2,r=o.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0;l||a<e;){var u=void 0;if(n.length)this.sortTaskList(t),u=n.pop().task;else if(r.length)this.sortTaskList(o),u=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}u=i.pop()}this.cancelledTasks.has(u)||u(),a=(new Date).getTime()-s}n.length||r.length||i.length?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:Et.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},pa([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),pa([nt("eventService")],e.prototype,"eventService",void 0),pa([Ze],e.prototype,"init",null),e=pa([tt("animationFrameService")],e)}(),ha=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fa=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,n=e.altKey,o=e.ctrlKey,r=this.mouseEventService.getCellPositionForEvent(e);if(!r)return!1;var i=!1;switch(t){case ke.KEY_PAGE_HOME:case ke.KEY_PAGE_END:o||n||(this.onHomeOrEndKey(t),i=!0);break;case ke.KEY_LEFT:case ke.KEY_RIGHT:o&&!n&&(this.onCtrlLeftOrRight(t,r),i=!0);break;case ke.KEY_UP:case ke.KEY_DOWN:o&&!n&&(this.onCtrlUpOrDown(t,r),i=!0);break;case ke.KEY_PAGE_DOWN:o||n||(this.onPageDown(r),i=!0);break;case ke.KEY_PAGE_UP:o||n||(this.onPageUp(r),i=!0)}return i&&e.preventDefault(),i},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var o=this.paginationProxy.getPixelOffset(),r=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(r+o),s=this.paginationProxy.getRow(e.rowIndex).rowTop+n-o,a=this.paginationProxy.getRowIndexAtPixel(s+o),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),i>l&&(i=l),this.navigateTo(i,"top",null,a,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var o=this.paginationProxy.getPixelOffset(),r=t.top,i=this.paginationProxy.getRowIndexAtPixel(r+o),s=this.paginationProxy.getRow(e.rowIndex),a=s.rowTop+s.rowHeight-n-o,l=this.paginationProxy.getRowIndexAtPixel(a+o),u=this.paginationProxy.getPageFirstRow();l<u&&(l=u),i<u&&(i=u),this.navigateTo(i,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,n,o,r){if(Ye.exists(n)&&this.gridPanel.ensureColumnVisible(n),Ye.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusController.setFocusedCell(o,r,null,!0),this.rangeController){var i={rowIndex:o,rowPinned:null,column:r};this.rangeController.setRangeToCell(i)}},e.prototype.onCtrlUpOrDown=function(e,t){var n=e===ke.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(n,null,t.column,n,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var n=e===ke.KEY_LEFT,o=this.columnController.getAllDisplayedColumns(),r=n?o[0]:Ye.last(o);this.navigateTo(t.rowIndex,null,r,t.rowIndex,r)},e.prototype.onHomeOrEndKey=function(e){var t=e===ke.KEY_PAGE_HOME,n=this.columnController.getAllDisplayedColumns(),o=t?n[0]:Ye.last(n),r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,o,r,o)},ha([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),ha([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),ha([nt("focusController")],e.prototype,"focusController",void 0),ha([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),ha([ot("rangeController")],e.prototype,"rangeController",void 0),ha([nt("columnController")],e.prototype,"columnController",void 0),ha([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ha([Ze],e.prototype,"init",null),e=ha([tt("navigationService")],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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),va=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ma=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return ga(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.maxDivHeight=Ye.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:Et.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},va([nt("eventService")],t.prototype,"eventService",void 0),va([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),va([Ze],t.prototype,"postConstruct",null),t=va([tt("maxDivHeightScaler")],t)}(Ut),ya=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ca=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},e.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))}},e.prototype.recurseDown=function(e,t){var n=this;e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren){var r=Ye.find(t(e),"selectable",!0);o=Ye.exists(r)}else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},ya([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ya([Ze],e.prototype,"init",null),e=ya([tt("selectableService")],e)}(),wa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ea=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),Ye.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var n=this.gridPanel.getCenterContainer();n.appendChild(this.eDummyContainer);var o=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(n){var r=new Wr(t.$scope,t.beans,n,e,null,!0,!1);r.setParentRow(t.eDummyContainer),o.push(r)}));var r=o.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=r,o.forEach((function(e){return e.afterAttached()}));for(var i=0,s=0;s<this.eDummyContainer.children.length;s++){var a=this.eDummyContainer.children[s];a.offsetHeight>i&&(i=a.offsetHeight)}return n.removeChild(this.eDummyContainer),o.forEach((function(e){e.detach(),e.destroy()})),Ye.clearElement(this.eDummyContainer),i},wa([nt("beans")],e.prototype,"beans",void 0),wa([nt("$scope")],e.prototype,"$scope",void 0),wa([nt("columnController")],e.prototype,"columnController",void 0),e=wa([tt("autoHeightCalculator")],e)}(),ba=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_a=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Oa=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return ba(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Ye.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Ye.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Ye.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Ye.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===ke.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,Et.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):Ye.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),o=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n <span ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n '+n+'\n <span ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n '+o+'\n <span ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel">\n <div ref="btFirst" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("first","First")+'</button>\n </div>\n <div ref="btPrevious" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("previous","Previous")+'</button>\n </div>\n <span class="ag-paging-description">\n '+t+'\n <span ref="lbCurrent" class="ag-paging-number"></span>\n '+o+'\n <span ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <span ref="lbTotal" class="ag-paging-number"></span>\n <div ref="btNext" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("next","Next")+'</button>\n </div>\n <div ref="btLast" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("last","Last")+"</button>\n </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.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},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,Ye.addOrRemoveCssClass(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),Ye.addOrRemoveCssClass(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,Ye.addOrRemoveCssClass(this.btNext,"ag-disabled",this.nextButtonDisabled),this.lastButtonDisabled=!t||o||e===n-1,Ye.addOrRemoveCssClass(this.btLast,"ag-disabled",this.lastButtonDisabled)},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=o*n+1)+o-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.serverSideRowModel&&this.serverSideRowModel.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;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}},_a([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),_a([nt("eventService")],t.prototype,"eventService",void 0),_a([nt("paginationProxy")],t.prototype,"paginationProxy",void 0),_a([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),_a([nt("rowModel")],t.prototype,"rowModel",void 0),_a([Jt("btFirst")],t.prototype,"btFirst",void 0),_a([Jt("btPrevious")],t.prototype,"btPrevious",void 0),_a([Jt("btNext")],t.prototype,"btNext",void 0),_a([Jt("btLast")],t.prototype,"btLast",void 0),_a([Jt("lbRecordCount")],t.prototype,"lbRecordCount",void 0),_a([Jt("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),_a([Jt("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),_a([Jt("eSummaryPanel")],t.prototype,"eSummaryPanel",void 0),_a([Jt("lbCurrent")],t.prototype,"lbCurrent",void 0),_a([Jt("lbTotal")],t.prototype,"lbTotal",void 0),_a([Ze],t.prototype,"postConstruct",null),t}($t),Ra=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sa=function(){function e(){}return e.prototype.observeResize=function(e,t,n){void 0===n&&(n=50);var o,r,i,s,a,l=this.frameworkOverrides,u=Ye.debounce(t,n),c=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!c?((a=new window.ResizeObserver(u)).observe(e),function(){return a.disconnect()}):(o=Ye.offsetWidth(e),r=Ye.offsetHeight(e),i=!0,(s=function(){if(i){var a=Ye.offsetWidth(e),u=Ye.offsetHeight(e);(a!==o||u!==r)&&(o=a,r=u,t()),l.setTimeout(s,n)}})(),function(){return i=!1})},Ra([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ra([nt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),e=Ra([tt("resizeObserverService")],e)}(),Ta=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
284/**
285 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
286 * @version v23.1.1
287 * @link http://www.ag-grid.com/
288 * @license MIT
289 */!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Oi||(Oi={}));var Da=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n}return Ta(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){Ye.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===Oi.Loading),Ye.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===Oi.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Oi.Loading)},t.prototype.showNoRowsOverlay=function(){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Oi.NoRows)},t.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,Ye.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},t.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>',Pa([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pa([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Pa([Jt("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),Pa([Ze],t.prototype,"postConstruct",null),t}($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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Na=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xa=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,t.getTemplate(n))||this;o.suppressEnabledCheckbox=!0,o.suppressOpenCloseIcons=!1;var r=n.title,i=n.enabled,s=n.items,a=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return o.title=r,o.cssIdentifier=n.cssIdentifier||"default",o.enabled=null==i||i,o.items=s||[],o.alignItems=n.alignItems||"center",null!=a&&(o.suppressEnabledCheckbox=a),null!=l&&(o.suppressOpenCloseIcons=l),o}return Aa(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon"></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.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Ye.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Ye.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addDestroyableEventListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()}))},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;Ye.setDisplayed(this.eGroupClosedIcon,e&&!this.expanded),Ye.setDisplayed(this.eGroupOpenedIcon,e&&this.expanded),Ye.setDisplayed(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){var t=this.getGui();this.alignItems!==e&&Ye.removeCssClass(t,"ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var n="ag-group-item-alignment-"+this.alignItems;return Ye.addCssClass(t,n),this},t.prototype.toggleGroupExpand=function(e){if(this.suppressOpenCloseIcons)return this.expanded=!0,this.refreshChildDisplay(),Ye.setDisplayed(this.eContainer,!0),this;if(e=null!=e?e:!this.expanded,this.expanded===e)return this;if(this.expanded=e,this.refreshChildDisplay(),Ye.setDisplayed(this.eContainer,e),this.expanded){this.dispatchEvent({type:"expanded"})}else{this.dispatchEvent({type:"collapsed"})}return this},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,n=e instanceof $t?e.getGui():e;Ye.addCssClass(n,"ag-group-item"),Ye.addCssClass(n,"ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){var n=this.items[t];Ye.addOrRemoveCssClass(n,"ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){Ye.addCssClass(this.eTitleBar,e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(n){t.setEnabled(n,!0),e(n)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){Ye.addOrRemoveCssClass(this.getGui(),"ag-disabled",!this.enabled),Ye.addOrRemoveCssClass(this.eTitleBar,"ag-disabled-group-title-bar",this.suppressEnabledCheckbox&&!this.enabled),Ye.addOrRemoveCssClass(this.eContainer,"ag-disabled-group-container",!this.enabled)},Na([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Na([Jt("eTitleBar")],t.prototype,"eTitleBar",void 0),Na([Jt("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Na([Jt("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Na([Jt("eToolbar")],t.prototype,"eToolbar",void 0),Na([Jt("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Na([Jt("eTitle")],t.prototype,"eTitle",void 0),Na([Jt("eContainer")],t.prototype,"eContainer",void 0),Na([Ze],t.prototype,"postConstruct",null),t}($t),Ia=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ma=function(e){function t(n){var o=e.call(this,t.getTemplate(n))||this;return o.closable=!0,o.positioned=!1,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.size={width:void 0,height:void 0},o.config=n,o}return Ia(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,o=t.closable,r=t.hideTitleBar,i=t.title,s=t.minWidth,a=t.width,l=t.minHeight,u=t.height,c=t.centered,p=t.x,d=t.y,h=this.getGui();n&&this.setBodyComponent(n),r?Ye.addCssClass(this.eTitleBar,"ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addDestroyableEventListener(this.eTitleBar,"mousedown",(function(t){if(h.contains(t.relatedTarget)||h.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var n=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");n&&n.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=s?s:250,this.popupParent=this.popupService.getPopupParent(),a&&this.setWidth(a),u&&this.setHeight(u),this.renderComponent&&this.renderComponent(),a&&u||this.refreshSize(),c?this.center():(p||d)&&this.offsetElement(p,d),this.positioned=!0,this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=this.popupParent.getBoundingClientRect(),n=e.e,o=e.isLeft,r=e.isTop,i=e.anywhereWithin,s=e.topBuffer,a=n.clientX-this.dragStartPosition.x,l=n.clientY-this.dragStartPosition.y,u=this.getWidth(),c=this.getHeight(),p=t.left>=n.clientX&&this.position.x<=0||t.right<=n.clientX&&t.right<=this.position.x+t.left+u;return p||(p=o?a<0&&n.clientX>this.position.x+t.left||a>0&&n.clientX<this.position.x+t.left:i?a<0&&n.clientX>this.position.x+t.left+u||a>0&&n.clientX<this.position.x+t.left:a<0&&n.clientX>this.position.x+t.left+u||a>0&&n.clientX<this.position.x+t.left+u),{movementX:a=p?0:a,movementY:l=t.top>=n.clientY&&this.position.y<=0||t.bottom<=n.clientY&&t.bottom<=this.position.y+t.top+c||r&&(l<0&&n.clientY>this.position.y+t.top+(s||0)||l>0&&n.clientY<this.position.y+t.top)||!r&&(l<0&&n.clientY>this.position.y+t.top+c||l>0&&n.clientY<this.position.y+t.top+c)?0:l}},t.prototype.refreshSize=function(){var e=this.size,t=e.width,n=e.height;t||this.setWidth(this.getGui().offsetWidth),n||this.setHeight(this.getGui().offsetHeight)},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.getGui();this.popupService.positionPopup({ePopup:n,x:e,y:t,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(n.style.left,10),this.position.y=parseInt(n.style.top,10)},t.prototype.getHeight=function(){return this.size.height},t.prototype.setHeight=function(e){var t=this.getGui(),n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Ye.setFixedHeight(t,e),e=Ye.getAbsoluteHeight(t),n=!0;else{e=Math.max(this.minHeight,e);var o=t.offsetParent;o&&o.clientHeight&&e+this.position.y>o.clientHeight&&(e=o.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,n?(t.style.maxHeight="unset",t.style.minHeight="unset"):Ye.setFixedHeight(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Ye.setFixedWidth(t,e),e=Ye.getAbsoluteWidth(t),n=!0;else{e=Math.max(this.minWidth,e);var o=t.offsetParent;o&&o.clientWidth&&e+this.position.x>o.clientWidth&&(e=o.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,n?(t.style.maxWidth="unset",t.style.minWidth="unset"):Ye.setFixedWidth(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,n=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,n)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new $t(t.CLOSE_BTN_TEMPLATE);this.getContext().wireBean(n),(o=n.getGui()).appendChild(Ye.addCssClass(Ye.createIconNoSpan("close",this.gridOptionsWrapper),"ag-panel-title-bar-button-icon")),this.addTitleBarButton(n),n.addDestroyableEventListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var o;(o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp.destroy(),this.closeButtonComp=void 0}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,o=n.children,r=o.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r));var i=e.getGui();Ye.addCssClass(i,"ag-panel-title-bar-button"),0===t?n.insertAdjacentElement("afterbegin",i):t===r?n.insertAdjacentElement("beforeend",i):o[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return Ye.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Ye.getInnerWidth(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.destroy(),this.closeButtonComp=void 0);var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Fa([nt("popupService")],t.prototype,"popupService",void 0),Fa([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fa([Jt("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Fa([Jt("eTitleBar")],t.prototype,"eTitleBar",void 0),Fa([Jt("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Fa([Jt("eTitle")],t.prototype,"eTitle",void 0),Fa([Ze],t.prototype,"postConstruct",null),t}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ka=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ga=function(e){function t(t){var n=e.call(this,t)||this;return n.RESIZE_TEMPLATE='\n <div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>\n ',n.MAXIMIZE_BTN_TEMPLATE='<div class="ag-dialog-button"></span>',n.resizable={},n.movable=!1,n.isMoving=!1,n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.isResizing=!1,n.lastPosition={x:0,y:0,width:0,height:0},n}return La(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,s=o.maximizable;Ye.addCssClass(n,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addDestroyableEventListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),this.addResizers(),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,o=t.modal;this.close=this.popupService.addPopup(o,e,!0,this.destroy.bind(this),void 0,n),e.focus()},t.prototype.addResizers=function(){var e=this.getGui();if(e){var t=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;e.appendChild(t.firstChild),this.createMap()}},t.prototype.createMap=function(){var e=this.getGui();this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e){this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onResize=function(e,t){if(this.isResizing){var n=!!t.match(/left/i),o=!!t.match(/right/i),r=!!t.match(/top/i),i=!!t.match(/bottom/i),s=n||o,a=r||i,l=this.calculateMouseMovement({e:e,isLeft:n,isTop:r}),u=l.movementX,c=l.movementY,p=0,d=0;if(s&&u){var h=n?-1:1,f=this.getWidth(),g=f+u*h,v=!1;n&&(p=f-g,(this.position.x+p<=0||g<=this.minWidth)&&(v=!0,p=0)),v||this.setWidth(g)}if(a&&c){h=r?-1:1;var m=this.getHeight(),y=m+c*h,C=!1;r&&(d=m-y,(this.position.y+d<=0||y<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),(p||d)&&this.offsetElement(this.position.x+p,this.position.y+d)}},t.prototype.onResizeEnd=function(){this.isResizing=!1;var e={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.dispatchEvent(e)},t.prototype.onMoveStart=function(e){this.isMoving=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t=this.position,n=t.x,o=t.y,r=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),i=r.movementX,s=r.movementY;this.offsetElement(n+i,o+s),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1},t.prototype.toggleMaximize=function(){if(this.isMaximized){var e=this.lastPosition,t=e.x,n=e.y,o=e.width,r=e.height;this.setWidth(o),this.setHeight(r),this.offsetElement(t,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){Ye.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),Ye.addOrRemoveCssClass(this.minimizeIcon,"ag-hidden",!this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=void 0),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){var t=this;"boolean"==typeof e&&(e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}),Object.keys(e).forEach((function(n){var o=n,r=!!e[o],i=t.getResizerElement(o),s=t.resizerMap[o].dragSource||{eElement:i,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,o)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[o]===r&&(t.isAlive()||r)||(r?(t.dragService.addDragSource(s),i.style.pointerEvents="all"):(t.dragService.removeDragSource(s),i.style.pointerEvents="none"),t.resizerMap[o].dragSource=r?s:void 0)}))},t.prototype.setMovable=function(e){if(e!==this.movable){this.movable=e;var t=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}},t.prototype.setMaximizable=function(e){var t=this;if(!1===e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var o=this.maximizeButtonComp=new $t(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().wireBean(o);var r=o.getGui();r.appendChild(this.maximizeIcon=Ye.createIconNoSpan("maximize",this.gridOptionsWrapper)),Ye.addCssClass(this.maximizeIcon,"ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=Ye.createIconNoSpan("minimize",this.gridOptionsWrapper)),Ye.addCssClass(this.minimizeIcon,"ag-panel-title-bar-button-icon"),Ye.addCssClass(this.minimizeIcon,"ag-hidden"),o.addDestroyableEventListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addDestroyableEventListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addDestroyableEventListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},ka([nt("dragService")],t.prototype,"dragService",void 0),t}(Ma),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wa=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-field",n.displayTag="input",n.inputType="text",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return Va(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=t),o},t}(Gn),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ha=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-area",n.displayTag="textarea",n.inputType="",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return ja(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Gn),Ba=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),za=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ua=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.labelAlignment="top",n}return Ba(t,e),t.prototype.init=function(){Ye.addCssClass(this.eSlider.getGui(),"ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Mn.EVENT_CHANGED;return this.addDestroyableEventListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addDestroyableEventListener(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:Mn.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>',za([Jt("eLabel")],t.prototype,"eLabel",void 0),za([Jt("eSlider")],t.prototype,"eSlider",void 0),za([Jt("eText")],t.prototype,"eText",void 0),za([Ze],t.prototype,"init",null),t}(In),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ka=function(e){function t(n){var o=e.call(this,t.TEMPLATE)||this;return o.H=1,o.S=1,o.B=1,o.A=1,o.isSpectrumDragging=!1,o.isSpectrumHueDragging=!1,o.isSpectrumAlphaDragging=!1,o.colorChanged=!1,o.picker=n.picker,o}return Ya(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addDestroyableEventListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addDestroyableEventListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addDestroyableEventListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addDestroyableEventListener(document,"mouseup",this.onMouseUp.bind(this)),this.addDestroyableEventListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,o=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),o=Math.max(o,0),o=Math.min(o,t.height),this.setSpectrumValue(n/t.width,1-o/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.update=function(){var e=n.fromHSB(360*this.H,this.S,this.B,this.A),t=n.fromHSB(360*this.H,1,1),o=e.toRgbaString(),r=this.picker;n.fromString(r.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),r.setValue(o),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var o=this.spectrumDragger,r=o.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,o.style.left=e*n.width-r.width/2+"px",o.style.top=(1-t)*n.height-r.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=n.fromString(e),o=t.toHSB(),r=o[0],i=o[1],s=o[2];this.H=(isNaN(r)?0:r)/360,this.A=t.a;var a=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-a.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(i,s)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(Ye.exists(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=n.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=t.recentColors;this.colorChanged&&o[0]!==e&&(o=o.filter((function(t){return t!=e})),(o=[e].concat(o)).length>t.maxRecentColors&&(o=o.slice(0,t.maxRecentColors)),t.recentColors=o)},t.prototype.destroy=function(){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>',qa([Jt("spectrumColor")],t.prototype,"spectrumColor",void 0),qa([Jt("spectrumVal")],t.prototype,"spectrumVal",void 0),qa([Jt("spectrumDragger")],t.prototype,"spectrumDragger",void 0),qa([Jt("spectrumHue")],t.prototype,"spectrumHue",void 0),qa([Jt("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),qa([Jt("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),qa([Jt("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),qa([Jt("recentColors")],t.prototype,"recentColors",void 0),qa([Ze],t.prototype,"postConstruct",null),t}($t),$a=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TEMPLATE='<div class="ag-picker-field" role="presentation">\n <label ref="eLabel"></label>\n <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper" tabIndex="-1">\n <%displayField% ref="eDisplayField" class="ag-picker-field-display"></%displayField%>\n <div ref="eIcon" class="ag-picker-field-icon"></div>\n </div>\n </div>',t.isDestroyingPicker=!1,t.skipClick=!1,t}return $a(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},o=this.getGui();this.addDestroyableEventListener(o,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&Ye.isVisible(t.pickerComponent.getGui())&&o.contains(e.target)&&(t.skipClick=!0)})),this.addDestroyableEventListener(o,"keydown",(function(e){switch(e.keyCode){case ke.KEY_UP:case ke.KEY_DOWN:case ke.KEY_ENTER:case ke.KEY_SPACE:n();case ke.KEY_ESCAPE:e.preventDefault()}})),this.addDestroyableEventListener(this.eWrapper,"click",n),this.addDestroyableEventListener(this.eLabel,"click",n),this.pickerIcon&&this.eIcon.appendChild(Ye.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return Ye.setElementWidth(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Qa([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Qa([Jt("eLabel")],t.prototype,"eLabel",void 0),Qa([Jt("eWrapper")],t.prototype,"eWrapper",void 0),Qa([Jt("eDisplayField")],t.prototype,"eDisplayField",void 0),Qa([Jt("eIcon")],t.prototype,"eIcon",void 0),t}(Mn),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Za=function(e){function t(t){var n=e.call(this)||this;return n.displayTag="div",n.className="ag-color-picker",n.pickerIcon="colorPicker",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&t.color&&(n.value=t.color),n}return Ja(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=new Ga({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.getContext().wireBean(n),Ye.addCssClass(n.getGui(),"ag-color-dialog");var o=new Ka({picker:this});return this.getContext().wireBean(o),o.addDestroyFunc((function(){n.isAlive()&&n.destroy()})),n.setParentComponent(this),n.setBodyComponent(o),o.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,o.isAlive()&&o.destroy()),e.isAlive()&&e.getFocusableElement().focus()})),n},t.prototype.setValue=function(e){return this.value===e||(this.value=e,this.eDisplayField.style.backgroundColor=e,this.dispatchEvent({type:Mn.EVENT_CHANGED})),this},t.prototype.getValue=function(){return this.value},t}(Xa),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return el(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)}))},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,null!=this.min?this.eInput.setAttribute("min",e.toString()):this.eInput.removeAttribute("min")),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,null!=this.max?this.eInput.setAttribute("max",e.toString()):this.eInput.removeAttribute("max")),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,null!=e?this.eInput.setAttribute("step",e.toString()):this.eInput.removeAttribute("step")),this},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(Wa),nl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ol=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-range-field",n.displayTag="input",n.inputType="range",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return nl(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,o=t.max,r=t.step;null!=n&&this.setMinValue(n),null!=o&&this.setMaxValue(o),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this,t=Ye.isBrowserIE()?"change":"input";this.addDestroyableEventListener(this.eInput,t,(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.step=e,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 o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t}(Gn),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),il=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sl=function(e){function t(n){void 0===n&&(n="default");var o=e.call(this,t.getTemplate(n))||this;return o.cssIdentifier=n,o.options=[],o.itemEls=[],o}return rl(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.getTemplate=function(e){return'<div class="ag-list ag-'+e+'-list"></div>'},t.prototype.handleKeyDown=function(e){var t=e.keyCode;switch(t){case ke.KEY_ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case ke.KEY_DOWN:case ke.KEY_UP:var o=t===ke.KEY_DOWN,r=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(o?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[o?0:this.itemEls.length-1];this.highlightItem(r)}},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=e.text,o=Ye.escape(void 0===n?t:n);return this.options.push({value:t,text:o}),this.renderOption(o),this},t.prototype.renderOption=function(e){var t=this,n=document.createElement("div"),o=document.createElement("span");Ye.addCssClass(n,"ag-list-item"),Ye.addCssClass(n,"ag-"+this.cssIdentifier+"-list-item"),n.tabIndex=-1,o.innerHTML=e,this.itemEls.push(n),this.addDestroyableEventListener(n,"mouseover",(function(e){return t.highlightItem(n)})),this.addDestroyableEventListener(n,"mouseleave",(function(){return t.clearHighlighted()})),this.addDestroyableEventListener(n,"click",(function(){var e=t.itemEls.indexOf(n);t.setValueByIndex(e)})),n.appendChild(o),this.getGui().appendChild(n)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=Ye.findIndex(this.options,(function(t){return t.value===e}));if(-1!==n){var o=this.options[n];this.value=o.value,this.displayValue=null!=o.text?o.text:o.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=Ye.findIndex(this.options,(function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(Ye.radioCssClass(e,"ag-active-item"),this.highlightedEl=e,this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(Ye.removeCssClass(this.highlightedEl,"ag-active-item"),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Mn.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",il([Ze],t.prototype,"init",null),t}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ll=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ul=function(e){function t(t){var n=e.call(this)||this;return n.displayTag="div",n.className="ag-select",n.pickerIcon="smallDown",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),n}return al(t,e),t.prototype.init=function(){var e=this;this.listComponent=new sl("select"),this.getContext().wireBean(this.listComponent),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addDestroyableEventListener(this.listComponent,sl.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addDestroyableEventListener(this.listComponent,Mn.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.addDestroyableEventListener(document.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),o=this.addDestroyableEventListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()}));return this.hideList=this.popupService.addPopup(!0,t,!0,(function(){e.hideList=null,o(),n(),e.isAlive()&&e.getFocusableElement().focus()})),Ye.setElementWidth(t,Ye.getAbsoluteWidth(this.eWrapper)),t.style.maxHeight=Ye.getInnerHeight(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,o){if(this.value!==t&&(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()!==this.getValue()))return this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.listComponent.destroy(),e.prototype.destroy.call(this)},ll([nt("popupService")],t.prototype,"popupService",void 0),ll([Ze],t.prototype,"init",null),t}(Xa),cl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dl=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}return cl(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(),Ye.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addDestroyableEventListener(this,Mn.EVENT_CHANGED,(function(){t.eAngleValue.getInputElement().contains(document.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,o=t.width/2,r=t.height/2;n.style.left=o+8*Math.cos(e)+"px",n.style.top=r+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,o=t.height/2,r=e.clientX-t.left-n,i=e.clientY-t.top-o,s=Math.atan2(i,r);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addDestroyableEventListener(this,Mn.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:Mn.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Ye.setFixedWidth(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 <label ref="eLabel"></label>\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>',pl([Jt("eLabel")],t.prototype,"eLabel",void 0),pl([Jt("eParentCircle")],t.prototype,"eParentCircle",void 0),pl([Jt("eChildCircle")],t.prototype,"eChildCircle",void 0),pl([Jt("eAngleValue")],t.prototype,"eAngleValue",void 0),pl([nt("dragService")],t.prototype,"dragService",void 0),t}(In),hl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t.inputType="checkbox",t}return hl(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),Ye.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(Ts),gl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vl=function(){function e(){this.cacheItems=[]}return e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(e,t,n){if(!this.active||!e.detail)this.destroyFullWidthRow(n);else{var o=this.getCacheItem(e,!0);switch(t){case ke.PINNED_LEFT:this.destroyFullWidthRow(o.left),o.left=n;break;case ke.PINNED_RIGHT:this.destroyFullWidthRow(o.right),o.right=n;break;default:this.destroyFullWidthRow(o.center),o.center=n}this.cacheItems.sort((function(e,t){return t.lastAccessedTime-e.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}},e.prototype.getCacheItem=function(e,t){var n;void 0===t&&(t=!1);for(var o=0;o<this.cacheItems.length;o++){var r=this.cacheItems[o];if(r.rowNode===e){n=r;break}}return!n&&t&&(n={rowNode:e},this.cacheItems.push(n)),n&&this.stampCacheItem(n),n},e.prototype.stampCacheItem=function(e){e.lastAccessedTime=(new Date).getTime()},e.prototype.destroyFullWidthRow=function(e){e&&e.destroy&&e.destroy()},e.prototype.purgeCache=function(e){for(var t=e;t<this.cacheItems.length;t++){var n=this.cacheItems[t];this.destroyFullWidthRow(n.center),this.destroyFullWidthRow(n.left),this.destroyFullWidthRow(n.right)}this.cacheItems.length>e&&(this.cacheItems.length=e)},e.prototype.get=function(e,t){if(e.detail){var n,o=this.getCacheItem(e);if(o)switch(t){case ke.PINNED_LEFT:o.left&&(n=o.left,o.left=void 0);break;case ke.PINNED_RIGHT:o.right&&(n=o.right,o.right=void 0);break;default:o.center&&(n=o.center,o.center=void 0)}return n}},e.prototype.destroy=function(){this.purgeCache(0)},gl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),gl([Ze],e.prototype,"postConstruct",null),gl([et],e.prototype,"destroy",null),e=gl([tt("detailRowCompCache")],e)}(),ml=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yl=function(){function e(){}return e.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},e.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},e.prototype.before=function(e,t){switch(e.rowPinned){case ke.PINNED_TOP:if(t.rowPinned!==ke.PINNED_TOP)return!0;break;case ke.PINNED_BOTTOM:if(t.rowPinned!==ke.PINNED_BOTTOM)return!1;break;default:if(Ye.exists(t.rowPinned))return t.rowPinned!==ke.PINNED_TOP}return e.rowIndex<t.rowIndex},ml([nt("rowModel")],e.prototype,"rowModel",void 0),ml([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),e=ml([tt("rowPositionUtils")],e)}(),Cl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wl=function(){function e(){}return e.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,o=e.column;return this.createIdFromValues(t,o,n)},e.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},e.prototype.equals=function(e,t){var n=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return n&&o&&r},e=Cl([tt("cellPositionUtils")],e)}(),El=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bl=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===ke.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return Ye.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var n=t===ke.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(Ye.missingOrEmpty(n))return 0;for(var o=0;o<n.length;o++){var r=n[o];if(r.rowTop+r.rowHeight-1>=e)return o}return n.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Et.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Et.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var n=this,o=[];if(e){var r=0;e.forEach((function(e,i){var s=new An;n.context.wireBean(s),s.data=e,s.id=(t?"t":"b")+"-"+i,s.rowPinned=t?ke.PINNED_TOP:ke.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),r+=s.rowHeight,o.push(s)}))}return o},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){Ye.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){Ye.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=Ye.last(e);return t.rowTop+t.rowHeight}return 0},El([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),El([nt("eventService")],e.prototype,"eventService",void 0),El([nt("context")],e.prototype,"context",void 0),El([nt("columnApi")],e.prototype,"columnApi",void 0),El([nt("gridApi")],e.prototype,"gridApi",void 0),El([Ze],e.prototype,"init",null),e=El([tt("pinnedRowModel")],e)}(),_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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ol=function(e){this.cellValueChanges=e},Rl=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return _l(t,e),t}(Ol),Sl=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.DEFAULT_STACK_SIZE=10,e}(),Tl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pl=function(){function e(){var e=this;this.cellValueChanges=[],this.isCellEditing=!1,this.isRowEditing=!1,this.isPasting=!1,this.isFilling=!1,this.events=[],this.onCellValueChanged=function(t){if(e.isCellEditing||e.isRowEditing||e.isPasting||e.isFilling){var n=t.rowPinned,o=t.rowIndex,r=t.column,i=t.oldValue,s=t.value,a={rowPinned:n,rowIndex:o,columnId:r.getColId(),oldValue:i,newValue:s};e.cellValueChanges.push(a)}},this.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()}}return e.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new Sl(e),this.redoStack=new Sl(e),this.events=[].concat(this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),[this.eventService.addEventListener(Et.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.eventService.addEventListener(Et.EVENT_MODEL_UPDATED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_MOVED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_PINNED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_VISIBLE,this.clearStacks),this.eventService.addEventListener(Et.EVENT_ROW_DRAG_END,this.clearStacks)]))}},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Rl?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},e.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Rl?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},e.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach((function(e){var o=e.rowIndex,r=e.rowPinned,i=e.columnId,s={rowIndex:o,rowPinned:r},a=n.getRowNode(s);null!=a.rowTop&&a.setDataValue(i,t(e))}))},e.prototype.processRangeAndCellFocus=function(e,t){if(t){var n=t.startRow,o=t.endRow,r={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:t.startColumn.getColId()};this.setLastFocusedCell(r);var i={rowStartIndex:n.rowIndex,rowStartPinned:n.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),u={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId};this.setLastFocusedCell(u)}},e.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,o=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(o),pt.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusController.setFocusedCell(n,o,r,!0)},e.prototype.addRowEditingListeners=function(){var e=this;return[this.eventService.addEventListener(Et.EVENT_ROW_EDITING_STARTED,(function(){e.isRowEditing=!0})),this.eventService.addEventListener(Et.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Ol(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isRowEditing=!1}))]},e.prototype.addCellEditingListeners=function(){var e=this;return[this.eventService.addEventListener(Et.EVENT_CELL_EDITING_STARTED,(function(){e.isCellEditing=!0})),this.eventService.addEventListener(Et.EVENT_CELL_EDITING_STOPPED,(function(){if(e.isCellEditing=!1,!e.isRowEditing&&!e.isPasting&&!e.isFilling){var t=new Ol(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))]},e.prototype.addPasteListeners=function(){var e=this;return[this.eventService.addEventListener(Et.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.eventService.addEventListener(Et.EVENT_PASTE_END,(function(){var t=new Ol(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))]},e.prototype.addFillListeners=function(){var e=this;return[this.eventService.addEventListener(Et.EVENT_FILL_START,(function(){e.isFilling=!0})),this.eventService.addEventListener(Et.EVENT_FILL_END,(function(t){var n=new Rl(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))]},e.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Tl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Tl([nt("focusController")],e.prototype,"focusController",void 0),Tl([nt("eventService")],e.prototype,"eventService",void 0),Tl([nt("gridApi")],e.prototype,"gridApi",void 0),Tl([nt("rowModel")],e.prototype,"rowModel",void 0),Tl([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Tl([Ze],e.prototype,"init",null),Tl([et],e.prototype,"destroy",null),e=Tl([tt("undoRedoService")],e)}(),Dl=function(){function e(e,n,o){if(e)if(n){var r=!!n.debug;this.gridOptions=n;var i=this.getRegisteredModules(o),s=this.createBeansList(i),a=this.createAgStackComponentsList(i),l=this.createProvidedBeans(e,o);if(s){var u={providedBeanInstances:l,beanClasses:s,components:a,debug:r};this.logger=new ns("ag-Grid",(function(){return n.debug}));var c=new ns("Context",(function(){return u.debug}));this.context=new Xe(u,c),this.registerModuleUserComponents(i);var p=new(o&&o.rootComponent||us);this.context.wireBean(p),this.setColumnsAndData(),this.dispatchGridReadyEvent(n);var d=pt.isRegistered(t.ModuleNames.EnterpriseCoreModule);this.logger.log("initialised successfully, enterprise = "+d)}}else console.error("ag-Grid: no gridOptions provided to the grid");else console.error("ag-Grid: no div element provided to the grid")}return e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=pt.getRegisteredModules(),o=[],r={};function i(e,t){!function(t){r[t.moduleName]||(r[t.moduleName]=!0,o.push(t),pt.register(t,e))}(t),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!pt.isPackageBased())),o},e.prototype.registerModuleUserComponents=function(e){var t=this.context.getBean("userComponentRegistry");this.extractModuleEntity(e,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(e){t.registerDefaultComponent(e.componentName,e.componentClass)}))},e.prototype.createProvidedBeans=function(e,t){var n=t?t.frameworkOverrides:null;Ye.missing(n)&&(n=new Ps);var o={gridOptions:this.gridOptions,eGridDiv:e,$scope:t?t.$scope:null,$compile:t?t.$compile:null,quickFilterOnScope:t?t.quickFilterOnScope:null,globalEventListener:t?t.globalEventListener:null,frameworkOverrides:n};return t&&t.providedBeanInstances&&Ye.assign(o,t.providedBeanInstances),o},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:jn},{componentName:"AgRadioButton",componentClass:Ts},{componentName:"AgToggleButton",componentClass:fl},{componentName:"AgInputTextField",componentClass:Wa},{componentName:"AgInputTextArea",componentClass:Ha},{componentName:"AgInputNumberField",componentClass:tl},{componentName:"AgInputRange",componentClass:ol},{componentName:"AgSelect",componentClass:ul},{componentName:"AgSlider",componentClass:Ua},{componentName:"AgAngleSelect",componentClass:dl},{componentName:"AgColorPicker",componentClass:Za},{componentName:"AgGridComp",componentClass:Bi},{componentName:"AgHeaderRoot",componentClass:Ai},{componentName:"AgPagination",componentClass:Oa},{componentName:"AgOverlayWrapper",componentClass:Da},{componentName:"AgGroupComponent",componentClass:xa},{componentName:"AgPanel",componentClass:Ma},{componentName:"AgDialog",componentClass:Ga}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e){var t=this.getRowModelClass(e);if(t){var n=[t,ia,yl,wl,Us,Ui,ur,ta,oa,Sa,lo,ma,Ea,_s,ss,bl,hs,Dt,ct,Vt,Ji,hr,xi,Rt,Hs,qr,Ki,wt,Qi,Zs,fa,qs,Fi,ts,Tt,rs,ps,Er,gr,ms,Cs,ca,Es,Rs,xs,As,gs,Ms,ks,Ca,Vs,Qs,da,vl,Pl],o=this.extractModuleEntity(e,(function(e){return e.beans?e.beans:[]}));n.push.apply(n,o);var r=[];return n.forEach((function(e){r.indexOf(e)<0&&r.push(e)})),r}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),n=e.getColumnDefs();Ye.exists(n)&&t.setColumnDefs(n,"gridInitializing"),this.context.getBean("rowModel").start()},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),n={type:Et.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(n)},e.prototype.getRowModelClass=function(e){var n=this.gridOptions.rowModelType;"enterprise"===n&&(console.warn("ag-Grid: enterprise rowModel deprecated. Should now be called server side row model instead."),n=ke.ROW_MODEL_TYPE_SERVER_SIDE),"normal"===n&&(console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),n=ke.ROW_MODEL_TYPE_CLIENT_SIDE),n||(n=ke.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};e.forEach((function(e){Ye.iterateObject(e.rowModels,(function(e,t){o[e]=t}))}));var r=o[n];return Ye.exists(r)?r:(n===ke.ROW_MODEL_TYPE_INFINITE&&console.error('ag-Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" is registered.';"),console.error("ag-Grid: could not find matching row model for rowModelType "+n),n===ke.ROW_MODEL_TYPE_VIEWPORT&&console.error('ag-Grid: Row Model "Viewport" not found. Please ensure the ag-Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" is registered.';"),n===ke.ROW_MODEL_TYPE_SERVER_SIDE&&console.error('ag-Grid: Row Model "Server Side" not found. Please ensure the ag-Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" is registered.';"),void(n===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error('ag-Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" is registered.';")))},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e}();
290/**
291 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
292 * @version v23.1.1
293 * @link http://www.ag-grid.com/
294 * @license MIT
295 */function Al(e,t,n,o){var r,i,s=o.agGrid;if(i=s+".quickFilterText",r=t.$eval(s)){var a=e[0],l=new Dl(a,r,{$scope:t,$compile:n,quickFilterOnScope:i});t.$on("$destroy",(function(){l.destroy(),l=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}
296/**
297 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
298 * @version v23.1.1
299 * @link http://www.ag-grid.com/
300 * @license MIT
301 */var Nl=!1;
302/**
303 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
304 * @version v23.1.1
305 * @link http://www.ag-grid.com/
306 * @license MIT
307 */
308var xl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Il=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xl(t,e),t.prototype.onTabKeyDown=function(e){e.preventDefault()},t.prototype.attachListenersToGui=function(){var e=this,t=this.getGui();t&&(this.tabListener&&(this.tabListener=this.tabListener()),this.tabListener=this.addDestroyableEventListener(t,"keydown",(function(t){t.keyCode===ke.KEY_TAB&&e.onTabKeyDown(t)})))},Il([Ze],t.prototype,"attachListenersToGui",null),t}($t),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ll=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kl=function(e){function t(n){var o=e.call(this,t.getTemplate(n.cssClass))||this;return o.items=[],o.params=n,n.items&&n.items.forEach((function(e){return o.addItem(e)})),o}return Ml(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case ke.KEY_RIGHT:case ke.KEY_LEFT:if(!this.eHeader.contains(document.activeElement))return;var t=this.items.indexOf(this.activeItem),n=e.keyCode===ke.KEY_RIGHT?Math.min(t+1,this.items.length-1):Math.max(t-1,0);if(t===n)return;e.preventDefault();var o=this.items[n];this.showItemWrapper(o),o.eHeaderButton.focus();break;case ke.KEY_UP:case ke.KEY_DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(t){e.prototype.onTabKeyDown.call(this,t);var n=this.focusController.findFocusableElements(this.eBody,".ag-set-filter-list *, .ag-menu-list *"),o=document.activeElement;if(this.eHeader.contains(o))n.length&&n[t.shiftKey?n.length-1:0].focus();else{var r=n.indexOf(o),i=t.shiftKey?r-1:r+1;if(i<0||i>=n.length)return void this.activeItem.eHeaderButton.focus();var s=n[i];s&&s.focus()}},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.getMinDimensions=function(){var e=this.getGui().cloneNode(!0),t=e.querySelector('[ref="eBody"]');e.style.position="fixed",this.getGui().appendChild(e);var n=0,o=0;return this.items.forEach((function(r){Ye.clearElement(t);var i=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=i&&(t.appendChild(i),n<e.offsetWidth&&(n=e.offsetWidth),o<e.offsetHeight&&(o=e.offsetHeight))})),this.getGui().removeChild(e),{height:o,width:n}},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");t.tabIndex=-1,t.appendChild(e.title),Ye.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);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=Ye.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(Ye.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e),e.focus()})),this.activeItem&&Ye.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),Ye.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):Ye.callIfPresent(this.params.onActiveItemClicked)},Ll([nt("focusController")],t.prototype,"focusController",void 0),Ll([Jt("eHeader")],t.prototype,"eHeader",void 0),Ll([Jt("eBody")],t.prototype,"eBody",void 0),Ll([Ze],t.prototype,"init",null),t}(Fl);
309/**
310 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
311 * @version v23.1.1
312 * @link http://www.ag-grid.com/
313 * @license MIT
314 */
315var 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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vl=function(e){function t(n,o){var r=e.call(this)||this;return r.version=0,r.state=t.STATE_DIRTY,r.rowNodeCacheParams=o,r.blockNumber=n,r.startRow=n*o.blockSize,r.endRow=r.startRow+o.blockSize,r}return Gl(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var n=this.startRow;n<this.endRow;n++){if(n<t)e(this.getRowUsingLocalIndex(n),n)}},t.prototype.forEachNode=function(e,t,n,o){this.forEachNodeCallback((function(n){e(n,t.next()),o&&n.childrenCache&&n.childrenCache.forEachNodeDeep(e,t)}),n)},t.prototype.forEachNodeDeep=function(e,t,n){this.forEachNode(e,t,n,!0)},t.prototype.forEachNodeShallow=function(e,t,n){this.forEachNode(e,t,n,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var n=e-this.startRow;this.rowNodes[n]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,n=this.createBlankRowNode(e);return this.rowNodes[t]=n,n},t.prototype.setNewData=function(e,t){var n=this.setBlankRowNode(e);return this.setDataAndId(n,t,this.startRow+e),n},t.prototype.createBlankRowNode=function(e){var t=new An;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,n=this.createBlankRowNode(t);this.rowNodes.push(n)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,n=[];this.rowNodes.forEach((function(o,r){var i=e[r];o.stub&&n.push(o),t.setDataAndId(o,i,t.startRow+r)})),n.length>0&&this.beans.rowRenderer.redrawRows(n)},t.prototype.destroy=function(){this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()})),e.prototype.destroy.call(this)},t.prototype.pageLoaded=function(e,n,o){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(n)),o=Ye.cleanNumber(o);var r={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:o};this.dispatchEvent(r)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Ut),Wl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},jl=function(e,t){return function(n,o){t(n,o,e)}},Hl=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=Ye.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){Ye.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===Vl.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getNodeIdPrefix(),o={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};Ye.exists(n)?e[n+t.getBlockNumber()]=o:e[t.getBlockNumber()]=o})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},Wl([jl(0,it("loggerFactory"))],e.prototype,"setBeans",null),e}(),Bl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ul=function(e){function t(t){var n=e.call(this)||this;return n.maxRowFound=!1,n.blocks={},n.blockCount=0,n.virtualRowCount=t.initialRowCount,n.cacheParams=t,n}return Bl(t,e),t.prototype.destroy=function(){var t=this;this.forEachBlockInOrder((function(e){return t.destroyBlock(e)})),e.prototype.destroy.call(this)},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,o=[];this.forEachBlockInOrder((function(t){t!==e&&o.push(t)})),o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,i=r?this.cacheParams.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===Vl.STATE_DIRTY&&t>=s||!!r&&t>=i){if(e.isAnyNodeOpen(n.virtualRowCount))return;if(n.isBlockCurrentlyDisplayed(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=this.rowRenderer.getFirstVirtualRenderedRow(),n=this.rowRenderer.getLastVirtualRenderedRow(),o=e.getDisplayIndexStart(),r=e.getDisplayIndexEnd()-1;return null!=o&&null!=r&&(!(o>n)&&!(r<t))},t.prototype.postCreateBlock=function(e){e.addEventListener(Vl.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var n=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<n?(this.virtualRowCount=n,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,Ye.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var n=this;void 0===t&&(t=new qe),this.forEachBlockInOrder((function(o){o.forEachNodeDeep(e,t,n.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var n=this;e.forEach((function(e){var o=n.blocks[e];t(o,e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.forEachBlockInOrder((function(n,o){o*e.cacheParams.blockSize>=e.virtualRowCount&&t.push(n)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),this.maxRowFound=!1,0===this.virtualRowCount&&(this.virtualRowCount=this.cacheParams.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,o=[],r=-1,i=!1,s=new qe;Ye.missing(e)&&(i=!0);var a=!1;return this.forEachBlockInOrder((function(l,u){a||(i&&r+1!==u?a=!0:(r=u,l.forEachNodeShallow((function(n){var r=n===e||n===t;(i||r)&&o.push(n),r&&(i=!i)}),s,n.virtualRowCount)))})),a||i?[]:o},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,zl([nt("eventService")],t.prototype,"eventService",void 0),zl([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),zl([Ze],t.prototype,"init",null),t}(Ut),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ql=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kl=function(e){function t(n){void 0===n&&(n="default");var o=e.call(this,t.getTemplate(n))||this;return o.cssIdentifier=n,o.rowsInBodyContainer={},o.rowHeight=20,o}return Yl(t,e),t.prototype.init=function(){this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener(),this.rowHeight=this.getItemHeight()},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container"></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("invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,o=n+this.rowHeight,r=this.getGui(),i=r.scrollTop,s=r.offsetHeight,a=i+s<o;if(i>n)r.scrollTop=n;else if(a){var l=o-s;r.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(){Ye.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},t.prototype.clearVirtualRows=function(){var e=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(e)},t.prototype.drawVirtualRows=function(){var e=this.getGui().scrollTop,t=e+this.getGui().offsetHeight,n=Math.floor(e/this.rowHeight),o=Math.floor(t/this.rowHeight);this.ensureRowsRendered(n,o)},t.prototype.ensureRowsRendered=function(e,t){for(var n=Object.keys(this.rowsInBodyContainer),o=e;o<=t;o++)if(n.indexOf(o.toString())>=0)n.splice(n.indexOf(o.toString()),1);else if(this.model.getRowCount()>o){var r=this.model.getRow(o);this.insertRow(r,o)}this.removeVirtualRows(n)},t.prototype.removeVirtualRows=function(e){var t=this;e.forEach((function(e){var n=t.rowsInBodyContainer[e];t.eListContainer.removeChild(n.eDiv),n.rowComponent.destroy&&n.rowComponent.destroy(),delete t.rowsInBodyContainer[e]}))},t.prototype.insertRow=function(e,t){var n=document.createElement("div");Ye.addCssClass(n,"ag-virtual-list-item"),Ye.addCssClass(n,"ag-"+this.cssIdentifier+"-virtual-list-item"),n.style.height=this.rowHeight+"px",n.style.top=this.rowHeight*t+"px";var o=this.componentCreator(e);n.appendChild(o.getGui()),this.eListContainer.appendChild(n),this.rowsInBodyContainer[t]={rowComponent:o,eDiv:n}},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},ql([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ql([Ze],t.prototype,"init",null),t}($t);
316/**
317 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
318 * @version v23.1.1
319 * @link http://www.ag-grid.com/
320 * @license MIT
321 */
322var $l,Ql,Xl=function(){function e(){}return e.prototype.wrap=function(e,t,n,o,r){var i=this;void 0===n&&(n=[]);var s=this.createWrapper(e,o,r);return t.forEach((function(e){i.createMethod(s,e,!0)})),n.forEach((function(e){i.createMethod(s,e,!1)})),s},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}();
323/**
324 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
325 * @version v23.1.1
326 * @link http://www.ag-grid.com/
327 * @license MIT
328 */($l=t.ChartType||(t.ChartType={})).GroupedColumn="groupedColumn",$l.StackedColumn="stackedColumn",$l.NormalizedColumn="normalizedColumn",$l.GroupedBar="groupedBar",$l.StackedBar="stackedBar",$l.NormalizedBar="normalizedBar",$l.Line="line",$l.Scatter="scatter",$l.Bubble="bubble",$l.Pie="pie",$l.Doughnut="doughnut",$l.Area="area",$l.StackedArea="stackedArea",$l.NormalizedArea="normalizedArea",$l.Histogram="histogram",(Ql=t.LegendPosition||(t.LegendPosition={})).Top="top",Ql.Right="right",Ql.Bottom="bottom",Ql.Left="left";
329/**
330 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
331 * @version v23.1.1
332 * @link http://www.ag-grid.com/
333 * @license MIT
334 */
335var Jl=void 0===e?{}:e;Jl.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Jl.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Jl.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Jl.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Jl.Node="undefined"==typeof Node?{}:Node,Jl.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var Zl,eu=function(){function e(t,n,o,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.context=o,this.eventService=r,this.columnController=i,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=Ye.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.getNodeChildDetails&&console.warn("ag-Grid: the callback nodeChildDetailsFunc() is now deprecated. The new way of doing\n tree data in ag-Grid was introduced in v14 (released November 2017). In the next\n major release of ag-Grid we will be dropping support for the old version of\n tree data. If you are reading this message, please go to the docs to see how\n to implement Tree Data without using nodeChildDetailsFunc().")},e.prototype.getCopyOfNodesMap=function(){return Ye.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var n=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=n,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=n},e.prototype.updateRowData=function(e,t){if(this.isLegacyTreeData())return null;var n={remove:[],update:[],add:[]};return this.executeAdd(e,n),this.executeRemove(e,n),this.executeUpdate(e,n),t&&Ye.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.executeAdd=function(e,t){var n=this,o=e.add,r=e.addIndex;o&&("number"==typeof r&&r>=0?o.reverse().forEach((function(e){var o=n.addRowNode(e,r);t.add.push(o)})):o.forEach((function(e){var o=n.addRowNode(e);t.add.push(o)})))},e.prototype.executeRemove=function(e,t){var n=this,o=e.remove;if(o){var r={},i=!1;if(o.forEach((function(e){var o=n.lookupRowNode(e);o&&(o.isSelected()&&(i=!0),o.setSelected(!1,!1,!0),o.clearRowTop(),r[o.id]=!0,delete n.allNodesMap[o.id],t.remove.push(o))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!r[e.id]})),i){this.selectionController.updateGroupsFromChildrenSelections();var s={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}}},e.prototype.executeUpdate=function(e,t){var n=this,o=e.update;o&&o.forEach((function(e){var o=n.lookupRowNode(e);o&&(o.updateData(e),t.update.push(o))}))},e.prototype.addRowNode=function(t,n){var o=this.createNode(t,this.rootNode,e.TOP_LEVEL);return Ye.exists(n)?Ye.insertIntoArray(this.rootNode.allLeafChildren,o,n):this.rootNode.allLeafChildren.push(o),o},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowNodeIdFunc();if(Ye.exists(n)){var o=n(e);if(!(t=this.allNodesMap[o]))return console.error("ag-Grid: could not find row id="+o+", data item was not found for this id"),null}else if(!(t=Ye.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.recursiveFunction=function(e,t,n){var o=this;if("string"!=typeof e){var r=[];return e.forEach((function(e){var i=o.createNode(e,t,n);r.push(i)})),r}console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.createNode=function(e,t,n){var o=new An;this.context.wireBean(o);var r=this.gridOptionsWrapper.isTreeData(),i=!r&&Ye.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(i&&i.group)o.group=!0,o.childrenAfterGroup=this.recursiveFunction(i.children,o,n+1),o.expanded=!0===i.expanded,o.field=i.field,o.key=i.key,o.canFlower=o.master,this.setLeafChildren(o);else if(o.group=!1,r)o.master=!1,o.expanded=!1;else{this.doesDataFlower?o.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?o.master=this.isRowMasterFunc(e):o.master=!0:o.master=!1;var s=this.columnController.getRowGroupColumns(),a=n+(s?s.length:0);o.expanded=!!o.master&&this.isExpanded(a)}return o.canFlower=o.master,t&&!this.suppressParentsInRowNodes&&(o.parent=t),o.level=n,o.setDataAndId(e,this.nextId.toString()),this.allNodesMap[o.id]&&console.warn("ag-grid: duplicate node id '"+o.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!Ye.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),tu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(Zl||(Zl={}));var nu,ou=function(){function e(){this.events=[]}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:ke.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:ke.STEP_EVERYTHING,afterColumnsChanged:!0});this.events=[this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:ke.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(Et.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(Et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(Et.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,e)],this.refreshMapFunc=this.refreshModel.bind(this,{step:ke.STEP_MAP,keepRenderedRows:!0,animate:!0}),this.gridOptionsWrapper.addEventListener(Vt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshMapFunc),this.gridOptionsWrapper.addEventListener(Vt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,this.refreshMapFunc),this.rootNode=new An,this.nodeManager=new eu(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[]),this.gridOptionsWrapper.removeEventListener(Vt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshMapFunc),this.gridOptionsWrapper.removeEventListener(Vt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,this.refreshMapFunc)},e.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},e.prototype.ensureRowHeightsValid=function(e,t,n,o){var r,i=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,o),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(p);p.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTops()}while(r);return i},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var n=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,o=this.rowsToDisplay[t];if(Ye.missing(o.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(o,n);o.setRowHeight(r.height,r.estimated)}o.setRowTop(e),o.setRowIndex(t),e+=o.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup)if(!(t.isActive()&&!e.expanded))for(var n=0;n<e.childrenAfterGroup.length;n++)this.resetRowTops(e.childrenAfterGroup[n],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowsAtPixel=function(e,t,n){var o=this;void 0===n&&(n=0);var r=this.getRowIndexAtPixel(t);return this.getRow(r)!==e[0]&&(e.forEach((function(e){Ye.removeFromArray(o.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){Ye.insertIntoArray(o.rootNode.allLeafChildren,e,r+n+t)})),this.refreshModel({step:ke.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,o=null!=n?this.getRow(n):null;if(o&&e&&o!==e&&null!=t){var r=this.getHighlightPosition(t,o);this.lastHighlightedRow&&this.lastHighlightedRow!==o&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),o.setHighlighted(r),this.lastHighlightedRow=o}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},e.prototype.getHighlightPosition=function(e,t){if(!t){var n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return"below"}return e-t.rowTop<t.rowHeight/2?"above":"below"},e.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){return this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},e.prototype.getRowBounds=function(e){if(Ye.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_FILTER,keepRenderedRows:!0,animate:t})}},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return ke.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:ke.STEP_PIVOT}):this.refreshModel({step:ke.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=Ye.missingOrEmpty(e),n=new cr(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},e.prototype.refreshModel=function(e){var t=this,n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case ke.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,e.afterColumnsChanged);case ke.STEP_FILTER:this.doFilter(n);case ke.STEP_PIVOT:this.doPivot(n);case ke.STEP_AGGREGATE:this.doAggregate(n);case ke.STEP_SORT:this.doSort(e.rowNodeTransactions,n);case ke.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,n),this.setRowTops();var o={type:Et.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(o),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=Ye.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?Ye.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:Ye.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,Ye.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return Ye.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var n,o=!t,r=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=o&&!r;if(o||a!==t&&a!==e||(o=!0),!(a.group&&s)){var u=o&&!r,c=a.isParentOfNode(n);(u||c)&&i.push(a)}l&&(a!==t&&a!==e||(r=!0,n=a===t?t:e))})),i},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Ye.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var o=Math.floor((t+n)/2),r=this.rowsToDisplay[o];if(this.isRowInPixel(r,e))return o;r.rowTop<e?t=o+1:r.rowTop>e&&(n=o-1)}},e.prototype.isRowInPixel=function(e,t){var n=e.rowTop,o=e.rowTop+e.rowHeight;return n<=t&&o>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=Ye.last(this.rowsToDisplay);return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,Zl.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,Zl.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Zl.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Zl.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,o){if(!e)return o;for(var r=0;r<e.length;r++){var i=e[r];if(t(i,o++),i.hasChildren()){var s=null;switch(n){case Zl.Normal:s=i.childrenAfterGroup;break;case Zl.AfterFilter:s=i.childrenAfterFilter;break;case Zl.AfterFilterAndSort:s=i.childrenAfterSort;break;case Zl.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(o=this.recursivelyWalkNodesAndCallback(s,t,n,o))}}return o},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function n(o){if(!o)return;o.forEach((function(o){(t?Ye.exists(o.childrenAfterGroup):o.group)&&(o.expanded=e,n(o.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:ke.STEP_MAP});var n=e?"expandAll":"collapseAll",o={api:this.gridApi,columnApi:this.columnApi,type:Et.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(o)},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,n,o,r){if(!Ye.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))if(this.groupStage){if(t){var i={add:[],remove:[],update:[]};t.forEach((function(e){Ye.pushAll(i.add,e.add),Ye.pushAll(i.remove,e.remove),Ye.pushAll(i.update,e.update)})),this.groupStage.execute({rowNode:this.rootNode,rowNodeTransaction:i,rowNodeOrder:n,changedPath:o})}else this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:o,afterColumnsChanged:r}),this.restoreGroupState(e);this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(o)}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren},e.prototype.restoreGroupState=function(e){e&&Ye.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"==typeof e[n]&&(t.expanded=e[n])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return Ye.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var n={type:Et.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n),this.refreshModel({step:ke.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var n=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var o=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();window.setTimeout((function(){n.executeBatchUpdateRowData(),n.rowDataTransactionBatch=null}),o)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(o){var r=e.nodeManager.updateRowData(o.rowDataTransaction,null);n.push(r),o.callback&&t.push(o.callback.bind(null,r))})),this.commonUpdateRowData(n),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([n],t),n},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:ke.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var n={type:Et.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:ke.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},tu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),tu([nt("columnController")],e.prototype,"columnController",void 0),tu([nt("filterManager")],e.prototype,"filterManager",void 0),tu([nt("$scope")],e.prototype,"$scope",void 0),tu([nt("selectionController")],e.prototype,"selectionController",void 0),tu([nt("eventService")],e.prototype,"eventService",void 0),tu([nt("context")],e.prototype,"context",void 0),tu([nt("valueService")],e.prototype,"valueService",void 0),tu([nt("valueCache")],e.prototype,"valueCache",void 0),tu([nt("columnApi")],e.prototype,"columnApi",void 0),tu([nt("gridApi")],e.prototype,"gridApi",void 0),tu([nt("filterStage")],e.prototype,"filterStage",void 0),tu([nt("sortStage")],e.prototype,"sortStage",void 0),tu([nt("flattenStage")],e.prototype,"flattenStage",void 0),tu([ot("groupStage")],e.prototype,"groupStage",void 0),tu([ot("aggregationStage")],e.prototype,"aggregationStage",void 0),tu([ot("pivotStage")],e.prototype,"pivotStage",void 0),tu([Ze],e.prototype,"init",null),tu([et],e.prototype,"destroy",null),e=tu([tt("rowModel")],e)}(),ru=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},iu=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,n=e.changedPath;this.filterService.filter(n),this.selectableService.updateSelectableAfterFiltering(t)},ru([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ru([nt("selectableService")],e.prototype,"selectableService",void 0),ru([nt("filterService")],e.prototype,"filterService",void 0),e=ru([tt("filterStage")],e)}(),su=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},au=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),n=Ye.exists(t)&&t.length>0,o=n&&Ye.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=o?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=this.columnController.getValueColumns(),s=Ye.missingOrEmpty(i);this.sortService.sort(t,n,o,r,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},su([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),su([nt("sortService")],e.prototype,"sortService",void 0),su([nt("sortController")],e.prototype,"sortController",void 0),su([nt("columnController")],e.prototype,"columnController",void 0),e=su([tt("sortStage")],e)}(),lu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},uu=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,n=[],o={value:0},r=this.columnController.isPivotMode(),i=r&&t.leafGroup,s=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,n,o,r,0),!i&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,o,0)),n},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,o,r){if(!Ye.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),u=0;u<e.length;u++){var c=e[u],p=c.hasChildren(),d=i&&p,h=o&&!p,f=a&&p&&1===c.childrenAfterGroup.length,g=l&&p&&c.leafGroup&&1===c.childrenAfterGroup.length,v=o&&c.leafGroup,m=s&&c.expanded&&!v;if(!(h||d||m||f||g)&&this.addRowNodeToRowsToDisplay(c,t,n,r),!o||!c.leafGroup)if(p){var y=f||g;if(c.expanded||y){var C=y?r:r+1;this.recursivelyAddToRowsToDisplay(c.childrenAfterSort,t,n,o,C),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(c),this.addRowNodeToRowsToDisplay(c.sibling,t,n,r))}}else if(c.master&&c.expanded){var w=this.createDetailNode(c);this.addRowNodeToRowsToDisplay(w,t,n,r)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,n,o){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:o)},e.prototype.ensureFooterNodeExists=function(e){if(!Ye.exists(e.sibling)){var t=new An;this.context.wireBean(t),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,Ye.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(Ye.exists(e.detailNode))return e.detailNode;var t=new An;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,Ye.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},lu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),lu([nt("selectionController")],e.prototype,"selectionController",void 0),lu([nt("eventService")],e.prototype,"eventService",void 0),lu([nt("context")],e.prototype,"context",void 0),lu([nt("columnController")],e.prototype,"columnController",void 0),e=lu([tt("flattenStage")],e)}(),cu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pu=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,n,o,r,i){var s=this;r.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=n?s.doDeltaSort(a,e,o,r,i):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},e.prototype.doFullSort=function(e,t){var n=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return n.sort(this.compareRowNodes.bind(this,t)),n},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,n,o,r){var i=e.childrenAfterSort.filter((function(e){var t=!n[e.id],i=r||o.canSkip(e);return t&&i})).map(this.mapNodeToSortedNode.bind(this)),s={};i.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?i:0===i.length?a:this.mergeSortedArrays(t,i,a)},e.prototype.mergeSortedArrays=function(e,t,n){for(var o=[],r=0,i=0;r<t.length&&i<n.length;){this.compareRowNodes(e,t[r],n[i])<0?o.push(t[r++]):o.push(n[i++])}for(;r<t.length;)o.push(t[r++]);for(;i<n.length;)o.push(n[i++]);return o},e.prototype.compareRowNodes=function(e,t,n){for(var o=t.rowNode,r=n.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=-1===a.inverter,u=this.getValue(o,a.column),c=this.getValue(r,a.column),p=void 0;if(0!==(p=a.column.getColDef().comparator?a.column.getColDef().comparator(u,c,o,r,l):Ye.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort())))return p*a.inverter}return t.currentPos-n.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!Ye.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var o=t[n],r=0===n,i=n===e.childrenAfterSort.length-1;o.setFirstChild(r),o.setLastChild(i),o.setChildIndex(n)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var n=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&n(e)}))};e.executeFromRootNode((function(e){return n(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;Ye.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){n.columnController.getGroupDisplayColumns().forEach((function(o){var r=o.getColDef().showRowGroup;if("string"==typeof r){var i=r,s=n.columnController.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(o.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(o.getId(),a.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},cu([nt("sortController")],e.prototype,"sortController",void 0),cu([nt("columnController")],e.prototype,"columnController",void 0),cu([nt("valueService")],e.prototype,"valueService",void 0),cu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),cu([Ze],e.prototype,"init",null),e=cu([tt("sortService")],e)}(),du=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hu=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var n=this,o=function(t,o){t.hasChildren()?(t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&n.filterManager.doesRowPassFilter(e);return t||o})):t.childrenAfterGroup,n.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var r=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(s);s.childrenAfterGroup?r(e.childrenAfterGroup[i],a):o(s,a)}o(e,t)};t.executeFromRootNode((function(e){return r(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return o(e,!1)}),!0)}},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},du([nt("filterManager")],e.prototype,"filterManager",void 0),du([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),du([Ze],e.prototype,"postConstruct",null),e=du([tt("filterService")],e)}(),fu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gu=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(Ye.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!Ye.missing(t)){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return Ye.exists(e)&&e.forEach((function(e,i){var s=t(e),a=o[s];(r&&(r[s]=i),a)?(a.data!==e&&n.update.push(e),o[s]=void 0):n.add.push(e)})),Ye.iterateObject(o,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},fu([nt("rowModel")],e.prototype,"rowModel",void 0),fu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),fu([Ze],e.prototype,"postConstruct",null),e=fu([tt("immutableService")],e)}(),vu={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[iu,au,uu,pu,hu,gu],rowModels:{clientSide:ou}},mu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cu=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.cacheParams=n,o}return mu(t,e),t.prototype.getDisplayIndexStart=function(){return this.getBlockNumber()*this.cacheParams.blockSize},t.prototype.getDisplayIndexEnd=function(){return this.getDisplayIndexStart()+this.cacheParams.blockSize},t.prototype.createBlankRowNode=function(t){var n=e.prototype.createBlankRowNode.call(this,t);return n.uiLevel=0,this.setIndexAndTopOnRowNode(n,t),n},t.prototype.setDataAndId=function(e,t,n){Ye.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,n){e.prototype.setRowNode.call(this,t,n),this.setIndexAndTopOnRowNode(n,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};Ye.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0)},yu([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),yu([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),yu([Ze],t.prototype,"init",null),t}(Vl),wu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Eu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bu=function(e,t){return function(n,o){t(n,o,e)}},_u=function(e){function t(t){return e.call(this,t)||this}return wu(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.moveItemsDown=function(e,t,n){for(var o=e.getStartRow(),r=t+n,i=e.getEndRow()-1;i>=o;i--)if(!(i<r)){var s=i-n,a=this.getRow(s,!0);a?e.setRowNode(i,a):(e.setBlankRowNode(i),e.setDirty())}},t.prototype.insertItems=function(e,t,n){for(var o=e.getStartRow(),r=e.getEndRow(),i=[],s=0;s<n.length;s++){var a=t+s;if(a>=o&&a<r){var l=n[s],u=e.setNewData(a,l);i.push(u)}}return i},t.prototype.insertItemsAtIndex=function(e,t){var n=this,o=[];this.forEachBlockInReverseOrder((function(r){r.getEndRow()<=e||(n.moveItemsDown(r,e,t.length),n.insertItems(r,e,t).forEach((function(e){return o.push(e)})))})),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var r={type:Et.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.cacheParams.blockSize),o=this.getBlock(n);if(!o){if(t)return null;o=this.createBlock(n)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=new Cu(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},Eu([nt("columnApi")],t.prototype,"columnApi",void 0),Eu([nt("gridApi")],t.prototype,"gridApi",void 0),Eu([bu(0,it("loggerFactory"))],t.prototype,"setBeans",null),t}(Ul),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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ru=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ou(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,o){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()})))},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Ye.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return ke.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;Ye.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),Ye.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),Ye.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),Ye.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return Ye.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return Ye.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!Ye.missing(this.datasource)){Ye.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Et.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new Hl(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new qe},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=1),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new _u(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(Ul.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new qe)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){Ye.exists(e.remove)||Ye.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):Ye.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},Ru([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ru([nt("filterManager")],t.prototype,"filterManager",void 0),Ru([nt("sortController")],t.prototype,"sortController",void 0),Ru([nt("selectionController")],t.prototype,"selectionController",void 0),Ru([nt("eventService")],t.prototype,"eventService",void 0),Ru([nt("gridApi")],t.prototype,"gridApi",void 0),Ru([nt("columnApi")],t.prototype,"columnApi",void 0),Ru([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),Ru([Ze],t.prototype,"init",null),Ru([et],t.prototype,"destroyDatasource",null),t=Ru([tt("rowModel")],t)}(Ut),Tu={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Su}},Pu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Du=function(){function e(e){var t=e.columnController,n=e.valueService,o=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnController=t,this.valueService=n,this.gridOptionsWrapper=o,this.processCellCallback=r,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.firstGroupColumn=Ye.find(e,(function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,o){var r;r=o&&o.group&&(e===this.firstGroupColumn||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(o):this.valueService.getValue(e,o);var i=this.processCell(o,e,r,this.processCellCallback,n);return null!=i?i:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,o,r){return o?o({column:t,node:e,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):n},e}(),Au=function(){function e(){}return e.prototype.serialize=function(e,t){void 0===t&&(t={});var n=t.shouldRowBeSkipped||function(){return!1},o=this.gridOptionsWrapper.getApi(),r=this.gridOptionsWrapper.getColumnApi(),i=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),s=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),a=this.gridOptionsWrapper.getContext(),l=this.columnController.isPivotMode(),u=this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE,c=!u&&t.onlySelected,p=[];if(p=Ye.existsAndNotEmpty(t.columnKeys)?this.columnController.getGridColumns(t.columnKeys):t.allColumns&&!l?(p=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([ke.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),t.customHeader&&e.addCustomContent(t.customHeader),e.prepare(p),t.columnGroups){var d=new bt,h=this.displayedGroupCreator.createDisplayedGroups(p,this.columnController.getGridBalancedTree(),d,null);this.recursivelyAddHeaderGroups(h,e,t.processGroupHeaderCallback)}if(!t.skipHeader){var f=e.onNewHeaderRow();p.forEach((function(e,t){f.onColumn(e,t,void 0)}))}(this.pinnedRowModel.forEachPinnedTopRow(g),l)?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(g):this.rowModel.forEachNode(g):t.onlySelectedAllPages||c?this.selectionController.getSelectedNodes().forEach((function(e){g(e)})):u?this.rowModel.forEachNodeAfterFilterAndSort(g):this.rowModel.forEachNode(g);function g(l){var u=s&&l.leafGroup,c=1===l.allChildrenCount&&(i||u);if((!l.group||!t.skipGroups&&!c)&&((!t.skipFooters||!l.footer)&&(!t.onlySelected||l.isSelected())&&(!t.skipPinnedTop||"top"!==l.rowPinned)&&(!t.skipPinnedBottom||"bottom"!==l.rowPinned)&&(!(-1===l.level)||l.leafGroup)&&!n({node:l,api:o,context:a}))){var d=e.onNewBodyRow();if(p.forEach((function(e,t){d.onColumn(e,t,l)})),t.getCustomContentBelowRow){var h=t.getCustomContentBelowRow({node:l,api:o,columnApi:r,context:a});h&&e.addCustomContent(h)}}}return this.pinnedRowModel.forEachPinnedBottomRow(g),t.customFooter&&e.addCustomContent(t.customFooter),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t,n){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof gt&&this.doAddHeaderHeader(t,e,n),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,n)},e.prototype.doAddHeaderHeader=function(e,t,n){var o=this,r=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,s=e;t=n?n({columnGroup:s,api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()}):o.columnController.getDisplayNameForColumnGroup(s,"header"),r.onColumn(t||"",i++,s.getLeafColumns().length-1)}))},Pu([nt("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),Pu([nt("columnController")],e.prototype,"columnController",void 0),Pu([nt("rowModel")],e.prototype,"rowModel",void 0),Pu([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Pu([nt("selectionController")],e.prototype,"selectionController",void 0),Pu([nt("columnFactory")],e.prototype,"columnFactory",void 0),Pu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Pu([tt("gridSerializer")],e)}();!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(nu||(nu={}));var 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 o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Iu=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var o=t.suppressQuotes,r=t.columnSeparator;return n.suppressQuotes=o,n.columnSeparator=r,n}return Nu(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,n){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,ke.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("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}(Du),Fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nu(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this.columnController,n=this.valueService,o=this.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback,l=e.suppressQuotes,u=e.columnSeparator;return new Iu({columnController:t,valueService:n,gridOptionsWrapper:o,processCellCallback:r||void 0,processHeaderCallback:i||void 0,processGroupHeaderCallback:s||void 0,processRowGroupCallback:a||void 0,suppressQuotes:l||!1,columnSeparator:u||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},xu([nt("columnController")],t.prototype,"columnController",void 0),xu([nt("valueService")],t.prototype,"valueService",void 0),xu([nt("downloader")],t.prototype,"downloader",void 0),xu([nt("gridSerializer")],t.prototype,"gridSerializer",void 0),xu([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),xu([Ze],t.prototype,"postConstruct",null),t=xu([tt("csvCreator")],t)}(function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),n=t.mergedParams,o=t.data,r=n&&n.fileName&&0!==n.fileName.length?n.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,this.packageFile(o)),o},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),n={};return Ye.assign(n,t),Ye.assign(n,e),n},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}()),Mu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lu=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var n=document.createElement("a"),o=window.URL.createObjectURL(t);n.setAttribute("href",o),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(n),window.setTimeout((function(){window.URL.revokeObjectURL(o)}),0)}},e=Mu([tt("downloader")],e)}(),ku=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gu=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.prototype.createXml=function(e,t){var n=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(r){o+=n.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){o+=n.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">\r\n":(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">\r\n"):r+"/>\r\n"},e.prototype.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"==typeof t&&n&&(o=n(t))," "+e+'="'+o+'"'},e=ku([tt("xmlFactory")],e)}(),Vu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wu=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],ju=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),n=t.length,o="",r=0,i=0,s=0,a=t;s<a.length;s++){var l=a[s],u=this.getHeader(l,r),c=u.fileHeader,p=u.folderHeader,d=u.content;r+=c.length+d.length,i+=p.length,e+=c+d,o+=p}return e+o+this.buildFolderEnd(n,i,r)},e.prototype.getHeader=function(e,t){var n=e.content,o=e.path,r=e.created,i=Ye.utf8_encode,s=Ye.decToHex,a=i(o),l=a!==o,u=this.convertTime(r),c=this.convertDate(r),p="";if(l){var d=s(1,1)+s(this.getFromCrc32Table(a),4)+a;p="up"+s(d.length,2)+d}var h="\n\0"+(l?"\0\b":"\0\0")+"\0\0"+s(u,2)+s(c,2)+s(n?this.getFromCrc32Table(n):0,4)+s(n?n.length:0,4)+s(n?n.length:0,4)+s(a.length,2)+s(p.length,2);return{fileHeader:"PK"+h+a+p,folderHeader:"PK\0"+h+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\0\0\0")+s(t,4)+a+p,content:n||""}},e.prototype.buildFolderEnd=function(e,t,n){var o=Ye.decToHex;return"PK\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(n,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var n=0,o=0;o<e.length;o++)n=e.charCodeAt(o),t=t>>>8^Wu[255&(t^n)];return-1^t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e=Vu([tt("zipContainer")],e)}(),Hu={moduleName:t.ModuleNames.CsvExportModule,beans:[Fu,Lu,Gu,Au,ju]};pt.register(vu,!1),pt.register(Tu,!1),pt.register(Hu,!1),t.AgAbstractField=Mn,t.AgAngleSelect=dl,t.AgCheckbox=jn,t.AgColorPicker=Za,t.AgDialog=Ga,t.AgGroupComponent=xa,t.AgInputNumberField=tl,t.AgInputRange=ol,t.AgInputTextArea=Ha,t.AgInputTextField=Wa,t.AgPanel=Ma,t.AgRadioButton=Ts,t.AgSelect=ul,t.AgSlider=Ua,t.AgToggleButton=fl,t.AlignedGridsService=Zs,t.AnimateShowChangeCellRenderer=go,t.AnimateSlideCellRenderer=yo,t.AutoWidthCalculator=rs,t.Autowired=nt,t.BaseComponentWrapper=Xl,t.Bean=tt,t.BeanStub=Ut,t.BodyDropPivotTarget=bi,t.BodyDropTarget=Ri,t.CellComp=Wr,t.CellNavigationService=Es,t.CellPositionUtils=wl,t.CellRendererFactory=_s,t.ChangedPath=cr,t.CheckboxSelectionComponent=zn,t.ColDefUtil=It,t.Color=n,t.Column=ht,t.ColumnApi=gr,t.ColumnController=Rt,t.ColumnFactory=wt,t.ColumnGroup=gt,t.ColumnKeyCreator=Qe,t.ColumnUtils=Tt,t.Component=$t,t.ComponentUtil=jt,t.Constants=ke,t.Context=Xe,t.CssClassApplier=Kr,t.DateFilter=En,t.DisplayedGroupCreator=Dt,t.DragAndDropService=Er,t.DragService=hs,t.Environment=ca,t.EventService=ct,t.Events=Et,t.ExpressionService=Ki,t.FilterManager=xi,t.FocusController=ms,t.Grid=Dl,t.GridApi=Ui,t.GridCore=us,t.GridOptionsWrapper=Vt,t.GridPanel=Bi,t.GroupCellRenderer=po,t.GroupInstanceIdCreator=bt,t.HeaderContainer=Ti,t.HeaderRootComp=Ai,t.HeaderRowComp=yi,t.HorizontalResizeService=ss,t.LargeTextCellEditor=No,t.Listener=function(e){return en.bind(this,e)},t.Logger=ns,t.LoggerFactory=ts,t.ManagedTabComponent=Fl,t.ModuleRegistry=pt,t.MouseEventService=Cs,t.MoveColumnController=wi,t.NumberFilter=Fo,t.NumberSequence=qe,t.Optional=ot,t.OriginalColumnGroup=vt,t.PaginationProxy=Hs,t.PinnedRowModel=bl,t.PopupComponent=Xt,t.PopupEditorWrapper=Ar,t.PopupSelectCellEditor=Po,t.PopupService=Ji,t.PopupTextCellEditor=So,t.PostConstruct=Ze,t.PreConstruct=Je,t.PreDestroy=et,t.Promise=Ke,t.PropertyKeys=Nt,t.ProvidedFilter=pn,t.Qualifier=it,t.QuerySelector=
336/**
337 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
338 * @version v23.1.1
339 * @link http://www.ag-grid.com/
340 * @license MIT
341 */
342function(e){return Zt.bind(this,e)},t.RefSelector=Jt,t.ResizeObserverService=Sa,t.RowComp=Br,t.RowNode=An,t.RowNodeBlock=Vl,t.RowNodeBlockLoader=Hl,t.RowNodeCache=Ul,t.RowPositionUtils=yl,t.RowRenderer=qr,t.ScalarFilter=yn,t.ScrollVisibleService=As,t.SelectCellEditor=Oo,t.SelectableService=Ca,t.SelectionController=hr,t.SetLeftFeature=Zr,t.SimpleFilter=vn,t.SortController=gs,t.StandardMenuFactory=ps,t.StylingService=xs,t.TabbedLayout=kl,t.TemplateService=Qi,t.TextCellEditor=sn,t.TextFilter=Zo,t.Timer=$e,t.TooltipFeature=kr,t.TouchListener=bn,t.UserComponentFactory=lo,t.UserComponentRegistry=ur,t.ValueCache=qs,t.ValueFormatterService=Rs,t.ValueService=Fi,t.VanillaFrameworkOverrides=Ps,t.VirtualList=Kl,t._=Ye,t.defaultGroupComparator=
343/**
344 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
345 * @version v23.1.1
346 * @link http://www.ag-grid.com/
347 * @license MIT
348 */
349function(e,t,n,o,r){void 0===r&&(r=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var i=Ye.exists(n)&&n.group,s=Ye.exists(o)&&o.group,a=!i&&!s;return i&&s?Ye.defaultComparator(n.key,o.key,r):a?Ye.defaultComparator(e,t,r):i?1:-1},t.initialiseAgGridWithAngular1=
350/**
351 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
352 * @version v23.1.1
353 * @link http://www.ag-grid.com/
354 * @license MIT
355 */
356function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",Al],scope:!0}}))},t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!Nl){Nl=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);jt.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var n={};n[e]={currentValue:t},this.onChange(n)},t.onChange=function(e){this._initialised&&jt.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=jt.copyAttributesToGridOptions(e,this);var n={globalEventListener:t};this._agGrid=new Dl(this,this._gridOptions,n),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,n="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,o=e.nodeValue;jt.ALL_PROPERTIES.indexOf(n)>=0&&(this[n]=o)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var n=e.toLowerCase(),o=new Event(n);o.agGridDetails=t,this.dispatchEvent(o);var r="on"+n;"function"==typeof this[r]&&this[r](o)},document.registerElement("ag-grid",{prototype:e})}},t.simpleHttpRequest=
357/**
358 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
359 * @version v23.1.1
360 * @link http://www.ag-grid.com/
361 * @license MIT
362 */
363function(e){return new Ke((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){if(4==n.readyState&&200==n.status){var e=JSON.parse(n.responseText);t(e)}}}))},t.stringToArray=o}).call(this,n(16))},function(e,t,n){e.exports={container:"modal__container___3iRuU",transparent:"modal__transparent___2_Hu1"}},function(e,t,n){e.exports={container:"dialog__container___3ja9Z",closeButton:"dialog__closeButton___2K5Cs"}},function(e,t,n){e.exports={container:"table-loading-overlay__container___xHCQB",illustration:"table-loading-overlay__illustration___1wape"}},function(e,t,n){e.exports={container:"type-icon__container___1Txgr",icon:"type-icon__icon___do9KN"}},function(e,t,n){e.exports={stickyItems:"infinite-list__stickyItems___27eaq",outer:"infinite-list__outer___GEkBh"}},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var l,u=[],c=!1,p=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):p=-1,u.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++p<t;)l&&l[p].run();p=-1,t=u.length}l=null,c=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||c||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){e.exports=n(96)()},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(0),a=n(71),l=n(64),u=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.props=t,o.state=n,o}return r(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return i.Children.map(e.children,(function(e){return t.toColDef(e.props)}))},t.toColDef=function(e){var n=t.createColDefFromGridColumn(e);return t.hasChildColumns(e)&&(n.children=t.getChildColDefs(e.children)),n},t.hasChildColumns=function(e){return i.Children.count(e.children)>0},t.getChildColDefs=function(e){return i.Children.map(e,(function(e){return t.createColDefFromGridColumn(e.props)}))},t.createColDefFromGridColumn=function(e){var n={};return t.assign(n,e),delete n.children,n},t.assign=function(e,t){return[t].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),e)},t}(s.Component);function c(e,t){e.forEach((function(e){u[e]=t}))}t.AgGridColumn=u,c(l.ColDefUtil.BOOLEAN_PROPERTIES,a.bool),c(l.ColDefUtil.STRING_PROPERTIES,a.string),c(l.ColDefUtil.OBJECT_PROPERTIES,a.object),c(l.ColDefUtil.ARRAY_PROPERTIES,a.array),c(l.ColDefUtil.NUMBER_PROPERTIES,a.number),c(l.ColDefUtil.FUNCTION_PROPERTIES,a.func)},function(e,t,n){e.exports={container:"icon-button__container___3I0z0"}},function(e,t,n){var o;!function(r,i,s){if(r){for(var a,l={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"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},p={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)l[111+d]="f"+d;for(d=0;d<=9;++d)l[d+96]=d.toString();y.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==i&&(t===n||e(t.parentNode,n))}(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},y.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);a=null},y.init=function(){var e=y(i);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),r.Mousetrap=y,e.exports&&(e.exports=y),void 0===(o=function(){return y}.call(t,n,t,e))||(e.exports=o)}function h(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:u[e.which]?u[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function v(e,t,n){return n||(n=function(){if(!a)for(var e in a={},l)e>95&&e<112||l.hasOwnProperty(e)&&(a[l[e]]=e);return a}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,o,r,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r<n.length;++r)o=n[r],p[o]&&(o=p[o]),t&&"keypress"!=t&&c[o]&&(o=c[o],i.push("shift")),g(o)&&i.push(o);return{key:o,modifiers:i,action:t=v(o,i,t)}}function y(e){var t=this;if(e=e||i,!(t instanceof y))return new y(e);t.target=e,t._callbacks={},t._directMap={};var n,o={},r=!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,d=[],h=r.type;if(!t._callbacks[e])return[];for("keyup"==h&&g(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)&&h==u.action&&("keypress"==h&&!r.metaKey&&!r.ctrlKey||(c=n,p=u.modifiers,c.sort().join(",")===p.sort().join(",")))){var f=!i&&u.combo==s,v=i&&u.seq==i&&u.level==a;(f||v)&&t._callbacks[e].splice(l,1),d.push(u)}return d}function c(e,n,o,r){t.stopCallback(n,n.target||n.srcElement,o,r)||!1===e(n,o)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function p(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=f(e);n&&("keyup"!=e.type||r!==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):r=!1)}function d(e,t,i,s){function u(t){return function(){a=t,++o[e],clearTimeout(n),n=setTimeout(l,1e3)}}function p(t){c(i,t,e),"keyup"!==s&&(r=f(t)),setTimeout(l,10)}o[e]=0;for(var d=0;d<t.length;++d){var h=d+1===t.length?p:u(s||m(t[d+1]).action);v(t[d],h,s,e,d)}}function v(e,n,o,r,i){t._directMap[e+":"+o]=n;var s,a=(e=e.replace(/\s+/g," ")).split(" ");a.length>1?d(e,a,n,o):(s=m(e,o),t._callbacks[s.key]=t._callbacks[s.key]||[],u(s.key,s.modifiers,{type:s.action},r,e,i),t._callbacks[s.key][r?"unshift":"push"]({callback:n,modifiers:s.modifiers,action:s.action,seq:r,level:i,combo:e}))}t._handleKey=function(e,t,n){var o,r=u(e,t,n),i={},p=0,d=!1;for(o=0;o<r.length;++o)r[o].seq&&(p=Math.max(p,r[o].level));for(o=0;o<r.length;++o)if(r[o].seq){if(r[o].level!=p)continue;d=!0,i[r[o].seq]=1,c(r[o].callback,n,r[o].combo,r[o].seq)}else d||c(r[o].callback,n,r[o].combo);var h="keypress"==n.type&&s;n.type!=a||g(e)||h||l(i),s=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var o=0;o<e.length;++o)v(e[o],t,n)},h(e,"keypress",p),h(e,"keydown",p),h(e,"keyup",p)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(e,t,n){e.exports={mask:"mask__mask___s6jVX"}},function(e,t,n){e.exports={container:"tab-bar__container___39AMi"}},function(e,t,n){e.exports={container:"tooltip__container___3ZzFK"}},function(e,t,n){e.exports={input:"json-input__input___1tbr_"}},function(e,t,n){e.exports={container:"tree__container___1_H3H"}},function(e,t,n){e.exports={container:"results__container___YER9H",empty:"results__empty___kbUlY"}},function(e,t,n){e.exports={container:"card__container___1qfFQ"}},function(e,t,n){e.exports={container:"key__container___2x1cY"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}()},,function(e,t,n){n(39),e.exports=n(111)},function(e,t,n){"use strict";
364/** @license React v16.13.1
365 * react.production.min.js
366 *
367 * Copyright (c) Facebook, Inc. and its affiliates.
368 *
369 * This source code is licensed under the MIT license found in the
370 * LICENSE file in the root directory of this source tree.
371 */var o=n(63),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,s=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function m(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 y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function w(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||y}function E(){}function b(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=w.prototype;var _=b.prototype=new E;_.constructor=b,o(_,w.prototype),_.isPureReactComponent=!0;var O={current:null},R=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var o,r={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)R.call(t,o)&&!S.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===r[o]&&(r[o]=l[o]);return{$$typeof:i,type:e,key:s,ref:a,props:r,_owner:O.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var D=/\/+/g,A=[];function N(e,t,n,o){if(A.length){var r=A.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function x(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function I(e,t,n){return null==e?0:function e(t,n,o,r){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case s:l=!0}}if(l)return o(r,t,""===n?"."+F(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+F(a=t[u],u);l+=e(a,c,o,r)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=v&&t[v]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(a=t.next()).done;)l+=e(a=a.value,c=n+F(a,u++),o,r);else if("object"===a)throw o=""+t,Error(m(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,""));return l}(e,"",t,n)}function F(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 M(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?k(e,o,n,(function(e){return e})):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+n)),o.push(e))}function k(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(D,"$&/")+"/"),I(e,L,t=N(t,i,o,r)),x(t)}var G={current:null};function V(){var e=G.current;if(null===e)throw Error(m(321));return e}var W={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:function(e,t,n){if(null==e)return e;var o=[];return k(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;I(e,M,t=N(null,null,t,n)),x(t)},count:function(e){return I(e,(function(){return null}),null)},toArray:function(e){var t=[];return k(e,t,null,(function(e){return e})),t},only:function(e){if(!P(e))throw Error(m(143));return e}},t.Component=w,t.Fragment=a,t.Profiler=u,t.PureComponent=b,t.StrictMode=l,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,t.cloneElement=function(e,t,n){if(null==e)throw Error(m(267,e));var r=o({},e.props),s=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=O.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)R.call(t,c)&&!S.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];r.children=u}return{$$typeof:i,type:e.type,key:s,ref:a,props:r,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return V().useCallback(e,t)},t.useContext=function(e,t){return V().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return V().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return V().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return V().useLayoutEffect(e,t)},t.useMemo=function(e,t){return V().useMemo(e,t)},t.useReducer=function(e,t,n){return V().useReducer(e,t,n)},t.useRef=function(e){return V().useRef(e)},t.useState=function(e){return V().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
372/** @license React v16.13.1
373 * react-dom.production.min.js
374 *
375 * Copyright (c) Facebook, Inc. and its affiliates.
376 *
377 * This source code is licensed under the MIT license found in the
378 * LICENSE file in the root directory of this source tree.
379 */var o=n(0),r=n(63),i=n(88);function s(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."}if(!o)throw Error(s(227));function a(e,t,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var l=!1,u=null,c=!1,p=null,d={onError:function(e){l=!0,u=e}};function h(e,t,n,o,r,i,s,c,p){l=!1,u=null,a.apply(d,arguments)}var f=null,g=null,v=null;function m(e,t,n){var o=e.type||"unknown-event";e.currentTarget=v(n),function(e,t,n,o,r,i,a,d,f){if(h.apply(this,arguments),l){if(!l)throw Error(s(198));var g=u;l=!1,u=null,c||(c=!0,p=g)}}(o,t,void 0,e),e.currentTarget=null}var y=null,C={};function w(){if(y)for(var e in C){var t=C[e],n=y.indexOf(e);if(!(-1<n))throw Error(s(96,e));if(!b[n]){if(!t.extractEvents)throw Error(s(97,e));for(var o in b[n]=t,n=t.eventTypes){var r=void 0,i=n[o],a=t,l=o;if(_.hasOwnProperty(l))throw Error(s(99,l));_[l]=i;var u=i.phasedRegistrationNames;if(u){for(r in u)u.hasOwnProperty(r)&&E(u[r],a,l);r=!0}else i.registrationName?(E(i.registrationName,a,l),r=!0):r=!1;if(!r)throw Error(s(98,o,e))}}}}function E(e,t,n){if(O[e])throw Error(s(100,e));O[e]=t,R[e]=t.eventTypes[n].dependencies}var b=[],_={},O={},R={};function S(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];if(!C.hasOwnProperty(t)||C[t]!==o){if(C[t])throw Error(s(102,t));C[t]=o,n=!0}}n&&w()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),P=null,D=null,A=null;function N(e){if(e=g(e)){if("function"!=typeof P)throw Error(s(280));var t=e.stateNode;t&&(t=f(t),P(e.stateNode,e.type,t))}}function x(e){D?A?A.push(e):A=[e]:D=e}function I(){if(D){var e=D,t=A;if(A=D=null,N(e),t)for(e=0;e<t.length;e++)N(t[e])}}function F(e,t){return e(t)}function M(e,t,n,o,r){return e(t,n,o,r)}function L(){}var k=F,G=!1,V=!1;function W(){null===D&&null===A||(L(),I())}function j(e,t,n){if(V)return e(t,n);V=!0;try{return k(e,t,n)}finally{V=!1,W()}}var H=/^[: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]*$/,B=Object.prototype.hasOwnProperty,z={},U={};function Y(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new Y(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new Y(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new Y(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new Y(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){q[e]=new Y(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new Y(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new Y(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new Y(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new Y(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function $(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(K,$);q[t]=new Y(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,$);q[t]=new Y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,$);q[t]=new Y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new Y(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new Y(e,1,!1,e.toLowerCase(),null,!0)}));var Q=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,o){var r=q.hasOwnProperty(t)?q[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)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,r,o)&&(n=null),o||null===r?function(e){return!!B.call(U,e)||!B.call(z,e)&&(H.test(e)?U[e]=!0:(z[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,oe=Z?Symbol.for("react.strict_mode"):60108,re=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,se=Z?Symbol.for("react.context"):60110,ae=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ue=Z?Symbol.for("react.suspense"):60113,ce=Z?Symbol.for("react.suspense_list"):60120,pe=Z?Symbol.for("react.memo"):60115,de=Z?Symbol.for("react.lazy"):60116,he=Z?Symbol.for("react.block"):60121,fe="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function ve(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 ne:return"Fragment";case te:return"Portal";case re:return"Profiler";case oe:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case se:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return ve(e.type);case he:return ve(e.render);case de:if(e=1===e._status?e._result:null)return ve(e)}return null}function me(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var o=e._debugOwner,r=e._debugSource,i=ve(e.type);n=null,o&&(n=ve(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace(J,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=Ce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ce(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function be(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function _e(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Oe(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Re(e,t){Oe(e,t);var n=ye(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||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 Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Pe(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function De(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ne(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function xe(e,t){var n=ye(t.value),o=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Fe="http://www.w3.org/1999/xhtml",Me="http://www.w3.org/2000/svg";function Le(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 ke(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ge,Ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Me||"innerHTML"in e)e.innerHTML=t;else{for((Ge=Ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function We(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function je(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:je("Animation","AnimationEnd"),animationiteration:je("Animation","AnimationIteration"),animationstart:je("Animation","AnimationStart"),transitionend:je("Transition","TransitionEnd")},Be={},ze={};function Ue(e){if(Be[e])return Be[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in ze)return Be[e]=n[t];return e}T&&(ze=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Ye=Ue("animationend"),qe=Ue("animationiteration"),Ke=Ue("animationstart"),$e=Ue("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(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 tt(e){if(Ze(e)!==e)throw Error(s(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(o=r.return)){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return tt(r),e;if(i===o)return tt(r),t;i=i.sibling}throw Error(s(188))}if(n.return!==o.return)n=r,o=i;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,o=i;break}if(l===o){a=!0,o=r,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,o=r;break}if(l===o){a=!0,o=i,n=r;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==o)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(s(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)m(e,t[o],n[o]);else t&&m(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(it=ot(it,e)),e=it,it=null,e){if(rt(e,st),it)throw Error(s(95));if(c)throw e=p,c=!1,p=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,n,o){if(ct.length){var r=ct.pop();return r.topLevelType=e,r.eventSystemFlags=o,r.nativeEvent=t,r.targetInst=n,r}return{topLevelType:e,eventSystemFlags:o,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o=n;if(3===o.tag)o=o.stateNode.containerInfo;else{for(;o.return;)o=o.return;o=3!==o.tag?null:o.stateNode.containerInfo}if(!o)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=lt(e.nativeEvent);o=e.topLevelType;var i=e.nativeEvent,s=e.eventSystemFlags;0===n&&(s|=64);for(var a=null,l=0;l<b.length;l++){var u=b[l];u&&(u=u.extractEvents(o,t,i,r,s))&&(a=ot(a,u))}at(a)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&qt(e,t)}n.set(e,null)}}var gt,vt,mt,yt=!1,Ct=[],wt=null,Et=null,bt=null,_t=new Map,Ot=new Map,Rt=[],St="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,n,o,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r,container:o}}function Dt(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":bt=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function At(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e=Pt(t,n,o,r,i),null!==t&&(null!==(t=Pn(t))&&vt(t)),e):(e.eventSystemFlags|=o,e)}function Nt(e){var t=Tn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){mt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function xt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Pn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function It(e,t,n){xt(e)&&n.delete(t)}function Ft(){for(yt=!1;0<Ct.length;){var e=Ct[0];if(null!==e.blockedOn){null!==(e=Pn(e.blockedOn))&&gt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:Ct.shift()}null!==wt&&xt(wt)&&(wt=null),null!==Et&&xt(Et)&&(Et=null),null!==bt&&xt(bt)&&(bt=null),_t.forEach(It),Ot.forEach(It)}function Mt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Lt(e){function t(t){return Mt(t,e)}if(0<Ct.length){Mt(Ct[0],e);for(var n=1;n<Ct.length;n++){var o=Ct[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==wt&&Mt(wt,e),null!==Et&&Mt(Et,e),null!==bt&&Mt(bt,e),_t.forEach(t),Ot.forEach(t),n=0;n<Rt.length;n++)(o=Rt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Rt.shift()}var kt={},Gt=new Map,Vt=new Map,Wt=["abort","abort",Ye,"animationEnd",qe,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],r=e[n+1],i="on"+(r[0].toUpperCase()+r.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[o],eventPriority:t},Vt.set(o,t),Gt.set(o,i),kt[r]=i}}jt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(Wt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Bt=0;Bt<Ht.length;Bt++)Vt.set(Ht[Bt],0);var zt=i.unstable_UserBlockingPriority,Ut=i.unstable_runWithPriority,Yt=!0;function qt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var o=Vt.get(t);switch(void 0===o?2:o){case 0:o=$t.bind(null,t,1,e);break;case 1:o=Qt.bind(null,t,1,e);break;default:o=Xt.bind(null,t,1,e)}n?e.addEventListener(t,o,!0):e.addEventListener(t,o,!1)}function $t(e,t,n,o){G||L();var r=Xt,i=G;G=!0;try{M(r,e,t,n,o)}finally{(G=i)||W()}}function Qt(e,t,n,o){Ut(zt,Xt.bind(null,e,t,n,o))}function Xt(e,t,n,o){if(Yt)if(0<Ct.length&&-1<St.indexOf(e))e=Pt(null,e,t,n,o),Ct.push(e);else{var r=Jt(e,t,n,o);if(null===r)Dt(e,o);else if(-1<St.indexOf(e))e=Pt(r,e,t,n,o),Ct.push(e);else if(!function(e,t,n,o,r){switch(t){case"focus":return wt=At(wt,e,t,n,o,r),!0;case"dragenter":return Et=At(Et,e,t,n,o,r),!0;case"mouseover":return bt=At(bt,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return _t.set(i,At(_t.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Ot.set(i,At(Ot.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o)){Dt(e,o),e=dt(e,o,null,t);try{j(ht,e)}finally{pt(e)}}}}function Jt(e,t,n,o){if(null!==(n=Tn(n=lt(o)))){var r=Ze(n);if(null===r)n=null;else{var i=r.tag;if(13===i){if(null!==(n=et(r)))return n;n=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}e=dt(e,o,n,t);try{j(ht,e)}finally{pt(e)}return null}var Zt={animationIterationCount:!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},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=tn(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var on=r({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 rn(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62,""))}}function sn(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 an=Fe;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=R[t];for(var o=0;o<t.length;o++)ft(t[o],e,n)}function un(){}function cn(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 pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,o=pn(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=pn(o)}}function hn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function fn(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)}var gn=null,vn=null;function mn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Cn="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function En(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function bn(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 _n=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+_n,Rn="__reactEventHandlers$"+_n,Sn="__reactContainere$"+_n;function Tn(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[On]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=bn(e);null!==e;){if(n=e[On])return n;e=bn(e)}return t}n=(e=n).parentNode}return null}function Pn(e){return!(e=e[On]||e[Sn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Dn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function An(e){return e[Rn]||null}function Nn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function xn(e,t){var n=e.stateNode;if(!n)return null;var o=f(n);if(!o)return null;n=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}function In(e,t,n){(t=xn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Fn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Nn(t);for(t=n.length;0<t--;)In(n[t],"captured",e);for(t=0;t<n.length;t++)In(n[t],"bubbled",e)}}function Mn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=xn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Ln(e){e&&e.dispatchConfig.registrationName&&Mn(e._targetInst,null,e)}function kn(e){rt(e,Fn)}var Gn=null,Vn=null,Wn=null;function jn(){if(Wn)return Wn;var e,t,n=Vn,o=n.length,r="value"in Gn?Gn.value:Gn.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var s=o-e;for(t=1;t<=s&&n[o-t]===r[i-t];t++);return Wn=r.slice(e,1<t?1-t:void 0)}function Hn(){return!0}function Bn(){return!1}function zn(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Hn:Bn,this.isPropagationStopped=Bn,this}function Un(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function Yn(e){if(!(e instanceof this))throw Error(s(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function qn(e){e.eventPool=[],e.getPooled=Un,e.release=Yn}r(zn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){this.isPersistent=Hn},isPersistent:Bn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Bn,this._dispatchInstances=this._dispatchListeners=null}}),zn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},zn.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,qn(n),n},qn(zn);var Kn=zn.extend({data:null}),$n=zn.extend({data:null}),Qn=[9,13,27,32],Xn=T&&"CompositionEvent"in window,Jn=null;T&&"documentMode"in document&&(Jn=document.documentMode);var Zn=T&&"TextEvent"in window&&!Jn,eo=T&&(!Xn||Jn&&8<Jn&&11>=Jn),to=String.fromCharCode(32),no={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},oo=!1;function ro(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function io(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var so=!1;var ao={eventTypes:no,extractEvents:function(e,t,n,o){var r;if(Xn)e:{switch(e){case"compositionstart":var i=no.compositionStart;break e;case"compositionend":i=no.compositionEnd;break e;case"compositionupdate":i=no.compositionUpdate;break e}i=void 0}else so?ro(e,n)&&(i=no.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=no.compositionStart);return i?(eo&&"ko"!==n.locale&&(so||i!==no.compositionStart?i===no.compositionEnd&&so&&(r=jn()):(Vn="value"in(Gn=o)?Gn.value:Gn.textContent,so=!0)),i=Kn.getPooled(i,t,n,o),r?i.data=r:null!==(r=io(n))&&(i.data=r),kn(i),r=i):r=null,(e=Zn?function(e,t){switch(e){case"compositionend":return io(t);case"keypress":return 32!==t.which?null:(oo=!0,to);case"textInput":return(e=t.data)===to&&oo?null:e;default:return null}}(e,n):function(e,t){if(so)return"compositionend"===e||!Xn&&ro(e,t)?(e=jn(),Wn=Vn=Gn=null,so=!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 eo&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=$n.getPooled(no.beforeInput,t,n,o)).data=e,kn(t)):t=null,null===r?t:null===t?r:[r,t]}},lo={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 uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lo[e.type]:"textarea"===t}var co={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function po(e,t,n){return(e=zn.getPooled(co.change,e,t,n)).type="change",x(n),kn(e),e}var ho=null,fo=null;function go(e){at(e)}function vo(e){if(Ee(Dn(e)))return e}function mo(e,t){if("change"===e)return t}var yo=!1;function Co(){ho&&(ho.detachEvent("onpropertychange",wo),fo=ho=null)}function wo(e){if("value"===e.propertyName&&vo(fo))if(e=po(fo,e,lt(e)),G)at(e);else{G=!0;try{F(go,e)}finally{G=!1,W()}}}function Eo(e,t,n){"focus"===e?(Co(),fo=n,(ho=t).attachEvent("onpropertychange",wo)):"blur"===e&&Co()}function bo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vo(fo)}function _o(e,t){if("click"===e)return vo(t)}function Oo(e,t){if("input"===e||"change"===e)return vo(t)}T&&(yo=ut("input")&&(!document.documentMode||9<document.documentMode));var Ro={eventTypes:co,_isInputEventSupported:yo,extractEvents:function(e,t,n,o){var r=t?Dn(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var s=mo;else if(uo(r))if(yo)s=Oo;else{s=bo;var a=Eo}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(s=_o);if(s&&(s=s(e,t)))return po(s,n,o);a&&a(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Te(r,"number",r.value)}},So=zn.extend({view:null,detail:null}),To={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Po(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=To[e])&&!!t[e]}function Do(){return Po}var Ao=0,No=0,xo=!1,Io=!1,Fo=So.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Do,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ao;return Ao=e.screenX,xo?"mousemove"===e.type?e.screenX-t:0:(xo=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=No;return No=e.screenY,Io?"mousemove"===e.type?e.screenY-t:0:(Io=!0,0)}}),Mo=Fo.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Lo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},ko={eventTypes:Lo,extractEvents:function(e,t,n,o,r){var i="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(i&&0==(32&r)&&(n.relatedTarget||n.fromElement)||!s&&!i)return null;(i=o.window===o?o:(i=o.ownerDocument)?i.defaultView||i.parentWindow:window,s)?(s=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):s=null;if(s===t)return null;if("mouseout"===e||"mouseover"===e)var a=Fo,l=Lo.mouseLeave,u=Lo.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(a=Mo,l=Lo.pointerLeave,u=Lo.pointerEnter,c="pointer");if(e=null==s?i:Dn(s),i=null==t?i:Dn(t),(l=a.getPooled(l,s,n,o)).type=c+"leave",l.target=e,l.relatedTarget=i,(n=a.getPooled(u,t,n,o)).type=c+"enter",n.target=i,n.relatedTarget=e,c=t,(o=s)&&c)e:{for(u=c,s=0,e=a=o;e;e=Nn(e))s++;for(e=0,t=u;t;t=Nn(t))e++;for(;0<s-e;)a=Nn(a),s--;for(;0<e-s;)u=Nn(u),e--;for(;s--;){if(a===u||a===u.alternate)break e;a=Nn(a),u=Nn(u)}a=null}else a=null;for(u=a,a=[];o&&o!==u&&(null===(s=o.alternate)||s!==u);)a.push(o),o=Nn(o);for(o=[];c&&c!==u&&(null===(s=c.alternate)||s!==u);)o.push(c),c=Nn(c);for(c=0;c<a.length;c++)Mn(a[c],"bubbled",l);for(c=o.length;0<c--;)Mn(o[c],"captured",n);return 0==(64&r)?[l]:[l,n]}};var Go="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Vo=Object.prototype.hasOwnProperty;function Wo(e,t){if(Go(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Vo.call(t,n[o])||!Go(e[n[o]],t[n[o]]))return!1;return!0}var jo=T&&"documentMode"in document&&11>=document.documentMode,Ho={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Bo=null,zo=null,Uo=null,Yo=!1;function qo(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yo||null==Bo||Bo!==cn(n)?null:("selectionStart"in(n=Bo)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Uo&&Wo(Uo,n)?null:(Uo=n,(e=zn.getPooled(Ho.select,zo,e,t)).type="select",e.target=Bo,kn(e),e))}var Ko={eventTypes:Ho,extractEvents:function(e,t,n,o,r,i){if(!(i=!(r=i||(o.window===o?o.document:9===o.nodeType?o:o.ownerDocument)))){e:{r=Je(r),i=R.onSelect;for(var s=0;s<i.length;s++)if(!r.has(i[s])){r=!1;break e}r=!0}i=!r}if(i)return null;switch(r=t?Dn(t):window,e){case"focus":(uo(r)||"true"===r.contentEditable)&&(Bo=r,zo=t,Uo=null);break;case"blur":Uo=zo=Bo=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yo=!1,qo(n,o);case"selectionchange":if(jo)break;case"keydown":case"keyup":return qo(n,o)}return null}},$o=zn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qo=zn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xo=So.extend({relatedTarget:null});function Jo(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}var Zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},er={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"},tr=So.extend({key:function(e){if(e.key){var t=Zo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?er[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Do,charCode:function(e){return"keypress"===e.type?Jo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),nr=Fo.extend({dataTransfer:null}),or=So.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Do}),rr=zn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ir=Fo.extend({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:null,deltaMode:null}),sr={eventTypes:kt,extractEvents:function(e,t,n,o){var r=Gt.get(e);if(!r)return null;switch(e){case"keypress":if(0===Jo(n))return null;case"keydown":case"keyup":e=tr;break;case"blur":case"focus":e=Xo;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=nr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=or;break;case Ye:case qe:case Ke:e=$o;break;case $e:e=rr;break;case"scroll":e=So;break;case"wheel":e=ir;break;case"copy":case"cut":case"paste":e=Qo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mo;break;default:e=zn}return kn(t=e.getPooled(r,t,n,o)),t}};if(y)throw Error(s(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),f=An,g=Pn,v=Dn,S({SimpleEventPlugin:sr,EnterLeaveEventPlugin:ko,ChangeEventPlugin:Ro,SelectEventPlugin:Ko,BeforeInputEventPlugin:ao});var ar=[],lr=-1;function ur(e){0>lr||(e.current=ar[lr],ar[lr]=null,lr--)}function cr(e,t){lr++,ar[lr]=e.current,e.current=t}var pr={},dr={current:pr},hr={current:!1},fr=pr;function gr(e,t){var n=e.type.contextTypes;if(!n)return pr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vr(e){return null!=(e=e.childContextTypes)}function mr(){ur(hr),ur(dr)}function yr(e,t,n){if(dr.current!==pr)throw Error(s(168));cr(dr,t),cr(hr,n)}function Cr(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw Error(s(108,ve(t)||"Unknown",i));return r({},n,{},o)}function wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pr,fr=dr.current,cr(dr,e),cr(hr,hr.current),!0}function Er(e,t,n){var o=e.stateNode;if(!o)throw Error(s(169));n?(e=Cr(e,t,fr),o.__reactInternalMemoizedMergedChildContext=e,ur(hr),ur(dr),cr(dr,e)):ur(hr),cr(hr,n)}var br=i.unstable_runWithPriority,_r=i.unstable_scheduleCallback,Or=i.unstable_cancelCallback,Rr=i.unstable_requestPaint,Sr=i.unstable_now,Tr=i.unstable_getCurrentPriorityLevel,Pr=i.unstable_ImmediatePriority,Dr=i.unstable_UserBlockingPriority,Ar=i.unstable_NormalPriority,Nr=i.unstable_LowPriority,xr=i.unstable_IdlePriority,Ir={},Fr=i.unstable_shouldYield,Mr=void 0!==Rr?Rr:function(){},Lr=null,kr=null,Gr=!1,Vr=Sr(),Wr=1e4>Vr?Sr:function(){return Sr()-Vr};function jr(){switch(Tr()){case Pr:return 99;case Dr:return 98;case Ar:return 97;case Nr:return 96;case xr:return 95;default:throw Error(s(332))}}function Hr(e){switch(e){case 99:return Pr;case 98:return Dr;case 97:return Ar;case 96:return Nr;case 95:return xr;default:throw Error(s(332))}}function Br(e,t){return e=Hr(e),br(e,t)}function zr(e,t,n){return e=Hr(e),_r(e,t,n)}function Ur(e){return null===Lr?(Lr=[e],kr=_r(Pr,qr)):Lr.push(e),Ir}function Yr(){if(null!==kr){var e=kr;kr=null,Or(e)}qr()}function qr(){if(!Gr&&null!==Lr){Gr=!0;var e=0;try{var t=Lr;Br(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Lr=null}catch(t){throw null!==Lr&&(Lr=Lr.slice(e+1)),_r(Pr,Yr),t}finally{Gr=!1}}}function Kr(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function $r(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qr={current:null},Xr=null,Jr=null,Zr=null;function ei(){Zr=Jr=Xr=null}function ti(e){var t=Qr.current;ur(Qr),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function oi(e,t){Xr=e,Zr=Jr=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(As=!0),e.firstContext=null)}function ri(e,t){if(Zr!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jr){if(null===Xr)throw Error(s(308));Jr=t,Xr.dependencies={expirationTime:0,firstContext:t,responders:null}}else Jr=Jr.next=t;return e._currentValue}var ii=!1;function si(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function li(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ui(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.alternate;null!==n&&ai(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function pi(e,t,n,o){var i=e.updateQueue;ii=!1;var s=i.baseQueue,a=i.shared.pending;if(null!==a){if(null!==s){var l=s.next;s.next=a.next,a.next=l}s=a,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=a))}if(null!==s){l=s.next;var u=i.baseState,c=0,p=null,d=null,h=null;if(null!==l)for(var f=l;;){if((a=f.expirationTime)<o){var g={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===h?(d=h=g,p=u):h=h.next=g,a>c&&(c=a)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),il(a,f.suspenseConfig);e:{var v=e,m=f;switch(a=t,g=n,m.tag){case 1:if("function"==typeof(v=m.payload)){u=v.call(g,u,a);break e}u=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(a="function"==typeof(v=m.payload)?v.call(g,u,a):v))break e;u=r({},u,a);break e;case 2:ii=!0}}null!==f.callback&&(e.effectTag|=32,null===(a=i.effects)?i.effects=[f]:a.push(f))}if(null===(f=f.next)||f===l){if(null===(a=i.shared.pending))break;f=s.next=a.next,a.next=l,i.baseQueue=s=a,i.shared.pending=null}}null===h?p=u:h.next=d,i.baseState=p,i.baseQueue=h,sl(c),e.expirationTime=c,e.memoizedState=u}}function di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=r,r=n,"function"!=typeof o)throw Error(s(191,o));o.call(r)}}}var hi=Q.ReactCurrentBatchConfig,fi=(new o.Component).refs;function gi(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var vi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=Ya(),r=hi.suspense;(r=li(o=qa(o,e,r),r)).payload=t,null!=n&&(r.callback=n),ui(e,r),Ka(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=Ya(),r=hi.suspense;(r=li(o=qa(o,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),ui(e,r),Ka(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ya(),o=hi.suspense;(o=li(n=qa(n,e,o),o)).tag=2,null!=t&&(o.callback=t),ui(e,o),Ka(e,n)}};function mi(e,t,n,o,r,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!Wo(n,o)||!Wo(r,i))}function yi(e,t,n){var o=!1,r=pr,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(r=vr(t)?fr:dr.current,i=(o=null!=(o=t.contextTypes))?gr(e,r):pr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ci(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&vi.enqueueReplaceState(t,t.state,null)}function wi(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=fi,si(e);var i=t.contextType;"object"==typeof i&&null!==i?r.context=ri(i):(i=vr(t)?fr:dr.current,r.context=gr(e,i)),pi(e,n,r,o),r.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&vi.enqueueReplaceState(r,r.state,null),pi(e,n,r,o),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var Ei=Array.isArray;function bi(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(s(309));var o=n.stateNode}if(!o)throw Error(s(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=o.refs;t===fi&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function _i(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oi(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(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 r(e,t){return(e=Sl(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.effectTag=2,n):o:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Dl(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=bi(e,t,n),o.return=e,o):((o=Tl(n.type,n.key,n.props,null,e.mode,o)).ref=bi(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Al(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function p(e,t,n,o,i){return null===t||7!==t.tag?((t=Pl(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Dl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Tl(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case te:return(t=Al(t,e.mode,n)).return=e,t}if(Ei(t)||ge(t))return(t=Pl(t,e.mode,n,null)).return=e,t;_i(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===r?n.type===ne?p(e,t,n.props.children,o,r):u(e,t,n,o):null;case te:return n.key===r?c(e,t,n,o):null}if(Ei(n)||ge(n))return null!==r?null:p(e,t,n,o,null);_i(e,n)}return null}function f(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case ee:return e=e.get(null===o.key?n:o.key)||null,o.type===ne?p(t,e,o.props.children,r,o.key):u(t,e,o,r);case te:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(Ei(o)||ge(o))return p(t,e=e.get(n)||null,o,r,null);_i(t,o)}return null}function g(r,s,a,l){for(var u=null,c=null,p=s,g=s=0,v=null;null!==p&&g<a.length;g++){p.index>g?(v=p,p=null):v=p.sibling;var m=h(r,p,a[g],l);if(null===m){null===p&&(p=v);break}e&&p&&null===m.alternate&&t(r,p),s=i(m,s,g),null===c?u=m:c.sibling=m,c=m,p=v}if(g===a.length)return n(r,p),u;if(null===p){for(;g<a.length;g++)null!==(p=d(r,a[g],l))&&(s=i(p,s,g),null===c?u=p:c.sibling=p,c=p);return u}for(p=o(r,p);g<a.length;g++)null!==(v=f(p,r,g,a[g],l))&&(e&&null!==v.alternate&&p.delete(null===v.key?g:v.key),s=i(v,s,g),null===c?u=v:c.sibling=v,c=v);return e&&p.forEach((function(e){return t(r,e)})),u}function v(r,a,l,u){var c=ge(l);if("function"!=typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var p=c=null,g=a,v=a=0,m=null,y=l.next();null!==g&&!y.done;v++,y=l.next()){g.index>v?(m=g,g=null):m=g.sibling;var C=h(r,g,y.value,u);if(null===C){null===g&&(g=m);break}e&&g&&null===C.alternate&&t(r,g),a=i(C,a,v),null===p?c=C:p.sibling=C,p=C,g=m}if(y.done)return n(r,g),c;if(null===g){for(;!y.done;v++,y=l.next())null!==(y=d(r,y.value,u))&&(a=i(y,a,v),null===p?c=y:p.sibling=y,p=y);return c}for(g=o(r,g);!y.done;v++,y=l.next())null!==(y=f(g,r,v,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),a=i(y,a,v),null===p?c=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return t(r,e)})),c}return function(e,o,i,l){var u="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case ee:e:{for(c=i.key,u=o;null!==u;){if(u.key===c){switch(u.tag){case 7:if(i.type===ne){n(e,u.sibling),(o=r(u,i.props.children)).return=e,e=o;break e}break;default:if(u.elementType===i.type){n(e,u.sibling),(o=r(u,i.props)).ref=bi(e,u,i),o.return=e,e=o;break e}}n(e,u);break}t(e,u),u=u.sibling}i.type===ne?((o=Pl(i.props.children,e.mode,l,i.key)).return=e,e=o):((l=Tl(i.type,i.key,i.props,null,e.mode,l)).ref=bi(e,o,i),l.return=e,e=l)}return a(e);case te:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Al(i,e.mode,l)).return=e,e=o}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=Dl(i,e.mode,l)).return=e,e=o),a(e);if(Ei(i))return g(e,o,i,l);if(ge(i))return v(e,o,i,l);if(c&&_i(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(s(152,e.displayName||e.name||"Component"))}return n(e,o)}}var Ri=Oi(!0),Si=Oi(!1),Ti={},Pi={current:Ti},Di={current:Ti},Ai={current:Ti};function Ni(e){if(e===Ti)throw Error(s(174));return e}function xi(e,t){switch(cr(Ai,t),cr(Di,e),cr(Pi,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ke(null,"");break;default:t=ke(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ur(Pi),cr(Pi,t)}function Ii(){ur(Pi),ur(Di),ur(Ai)}function Fi(e){Ni(Ai.current);var t=Ni(Pi.current),n=ke(t,e.type);t!==n&&(cr(Di,e),cr(Pi,n))}function Mi(e){Di.current===e&&(ur(Pi),ur(Di))}var Li={current:0};function ki(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!=(64&t.effectTag))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}function Gi(e,t){return{responder:e,props:t}}var Vi=Q.ReactCurrentDispatcher,Wi=Q.ReactCurrentBatchConfig,ji=0,Hi=null,Bi=null,zi=null,Ui=!1;function Yi(){throw Error(s(321))}function qi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Go(e[n],t[n]))return!1;return!0}function Ki(e,t,n,o,r,i){if(ji=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Vi.current=null===e||null===e.memoizedState?ms:ys,e=n(o,r),t.expirationTime===ji){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(s(301));i+=1,zi=Bi=null,t.updateQueue=null,Vi.current=Cs,e=n(o,r)}while(t.expirationTime===ji)}if(Vi.current=vs,t=null!==Bi&&null!==Bi.next,ji=0,zi=Bi=Hi=null,Ui=!1,t)throw Error(s(300));return e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===zi?Hi.memoizedState=zi=e:zi=zi.next=e,zi}function Qi(){if(null===Bi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Bi.next;var t=null===zi?Hi.memoizedState:zi.next;if(null!==t)zi=t,Bi=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Bi=e).memoizedState,baseState:Bi.baseState,baseQueue:Bi.baseQueue,queue:Bi.queue,next:null},null===zi?Hi.memoizedState=zi=e:zi=zi.next=e}return zi}function Xi(e,t){return"function"==typeof t?t(e):t}function Ji(e){var t=Qi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var o=Bi,r=o.baseQueue,i=n.pending;if(null!==i){if(null!==r){var a=r.next;r.next=i.next,i.next=a}o.baseQueue=r=i,n.pending=null}if(null!==r){r=r.next,o=o.baseState;var l=a=i=null,u=r;do{var c=u.expirationTime;if(c<ji){var p={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(a=l=p,i=o):l=l.next=p,c>Hi.expirationTime&&(Hi.expirationTime=c,sl(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),il(c,u.suspenseConfig),o=u.eagerReducer===e?u.eagerState:e(o,u.action);u=u.next}while(null!==u&&u!==r);null===l?i=o:l.next=a,Go(o,t.memoizedState)||(As=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=l,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Zi(e){var t=Qi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{i=e(i,a.action),a=a.next}while(a!==r);Go(i,t.memoizedState)||(As=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function es(e){var t=$i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e}).dispatch=gs.bind(null,Hi,e),[t.memoizedState,e]}function ts(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Hi.updateQueue)?(t={lastEffect:null},Hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function ns(){return Qi().memoizedState}function os(e,t,n,o){var r=$i();Hi.effectTag|=e,r.memoizedState=ts(1|t,n,void 0,void 0===o?null:o)}function rs(e,t,n,o){var r=Qi();o=void 0===o?null:o;var i=void 0;if(null!==Bi){var s=Bi.memoizedState;if(i=s.destroy,null!==o&&qi(o,s.deps))return void ts(t,n,i,o)}Hi.effectTag|=e,r.memoizedState=ts(1|t,n,i,o)}function is(e,t){return os(516,4,e,t)}function ss(e,t){return rs(516,4,e,t)}function as(e,t){return rs(4,2,e,t)}function ls(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 us(e,t,n){return n=null!=n?n.concat([e]):null,rs(4,2,ls.bind(null,t,e),n)}function cs(){}function ps(e,t){return $i().memoizedState=[e,void 0===t?null:t],e}function ds(e,t){var n=Qi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&qi(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function hs(e,t){var n=Qi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&qi(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function fs(e,t,n){var o=jr();Br(98>o?98:o,(function(){e(!0)})),Br(97<o?97:o,(function(){var o=Wi.suspense;Wi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Wi.suspense=o}}))}function gs(e,t,n){var o=Ya(),r=hi.suspense;r={expirationTime:o=qa(o,e,r),suspenseConfig:r,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?r.next=r:(r.next=i.next,i.next=r),t.pending=r,i=e.alternate,e===Hi||null!==i&&i===Hi)Ui=!0,r.expirationTime=ji,Hi.expirationTime=ji;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(r.eagerReducer=i,r.eagerState=a,Go(a,s))return}catch(e){}Ka(e,o)}}var vs={readContext:ri,useCallback:Yi,useContext:Yi,useEffect:Yi,useImperativeHandle:Yi,useLayoutEffect:Yi,useMemo:Yi,useReducer:Yi,useRef:Yi,useState:Yi,useDebugValue:Yi,useResponder:Yi,useDeferredValue:Yi,useTransition:Yi},ms={readContext:ri,useCallback:ps,useContext:ri,useEffect:is,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,os(4,2,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4,2,e,t)},useMemo:function(e,t){var n=$i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=$i();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=gs.bind(null,Hi,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},$i().memoizedState=e},useState:es,useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=es(e),o=n[0],r=n[1];return is((function(){var n=Wi.suspense;Wi.suspense=void 0===t?null:t;try{r(e)}finally{Wi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=es(!1),n=t[0];return t=t[1],[ps(fs.bind(null,t,e),[t,e]),n]}},ys={readContext:ri,useCallback:ds,useContext:ri,useEffect:ss,useImperativeHandle:us,useLayoutEffect:as,useMemo:hs,useReducer:Ji,useRef:ns,useState:function(){return Ji(Xi)},useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Ji(Xi),o=n[0],r=n[1];return ss((function(){var n=Wi.suspense;Wi.suspense=void 0===t?null:t;try{r(e)}finally{Wi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Ji(Xi),n=t[0];return t=t[1],[ds(fs.bind(null,t,e),[t,e]),n]}},Cs={readContext:ri,useCallback:ds,useContext:ri,useEffect:ss,useImperativeHandle:us,useLayoutEffect:as,useMemo:hs,useReducer:Zi,useRef:ns,useState:function(){return Zi(Xi)},useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Zi(Xi),o=n[0],r=n[1];return ss((function(){var n=Wi.suspense;Wi.suspense=void 0===t?null:t;try{r(e)}finally{Wi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Zi(Xi),n=t[0];return t=t[1],[ds(fs.bind(null,t,e),[t,e]),n]}},ws=null,Es=null,bs=!1;function _s(e,t){var n=Ol(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Os(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Rs(e){if(bs){var t=Es;if(t){var n=t;if(!Os(e,t)){if(!(t=En(n.nextSibling))||!Os(e,t))return e.effectTag=-1025&e.effectTag|2,bs=!1,void(ws=e);_s(ws,n)}ws=e,Es=En(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,bs=!1,ws=e}}function Ss(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ws=e}function Ts(e){if(e!==ws)return!1;if(!bs)return Ss(e),bs=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=Es;t;)_s(e,t),t=En(t.nextSibling);if(Ss(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Es=En(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Es=null}}else Es=ws?En(e.stateNode.nextSibling):null;return!0}function Ps(){Es=ws=null,bs=!1}var Ds=Q.ReactCurrentOwner,As=!1;function Ns(e,t,n,o){t.child=null===e?Si(t,null,n,o):Ri(t,e.child,n,o)}function xs(e,t,n,o,r){n=n.render;var i=t.ref;return oi(t,r),o=Ki(e,t,n,o,i,r),null===e||As?(t.effectTag|=1,Ns(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ks(e,t,r))}function Is(e,t,n,o,r,i){if(null===e){var s=n.type;return"function"!=typeof s||Rl(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tl(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Fs(e,t,s,o,r,i))}return s=e.child,r<i&&(r=s.memoizedProps,(n=null!==(n=n.compare)?n:Wo)(r,o)&&e.ref===t.ref)?Ks(e,t,i):(t.effectTag|=1,(e=Sl(s,o)).ref=t.ref,e.return=t,t.child=e)}function Fs(e,t,n,o,r,i){return null!==e&&Wo(e.memoizedProps,o)&&e.ref===t.ref&&(As=!1,r<i)?(t.expirationTime=e.expirationTime,Ks(e,t,i)):Ls(e,t,n,o,i)}function Ms(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ls(e,t,n,o,r){var i=vr(n)?fr:dr.current;return i=gr(t,i),oi(t,r),n=Ki(e,t,n,o,i,r),null===e||As?(t.effectTag|=1,Ns(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ks(e,t,r))}function ks(e,t,n,o,r){if(vr(n)){var i=!0;wr(t)}else i=!1;if(oi(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yi(t,n,o),wi(t,n,o,r),o=!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=ri(u):u=gr(t,u=vr(n)?fr:dr.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==o||l!==u)&&Ci(t,s,o,u),ii=!1;var d=t.memoizedState;s.state=d,pi(t,o,s,r),l=t.memoizedState,a!==o||d!==l||hr.current||ii?("function"==typeof c&&(gi(t,n,c,o),l=t.memoizedState),(a=ii||mi(t,n,a,o,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.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=u,o=a):("function"==typeof s.componentDidMount&&(t.effectTag|=4),o=!1)}else s=t.stateNode,ai(e,t),a=t.memoizedProps,s.props=t.type===t.elementType?a:$r(t.type,a),l=s.context,"object"==typeof(u=n.contextType)&&null!==u?u=ri(u):u=gr(t,u=vr(n)?fr:dr.current),(p="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==o||l!==u)&&Ci(t,s,o,u),ii=!1,l=t.memoizedState,s.state=l,pi(t,o,s,r),d=t.memoizedState,a!==o||l!==d||hr.current||ii?("function"==typeof c&&(gi(t,n,c,o),d=t.memoizedState),(c=ii||mi(t,n,a,o,l,d,u))?(p||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,d,u),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,d,u)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=d),s.props=o,s.state=d,s.context=u,o=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),o=!1);return Gs(e,t,n,o,i,r)}function Gs(e,t,n,o,r,i){Ms(e,t);var s=0!=(64&t.effectTag);if(!o&&!s)return r&&Er(t,n,!1),Ks(e,t,i);o=t.stateNode,Ds.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&s?(t.child=Ri(t,e.child,null,i),t.child=Ri(t,null,a,i)):Ns(e,t,a,i),t.memoizedState=o.state,r&&Er(t,n,!0),t.child}function Vs(e){var t=e.stateNode;t.pendingContext?yr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yr(0,t.context,!1),xi(e,t.containerInfo)}var Ws,js,Hs,Bs={dehydrated:null,retryTime:0};function zs(e,t,n){var o,r=t.mode,i=t.pendingProps,s=Li.current,a=!1;if((o=0!=(64&t.effectTag))||(o=0!=(2&s)&&(null===e||null!==e.memoizedState)),o?(a=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(s|=1),cr(Li,1&s),null===e){if(void 0!==i.fallback&&Rs(t),a){if(a=i.fallback,(i=Pl(null,r,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Pl(a,r,n,null)).return=t,i.sibling=n,t.memoizedState=Bs,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=Si(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,a){if(i=i.fallback,(n=Sl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(a=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=a;null!==a;)a.return=n,a=a.sibling;return(r=Sl(r,i)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=Bs,t.child=n,r}return n=Ri(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,a){if(a=i.fallback,(i=Pl(null,r,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Pl(a,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Bs,t.child=i,n}return t.memoizedState=null,t.child=Ri(t,e,i.children,n)}function Us(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ni(e.return,t)}function Ys(e,t,n,o,r,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailExpiration:0,tailMode:r,lastEffect:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailExpiration=0,s.tailMode=r,s.lastEffect=i)}function qs(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(Ns(e,t,o.children,n),0!=(2&(o=Li.current)))o=1&o|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n);else if(19===e.tag)Us(e,n);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}o&=1}if(cr(Li,o),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===ki(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ys(t,!1,r,n,i,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===ki(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ys(t,!0,n,null,i,t.lastEffect);break;case"together":Ys(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ks(e,t,n){null!==e&&(t.dependencies=e.dependencies);var o=t.expirationTime;if(0!==o&&sl(o),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Sl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Sl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $s(e,t){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 o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Qs(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vr(t.type)&&mr(),null;case 3:return Ii(),ur(hr),ur(dr),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ts(t)||(t.effectTag|=4),null;case 5:Mi(t),n=Ni(Ai.current);var i=t.type;if(null!==e&&null!=t.stateNode)js(e,t,i,o,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!o){if(null===t.stateNode)throw Error(s(166));return null}if(e=Ni(Pi.current),Ts(t)){o=t.stateNode,i=t.type;var a=t.memoizedProps;switch(o[On]=t,o[Rn]=a,i){case"iframe":case"object":case"embed":qt("load",o);break;case"video":case"audio":for(e=0;e<Qe.length;e++)qt(Qe[e],o);break;case"source":qt("error",o);break;case"img":case"image":case"link":qt("error",o),qt("load",o);break;case"form":qt("reset",o),qt("submit",o);break;case"details":qt("toggle",o);break;case"input":_e(o,a),qt("invalid",o),ln(n,"onChange");break;case"select":o._wrapperState={wasMultiple:!!a.multiple},qt("invalid",o),ln(n,"onChange");break;case"textarea":Ne(o,a),qt("invalid",o),ln(n,"onChange")}for(var l in rn(i,a),e=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?o.textContent!==u&&(e=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(e=["children",""+u]):O.hasOwnProperty(l)&&null!=u&&ln(n,l)}switch(i){case"input":we(o),Se(o,a,!0);break;case"textarea":we(o),Ie(o);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(o.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===an&&(e=Le(i)),e===an?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(i,{is:o.is}):(e=l.createElement(i),"select"===i&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,i),e[On]=t,e[Rn]=o,Ws(e,t),t.stateNode=e,l=sn(i,o),i){case"iframe":case"object":case"embed":qt("load",e),u=o;break;case"video":case"audio":for(u=0;u<Qe.length;u++)qt(Qe[u],e);u=o;break;case"source":qt("error",e),u=o;break;case"img":case"image":case"link":qt("error",e),qt("load",e),u=o;break;case"form":qt("reset",e),qt("submit",e),u=o;break;case"details":qt("toggle",e),u=o;break;case"input":_e(e,o),u=be(e,o),qt("invalid",e),ln(n,"onChange");break;case"option":u=Pe(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},u=r({},o,{value:void 0}),qt("invalid",e),ln(n,"onChange");break;case"textarea":Ne(e,o),u=Ae(e,o),qt("invalid",e),ln(n,"onChange");break;default:u=o}rn(i,u);var c=u;for(a in c)if(c.hasOwnProperty(a)){var p=c[a];"style"===a?nn(e,p):"dangerouslySetInnerHTML"===a?null!=(p=p?p.__html:void 0)&&Ve(e,p):"children"===a?"string"==typeof p?("textarea"!==i||""!==p)&&We(e,p):"number"==typeof p&&We(e,""+p):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(O.hasOwnProperty(a)?null!=p&&ln(n,a):null!=p&&X(e,a,p,l))}switch(i){case"input":we(e),Se(e,o,!1);break;case"textarea":we(e),Ie(e);break;case"option":null!=o.value&&e.setAttribute("value",""+ye(o.value));break;case"select":e.multiple=!!o.multiple,null!=(n=o.value)?De(e,!!o.multiple,n,!1):null!=o.defaultValue&&De(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=un)}mn(i,o)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Hs(0,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(s(166));n=Ni(Ai.current),Ni(Pi.current),Ts(t)?(n=t.stateNode,o=t.memoizedProps,n[On]=t,n.nodeValue!==o&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[On]=t,t.stateNode=n)}return null;case 13:return ur(Li),o=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==o,o=!1,null===e?void 0!==t.memoizedProps.fallback&&Ts(t):(o=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(a=t.firstEffect)?(t.firstEffect=i,i.nextEffect=a):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!o&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Li.current)?Ta===wa&&(Ta=Ea):(Ta!==wa&&Ta!==Ea||(Ta=ba),0!==xa&&null!==Oa&&(Il(Oa,Sa),Fl(Oa,xa)))),(n||o)&&(t.effectTag|=4),null);case 4:return Ii(),null;case 10:return ti(t),null;case 17:return vr(t.type)&&mr(),null;case 19:if(ur(Li),null===(o=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(a=o.rendering)){if(i)$s(o,!1);else if(Ta!==wa||null!==e&&0!=(64&e.effectTag))for(a=t.child;null!==a;){if(null!==(e=ki(a))){for(t.effectTag|=64,$s(o,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=t.child;null!==o;)a=n,(i=o).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=a,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,a=e.dependencies,i.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),o=o.sibling;return cr(Li,1&Li.current|2),t.child}a=a.sibling}}else{if(!i)if(null!==(e=ki(a))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),$s(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*Wr()-o.renderingStartTime>o.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,$s(o,!1),t.expirationTime=t.childExpirationTime=n-1);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(0===o.tailExpiration&&(o.tailExpiration=Wr()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=Wr(),n.sibling=null,t=Li.current,cr(Li,i?1&t|2:1&t),n):null}throw Error(s(156,t.tag))}function Xs(e){switch(e.tag){case 1:vr(e.type)&&mr();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ii(),ur(hr),ur(dr),0!=(64&(t=e.effectTag)))throw Error(s(285));return e.effectTag=-4097&t|64,e;case 5:return Mi(e),null;case 13:return ur(Li),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ur(Li),null;case 4:return Ii(),null;case 10:return ti(e),null;default:return null}}function Js(e,t){return{value:e,source:t,stack:me(t)}}Ws=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}},js=function(e,t,n,o,i){var s=e.memoizedProps;if(s!==o){var a,l,u=t.stateNode;switch(Ni(Pi.current),e=null,n){case"input":s=be(u,s),o=be(u,o),e=[];break;case"option":s=Pe(u,s),o=Pe(u,o),e=[];break;case"select":s=r({},s,{value:void 0}),o=r({},o,{value:void 0}),e=[];break;case"textarea":s=Ae(u,s),o=Ae(u,o),e=[];break;default:"function"!=typeof s.onClick&&"function"==typeof o.onClick&&(u.onclick=un)}for(a in rn(n,o),n=null,s)if(!o.hasOwnProperty(a)&&s.hasOwnProperty(a)&&null!=s[a])if("style"===a)for(l in u=s[a])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(O.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in o){var c=o[a];if(u=null!=s?s[a]:void 0,o.hasOwnProperty(a)&&c!==u&&(null!=c||null!=u))if("style"===a)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(a,n)),n=c;else"dangerouslySetInnerHTML"===a?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(a,c)):"children"===a?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(a,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(O.hasOwnProperty(a)?(null!=c&&ln(i,a),e||u===c||(e=[])):(e=e||[]).push(a,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Hs=function(e,t,n,o){n!==o&&(t.effectTag|=4)};var Zs="function"==typeof WeakSet?WeakSet:Set;function ea(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=me(n)),null!==n&&ve(n.type),t=t.value,null!==e&&1===e.tag&&ve(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ta(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yl(e,t)}else t.current=null}function na(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$r(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(s(163))}function oa(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,void 0!==o&&o()}n=n.next}while(n!==t)}}function ra(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function ia(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ra(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var o=n.elementType===n.type?t.memoizedProps:$r(n.type,t.memoizedProps);e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&mn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Lt(n)))));case 19:case 17:case 20:case 21:return}throw Error(s(163))}function sa(e,t,n){switch("function"==typeof bl&&bl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var o=e.next;Br(97<n?97:n,(function(){var e=o;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(e){yl(r,e)}}e=e.next}while(e!==o)}))}break;case 1:ta(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yl(e,t)}}(t,n);break;case 5:ta(t);break;case 4:ca(e,t,n)}}function aa(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&aa(t)}function la(e){return 5===e.tag||3===e.tag||4===e.tag}function ua(e){e:{for(var t=e.return;null!==t;){if(la(t)){var n=t;break e}t=t.return}throw Error(s(160))}switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(s(161))}16&n.effectTag&&(We(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||la(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}o?function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===o.nodeType?o.parentNode.insertBefore(t,n):o.insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null!==(o=o._reactRootContainer)&&void 0!==o||null!==n.onclick||(n.onclick=un));else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t):function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t)}function ca(e,t,n){for(var o,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(o=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:o=o.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var l=e,u=i,c=n,p=u;;)if(sa(l,p,c),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===u)break e;for(;null===p.sibling;){if(null===p.return||p.return===u)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r?(l=o,u=i.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):o.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){o=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(sa(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function pa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void oa(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps,r=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Rn]=o,"input"===e&&"radio"===o.type&&null!=o.name&&Oe(n,o),sn(e,r),t=sn(e,o),r=0;r<i.length;r+=2){var a=i[r],l=i[r+1];"style"===a?nn(n,l):"dangerouslySetInnerHTML"===a?Ve(n,l):"children"===a?We(n,l):X(n,a,l,t)}switch(e){case"input":Re(n,o);break;case"textarea":xe(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(e=o.value)?De(n,!!o.multiple,e,!1):t!==!!o.multiple&&(null!=o.defaultValue?De(n,!!o.multiple,o.defaultValue,!0):De(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?o=!1:(o=!0,n=t.child,Fa=Wr()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,o?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,i.style.display=tn("display",r));else if(6===e.tag)e.stateNode.nodeValue=o?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void da(t);case 19:return void da(t);case 17:return}throw Error(s(163))}function da(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var o=wl.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}var ha="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=li(n,null)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){La||(La=!0,ka=o),ea(e,t)},n}function ga(e,t,n){(n=li(n,null)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return ea(e,t),o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Ga?Ga=new Set([this]):Ga.add(this),ea(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var va,ma=Math.ceil,ya=Q.ReactCurrentDispatcher,Ca=Q.ReactCurrentOwner,wa=0,Ea=3,ba=4,_a=0,Oa=null,Ra=null,Sa=0,Ta=wa,Pa=null,Da=1073741823,Aa=1073741823,Na=null,xa=0,Ia=!1,Fa=0,Ma=null,La=!1,ka=null,Ga=null,Va=!1,Wa=null,ja=90,Ha=null,Ba=0,za=null,Ua=0;function Ya(){return 0!=(48&_a)?1073741821-(Wr()/10|0):0!==Ua?Ua:Ua=1073741821-(Wr()/10|0)}function qa(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var o=jr();if(0==(4&t))return 99===o?1073741823:1073741822;if(0!=(16&_a))return Sa;if(null!==n)e=Kr(e,0|n.timeoutMs||5e3,250);else switch(o){case 99:e=1073741823;break;case 98:e=Kr(e,150,100);break;case 97:case 96:e=Kr(e,5e3,250);break;case 95:e=2;break;default:throw Error(s(326))}return null!==Oa&&e===Sa&&--e,e}function Ka(e,t){if(50<Ba)throw Ba=0,za=null,Error(s(185));if(null!==(e=$a(e,t))){var n=jr();1073741823===t?0!=(8&_a)&&0==(48&_a)?Za(e):(Xa(e),0===_a&&Yr()):Xa(e),0==(4&_a)||98!==n&&99!==n||(null===Ha?Ha=new Map([[e,t]]):(void 0===(n=Ha.get(e))||n>t)&&Ha.set(e,t))}}function $a(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var o=e.return,r=null;if(null===o&&3===e.tag)r=e.stateNode;else for(;null!==o;){if(n=o.alternate,o.childExpirationTime<t&&(o.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===o.return&&3===o.tag){r=o.stateNode;break}o=o.return}return null!==r&&(Oa===r&&(sl(t),Ta===ba&&Il(r,Sa)),Fl(r,t)),r}function Qa(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!xl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xa(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ur(Za.bind(null,e));else{var t=Qa(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var o=Ya();if(1073741823===t?o=99:1===t||2===t?o=95:o=0>=(o=10*(1073741821-t)-10*(1073741821-o))?99:250>=o?98:5250>=o?97:95,null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=o)return;n!==Ir&&Or(n)}e.callbackExpirationTime=t,e.callbackPriority=o,t=1073741823===t?Ur(Za.bind(null,e)):zr(o,Ja.bind(null,e),{timeout:10*(1073741821-t)-Wr()}),e.callbackNode=t}}}function Ja(e,t){if(Ua=0,t)return Ml(e,t=Ya()),Xa(e),null;var n=Qa(e);if(0!==n){if(t=e.callbackNode,0!=(48&_a))throw Error(s(327));if(gl(),e===Oa&&n===Sa||nl(e,n),null!==Ra){var o=_a;_a|=16;for(var r=rl();;)try{ll();break}catch(t){ol(e,t)}if(ei(),_a=o,ya.current=r,1===Ta)throw t=Pa,nl(e,n),Il(e,n),Xa(e),t;if(null===Ra)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=Ta,Oa=null,o){case wa:case 1:throw Error(s(345));case 2:Ml(e,2<n?2:n);break;case Ea:if(Il(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(r)),1073741823===Da&&10<(r=Fa+500-Wr())){if(Ia){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(i=Qa(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=Cn(dl.bind(null,e),r);break}dl(e);break;case ba:if(Il(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(r)),Ia&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(r=Qa(e))&&r!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==Aa?o=10*(1073741821-Aa)-Wr():1073741823===Da?o=0:(o=10*(1073741821-Da)-5e3,0>(o=(r=Wr())-o)&&(o=0),(n=10*(1073741821-n)-r)<(o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ma(o/1960))-o)&&(o=n)),10<o){e.timeoutHandle=Cn(dl.bind(null,e),o);break}dl(e);break;case 5:if(1073741823!==Da&&null!==Na){i=Da;var a=Na;if(0>=(o=0|a.busyMinDurationMs)?o=0:(r=0|a.busyDelayMs,o=(i=Wr()-(10*(1073741821-i)-(0|a.timeoutMs||5e3)))<=r?0:r+o-i),10<o){Il(e,n),e.timeoutHandle=Cn(dl.bind(null,e),o);break}}dl(e);break;default:throw Error(s(329))}if(Xa(e),e.callbackNode===t)return Ja.bind(null,e)}}return null}function Za(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&_a))throw Error(s(327));if(gl(),e===Oa&&t===Sa||nl(e,t),null!==Ra){var n=_a;_a|=16;for(var o=rl();;)try{al();break}catch(t){ol(e,t)}if(ei(),_a=n,ya.current=o,1===Ta)throw n=Pa,nl(e,t),Il(e,t),Xa(e),n;if(null!==Ra)throw Error(s(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Oa=null,dl(e),Xa(e)}return null}function el(e,t){var n=_a;_a|=1;try{return e(t)}finally{0===(_a=n)&&Yr()}}function tl(e,t){var n=_a;_a&=-2,_a|=8;try{return e(t)}finally{0===(_a=n)&&Yr()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Ra)for(n=Ra.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&mr();break;case 3:Ii(),ur(hr),ur(dr);break;case 5:Mi(o);break;case 4:Ii();break;case 13:case 19:ur(Li);break;case 10:ti(o)}n=n.return}Oa=e,Ra=Sl(e.current,null),Sa=t,Ta=wa,Pa=null,Aa=Da=1073741823,Na=null,xa=0,Ia=!1}function ol(e,t){for(;;){try{if(ei(),Vi.current=vs,Ui)for(var n=Hi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}if(ji=0,zi=Bi=Hi=null,Ui=!1,null===Ra||null===Ra.return)return Ta=1,Pa=t,Ra=null;e:{var r=e,i=Ra.return,s=Ra,a=t;if(t=Sa,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==a&&"object"==typeof a&&"function"==typeof a.then){var l=a;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.expirationTime=u.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var c=0!=(1&Li.current),p=i;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var f=p.memoizedProps;d=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!c)}}if(d){var g=p.updateQueue;if(null===g){var v=new Set;v.add(l),p.updateQueue=v}else g.add(l);if(0==(2&p.mode)){if(p.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var m=li(1073741823,null);m.tag=2,ui(s,m)}s.expirationTime=1073741823;break e}a=void 0,s=t;var y=r.pingCache;if(null===y?(y=r.pingCache=new ha,a=new Set,y.set(l,a)):void 0===(a=y.get(l))&&(a=new Set,y.set(l,a)),!a.has(s)){a.add(s);var C=Cl.bind(null,r,l,s);l.then(C,C)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);a=Error((ve(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+me(s))}5!==Ta&&(Ta=2),a=Js(a,s),p=i;do{switch(p.tag){case 3:l=a,p.effectTag|=4096,p.expirationTime=t,ci(p,fa(p,l,t));break e;case 1:l=a;var w=p.type,E=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Ga||!Ga.has(E)))){p.effectTag|=4096,p.expirationTime=t,ci(p,ga(p,l,t));break e}}p=p.return}while(null!==p)}Ra=cl(Ra)}catch(e){t=e;continue}break}}function rl(){var e=ya.current;return ya.current=vs,null===e?vs:e}function il(e,t){e<Da&&2<e&&(Da=e),null!==t&&e<Aa&&2<e&&(Aa=e,Na=t)}function sl(e){e>xa&&(xa=e)}function al(){for(;null!==Ra;)Ra=ul(Ra)}function ll(){for(;null!==Ra&&!Fr();)Ra=ul(Ra)}function ul(e){var t=va(e.alternate,e,Sa);return e.memoizedProps=e.pendingProps,null===t&&(t=cl(e)),Ca.current=null,t}function cl(e){Ra=e;do{var t=Ra.alternate;if(e=Ra.return,0==(2048&Ra.effectTag)){if(t=Qs(t,Ra,Sa),1===Sa||1!==Ra.childExpirationTime){for(var n=0,o=Ra.child;null!==o;){var r=o.expirationTime,i=o.childExpirationTime;r>n&&(n=r),i>n&&(n=i),o=o.sibling}Ra.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ra.firstEffect),null!==Ra.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ra.firstEffect),e.lastEffect=Ra.lastEffect),1<Ra.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ra:e.firstEffect=Ra,e.lastEffect=Ra))}else{if(null!==(t=Xs(Ra)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ra.sibling))return t;Ra=e}while(null!==Ra);return Ta===wa&&(Ta=5),null}function pl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dl(e){var t=jr();return Br(99,hl.bind(null,e,t)),null}function hl(e,t){do{gl()}while(null!==Wa);if(0!=(48&_a))throw Error(s(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=pl(n);if(e.firstPendingTime=r,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Oa&&(Ra=Oa=null,Sa=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var i=_a;_a|=32,Ca.current=null,gn=Yt;var a=hn();if(fn(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{var u=(l=(l=a.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch(e){l=null;break e}var d=0,h=-1,f=-1,g=0,v=0,m=a,y=null;t:for(;;){for(var C;m!==l||0!==c&&3!==m.nodeType||(h=d+c),m!==p||0!==u&&3!==m.nodeType||(f=d+u),3===m.nodeType&&(d+=m.nodeValue.length),null!==(C=m.firstChild);)y=m,m=C;for(;;){if(m===a)break t;if(y===l&&++g===c&&(h=d),y===p&&++v===u&&(f=d),null!==(C=m.nextSibling))break;y=(m=y).parentNode}m=C}l=-1===h||-1===f?null:{start:h,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;vn={activeElementDetached:null,focusedElem:a,selectionRange:l},Yt=!1,Ma=r;do{try{fl()}catch(e){if(null===Ma)throw Error(s(330));yl(Ma,e),Ma=Ma.nextEffect}}while(null!==Ma);Ma=r;do{try{for(a=e,l=t;null!==Ma;){var w=Ma.effectTag;if(16&w&&We(Ma.stateNode,""),128&w){var E=Ma.alternate;if(null!==E){var b=E.ref;null!==b&&("function"==typeof b?b(null):b.current=null)}}switch(1038&w){case 2:ua(Ma),Ma.effectTag&=-3;break;case 6:ua(Ma),Ma.effectTag&=-3,pa(Ma.alternate,Ma);break;case 1024:Ma.effectTag&=-1025;break;case 1028:Ma.effectTag&=-1025,pa(Ma.alternate,Ma);break;case 4:pa(Ma.alternate,Ma);break;case 8:ca(a,c=Ma,l),aa(c)}Ma=Ma.nextEffect}}catch(e){if(null===Ma)throw Error(s(330));yl(Ma,e),Ma=Ma.nextEffect}}while(null!==Ma);if(b=vn,E=hn(),w=b.focusedElem,l=b.selectionRange,E!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==l&&fn(w)&&(E=l.start,void 0===(b=l.end)&&(b=E),"selectionStart"in w?(w.selectionStart=E,w.selectionEnd=Math.min(b,w.value.length)):(b=(E=w.ownerDocument||document)&&E.defaultView||window).getSelection&&(b=b.getSelection(),c=w.textContent.length,a=Math.min(l.start,c),l=void 0===l.end?a:Math.min(l.end,c),!b.extend&&a>l&&(c=l,l=a,a=c),c=dn(w,a),p=dn(w,l),c&&p&&(1!==b.rangeCount||b.anchorNode!==c.node||b.anchorOffset!==c.offset||b.focusNode!==p.node||b.focusOffset!==p.offset)&&((E=E.createRange()).setStart(c.node,c.offset),b.removeAllRanges(),a>l?(b.addRange(E),b.extend(p.node,p.offset)):(E.setEnd(p.node,p.offset),b.addRange(E))))),E=[];for(b=w;b=b.parentNode;)1===b.nodeType&&E.push({element:b,left:b.scrollLeft,top:b.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<E.length;w++)(b=E[w]).element.scrollLeft=b.left,b.element.scrollTop=b.top}Yt=!!gn,vn=gn=null,e.current=n,Ma=r;do{try{for(w=e;null!==Ma;){var _=Ma.effectTag;if(36&_&&ia(w,Ma.alternate,Ma),128&_){E=void 0;var O=Ma.ref;if(null!==O){var R=Ma.stateNode;switch(Ma.tag){case 5:E=R;break;default:E=R}"function"==typeof O?O(E):O.current=E}}Ma=Ma.nextEffect}}catch(e){if(null===Ma)throw Error(s(330));yl(Ma,e),Ma=Ma.nextEffect}}while(null!==Ma);Ma=null,Mr(),_a=i}else e.current=n;if(Va)Va=!1,Wa=e,ja=t;else for(Ma=r;null!==Ma;)t=Ma.nextEffect,Ma.nextEffect=null,Ma=t;if(0===(t=e.firstPendingTime)&&(Ga=null),1073741823===t?e===za?Ba++:(Ba=0,za=e):Ba=0,"function"==typeof El&&El(n.stateNode,o),Xa(e),La)throw La=!1,e=ka,ka=null,e;return 0!=(8&_a)||Yr(),null}function fl(){for(;null!==Ma;){var e=Ma.effectTag;0!=(256&e)&&na(Ma.alternate,Ma),0==(512&e)||Va||(Va=!0,zr(97,(function(){return gl(),null}))),Ma=Ma.nextEffect}}function gl(){if(90!==ja){var e=97<ja?97:ja;return ja=90,Br(e,vl)}}function vl(){if(null===Wa)return!1;var e=Wa;if(Wa=null,0!=(48&_a))throw Error(s(331));var t=_a;for(_a|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:oa(5,n),ra(5,n)}}catch(t){if(null===e)throw Error(s(330));yl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return _a=t,Yr(),!0}function ml(e,t,n){ui(e,t=fa(e,t=Js(n,t),1073741823)),null!==(e=$a(e,1073741823))&&Xa(e)}function yl(e,t){if(3===e.tag)ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){ml(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Ga||!Ga.has(o))){ui(n,e=ga(n,e=Js(t,e),1073741823)),null!==(n=$a(n,1073741823))&&Xa(n);break}}n=n.return}}function Cl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),Oa===e&&Sa===n?Ta===ba||Ta===Ea&&1073741823===Da&&Wr()-Fa<500?nl(e,Sa):Ia=!0:xl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xa(e)))}function wl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=qa(t=Ya(),e,null)),null!==(e=$a(e,t))&&Xa(e)}va=function(e,t,n){var o=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||hr.current)As=!0;else{if(o<n){switch(As=!1,t.tag){case 3:Vs(t),Ps();break;case 5:if(Fi(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vr(t.type)&&wr(t);break;case 4:xi(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value,r=t.type._context,cr(Qr,r._currentValue),r._currentValue=o;break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?zs(e,t,n):(cr(Li,1&Li.current),null!==(t=Ks(e,t,n))?t.sibling:null);cr(Li,1&Li.current);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return qs(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),cr(Li,Li.current),!o)return null}return Ks(e,t,n)}As=!1}}else As=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=gr(t,dr.current),oi(t,n),r=Ki(null,t,o,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vr(o)){var i=!0;wr(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,si(t);var a=o.getDerivedStateFromProps;"function"==typeof a&&gi(t,o,a,e),r.updater=vi,t.stateNode=r,r._reactInternalFiber=t,wi(t,o,e,n),t=Gs(null,t,o,!0,i,n)}else t.tag=0,Ns(null,t,r,n),t=t.child;return t;case 16:e:{if(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(r),1!==r._status)throw r._result;switch(r=r._result,t.type=r,i=t.tag=function(e){if("function"==typeof e)return Rl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===pe)return 14}return 2}(r),e=$r(r,e),i){case 0:t=Ls(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Is(null,t,r,$r(r.type,e),o,n);break e}throw Error(s(306,r,""))}return t;case 0:return o=t.type,r=t.pendingProps,Ls(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 1:return o=t.type,r=t.pendingProps,ks(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 3:if(Vs(t),o=t.updateQueue,null===e||null===o)throw Error(s(282));if(o=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,ai(e,t),pi(t,o,null,n),(o=t.memoizedState.element)===r)Ps(),t=Ks(e,t,n);else{if((r=t.stateNode.hydrate)&&(Es=En(t.stateNode.containerInfo.firstChild),ws=t,r=bs=!0),r)for(n=Si(t,null,o,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ns(e,t,o,n),Ps();t=t.child}return t;case 5:return Fi(t),null===e&&Rs(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,a=r.children,yn(o,r)?a=null:null!==i&&yn(o,i)&&(t.effectTag|=16),Ms(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ns(e,t,a,n),t=t.child),t;case 6:return null===e&&Rs(t),null;case 13:return zs(e,t,n);case 4:return xi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ri(t,null,o,n):Ns(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,xs(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 7:return Ns(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,r=t.pendingProps,a=t.memoizedProps,i=r.value;var l=t.type._context;if(cr(Qr,l._currentValue),l._currentValue=i,null!==a)if(l=a.value,0===(i=Go(l,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(a.children===r.children&&!hr.current){t=Ks(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){a=l.child;for(var c=u.firstContext;null!==c;){if(c.context===o&&0!=(c.observedBits&i)){1===l.tag&&((c=li(n,null)).tag=2,ui(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),ni(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Ns(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,oi(t,n),o=o(r=ri(r,i.unstable_observedBits)),t.effectTag|=1,Ns(e,t,o,n),t.child;case 14:return i=$r(r=t.type,t.pendingProps),Is(e,t,r,i=$r(r.type,i),o,n);case 15:return Fs(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:$r(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vr(o)?(e=!0,wr(t)):e=!1,oi(t,n),yi(t,o,r),wi(t,o,r,n),Gs(null,t,o,!0,e,n);case 19:return qs(e,t,n)}throw Error(s(156,t.tag))};var El=null,bl=null;function _l(e,t,n,o){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=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ol(e,t,n,o){return new _l(e,t,n,o)}function Rl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Sl(e,t){var n=e.alternate;return null===n?((n=Ol(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.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tl(e,t,n,o,r,i){var a=2;if(o=e,"function"==typeof e)Rl(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case ne:return Pl(n.children,r,i,t);case ae:a=8,r|=7;break;case oe:a=8,r|=1;break;case re:return(e=Ol(12,n,t,8|r)).elementType=re,e.type=re,e.expirationTime=i,e;case ue:return(e=Ol(13,n,t,r)).type=ue,e.elementType=ue,e.expirationTime=i,e;case ce:return(e=Ol(19,n,t,r)).elementType=ce,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:a=10;break e;case se:a=9;break e;case le:a=11;break e;case pe:a=14;break e;case de:a=16,o=null;break e;case he:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Ol(a,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function Pl(e,t,n,o){return(e=Ol(7,e,o,t)).expirationTime=n,e}function Dl(e,t,n){return(e=Ol(6,e,null,t)).expirationTime=n,e}function Al(e,t,n){return(t=Ol(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function xl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Il(e,t){var n=e.firstSuspendedTime,o=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(o>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Fl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ml(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ll(e,t,n,o){var r=t.current,i=Ya(),a=hi.suspense;i=qa(i,r,a);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var u=n.type;if(vr(u)){n=Cr(n,u,l);break e}}n=l}else n=pr;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),ui(r,t),Ka(r,i),i}function kl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Gl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Vl(e,t){Gl(e,t),(e=e.alternate)&&Gl(e,t)}function Wl(e,t,n){var o=new Nl(e,t,n=null!=n&&!0===n.hydrate),r=Ol(3,null,null,2===t?7:1===t?3:0);o.current=r,r.stateNode=o,si(r),e[Sn]=o.current,n&&0!==t&&function(e,t){var n=Je(t);St.forEach((function(e){ft(e,t,n)})),Tt.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=o}function jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hl(e,t,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if("function"==typeof r){var a=r;r=function(){var e=kl(s);a.call(e)}}Ll(t,s,e,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Wl(e,0,t?{hydrate:!0}:void 0)}(n,o),s=i._internalRoot,"function"==typeof r){var l=r;r=function(){var e=kl(s);l.call(e)}}tl((function(){Ll(t,s,e,r)}))}return kl(s)}function Bl(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function zl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!jl(t))throw Error(s(200));return Bl(e,t,null,n)}Wl.prototype.render=function(e){Ll(e,this._internalRoot,null,null)},Wl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ll(null,e,null,(function(){t[Sn]=null}))},gt=function(e){if(13===e.tag){var t=Kr(Ya(),150,100);Ka(e,t),Vl(e,t)}},vt=function(e){13===e.tag&&(Ka(e,3),Vl(e,3))},mt=function(e){if(13===e.tag){var t=Ya();Ka(e,t=qa(t,e,null)),Vl(e,t)}},P=function(e,t,n){switch(t){case"input":if(Re(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 o=n[t];if(o!==e&&o.form===e.form){var r=An(o);if(!r)throw Error(s(90));Ee(o),Re(o,r)}}}break;case"textarea":xe(e,n);break;case"select":null!=(t=n.value)&&De(e,!!n.multiple,t,!1)}},F=el,M=function(e,t,n,o,r){var i=_a;_a|=4;try{return Br(98,e.bind(null,t,n,o,r))}finally{0===(_a=i)&&Yr()}},L=function(){0==(49&_a)&&(function(){if(null!==Ha){var e=Ha;Ha=null,e.forEach((function(e,t){Ml(t,e),Xa(t)})),Yr()}}(),gl())},k=function(e,t){var n=_a;_a|=2;try{return e(t)}finally{0===(_a=n)&&Yr()}};var Ul,Yl,ql={Events:[Pn,Dn,An,S,_,kn,function(e){rt(e,Ln)},x,I,Xt,at,gl,{current:!1}]};Yl=(Ul={findFiberByHostInstance:Tn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);El=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},bl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(r({},Ul,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Yl?Yl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ql,t.createPortal=zl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&_a))throw Error(s(187));var n=_a;_a|=1;try{return Br(99,e.bind(null,t))}finally{_a=n,Yr()}},t.hydrate=function(e,t,n){if(!jl(t))throw Error(s(200));return Hl(null,e,t,!0,n)},t.render=function(e,t,n){if(!jl(t))throw Error(s(200));return Hl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!jl(e))throw Error(s(40));return!!e._reactRootContainer&&(tl((function(){Hl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Sn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return zl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!jl(n))throw Error(s(200));if(null==e||void 0===e._reactInternalFiber)throw Error(s(38));return Hl(e,t,n,!1,o)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(89)},function(e,t,n){"use strict";
380/** @license React v0.19.1
381 * scheduler.production.min.js
382 *
383 * Copyright (c) Facebook, Inc. and its affiliates.
384 *
385 * This source code is licensed under the MIT license found in the
386 * LICENSE file in the root directory of this source tree.
387 */var o,r,i,s,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},o=function(e){null!==l?setTimeout(o,0,e):(l=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},s=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,f=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var m=h.now();t.unstable_now=function(){return h.now()-m}}var y=!1,C=null,w=-1,E=5,b=0;s=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):E=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,O=_.port2;_.port1.onmessage=function(){if(null!==C){var e=t.unstable_now();b=e+E;try{C(!0,e)?O.postMessage(null):(y=!1,C=null)}catch(e){throw O.postMessage(null),e}}else y=!1},o=function(e){C=e,y||(y=!0,O.postMessage(null))},r=function(e,n){w=f((function(){e(t.unstable_now())}),n)},i=function(){g(w),w=-1}}function R(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,r=e[o];if(!(void 0!==r&&0<P(r,t)))break e;e[o]=t,e[n]=r,n=o}}function S(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length;o<r;){var i=2*(o+1)-1,s=e[i],a=i+1,l=e[a];if(void 0!==s&&0>P(s,n))void 0!==l&&0>P(l,s)?(e[o]=l,e[a]=n,o=a):(e[o]=s,e[i]=n,o=i);else{if(!(void 0!==l&&0>P(l,n)))break e;e[o]=l,e[a]=n,o=a}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var D=[],A=[],N=1,x=null,I=3,F=!1,M=!1,L=!1;function k(e){for(var t=S(A);null!==t;){if(null===t.callback)T(A);else{if(!(t.startTime<=e))break;T(A),t.sortIndex=t.expirationTime,R(D,t)}t=S(A)}}function G(e){if(L=!1,k(e),!M)if(null!==S(D))M=!0,o(V);else{var t=S(A);null!==t&&r(G,t.startTime-e)}}function V(e,n){M=!1,L&&(L=!1,i()),F=!0;var o=I;try{for(k(n),x=S(D);null!==x&&(!(x.expirationTime>n)||e&&!s());){var a=x.callback;if(null!==a){x.callback=null,I=x.priorityLevel;var l=a(x.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?x.callback=l:x===S(D)&&T(D),k(n)}else T(D);x=S(D)}if(null!==x)var u=!0;else{var c=S(A);null!==c&&r(G,c.startTime-n),u=!1}return u}finally{x=null,I=o,F=!1}}function W(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var j=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||F||(M=!0,o(V))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return S(D)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,s){var a=t.unstable_now();if("object"==typeof s&&null!==s){var l=s.delay;l="number"==typeof l&&0<l?a+l:a,s="number"==typeof s.timeout?s.timeout:W(e)}else s=W(e),l=a;return e={id:N++,callback:n,priorityLevel:e,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>a?(e.sortIndex=l,R(A,e),null===S(D)&&e===S(A)&&(L?i():L=!0,r(G,l-a))):(e.sortIndex=s,R(D,e),M||F||(M=!0,o(V))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();k(e);var n=S(D);return n!==x&&null!==x&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<x.expirationTime||s()},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},function(e,t,n){const o=n(40);n(91).observerBatching(o.unstable_batchedUpdates)},function(e,t,n){"use strict";e.exports=n(92)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(1),i=n(0),s=(o=i)&&"object"==typeof o&&"default"in o?o.default:o;if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var a=!1;function l(){return a}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function c(){var e=i.useState(0)[1];return i.useCallback((function(){e((function(e){return e+1}))}),[])}var p={};function d(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:p}var h=function(e){return"function"==typeof Symbol?Symbol.for(e):"__$mobx-react "+e+"__"}("observerBatching");function f(e){return r.getDependencyTree(e)}var g,v=new Set;function m(){void 0===g&&(g=setTimeout(y,1e4))}function y(){g=void 0;var e=Date.now(),t=v,n=Array.isArray(t),o=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(o>=t.length)break;r=t[o++]}else{if((o=t.next()).done)break;r=o.value}var i=r,s=i.current;s&&e>=s.cleanAt&&(s.reaction.dispose(),i.current=null,v.delete(i))}v.size>0&&m()}var C={};function w(e){return"observer"+e}function E(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=C),l())return e();var o=(n.useForceUpdate||c)(),i=s.useRef(null);if(!i.current){var a=new r.Reaction(w(t),(function(){u.mounted?o():(a.dispose(),i.current=null)})),u=function(e){return{cleanAt:Date.now()+1e4,reaction:e}}(a);i.current=u,v.add(i),m()}var p,d,h=i.current.reaction;if(s.useDebugValue(h,f),s.useEffect((function(){return v.delete(i),i.current?i.current.mounted=!0:(i.current={reaction:new r.Reaction(w(t),(function(){o()})),cleanAt:1/0},o()),function(){i.current.reaction.dispose(),i.current=null}}),[]),h.track((function(){try{p=e()}catch(e){d=e}})),d)throw d;return p}var b={$$typeof:!0,render:!0,compare:!0,type:!0};function _(e){var t=e.children||e.render;return"function"!=typeof t?null:E(t)}function O(e,t,n,o,r){var i="function"==typeof e[t],s="function"==typeof e["children"===t?"render":"children"];return i&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):i||s?null:new Error("Invalid prop `"+r+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}function R(e,t){if(!t||void 0!==e){var n=s.useState((function(){return r.observable(e,{},{deep:!1})}))[0];return r.runInAction((function(){Object.assign(n,e)})),n}}_.propTypes={children:O,render:O},_.displayName="Observer",t.Observer=_,t.isObserverBatched=function(){return d()[h]},t.isUsingStaticRendering=l,t.observer=function(e,t){if(l())return e;var n,o,r,s=u({forwardRef:!1},t),a=e.displayName||e.name,c=function(t,n){return E((function(){return e(t,n)}),a)};return c.displayName=a,n=i.memo(s.forwardRef?i.forwardRef(c):c),o=e,r=n,Object.keys(o).forEach((function(e){b[e]||Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})),n.displayName=a,n},t.observerBatching=function(e){"function"==typeof e&&r.configure({reactionScheduler:e}),d()[h]=!0},t.observerBatchingOptOut=function(){r.configure({reactionScheduler:void 0}),d()[h]=!0},t.useAsObservableSource=function(e){return R(e,!1)},t.useForceUpdate=c,t.useLocalStore=function(e,t){var n=R(t,!0);return s.useState((function(){var t=r.observable(e(n));return function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(t)&&r.runInAction((function(){Object.keys(t).forEach((function(e){var n,o,i=t[e];"function"==typeof i&&(t[e]=(n=i,o=t,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r.transaction((function(){return n.apply(o,t)}))}))}))})),t}))[0]},t.useObserver=E,t.useStaticRendering=function(e){a=e}}).call(this,n(16))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(0),l=n(71),u=n(64),c=n(72),p=n(98),d=n(104),h=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.props=t,o.state=n,o.changeDetectionService=new d.ChangeDetectionService,o.api=null,o.portals=[],o.hasPendingPortalUpdate=!1,o.destroyed=!1,o}return r(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{style:this.createStyleForDiv(),ref:function(t){e.eGridDiv=t}},this.portals)},t.prototype.createStyleForDiv=function(){var e={height:"100%"},t=this.props.containerStyle;return t&&Object.keys(t).forEach((function(n){e[n]=t[n]})),e},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new g(this)},modules:e},n=this.props.gridOptions||{};c.AgGridColumn.hasChildColumns(this.props)&&(n.columnDefs=c.AgGridColumn.mapChildColumnDefs(this.props)),this.gridOptions=u.ComponentUtil.copyAttributesToGridOptions(n,this.props),new u.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi},t.prototype.waitForInstance=function(e,n,o){var r=this;if(void 0===o&&(o=0),this.destroyed)n(null);else if(e.rendered())n(null);else{if(o>=t.MAX_COMPONENT_CREATION_TIME)return void console.error("ag-Grid: React Component '"+e.getReactComponentName()+"' not created within "+t.MAX_COMPONENT_CREATION_TIME+"ms");window.setTimeout((function(){return r.waitForInstance(e,n,o+5)}),5)}},t.prototype.mountReactPortal=function(e,t,n){this.portals=i(this.portals,[e]),this.batchUpdate(this.waitForInstance(t,n))},t.prototype.batchUpdate=function(e){var t=this;if(this.hasPendingPortalUpdate)return e&&e();setTimeout((function(){t.api&&t.forceUpdate((function(){e&&e(),t.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0},t.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.props.deltaRowDataMode||this.props.immutableData)return d.ChangeDetectionStrategyType.IdentityCheck}return d.ChangeDetectionStrategyType.DeepValueCheck},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),Object.keys(n).length>0&&u.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)},t.prototype.extractDeclarativeColDefChanges=function(e,t){var n=!!e.debug;if(c.AgGridColumn.hasChildColumns(e)){var o=this.changeDetectionService.getStrategy(d.ChangeDetectionStrategyType.DeepValueCheck),r=this.gridOptions.columnDefs,i=c.AgGridColumn.mapChildColumnDefs(e);o.areEqual(r,i)||(n&&console.log("agGridReact: colDefs definitions changed"),t.columnDefs={previousValue:this.gridOptions.columnDefs,currentValue:c.AgGridColumn.mapChildColumnDefs(e)})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){-1!==u.ComponentUtil.ALL_PROPERTIES.indexOf(i)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),u.ComponentUtil.getEventCallbacks().forEach((function(i){o.props[i]!==t[i]&&(r&&console.log("agGridReact: ["+i+"] event callback changed"),n[i]={previousValue:e[i],currentValue:t[i]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0},t.prototype.isDisableStaticMarkup=function(){return!!this.props.disableStaticMarkup},t.MAX_COMPONENT_CREATION_TIME=1e3,t}(a.Component);function f(e,t){e.forEach((function(e){h[e]=t}))}t.AgGridReact=h,h.propTypes={gridOptions:l.object},f(u.ComponentUtil.getEventCallbacks(),l.func),f(u.ComponentUtil.BOOLEAN_PROPERTIES,l.bool),f(u.ComponentUtil.STRING_PROPERTIES,l.string),f(u.ComponentUtil.OBJECT_PROPERTIES,l.object),f(u.ComponentUtil.ARRAY_PROPERTIES,l.array),f(u.ComponentUtil.NUMBER_PROPERTIES,l.number),f(u.ComponentUtil.FUNCTION_PROPERTIES,l.func);var g=function(e){function t(t){var n=e.call(this)||this;return n.agGridReact=t,n}return r(t,e),t.prototype.createWrapper=function(e,t){return new p.ReactComponent(e,this.agGridReact,t)},t}(u.BaseComponentWrapper)},function(e,t,n){"use strict";var o=n(97);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array: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:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(40),a=n(64),l=n(99),u=n(100),c=n(101),p=n(102),d=function(e){function t(n,o,r){var i=e.call(this)||this;return i.portal=null,i.componentWrappingElement="div",i.staticMarkup=null,i.staticRenderTime=0,i.reactComponent=n,i.componentType=r,i.parentComponent=o,i.statelessComponent=t.isStateless(i.reactComponent),i}return r(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new a.Promise((function(n){t.createReactComponent(e,n)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.parentComponent.destroyPortal(this.portal)},t.prototype.createReactComponent=function(e,t){var n=this;this.statelessComponent||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var o=i.createElement(this.reactComponent,e),r=s.createPortal(o,this.eParentElement,c.default());this.portal=r,this.parentComponent.mountReactPortal(r,this,(function(e){t(e),n.statelessComponent&&(n.staticRenderTime>=2?n.eParentElement.addEventListener("DOMNodeInserted",(function(){n.removeStaticMarkup()}),!1):setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&u.assignProperties(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return a._.addCssClass(e.eParentElement,t)})))},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return a._.addCssClass(t,"ag-react-container"),e.reactContainer=t,t},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},t.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===t.REACT_MEMO_TYPE},t.prototype.isNullRender=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.isCellRenderer()){var t=console.error,n=i.createElement(this.reactComponent,e);try{var o=console.error;console.error=function(){};var r=Date.now(),s=p.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-r,console.error=o,""===s?this.staticMarkup=s:s&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=s,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.isCellRenderer()&&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.isNullRender()||this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!this.isStatelessComponent()&&this.getFrameworkComponentInstance()},t.REACT_MEMO_TYPE=t.hasSymbol()?Symbol.for("react.memo"):60115,t}(l.BaseReactComponent);t.ReactComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return null!=t&&null!=t[e]},e.prototype.callMethod=function(e,t){var n=this,o=this.getFrameworkComponentInstance();if(null!=o){var r=this.getFrameworkComponentInstance()[e];if(null==r)return;return r.apply(o,t)}window.setTimeout((function(){return n.callMethod(e,t)}),100)},e.prototype.addMethod=function(e,t){this[e]=t},e}();t.BaseReactComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignProperties=function(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))},t.assign=function(e,n,o){if("string"==typeof n&&(n=n.split(".")),n.length>1){var r=n.shift();t.assign(e[r]="[object Object]"===Object.prototype.toString.call(e[r])?e[r]:{},n,o)}else e[n[0]]=o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=0;t.default=function(){return"agPortalKey_"+ ++o}},function(e,t,n){"use strict";e.exports=n(103)},function(e,t,n){"use strict";
388/** @license React v16.13.1
389 * react-dom-server.browser.production.min.js
390 *
391 * Copyright (c) Facebook, Inc. and its affiliates.
392 *
393 * This source code is licensed under the MIT license found in the
394 * LICENSE file in the root directory of this source tree.
395 */var o=n(63),r=n(0);function i(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 s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.portal"):60106,l=s?Symbol.for("react.fragment"):60107,u=s?Symbol.for("react.strict_mode"):60108,c=s?Symbol.for("react.profiler"):60114,p=s?Symbol.for("react.provider"):60109,d=s?Symbol.for("react.context"):60110,h=s?Symbol.for("react.concurrent_mode"):60111,f=s?Symbol.for("react.forward_ref"):60112,g=s?Symbol.for("react.suspense"):60113,v=s?Symbol.for("react.suspense_list"):60120,m=s?Symbol.for("react.memo"):60115,y=s?Symbol.for("react.lazy"):60116,C=s?Symbol.for("react.block"):60121,w=s?Symbol.for("react.fundamental"):60117,E=s?Symbol.for("react.scope"):60119;function b(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 l:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case p:return"Context.Provider";case f:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case m:return b(e.type);case C:return b(e.render);case y:if(e=1===e._status?e._result:null)return b(e)}return null}var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;_.hasOwnProperty("ReactCurrentDispatcher")||(_.ReactCurrentDispatcher={current:null}),_.hasOwnProperty("ReactCurrentBatchConfig")||(_.ReactCurrentBatchConfig={suspense:null});var O={};function R(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var S=new Uint16Array(16),T=0;15>T;T++)S[T]=T+1;S[15]=0;var P=/^[: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]*$/,D=Object.prototype.hasOwnProperty,A={},N={};function x(e){return!!D.call(N,e)||!D.call(A,e)&&(P.test(e)?N[e]=!0:(A[e]=!0,!1))}function I(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){F[e]=new I(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];F[t]=new I(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){F[e]=new I(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){F[e]=new I(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){F[e]=new I(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){F[e]=new I(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){F[e]=new I(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){F[e]=new I(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){F[e]=new I(e,5,!1,e.toLowerCase(),null,!1)}));var M=/[\-:]([a-z])/g;function L(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(M,L);F[t]=new I(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(M,L);F[t]=new I(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(M,L);F[t]=new I(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){F[e]=new I(e,1,!1,e.toLowerCase(),null,!1)})),F.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){F[e]=new I(e,1,!1,e.toLowerCase(),null,!0)}));var k=/["'&<>]/;function G(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=k.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}function V(e,t){var n,o=F.hasOwnProperty(e)?F[e]:null;return(n="style"!==e)&&(n=null!==o?0===o.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)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}(e,t,o,!1)?"":null!==o?(e=o.attributeName,3===(n=o.type)||4===n&&!0===t?e+'=""':(o.sanitizeURL&&(t=""+t),e+'="'+G(t)+'"')):x(e)?e+'="'+G(t)+'"':""}var W="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},j=null,H=null,B=null,z=!1,U=!1,Y=null,q=0;function K(){if(null===j)throw Error(i(321));return j}function $(){if(0<q)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Q(){return null===B?null===H?(z=!1,H=B=$()):(z=!0,B=H):null===B.next?(z=!1,B=B.next=$()):(z=!0,B=B.next),B}function X(e,t,n,o){for(;U;)U=!1,q+=1,B=null,n=e(t,o);return H=j=null,q=0,B=Y=null,n}function J(e,t){return"function"==typeof t?t(e):t}function Z(e,t,n){if(j=K(),B=Q(),z){var o=B.queue;if(t=o.dispatch,null!==Y&&void 0!==(n=Y.get(o))){Y.delete(o),o=B.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return B.memoizedState=o,[o,t]}return[B.memoizedState,t]}return e=e===J?"function"==typeof t?t():t:void 0!==n?n(t):t,B.memoizedState=e,e=(e=B.queue={last:null,dispatch:null}).dispatch=ee.bind(null,j,e),[B.memoizedState,e]}function ee(e,t,n){if(!(25>q))throw Error(i(301));if(e===j)if(U=!0,e={action:n,next:null},null===Y&&(Y=new Map),void 0===(n=Y.get(t)))Y.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,oe={readContext:function(e){var t=ne;return R(e,t),e[t]},useContext:function(e){K();var t=ne;return R(e,t),e[t]},useMemo:function(e,t){if(j=K(),t=void 0===t?null:t,null!==(B=Q())){var n=B.memoizedState;if(null!==n&&null!==t){e:{var o=n[1];if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!W(t[r],o[r])){o=!1;break e}o=!0}}if(o)return n[0]}}return e=e(),B.memoizedState=[e,t],e},useReducer:Z,useRef:function(e){j=K();var t=(B=Q()).memoizedState;return null===t?(e={current:e},B.memoizedState=e):t},useState:function(e){return Z(J,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return K(),e},useTransition:function(){return K(),[function(e){e()},!1]}},re="http://www.w3.org/1999/xhtml";function ie(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"}}var se={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},ae=o({menuitem:!0},se),le={animationIterationCount:!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},ue=["Webkit","ms","Moz","O"];Object.keys(le).forEach((function(e){ue.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),le[t]=le[e]}))}));var ce=/([A-Z])/g,pe=/^ms-/,de=r.Children.toArray,he=_.ReactCurrentDispatcher,fe={listing:!0,pre:!0,textarea:!0},ge=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ve={},me={};var ye=Object.prototype.hasOwnProperty,Ce={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function we(e,t){if(void 0===e)throw Error(i(152,b(t)||"Component"))}function Ee(e,t,n){function s(r,s){var a=s.prototype&&s.prototype.isReactComponent,l=function(e,t,n,o){if(o&&("object"==typeof(o=e.contextType)&&null!==o))return R(o,n),o[n];if(e=e.contextTypes){for(var r in n={},e)n[r]=t[r];t=n}else t=O;return t}(s,t,n,a),u=[],c=!1,p={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(e,t){c=!0,u=[t]},enqueueSetState:function(e,t){if(null===u)return null;u.push(t)}};if(a){if(a=new s(r.props,l,p),"function"==typeof s.getDerivedStateFromProps){var d=s.getDerivedStateFromProps.call(null,r.props,a.state);null!=d&&(a.state=o({},a.state,d))}}else if(j={},a=s(r.props,l,p),null==(a=X(s,r.props,a,l))||null==a.render)return void we(e=a,s);if(a.props=r.props,a.context=l,a.updater=p,void 0===(p=a.state)&&(a.state=p=null),"function"==typeof a.UNSAFE_componentWillMount||"function"==typeof a.componentWillMount)if("function"==typeof a.componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&a.UNSAFE_componentWillMount(),u.length){p=u;var h=c;if(u=null,c=!1,h&&1===p.length)a.state=p[0];else{d=h?p[0]:a.state;var f=!0;for(h=h?1:0;h<p.length;h++){var g=p[h];null!=(g="function"==typeof g?g.call(a,d,r.props,l):g)&&(f?(f=!1,d=o({},d,g)):o(d,g))}a.state=d}}else u=null;if(we(e=a.render(),s),"function"==typeof a.getChildContext&&"object"==typeof(r=s.childContextTypes)){var v=a.getChildContext();for(var m in v)if(!(m in r))throw Error(i(108,b(s)||"Unknown",m))}v&&(t=o({},t,v))}for(;r.isValidElement(e);){var a=e,l=a.type;if("function"!=typeof l)break;s(a,l)}return{child:e,context:t}}var be=function(){function e(e,t){r.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=r.isValidElement(e)?[e]:de(e)):e=de(e),e={type:null,domNamespace:re,children:e,childIndex:0,context:O,footer:""};var n=S[0];if(0===n){var o=S,s=2*(n=o.length);if(!(65536>=s))throw Error(i(304));var a=new Uint16Array(s);for(a.set(o),(S=a)[0]=n+1,o=n;o<s-1;o++)S[o]=o+1;S[s-1]=0}else S[0]=S[n];this.threadID=n,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;S[e]=S[0],S[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,o=this.threadID;R(n,o);var r=n[o];this.contextStack[t]=n,this.contextValueStack[t]=r,n[o]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ne;ne=this.threadID;var n=he.current;he.current=oe;try{for(var o=[""],r=!1;o[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var s=this.threadID;S[s]=S[0],S[0]=s;break}var a=this.stack[this.stack.length-1];if(r||a.childIndex>=a.children.length){var l=a.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===a.type)this.currentSelectValue=null;else if(null!=a.type&&null!=a.type.type&&a.type.type.$$typeof===p)this.popProvider(a.type);else if(a.type===g){this.suspenseDepth--;var u=o.pop();if(r){r=!1;var c=a.fallbackFrame;if(!c)throw Error(i(303));this.stack.push(c),o[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}o[this.suspenseDepth]+=u}o[this.suspenseDepth]+=l}else{var d=a.children[a.childIndex++],h="";try{h+=this.render(d,a.context,a.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(i(294));throw e}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=h}}return o[0]}finally{he.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?G(n):this.previousWasTextNode?"\x3c!-- --\x3e"+G(n):(this.previousWasTextNode=!0,G(n));if(e=(t=Ee(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!r.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(i(257));throw Error(i(258,n.toString()))}return e=de(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var s=e.type;if("string"==typeof s)return this.renderDOM(e,t,n);switch(s){case u:case h:case c:case v:case l:return e=de(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case g:throw Error(i(294))}if("object"==typeof s&&null!==s)switch(s.$$typeof){case f:j={};var C=s.render(e.props,e.ref);return C=X(s.render,e.props,C,e.ref),C=de(C),this.stack.push({type:null,domNamespace:n,children:C,childIndex:0,context:t,footer:""}),"";case m:return e=[r.createElement(s.type,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:return n={type:e,domNamespace:n,children:s=de(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:s=e.type,C=e.props;var b=this.threadID;return R(s,b),s=de(C.children(s[b])),this.stack.push({type:e,domNamespace:n,children:s,childIndex:0,context:t,footer:""}),"";case w:throw Error(i(338));case y:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(s=e.type),s._status){case 1:return e=[r.createElement(s._result,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw s._result;default:throw Error(i(295))}case E:throw Error(i(343))}throw Error(i(130,null==s?s:typeof s,""))},t.renderDOM=function(e,t,n){var s=e.type.toLowerCase();if(n===re&&ie(s),!ve.hasOwnProperty(s)){if(!ge.test(s))throw Error(i(65,s));ve[s]=!0}var a=e.props;if("input"===s)a=o({type:void 0},a,{defaultChecked:void 0,defaultValue:void 0,value:null!=a.value?a.value:a.defaultValue,checked:null!=a.checked?a.checked:a.defaultChecked});else if("textarea"===s){var l=a.value;if(null==l){l=a.defaultValue;var u=a.children;if(null!=u){if(null!=l)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}l=""+u}null==l&&(l="")}a=o({},a,{value:void 0,children:""+l})}else if("select"===s)this.currentSelectValue=null!=a.value?a.value:a.defaultValue,a=o({},a,{value:void 0});else if("option"===s){u=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(a.children);if(null!=u){var p=null!=a.value?a.value+"":c;if(l=!1,Array.isArray(u)){for(var d=0;d<u.length;d++)if(""+u[d]===p){l=!0;break}}else l=""+u===p;a=o({selected:void 0,children:void 0},a,{selected:l,children:c})}}if(l=a){if(ae[s]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(i(137,s,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(i(60));if("object"!=typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(i(62,""))}for(w in l=a,u=this.makeStaticMarkup,c=1===this.stack.length,p="<"+e.type,l)if(ye.call(l,w)){var h=l[w];if(null!=h){if("style"===w){d=void 0;var f="",g="";for(d in h)if(h.hasOwnProperty(d)){var v=0===d.indexOf("--"),m=h[d];if(null!=m){if(v)var y=d;else if(y=d,me.hasOwnProperty(y))y=me[y];else{var C=y.replace(ce,"-$1").toLowerCase().replace(pe,"-ms-");y=me[y]=C}f+=g+y+":",g=d,f+=v=null==m||"boolean"==typeof m||""===m?"":v||"number"!=typeof m||0===m||le.hasOwnProperty(g)&&le[g]?(""+m).trim():m+"px",g=";"}}h=f||null}d=null;e:if(v=s,m=l,-1===v.indexOf("-"))v="string"==typeof m.is;else switch(v){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":v=!1;break e;default:v=!0}v?Ce.hasOwnProperty(w)||(d=x(d=w)&&null!=h?d+'="'+G(h)+'"':""):d=V(w,h),d&&(p+=" "+d)}}u||c&&(p+=' data-reactroot=""');var w=p;l="",se.hasOwnProperty(s)?w+="/>":(w+=">",l="</"+e.type+">");e:{if(null!=(u=a.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=a.children)||"number"==typeof u){u=G(u);break e}u=null}return null!=u?(a=[],fe.hasOwnProperty(s)&&"\n"===u.charAt(0)&&(w+="\n"),w+=u):a=de(a.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:s,children:a,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,w},e}(),_e={renderToString:function(e){e=new be(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new be(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.13.1"};e.exports=_e.default||_e},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(o=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var r=function(){function e(){var e;this.strategyMap=((e={})[o.DeepValueCheck]=new s,e[o.IdentityCheck]=new i((function(e,t){return e===t})),e[o.NoCheck]=new i((function(e,t){return!0})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=r;var i=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),s=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 t.toString()===n.toString();if("object"!=typeof t)return t==n;var o=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var i=void 0;if(o)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===n})))return!0;if(r)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{o&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}},e}()},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"FunctionToString",(function(){return p})),n.d(o,"InboundFilters",(function(){return x}));var r,i,s=n(0),a=n.n(s),l=n(40),u=n.n(l),c=n(1),p=(n(90),function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return r.apply(n,e)}},e.id="FunctionToString",e}()),d=n(4),h=n(10);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(i||(i={}));var f=function(){function e(e){var t=this;this._state=i.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(i.RESOLVED,e)},this._reject=function(e){t._setResult(i.REJECTED,e)},this._setResult=function(e,n){t._state===i.PENDING&&(Object(h.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==i.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===i.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===i.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,o){if(Array.isArray(t))if(0!==t.length){var r=t.length,i=[];t.forEach((function(t,s){e.resolve(t).then((function(e){i[s]=e,0===(r-=1)&&n(i)})).then(null,o)}))}else n([]);else o(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var o=this;return new e((function(e,r){o._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void r(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void r(e)}else r(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,o){var r,i;return n.then((function(e){i=!1,r=e,t&&t()}),(function(e){i=!0,r=e,t&&t()})).then((function(){i?o(r):e(r)}))}))},e}(),g=n(13),v=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,o){var r=this;return void 0===o&&(o=0),new f((function(i,s){var a=e[o];if(null===t||"function"!=typeof a)i(t);else{var l=a(d.a({},t),n);Object(h.m)(l)?l.then((function(t){return r._notifyEventProcessors(e,t,n,o+1).then(i)})).then(null,s):r._notifyEventProcessors(e,l,n,o+1).then(i).then(null,s)}}))},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=d.a({},this._tags,e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=d.a({},this._tags,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=d.a({},this._extra,e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=d.a({},this._extra,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._span&&(this._span.transaction=e),this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){var n;return this._context=d.a({},this._context,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=d.d(t._breadcrumbs),n._tags=d.a({},t._tags),n._extra=d.a({},t._extra),n._context=d.a({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=d.d(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=d.a({timestamp:Object(g.l)()},e);return this._breadcrumbs=void 0!==t&&t>=0?d.d(this._breadcrumbs,[n]).slice(-t):d.d(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=d.a({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=d.a({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=d.a({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=d.a({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._span&&(e.contexts=d.a({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=d.d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(d.d(m(),this._eventProcessors),e,t)},e}();function m(){var e=Object(g.f)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function y(e){m().push(e)}var C=Object(g.f)(),w="Sentry Logger ",E=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(g.c)((function(){C.console.log(w+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(g.c)((function(){C.console.warn(w+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(g.c)((function(){C.console.error(w+"[Error]: "+e.join(" "))}))},e}();C.__SENTRY__=C.__SENTRY__||{};var b=C.__SENTRY__.logger||(C.__SENTRY__.logger=new E),_=function(){function e(e,t,n){void 0===t&&(t=new v),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=this.getStackTop();r&&r.client&&r.client[e]&&(t=r.client)[e].apply(t,d.d(n,[r.scope]))},e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=this.getStack(),t=e.length>0?e[e.length-1].scope:void 0,n=v.clone(t);return this.getStack().push({client:this.getClient(),scope:n}),n},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(g.m)(),o=t;if(!t){var r=void 0;try{throw new Error("Sentry syntheticException")}catch(e){r=e}o={originalException:e,syntheticException:r}}return this._invokeClient("captureException",e,d.a({},o,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var o=this._lastEventId=Object(g.m)(),r=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,d.a({},r,{event_id:o})),o},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(g.m)();return this._invokeClient("captureEvent",e,d.a({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var o=n.client.getOptions&&n.client.getOptions()||{},r=o.beforeBreadcrumb,i=void 0===r?null:r,s=o.maxBreadcrumbs,a=void 0===s?100:s;if(!(a<=0)){var l=Object(g.l)(),u=d.a({timestamp:l},e),c=i?Object(g.c)((function(){return i(u,t)})):u;null!==c&&n.scope.addBreadcrumb(c,Math.min(a,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=R(this);try{e(this)}finally{R(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return b.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=O(),r=o.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);b.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function O(){var e=Object(g.f)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function R(e){var t=O(),n=P(t);return D(t,e),n}function S(){var e=O();return T(e)&&!P(e).isOlderThan(3)||D(e,new _),Object(g.i)()?function(e){try{var t=O().__SENTRY__;if(!t||!t.extensions||!t.extensions.domain)return P(e);var n=t.extensions.domain.active;if(!n)return P(e);if(!T(n)||P(n).isOlderThan(3)){var o=P(e).getStackTop();D(n,new _(o.client,v.clone(o.scope)))}return P(n)}catch(t){return P(e)}}(e):P(e)}function T(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function P(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new _),e.__SENTRY__.hub}function D(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}var A=n(41),N=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],x=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){y((function(t){var n=S();if(!n)return t;var o=n.getIntegration(e);if(o){var r=n.getClient(),i=r?r.getOptions():{},s=o._mergeOptions(i);if(o._shouldDropEvent(t,s))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(b.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(g.d)(e)),!0):this._isIgnoredError(e,t)?(b.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(g.d)(e)),!0):this._isBlacklistedUrl(e,t)?(b.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Object(g.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&(b.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(g.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(A.a)(e,t)}))}))},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.blacklistUrls.some((function(e){return Object(A.a)(n,e)}))},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.whitelistUrls.some((function(e){return Object(A.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:d.d(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:d.d(this._options.ignoreErrors||[],e.ignoreErrors||[],N),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:d.d(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,o=void 0===n?"":n,r=t.value,i=void 0===r?"":r;return[""+i,o+": "+i]}catch(t){return b.error("Cannot extract message for event "+Object(g.d)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return b.error("Cannot extract url for event "+Object(g.d)(e)),null}},e.id="InboundFilters",e}();var I=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var F=function(e){function t(t){var n=this.constructor,o=e.call(this,t)||this;return o.message=t,o.name=n.prototype.constructor.name,I(o,n.prototype),o}return d.b(t,e),t}(Error),M=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,L=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,o=t.path,r=t.pass,i=t.port,s=t.projectId;return t.protocol+"://"+t.user+(e&&r?":"+r:"")+"@"+n+(i?":"+i:"")+"/"+(o?o+"/":o)+s},e.prototype._fromString=function(e){var t=M.exec(e);if(!t)throw new F("Invalid Dsn");var n=d.c(t.slice(1),6),o=n[0],r=n[1],i=n[2],s=void 0===i?"":i,a=n[3],l=n[4],u=void 0===l?"":l,c="",p=n[5],h=p.split("/");h.length>1&&(c=h.slice(0,-1).join("/"),p=h.pop()),this._fromComponents({host:a,pass:s,path:c,projectId:p,port:u,protocol:o,user:r})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new F("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new F("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new F("Invalid Dsn")},e}(),k=n(22),G=function(){function e(e){this.dsn=e,this._dsnObject=new L(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+Object(k.e)(e)},e.prototype._getBaseUrl=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,o=["Sentry sentry_version=7"];return o.push("sentry_client="+e+"/"+t),o.push("sentry_key="+n.user),n.pass&&o.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":o.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",o=[];for(var r in o.push("dsn="+t.toString()),e)if("user"===r){if(!e.user)continue;e.user.name&&o.push("name="+encodeURIComponent(e.user.name)),e.user.email&&o.push("email="+encodeURIComponent(e.user.email))}else o.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return o.length?n+"?"+o.join("&"):n},e}(),V=[];function W(e){var t={};return function(e){var t=e.defaultIntegrations&&d.d(e.defaultIntegrations)||[],n=e.integrations,o=[];if(Array.isArray(n)){var r=n.map((function(e){return e.name})),i=[];t.forEach((function(e){-1===r.indexOf(e.name)&&-1===i.indexOf(e.name)&&(o.push(e),i.push(e.name))})),n.forEach((function(e){-1===i.indexOf(e.name)&&(o.push(e),i.push(e.name))}))}else"function"==typeof n?(o=n(t),o=Array.isArray(o)?o:[o]):o=d.d(t);var s=o.map((function(e){return e.name}));return-1!==s.indexOf("Debug")&&o.push.apply(o,d.d(o.splice(s.indexOf("Debug"),1))),o}(e).forEach((function(e){t[e.name]=e,function(e){-1===V.indexOf(e.name)&&(e.setupOnce(y,S),V.push(e.name),b.log("Integration installed: "+e.name))}(e)})),t}var j,H=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new L(t.dsn))}return e.prototype.captureException=function(e,t,n){var o=this,r=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then((function(e){return o._processEvent(e,t,n)})).then((function(e){r=e&&e.event_id,o._processing=!1})).then(null,(function(e){b.error(e),o._processing=!1})),r},e.prototype.captureMessage=function(e,t,n,o){var r=this,i=n&&n.event_id;return this._processing=!0,(Object(h.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n)).then((function(e){return r._processEvent(e,n,o)})).then((function(e){i=e&&e.event_id,r._processing=!1})).then(null,(function(e){b.error(e),r._processing=!1})),i},e.prototype.captureEvent=function(e,t,n){var o=this,r=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,n).then((function(e){r=e&&e.event_id,o._processing=!1})).then(null,(function(e){b.error(e),o._processing=!1})),r},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return clearInterval(n.interval),t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=W(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return b.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new f((function(n){var o=0,r=0;clearInterval(r),r=setInterval((function(){t._processing?(o+=1,e&&o>=e&&n({interval:r,ready:!1})):n({interval:r,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var o=this,r=this.getOptions(),i=r.environment,s=r.release,a=r.dist,l=r.maxValueLength,u=void 0===l?250:l,c=r.normalizeDepth,p=void 0===c?3:c,h=d.a({},e);void 0===h.environment&&void 0!==i&&(h.environment=i),void 0===h.release&&void 0!==s&&(h.release=s),void 0===h.dist&&void 0!==a&&(h.dist=a),h.message&&(h.message=Object(A.d)(h.message,u));var v=h.exception&&h.exception.values&&h.exception.values[0];v&&v.value&&(v.value=Object(A.d)(v.value,u));var m=h.request;m&&m.url&&(m.url=Object(A.d)(m.url,u)),void 0===h.event_id&&(h.event_id=n&&n.event_id?n.event_id:Object(g.m)()),this._addIntegrations(h.sdk);var y=f.resolve(h);return t&&(y=t.applyToEvent(h,n)),y.then((function(e){return"number"==typeof p&&p>0?o._normalizeEvent(e,p):e}))},e.prototype._normalizeEvent=function(e,t){return e?d.a({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return d.a({},e,e.data&&{data:Object(k.c)(e.data,t)})}))},e.user&&{user:Object(k.c)(e.user,t)},e.contexts&&{contexts:Object(k.c)(e.contexts,t)},e.extra&&{extra:Object(k.c)(e.extra,t)}):null},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,n){var o=this,r=this.getOptions(),i=r.beforeSend,s=r.sampleRate;return this._isEnabled()?"number"==typeof s&&Math.random()>s?f.reject("This event has been sampled, will not send event."):new f((function(r,s){o._prepareEvent(e,n,t).then((function(e){if(null!==e){var n=e;if(t&&t.data&&!0===t.data.__sentry__||!i)return o._getBackend().sendEvent(n),void r(n);var a=i(e,t);if(void 0===a)b.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(h.m)(a))o._handleAsyncBeforeSend(a,r,s);else{if(null===(n=a))return b.log("`beforeSend` returned `null`, will not send event."),void r(null);o._getBackend().sendEvent(n),r(n)}}else s("An event processor returned null, will not send event.")})).then(null,(function(e){o.captureException(e,{data:{__sentry__:!0},originalException:e}),s("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))})):f.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,n){var o=this;e.then((function(e){null!==e?(o._getBackend().sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){n("beforeSend rejected with "+e)}))},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(j||(j={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(j||(j={}));var B,z=function(){function e(){}return e.prototype.sendEvent=function(e){return f.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:j.Skipped})},e.prototype.close=function(e){return f.resolve(!0)},e}(),U=function(){function e(e){this._options=e,this._options.dsn||b.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new z},e.prototype.eventFromException=function(e,t){throw new F("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new F("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){b.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e}();function Y(){if(!("fetch"in Object(g.f)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function q(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function K(){if(!Y())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(B||(B={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(B||(B={}));var $=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Q=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,X=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,J=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Z=/\((\S*)(?::(\d+))(?::(\d+))\)/;function ee(e){var t=null,n=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,o=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),s=[],a=0;a<i.length;a+=2){var l=null;(t=o.exec(i[a]))?l={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(i[a]))&&(l={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),l&&(!l.func&&l.line&&(l.func="?"),s.push(l))}if(!s.length)return null;return{message:ne(e),name:e.name,stack:s}}(e))return te(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,o,r=[],i=e.stack.split("\n"),s=0;s<i.length;++s){if(n=$.exec(i[s])){var a=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Z.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),o={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:a?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=X.exec(i[s]))o={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=Q.exec(i[s])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=J.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==s||n[5]||void 0===e.columnNumber||(r[0].column=e.columnNumber+1),o={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!o.func&&o.line&&(o.func="?"),r.push(o)}if(!r.length)return null;return{message:ne(e),name:e.name,stack:r}}(e))return te(t,n)}catch(e){}return{message:ne(e),name:e&&e.name,stack:[],failed:!0}}function te(e,t){try{return d.a({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function ne(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function oe(e){var t=ie(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function re(e){return{exception:{values:[oe(e)]}}}function ie(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",o=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==o.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).slice(0,50).reverse()}function se(e,t,n){var o;if(void 0===n&&(n={}),Object(h.e)(e)&&e.error)return o=re(ee(e=e.error));if(Object(h.a)(e)||Object(h.b)(e)){var r=e,i=r.name||(Object(h.a)(r)?"DOMError":"DOMException"),s=r.message?i+": "+r.message:i;return o=ae(s,t,n),Object(g.b)(o,s),o}return Object(h.d)(e)?o=re(ee(e)):Object(h.h)(e)||Object(h.f)(e)?(o=function(e,t,n){var o={exception:{values:[{type:Object(h.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(k.a)(e)}]},extra:{__serialized__:Object(k.d)(e)}};if(t){var r=ie(ee(t).stack);o.stacktrace={frames:r}}return o}(e,t,n.rejection),Object(g.a)(o,{synthetic:!0}),o):(o=ae(e,t,n),Object(g.b)(o,""+e,void 0),Object(g.a)(o,{synthetic:!0}),o)}function ae(e,t,n){void 0===n&&(n={});var o={message:e};if(n.attachStacktrace&&t){var r=ie(ee(t).stack);o.stacktrace={frames:r}}return o}var le=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):f.reject(new F("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new f((function(n){var o=setTimeout((function(){e&&e>0&&n(!1)}),e);f.all(t._buffer).then((function(){clearTimeout(o),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),ue=function(){function e(e){this.options=e,this._buffer=new le(30),this.url=new G(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new F("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),ce=Object(g.f)(),pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return d.b(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n={body:JSON.stringify(e),method:"POST",referrerPolicy:K()?"origin":""};return void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new f((function(e,o){ce.fetch(t.url,n).then((function(n){var r=j.fromHttpCode(n.status);if(r!==j.Success){if(r===j.RateLimit){var i=Date.now();t._disabledUntil=new Date(i+Object(g.j)(i,n.headers.get("Retry-After"))),b.warn("Too many requests, backing off till: "+t._disabledUntil)}o(n)}else e({status:r})})).catch(o)})))},t}(ue),de=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return d.b(t,e),t.prototype.sendEvent=function(e){var t=this;return new Date(Date.now())<this._disabledUntil?Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429}):this._buffer.add(new f((function(n,o){var r=new XMLHttpRequest;for(var i in r.onreadystatechange=function(){if(4===r.readyState){var e=j.fromHttpCode(r.status);if(e!==j.Success){if(e===j.RateLimit){var i=Date.now();t._disabledUntil=new Date(i+Object(g.j)(i,r.getResponseHeader("Retry-After"))),b.warn("Too many requests, backing off till: "+t._disabledUntil)}o(r)}else n({status:e})}},r.open("POST",t.url),t.options.headers)t.options.headers.hasOwnProperty(i)&&r.setRequestHeader(i,t.options.headers[i]);r.send(JSON.stringify(e))})))},t}(ue),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d.b(t,e),t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=d.a({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):Y()?new pe(t):new de(t)},t.prototype.eventFromException=function(e,t){var n=se(e,t&&t.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return Object(g.a)(n,{handled:!0,type:"generic"}),n.level=B.Error,t&&t.event_id&&(n.event_id=t.event_id),f.resolve(n)},t.prototype.eventFromMessage=function(e,t,n){void 0===t&&(t=B.Info);var o=ae(e,n&&n.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return o.level=t,n&&n.event_id&&(o.event_id=n.event_id),f.resolve(o)},t}(U),fe=function(e){function t(t){return void 0===t&&(t={}),e.call(this,he,t)||this}return d.b(t,e),t.prototype._prepareEvent=function(t,n,o){return t.platform=t.platform||"javascript",t.sdk=d.a({},t.sdk,{name:"sentry.javascript.browser",packages:d.d(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.15.5"}]),version:"5.15.5"}),e.prototype._prepareEvent.call(this,t,n,o)},t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=Object(g.f)().document;if(t)if(this._isEnabled()){var n=e.dsn||this.getDsn();if(e.eventId)if(n){var o=t.createElement("script");o.async=!0,o.src=new G(n).getReportDialogEndpoint(e),e.onLoad&&(o.onload=e.onLoad),(t.head||t.body).appendChild(o)}else b.error("Missing `Dsn` option in showReportDialog call");else b.error("Missing `eventId` option in showReportDialog call")}else b.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(H);function ge(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=S();if(o&&o[e])return o[e].apply(o,d.d(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ve(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return ge("captureException",e,{originalException:e,syntheticException:t})}function me(e){ge("withScope",e)}var ye=0;function Ce(){return ye>0}function we(){ye+=1,setTimeout((function(){ye-=1}))}function Ee(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var o=function(){var o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var r=o.map((function(e){return Ee(e,t)}));return e.handleEvent?e.handleEvent.apply(this,r):e.apply(this,r)}catch(e){throw we(),me((function(n){n.addEventProcessor((function(e){var n=d.a({},e);return t.mechanism&&(Object(g.b)(n,void 0,void 0),Object(g.a)(n,t.mechanism)),n.extra=d.a({},n.extra,{arguments:o}),n})),ve(e)})),e}};try{for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r])}catch(e){}e.prototype=e.prototype||{},o.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:o}),Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return e.name}})}catch(e){}return o}var be,_e=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t[0];return t[0]=Ee(o,{mechanism:{data:{function:Object(g.e)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e(Ee(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(g.e)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(g.f)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(k.b)(n,"addEventListener",(function(t){return function(n,o,r){try{"function"==typeof o.handleEvent&&(o.handleEvent=Ee(o.handleEvent.bind(o),{mechanism:{data:{function:"handleEvent",handler:Object(g.e)(o),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,Ee(o,{mechanism:{data:{function:"addEventListener",handler:Object(g.e)(o),target:e},handled:!0,type:"instrument"}}),r)}})),Object(k.b)(n,"removeEventListener",(function(e){return function(t,n,o){var r=n;try{r=r&&(r.__sentry_wrapped__||r)}catch(e){}return e.call(this,t,r,o)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach((function(e){e in o&&"function"==typeof o[e]&&Object(k.b)(o,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(g.e)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Object(g.e)(t.__sentry_original__)),Ee(t,n)}))})),e.apply(this,t)}},e.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=Object(g.f)();Object(k.b)(e,"setTimeout",this._wrapTimeFunction.bind(this)),Object(k.b)(e,"setInterval",this._wrapTimeFunction.bind(this)),Object(k.b)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),"XMLHttpRequest"in e&&Object(k.b)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},e.id="TryCatch",e}(),Oe=Object(g.f)(),Re={},Se={};function Te(e){if(!Se[e])switch(Se[e]=!0,e){case"console":!function(){if(!("console"in Oe))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Oe.console&&Object(k.b)(Oe.console,e,(function(t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];De("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Oe.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Oe))return;Oe.document.addEventListener("click",Me("click",De.bind(null,"dom")),!1),Oe.document.addEventListener("keypress",Le(De.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=Oe[e]&&Oe[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(k.b)(t,"addEventListener",(function(e){return function(t,n,o){return n&&n.handleEvent?("click"===t&&Object(k.b)(n,"handleEvent",(function(e){return function(t){return Me("click",De.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Object(k.b)(n,"handleEvent",(function(e){return function(t){return Le(De.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&Me("click",De.bind(null,"dom"),!0)(this),"keypress"===t&&Le(De.bind(null,"dom"))(this)),e.call(this,t,n,o)}})),Object(k.b)(t,"removeEventListener",(function(e){return function(t,n,o){var r=n;try{r=r&&(r.__sentry_wrapped__||r)}catch(e){}return e.call(this,t,r,o)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Oe))return;var e=XMLHttpRequest.prototype;Object(k.b)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t[1];return this.__sentry_xhr__={method:Object(h.k)(t[0])?t[0].toUpperCase():t[0],url:t[1]},Object(h.k)(o)&&"POST"===this.__sentry_xhr__.method&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0),e.apply(this,t)}})),Object(k.b)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=this,r={args:t,startTimestamp:Date.now(),xhr:o};return De("xhr",d.a({},r)),o.addEventListener("readystatechange",(function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(e){}De("xhr",d.a({},r,{endTimestamp:Date.now()}))}})),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!Y())return!1;var e=Object(g.f)();if(q(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(t=q(o.contentWindow.fetch)),n.head.removeChild(o)}catch(e){b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;Object(k.b)(Oe,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o={args:t,fetchData:{method:Ae(t),url:Ne(t)},startTimestamp:Date.now()};return De("fetch",d.a({},o)),e.apply(Oe,t).then((function(e){return De("fetch",d.a({},o,{endTimestamp:Date.now(),response:e})),e}),(function(e){throw De("fetch",d.a({},o,{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(e=Object(g.f)(),t=e.chrome,n=t&&t.app&&t.app.runtime,o="history"in e&&!!e.history.pushState&&!!e.history.replaceState,n||!o)return;var e,t,n,o;var r=Oe.onpopstate;function i(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t.length>2?t[2]:void 0;if(o){var r=be,i=String(o);be=i,De("history",{from:r,to:i})}return e.apply(this,t)}}Oe.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Oe.location.href,o=be;if(be=n,De("history",{from:o,to:n}),r)return r.apply(this,e)},Object(k.b)(Oe.history,"pushState",i),Object(k.b)(Oe.history,"replaceState",i)}();break;case"error":ke=Oe.onerror,Oe.onerror=function(e,t,n,o,r){return De("error",{column:o,error:r,line:n,msg:e,url:t}),!!ke&&ke.apply(this,arguments)};break;case"unhandledrejection":Ge=Oe.onunhandledrejection,Oe.onunhandledrejection=function(e){return De("unhandledrejection",e),!Ge||Ge.apply(this,arguments)};break;default:b.warn("unknown instrumentation type:",e)}}function Pe(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Re[e.type]=Re[e.type]||[],Re[e.type].push(e.callback),Te(e.type))}function De(e,t){var n,o;if(e&&Re[e])try{for(var r=d.e(Re[e]||[]),i=r.next();!i.done;i=r.next()){var s=i.value;try{s(t)}catch(t){b.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(g.e)(s)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}}function Ae(e){return void 0===e&&(e=[]),"Request"in Oe&&Object(h.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Ne(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Oe&&Object(h.g)(e[0],Request)?e[0].url:String(e[0])}var xe,Ie,Fe=0;function Me(e,t,n){return void 0===n&&(n=!1),function(o){xe=void 0,o&&Ie!==o&&(Ie=o,Fe&&clearTimeout(Fe),n?Fe=setTimeout((function(){t({event:o,name:e})})):t({event:o,name:e}))}}function Le(e){return function(t){var n;try{n=t.target}catch(e){return}var o=n&&n.tagName;o&&("INPUT"===o||"TEXTAREA"===o||n.isContentEditable)&&(xe||Me("input",e)(t),clearTimeout(xe),xe=setTimeout((function(){xe=void 0}),1e3))}}var ke=null;var Ge=null;var Ve=function(){function e(t){this.name=e.id,this._options=d.a({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:B.fromString(e.level),message:Object(A.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(A.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}S().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(g.h)(e.event.target):Object(g.h)(e.event)}catch(e){t="<unknown>"}0!==t.length&&S().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;S().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else this._options.sentry&&e.xhr.__sentry_own_request__&&We(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=S().getClient(),n=t&&t.getDsn();if(this._options.sentry&&n){var o=new G(n).getStoreEndpoint();if(o&&-1!==e.fetchData.url.indexOf(o)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void We(e.args[1].body)}e.error?S().addBreadcrumb({category:"fetch",data:d.a({},e.fetchData,{status_code:e.response.status}),level:B.Error,type:"http"},{data:e.error,input:e.args}):S().addBreadcrumb({category:"fetch",data:d.a({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=Object(g.f)(),n=e.from,o=e.to,r=Object(g.k)(t.location.href),i=Object(g.k)(n),s=Object(g.k)(o);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(o=s.relative),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),S().addBreadcrumb({category:"navigation",data:{from:n,to:o}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Pe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,d.d(t))},type:"console"}),this._options.dom&&Pe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,d.d(t))},type:"dom"}),this._options.xhr&&Pe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,d.d(t))},type:"xhr"}),this._options.fetch&&Pe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,d.d(t))},type:"fetch"}),this._options.history&&Pe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,d.d(t))},type:"history"})},e.id="Breadcrumbs",e}();function We(e){try{var t=JSON.parse(e);S().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level||B.fromString("error"),message:Object(g.d)(t)},{event:t})}catch(e){b.error("Error while adding sentry type breadcrumb")}}var je=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=d.a({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(b.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(b.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Pe({callback:function(n){var o=n.error,r=S(),i=r.getIntegration(e),s=o&&!0===o.__sentry_own_request__;if(i&&!Ce()&&!s){var a=r.getClient(),l=Object(h.i)(o)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(se(o,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(g.a)(l,{handled:!1,type:"onerror"}),r.captureEvent(l,{originalException:o})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Pe({callback:function(n){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(e){}var r=S(),i=r.getIntegration(e),s=o&&!0===o.__sentry_own_request__;if(!i||Ce()||s)return!0;var a=r.getClient(),l=Object(h.i)(o)?t._eventFromIncompleteRejection(o):se(o,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});l.level=B.Error,Object(g.a)(l,{handled:!1,type:"onunhandledrejection"}),r.captureEvent(l,{originalException:o})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,o){var r,i=Object(h.e)(e)?e.message:e;if(Object(h.k)(i)){var s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(r=s[1],i=s[2])}var a={exception:{values:[{type:r||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(a,t,n,o)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,o){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var r=isNaN(parseInt(o,10))?void 0:o,i=isNaN(parseInt(n,10))?void 0:n,s=Object(h.k)(t)&&t.length>0?t:Object(g.g)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:r,filename:s,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),He=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){y((function(t,n){var o=S().getIntegration(e);return o?o._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(h.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=d.d(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(h.g)(e[t],Error)||n.length+1>=this._limit)return n;var o=oe(ee(e[t]));return this._walkErrorTree(e[t],t,d.d([o],n))},e.id="LinkedErrors",e}(),Be=Object(g.f)(),ze=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){y((function(t){if(S().getIntegration(e)){if(!Be.navigator||!Be.location)return t;var n=t.request||{};return n.url=n.url||Be.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=Be.navigator.userAgent,d.a({},t,{request:n})}return t}))},e.id="UserAgent",e}(),Ue=[new o.InboundFilters,new o.FunctionToString,new _e,new Ve,new je,new He,new ze];var Ye=n(2),qe=n.n(Ye),Ke=n(15),$e=0;var Qe={};function Xe(e){return Qe[e]||(Qe[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+$e+")";return $e++,t}(e)),Qe[e]}function Je(e,t){if(Ze(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!Object.hasOwnProperty.call(t,n[r])||!Ze(e[n[r]],t[n[r]]))return!1;return!0}function Ze(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function et(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var tt=Xe("patchMixins"),nt=Xe("patchedDefinition");function ot(e,t){for(var n=this,o=arguments.length,r=new Array(o>2?o-2:0),i=2;i<o;i++)r[i-2]=arguments[i];t.locks++;try{var s;return null!=e&&(s=e.apply(this,r)),s}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,r)}))}}function rt(e,t){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];ot.call.apply(ot,[this,e,t].concat(o))}}function it(e,t,n){var o=function(e,t){var n=e[tt]=e[tt]||{},o=n[t]=n[t]||{};return o.locks=o.locks||0,o.methods=o.methods||[],o}(e,t);o.methods.indexOf(n)<0&&o.methods.push(n);var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r[nt]){var i=e[t],s=function e(t,n,o,r,i){var s,a=rt(i,r);return(s={})[nt]=!0,s.get=function(){return a},s.set=function(i){if(this===t)a=rt(i,r);else{var s=e(this,n,o,r,i);Object.defineProperty(this,n,s)}},s.configurable=!0,s.enumerable=o,s}(e,t,r?r.enumerable:void 0,o,i);Object.defineProperty(e,t,s)}}var st=c.$mobx||"$mobx",at=Xe("isUnmounted"),lt=Xe("skipRender"),ut=Xe("isForcingUpdate");function ct(e){var t=e.prototype;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==s.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==dt)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=dt;ht(t,"props"),ht(t,"state");var n=t.render;return t.render=function(){return pt.call(this,n)},it(t,"componentWillUnmount",(function(){if(!0!==Object(Ke.b)()){if(this.render[st])this.render[st].dispose();else;this[at]=!0}})),e}function pt(e){var t=this;if(!0===Object(Ke.b)())return e.call(this);et(this,lt,!1),et(this,ut,!1);var n,o=(n=this).displayName||n.name||n.constructor&&(n.constructor.displayName||n.constructor.name)||"<component>",r=e.bind(this),i=!1,a=new c.Reaction(o+".render()",(function(){if(!i&&(i=!0,!0!==t[at])){var e=!0;try{et(t,ut,!0),t[lt]||s.Component.prototype.forceUpdate.call(t),e=!1}finally{et(t,ut,!1),e&&a.dispose()}}}));function l(){i=!1;var e=void 0,t=void 0;if(a.track((function(){try{t=Object(c._allowStateChanges)(!1,r)}catch(t){e=t}})),e)throw e;return t}return a.reactComponent=this,l[st]=a,this.render=l,l.call(this)}function dt(e,t){return Object(Ke.b)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!Je(this.props,e)}function ht(e,t){var n=Xe("reactProp_"+t+"_valueHolder"),o=Xe("reactProp_"+t+"_atomHolder");function r(){return this[o]||et(this,o,Object(c.createAtom)("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return c._allowStateReadsStart&&c._allowStateReadsEnd&&(e=Object(c._allowStateReadsStart)(!0)),r.call(this).reportObserved(),c._allowStateReadsStart&&c._allowStateReadsEnd&&Object(c._allowStateReadsEnd)(e),this[n]},set:function(e){this[ut]||Je(this[n],e)?et(this,n,e):(et(this,n,e),et(this,lt,!0),r.call(this).reportChanged(),et(this,lt,!1))}})}var ft="function"==typeof Symbol&&Symbol.for,gt=ft?Symbol.for("react.forward_ref"):"function"==typeof s.forwardRef&&Object(s.forwardRef)((function(e){return null})).$$typeof,vt=ft?Symbol.for("react.memo"):"function"==typeof s.memo&&Object(s.memo)((function(e){return null})).$$typeof;function mt(e){if(!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'"),vt&&e.$$typeof===vt)throw new Error("Mobx observer: 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.");if(gt&&e.$$typeof===gt){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return Object(s.forwardRef)((function(){var e=arguments;return Object(s.createElement)(Ke.a,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(s.Component,e)?ct(e):Object(Ke.c)(e)}if(!s.Component)throw new Error("mobx-react requires React to be available");if(!c.observable)throw new Error("mobx-react requires mobx to be available");var yt=n(3),Ct="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),wt=new Uint8Array(16);function Et(){if(!Ct)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ct(wt)}for(var bt=[],_t=0;_t<256;++_t)bt[_t]=(_t+256).toString(16).substr(1);var Ot=function(e,t){var n=t||0,o=bt;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")};var Rt=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||Et)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var i=0;i<16;++i)t[o+i]=r[i];return t||Ot(r)};let St,Tt;const Pt=new WeakMap,Dt=new WeakMap,At=new WeakMap,Nt=new WeakMap,xt=new WeakMap;let It={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Dt.get(e);if("objectStoreNames"===t)return e.objectStoreNames||At.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Lt(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Ft(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Tt||(Tt=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(kt(this),t),Lt(Pt.get(this))}:function(...t){return Lt(e.apply(kt(this),t))}:function(t,...n){const o=e.call(kt(this),t,...n);return At.set(o,t.sort?t.sort():[t]),Lt(o)}}function Mt(e){return"function"==typeof e?Ft(e):(e instanceof IDBTransaction&&function(e){if(Dt.has(e))return;const t=new Promise((t,n)=>{const o=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",i),e.removeEventListener("abort",i)},r=()=>{t(),o()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",r),e.addEventListener("error",i),e.addEventListener("abort",i)});Dt.set(e,t)}(e),((e,t)=>t.some(t=>e instanceof t))(e,St||(St=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,It):e)}function Lt(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const o=()=>{e.removeEventListener("success",r),e.removeEventListener("error",i)},r=()=>{t(Lt(e.result)),o()},i=()=>{n(e.error),o()};e.addEventListener("success",r),e.addEventListener("error",i)});return t.then(t=>{t instanceof IDBCursor&&Pt.set(t,e)}).catch(()=>{}),xt.set(t,e),t}(e);if(Nt.has(e))return Nt.get(e);const t=Mt(e);return t!==e&&(Nt.set(e,t),xt.set(t,e)),t}const kt=e=>xt.get(e);const Gt=["get","getKey","getAll","getAllKeys","count"],Vt=["put","add","delete","clear"],Wt=new Map;function jt(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Wt.get(t))return Wt.get(t);const n=t.replace(/FromIndex$/,""),o=t!==n,r=Vt.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!r&&!Gt.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,r?"readwrite":"readonly");let s=i.store;o&&(s=s.index(t.shift()));const a=s[n](...t);return r&&await i.done,a};return Wt.set(t,i),i}It=(e=>({...e,get:(t,n,o)=>jt(t,n)||e.get(t,n,o),has:(t,n)=>!!jt(t,n)||e.has(t,n)}))(It);class Ht extends Error{constructor(e){super(e.message),this.path=e.path,this.message=e.message,this.context=e.context||null,this.nativeError=e.nativeError}}var Bt=(e,t,n,o)=>{console.error(`[${e}] ${t}`,n);const r=new Ht({path:e,message:t,context:n||null,nativeError:o||new Error});return function(e){ge("configureScope",e)}(r=>{r.setExtra("path",e),r.setExtra("message",t),r.setExtra("context",JSON.stringify(n)),r.setExtra("nativeError",o)}),ve(r),r};class zt{constructor(e,t){this.cursor=()=>this.db.transaction(this.storeName).store.openCursor(),this.transaction=e=>this.db.transaction(this.storeName,e),this.get=e=>this.db.get(this.storeName,e),this.getAll=async({projectId:e}={})=>{const t=await this.db.getAll(this.storeName);return e?t.filter(t=>t.projectId===e):t},this.create=async e=>{try{await this.db.put(this.storeName,e)}catch(e){console.log("Error during PersistenceItem.create",e,this.storeName)}},this.update=async(e,t)=>{try{const n=await this.db.get(this.storeName,e),o=Object.assign({},n);Object.keys(t).forEach(e=>{const n=t[e];n&&n.connect?o[e]=Array.from(new Set([...o[e]||[],n.connect])):o[e]=n}),await this.db.put(this.storeName,o)}catch(e){console.log("Error during PersistenceItem.update",e,this.storeName)}},this.delete=async e=>{try{await this.db.delete(this.storeName,e)}catch(e){console.log("Error during PersistenceItem.delete",e,this.storeName)}},this.clear=async()=>{try{await this.db.clear(this.storeName)}catch(e){console.log("Error during PersistenceItem.clear",e,this.storeName)}},this.storeName=e,this.db=t}}var Ut=(e,t,n)=>{const o=r=>r===e.length?n&&n():t(e[r],()=>o(r+1));return o(0)};const Yt=[(e,t,n)=>(console.log("---Running migration for v1---"),e.createObjectStore("projects",{keyPath:"id"}),console.log("Created projects table"),e.createObjectStore("openTabs",{keyPath:"id"}),console.log("Created openTabs table"),e.createObjectStore("sessions",{keyPath:"id"}),console.log("Created sessions table"),e.createObjectStore("scripts",{keyPath:"id"}),console.log("Created scripts table"),console.log("---Migrated to v1---"),n()),(e,t,n)=>(console.log("---Running migration for v2---"),e.createObjectStore("models",{keyPath:"id"}),console.log("Created models table"),e.createObjectStore("fields",{keyPath:"id"}),console.log("Created fields table"),e.createObjectStore("enums",{keyPath:"id"}),console.log("Created enums table"),console.log("---Migrated to v2---"),n()),(e,t,n)=>{console.log("---Running migration for v3---");const o=t.objectStore("sessions"),r=t.objectStore("scripts"),i=o.getAll();i.onsuccess=()=>{const e=r.getAll();e.onsuccess=()=>{const t=i.result,s=e.result;console.log("Found all sessions",t),console.log("Found all scripts",s),Ut(t,(e,t)=>{console.log("Updating session",e);const n=s.find(t=>t.id===e.scriptId);n?(console.log("Adding lastSavedHash",n.lastSavedHash),o.put(Object.assign(Object.assign({},e),{lastSavedHash:n.lastSavedHash||""})).onsuccess=t):e.lastSavedHash=""},()=>{Ut(s,(e,t)=>{console.log("Updating script",e),console.log("Removing lastSavedHash",e.lastSavedHash),delete e.lastSavedHash,r.put(e).onsuccess=t},()=>(console.log("---Migrated to v3---"),n()))})}}},(e,t,n)=>{console.log("---Running migration for v4---"),e.createObjectStore("tabs",{keyPath:"id"}),console.log("Created tabs table");const o=t.objectStore("openTabs"),r=t.objectStore("tabs"),i=o.getAll();i.onsuccess=()=>{const t=i.result;console.log("Found all openTabs",t),Ut(t,(e,t)=>{if(!e.sessionId)return t();e.preview=!1,console.log("Creating new tab",e),r.put(e).onsuccess=t},()=>(e.deleteObjectStore("openTabs"),console.log("Deleted openTabs table"),console.log("---Migrated to v4---"),n()))}},(e,t,n)=>{console.log("---Running migration for v5---");const o=t.objectStore("tabs"),r=t.objectStore("projects"),i=o.getAll();i.onsuccess=()=>{const e=r.getAll();e.onsuccess=()=>{const t=i.result,o=e.result;console.log("Found all tabs",t),console.log("Found all projects",o),Ut(o,(e,n)=>{console.log("Updating project",e),e.tabOrder=t.filter(t=>t.projectId===e.id).map(e=>e.id),console.log("Adding tabOrder",e.tabOrder),r.put(e).onsuccess=n},()=>(console.log("---Migrated to v5---"),n()))}}},(e,t,n)=>{console.log("---Running migration for v6---");const o=["tabs","sessions","scripts","models","fields","enums"],r={};Ut(o,(e,n)=>{const o=t.objectStore(e).getAll();o.onsuccess=()=>{r[e]=o.result,n()}},()=>{Ut(o,(n,o)=>{e.deleteObjectStore(n),e.createObjectStore(n,{keyPath:["id","projectId"]}),console.log(`Added projectId to ${n} table keyPath`);const i=r[n];console.log(`Repopulating ${n} with: `,JSON.stringify(i)),Ut(i,(e,o)=>{t.objectStore(n).put(e).onsuccess=o},()=>o())},()=>(e.createObjectStore("actions",{keyPath:["id","projectId"]}),console.log("Created actions table"),console.log("---Migrated to v6---"),n()))})},(e,t,n)=>{console.log("---Running migration for v7---");const o=t.objectStore("projects"),r=o.getAll();r.onsuccess=()=>{const e=r.result;console.log("Found all projects",e),Ut(e,(e,t)=>{console.log("Updating project",e),e.theme="light",console.log("Adding theme",e.tabOrder),o.put(e).onsuccess=t},()=>(console.log("---Migrated to v7---"),n()))}},(e,t,n)=>{console.log("---Running migration for v8---");const o=t.objectStore("sessions"),r=t.objectStore("scripts"),i=o.getAll();i.onsuccess=()=>{const e=i.result;console.log("Found all sessions",e),Ut(e,(e,t)=>{console.log("Updating session",e),e.type=e.scriptId?"script":"fallback",console.log("Adding theme",e.tabOrder),o.put(e).onsuccess=t},()=>{const e=r.getAll();e.onsuccess=()=>{const t=e.result;console.log("Found all scripts",t),Ut(t,(e,t)=>{console.log("Updating script",e),e.generated=!1,console.log("Adding theme",e.tabOrder),r.put(e).onsuccess=t},()=>(console.log("---Migrated to v8---"),n()))}})}},(e,t,n)=>{console.log("---Running migration for v9---");const o=t.objectStore("scripts"),r=o.getAll();r.onsuccess=()=>{const e=r.result;console.log("Found all scripts",e),Ut(e,(e,t)=>{console.log("Updating script",e),e.frozen=e.generated,delete e.generated,o.put(e).onsuccess=t},()=>(console.log("---Migrated to v9---"),n()))}},(e,t,n)=>(console.log("---Running migration for v10---"),e.deleteObjectStore("models"),e.deleteObjectStore("fields"),e.deleteObjectStore("enums"),n())];var qt=(e,t,n,o)=>{console.log("------Starting IndexedDB migration------");const r=kt(o);Ut(Yt.slice(t),(t,n)=>t(e,r,n),()=>console.log("------IndexedDB migration complete------"))};var Kt=new class{constructor(){this.databaseName="Prisma Studio",this.indexedDBVersion=10,this.databaseInstance=null,this.projectId="",this.ready=!1,this.init=async({projectId:e})=>{try{this.projectId=e,this.databaseInstance=await function(e,t,{blocked:n,upgrade:o,blocking:r,terminated:i}={}){const s=indexedDB.open(e,t),a=Lt(s);return o&&s.addEventListener("upgradeneeded",e=>{o(Lt(s.result),e.oldVersion,e.newVersion,Lt(s.transaction))}),n&&s.addEventListener("blocked",()=>n()),a.then(e=>{i&&e.addEventListener("close",()=>i()),r&&e.addEventListener("versionchange",()=>r())}).catch(()=>{}),a}(this.databaseName,this.indexedDBVersion,{upgrade:qt}),this.projects=new zt("projects",this.databaseInstance),this.tabs=new zt("tabs",this.databaseInstance),this.sessions=new zt("sessions",this.databaseInstance),this.scripts=new zt("scripts",this.databaseInstance),this.actions=new zt("actions",this.databaseInstance),this.ready=!0}catch(e){throw Bt("PersistenceStore.init","Unable to init PersistenceStore",{},e)}},this.save=(e,t)=>new Promise(async(n,o)=>{if(!this.ready)throw Bt("PersistenceStore.save","PersistenceStore is not ready to receive `save` operations yet",{tableName:e,value:t});try{switch(e){case"sessions":await this.sessions.create(t);break;case"scripts":await this.scripts.create(t);break;case"tabs":await this.tabs.create(t);break;case"projects":await this.projects.create(t);break;case"actions":await this.actions.create(t)}n()}catch(e){o(e)}}),this.load=async e=>new Promise(async(t,n)=>{if(!this.ready)throw Bt("PersistenceStore.load","PersistenceStore is not ready to receive `load` operations yet",{tableName:e});try{switch(e){case"projects":return t(await this.projects.getAll());default:return t(await this[e].getAll({projectId:this.projectId}))}}catch(e){return n(e)}}),this.remove=async(e,t)=>new Promise(async(n,o)=>{if(!this.ready)throw Bt("PersistenceStore.remove","PersistenceStore is not ready to receive `remove` operations yet",{tableName:e,id:t});try{switch(e){case"projects":return await this[e].delete(t),n();default:return await this[e].delete([t,this.projectId]),n()}}catch(e){return o(e)}}),this.clear=async e=>new Promise(async(t,n)=>{if(!this.ready)throw Bt("PersistenceStore.clear","PersistenceStore is not ready to receive `clear` operations yet",{tableName:e});try{return await this[e].clear(),t()}catch(e){return n(e)}}),this.clearAll=async()=>{var e;await(null===(e=this.databaseInstance)||void 0===e?void 0:e.close()),await function(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",()=>t()),Lt(n).then(()=>{})}(this.databaseName)}}},$t=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Qt{constructor(e,{idbTableName:t}={}){this.idbTableName=null,this.members={},this.restore=async()=>{if(this.idbTableName){(await Kt.load(this.idbTableName)).forEach(e=>{if(!e)return console.warn("Attempt to restore a null member from IndexedDB, ignoring",{member:e,idbTableName:this.idbTableName}),Promise.resolve();this.add(e,{skipPersist:!0})})}return Promise.resolve()},this.type=e,this.idbTableName=null!=t?t:null}get values(){return this.members}get size(){return Object.keys(this.members).length}get(e){return e&&this.members[e]||null}add(e,{skipPersist:t=!1}={}){let n;if(e.id||(e.id=Rt()),this.members[e.id])n=this.members[e.id],n.update(e,{skipPersist:t});else{n=new(0,this.type)(e),n.idbTableName=this.idbTableName,this.members[e.id]=n,!t&&this.idbTableName&&Kt.save(this.idbTableName,n.serialize())}return n}remove(e){const t=this.members[e];return t&&delete this.members[e],this.idbTableName&&Kt.remove(this.idbTableName,e),t}clear(){this.members={},this.idbTableName&&Kt.clear(this.idbTableName)}toJS(){return Object(c.toJS)(this)}}$t([c.observable],Qt.prototype,"type",void 0),$t([c.observable],Qt.prototype,"idbTableName",void 0),$t([c.observable],Qt.prototype,"members",void 0),$t([c.computed],Qt.prototype,"values",null),$t([c.computed],Qt.prototype,"size",null),$t([c.action],Qt.prototype,"restore",void 0),$t([c.action],Qt.prototype,"add",null),$t([c.action],Qt.prototype,"remove",null),$t([c.action],Qt.prototype,"clear",null),$t([c.action],Qt.prototype,"toJS",null);var Xt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Jt{constructor(e){this.forceUpdate=async()=>{await Kt.save(this.idbTableName,this.serialize())},this.id=e.id}update(e,{skipPersist:t=!1}={}){if(!t&&this.idbTableName){const t=this.serialize(),n=Object.keys(t),o=Object.keys(e);new Set([...n,...o]).size!==n.length+o.length&&this.forceUpdate()}}serialize(){}}Xt([c.observable],Jt.prototype,"id",void 0),Xt([c.observable],Jt.prototype,"idbTableName",void 0),Xt([c.action],Jt.prototype,"update",null),Xt([c.action],Jt.prototype,"forceUpdate",void 0);var Zt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class en{constructor(){this.theme="light"}apply(e){this.theme=e,document.getElementsByTagName("html")[0].style.setProperty("--primary-color","red")}hydrate(e){this.apply(e)}}Zt([c.observable],en.prototype,"theme",void 0),Zt([c.action],en.prototype,"apply",null),Zt([c.action],en.prototype,"hydrate",null);var tn=new en;var nn=e=>e;var on=e=>e,rn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class sn extends Jt{constructor(e){super(e),this.id=e.id,this.name=e.name,this.values=e.values}update(e,t={}){Object(yt.has)(e,"name")&&(this.name=e.name),Object(yt.has)(e,"values")&&(this.values=e.values),super.update(e,t)}}rn([c.observable],sn.prototype,"id",void 0),rn([c.observable],sn.prototype,"name",void 0),rn([c.observable],sn.prototype,"values",void 0),rn([c.action],sn.prototype,"update",null);var an=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class ln extends Qt{constructor(){super(sn),this.getByName=e=>this.get(e)}add(e,t={}){return super.add(Object.assign({id:on(e.name)},e),t)}}an([c.action],ln.prototype,"add",null);var un=new ln,cn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class pn extends Jt{constructor(e){super(e),this.id=e.id,this.modelId=e.modelId,this.name=e.name,this.type=e.type,this.kind=e.kind,this.default=e.default,this.isId=e.isId,this.isUnique=e.isUnique,this.isRequired=e.isRequired,this.isList=e.isList,this.isReadOnly=e.isReadOnly,this.isUpdatedAt=e.isUpdatedAt,this.isCreatedAt=e.isCreatedAt,this.relationFromFieldNames=e.relationFromFieldNames,this.relationToFieldNames=e.relationToFieldNames}get model(){return En.get(this.modelId)}get isScalar(){return"scalar"===this.kind&&!this.isEnum}get isString(){return"String"===this.type}get isInt(){return"Int"===this.type}get isFloat(){return"Float"===this.type}get isBoolean(){return"Boolean"===this.type}get isDateTime(){return"DateTime"===this.type}get isJson(){return"Json"===this.type}get isEnum(){return!!this.typeAsEnum}get isRelation(){return"object"===this.kind}get isPartOfRelation(){return null!==this.relationItIsPartOf}get relationItIsPartOf(){return this.model&&this.model.fields.find(e=>e.isRelation&&e.relationFromFieldNames.includes(this.name))||null}get isSortable(){return this.isScalar&&!this.isList||this.isEnum&&!this.isList}get isFunctionDefault(){return"string"!=typeof this.default&&"number"!=typeof this.default&&"boolean"!=typeof this.default&&!Object(yt.isArray)(this.default)}get defaultAsString(){return this.isList?"[]":this.default?"string"==typeof this.default||"number"==typeof this.default||"boolean"==typeof this.default?""+this.default:Object(yt.isArray)(this.default)?this.default.toString():Object(yt.isObject)(this.default)?this.default.name+"()":"":""}get typeAsModel(){return this.isRelation?En.getByName(this.type):null}get typeAsEnum(){return un.getByName(this.type)}get typeAsLabel(){let e=this.type;const t=this.typeAsModel;return t&&(e=t.name),this.isList?e+="[]":this.isRequired||(e+="?"),e}get lowestValidValue(){if(this.isList)return[];if(!this.isRequired)return null;if(this.isString)return"";if(this.isInt||this.isFloat)return 0;if(this.isBoolean)return!1;if(this.isDateTime)return new Date(0).toISOString();if(this.isJson)return{};if(this.isEnum){if(!this.typeAsEnum)throw Bt("Field.lowestValidValue","Invalid type of field: enum",{fieldId:this.id,type:this.type});return this.typeAsEnum.values[0]}return null}update(e,t={}){Object(yt.has)(e,"default")&&(this.default=e.default),Object(yt.has)(e,"isId")&&(this.isId=e.isId),Object(yt.has)(e,"isUnique")&&(this.isUnique=e.isUnique),Object(yt.has)(e,"isRequired")&&(this.isRequired=e.isRequired),Object(yt.has)(e,"isList")&&(this.isList=e.isList),Object(yt.has)(e,"isReadOnly")&&(this.isReadOnly=e.isReadOnly),Object(yt.has)(e,"isUpdatedAt")&&(this.isUpdatedAt=e.isUpdatedAt),Object(yt.has)(e,"isCreatedAt")&&(this.isCreatedAt=e.isCreatedAt),super.update(e,t)}}cn([c.observable],pn.prototype,"id",void 0),cn([c.observable],pn.prototype,"modelId",void 0),cn([c.observable],pn.prototype,"name",void 0),cn([c.observable],pn.prototype,"type",void 0),cn([c.observable],pn.prototype,"kind",void 0),cn([c.observable],pn.prototype,"default",void 0),cn([c.observable],pn.prototype,"isId",void 0),cn([c.observable],pn.prototype,"isUnique",void 0),cn([c.observable],pn.prototype,"isRequired",void 0),cn([c.observable],pn.prototype,"isList",void 0),cn([c.observable],pn.prototype,"isReadOnly",void 0),cn([c.observable],pn.prototype,"isUpdatedAt",void 0),cn([c.observable],pn.prototype,"isCreatedAt",void 0),cn([c.observable],pn.prototype,"relationFromFieldNames",void 0),cn([c.observable],pn.prototype,"relationToFieldNames",void 0),cn([c.computed],pn.prototype,"model",null),cn([c.computed],pn.prototype,"isScalar",null),cn([c.computed],pn.prototype,"isString",null),cn([c.computed],pn.prototype,"isInt",null),cn([c.computed],pn.prototype,"isFloat",null),cn([c.computed],pn.prototype,"isBoolean",null),cn([c.computed],pn.prototype,"isDateTime",null),cn([c.computed],pn.prototype,"isJson",null),cn([c.computed],pn.prototype,"isEnum",null),cn([c.computed],pn.prototype,"isRelation",null),cn([c.computed],pn.prototype,"isPartOfRelation",null),cn([c.computed],pn.prototype,"relationItIsPartOf",null),cn([c.computed],pn.prototype,"isSortable",null),cn([c.computed],pn.prototype,"isFunctionDefault",null),cn([c.computed],pn.prototype,"defaultAsString",null),cn([c.computed],pn.prototype,"typeAsModel",null),cn([c.computed],pn.prototype,"typeAsEnum",null),cn([c.computed],pn.prototype,"typeAsLabel",null),cn([c.computed],pn.prototype,"lowestValidValue",null),cn([c.action],pn.prototype,"update",null);var dn=pn;var hn=(e,t)=>`${e}.${t}`;var fn=new class extends Qt{constructor(){super(dn)}getByName(e,t){return this.get(hn(t,e))}};var gn=({modelId:e})=>{const t=En.get(e);if(!t)throw Bt("getCountQuery","Invalid modelId",{modelId:e});return`prisma.${t.photonNamespace}.count()`},vn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class mn extends Jt{constructor(e){super(e),this.getFieldByName=e=>fn.getByName(e,this.id),this.runCountQuery=async()=>{try{const{data:{response:e}}=await window.channels.photon.request(gn({modelId:this.id})),t=parseInt(e);this.update({count:t})}catch(e){console.log("Count request failed for model:",this.name,e),this.update({count:0})}},this.id=e.id,this.name=e.name,this.plural=e.plural,this.count=0,this.fieldIds=e.fieldIds||[],this.idFieldIds=e.idFieldIds||[],this.uniqueFieldIds=e.uniqueFieldIds||[]}get fields(){return this.fieldIds.map(e=>{const t=fn.get(e);if(!t)throw Bt("Model.field","Invalid fieldId",{fieldId:e});return t})}get idFields(){const e=this.fields.find(e=>e.isId);if(e)return[e];const t=this.idFieldIds.map(e=>{const t=fn.get(e);if(!t)throw Bt("Model.idFields","Invalid fieldId in idFieldIds",{fieldId:e});return t});if(t.length>0)return t;const n=this.fields.find(e=>e.isUnique);if(n)return[n];const o=this.uniqueFieldIds.map(e=>{const t=fn.get(e);if(!t)throw Bt("Model.idFields","Invalid fieldId in uniqueFieldIds",{fieldId:e});return t});if(o.length>0)return o;throw Bt("ModelStore.idFields","Unable to resolve unique identifiers for model",{modelId:this.id})}get uniqueFields(){return this.idFields}get photonNamespace(){return this.name.charAt(0).toLowerCase()+this.name.slice(1)}update(e,t={}){Object(yt.has)(e,"name")&&(this.name=e.name),Object(yt.has)(e,"plural")&&(this.plural=e.plural),Object(yt.has)(e,"count")&&(this.count=e.count),Object(yt.has)(e,"fieldIds")&&(this.fieldIds=e.fieldIds),Object(yt.has)(e,"idFieldIds")&&(this.idFieldIds=e.idFieldIds),Object(yt.has)(e,"uniqueFieldIds")&&(this.uniqueFieldIds=e.uniqueFieldIds),super.update(e,t)}}vn([c.observable],mn.prototype,"id",void 0),vn([c.observable],mn.prototype,"name",void 0),vn([c.observable],mn.prototype,"plural",void 0),vn([c.observable],mn.prototype,"count",void 0),vn([c.observable],mn.prototype,"fieldIds",void 0),vn([c.observable],mn.prototype,"idFieldIds",void 0),vn([c.observable],mn.prototype,"uniqueFieldIds",void 0),vn([c.computed],mn.prototype,"fields",null),vn([c.computed],mn.prototype,"idFields",null),vn([c.computed],mn.prototype,"uniqueFields",null),vn([c.computed],mn.prototype,"photonNamespace",null),vn([c.action],mn.prototype,"runCountQuery",void 0),vn([c.action],mn.prototype,"update",null);var yn=mn,Cn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class wn extends Qt{constructor(){super(yn),this.getByName=e=>this.get(e)}add(e,t={}){const n=nn(e.name);return super.add(Object.assign(Object.assign({},e),{id:n}),t)}}Cn([c.action],wn.prototype,"add",null);var En=new wn;var bn=(e,t)=>{if(null==t)throw Bt("getRecordId","Invalid recordValue",{modelId:e,recordValue:t});const n=En.get(e);if(!n)throw Bt("getRecordId","Invalid modelId",{modelId:e});let o=e+"::";return o+=n.idFields.map(e=>null===t[e.name]?"null":void 0===t[e.name]?"undefined":t[e.name]).join(","),o},_n=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class On extends Jt{constructor(e){super(e),this.id=e.id,this.visible=void 0===e.visible||e.visible,this.expanded=void 0!==e.expanded&&e.expanded,this.width=e.width,this.height=e.height}update(e){Object(yt.has)(e,"visible")&&(this.visible=e.visible),Object(yt.has)(e,"expanded")&&(this.expanded=e.expanded),Object(yt.has)(e,"width")&&(this.width=e.width),Object(yt.has)(e,"height")&&(this.height=e.height)}}_n([c.observable],On.prototype,"id",void 0),_n([c.observable],On.prototype,"visible",void 0),_n([c.observable],On.prototype,"expanded",void 0),_n([c.observable],On.prototype,"width",void 0),_n([c.observable],On.prototype,"height",void 0),_n([c.action],On.prototype,"update",null);var Rn=On,Sn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Tn extends Qt{constructor(){super(Rn),this.updateWindow=(e={})=>{this.get("window").update(e)},this.updateError=(e={})=>{this.get("error").update(e)},this.updateActions=(e={})=>{this.get("actions").update(e)},this.add({id:"window",width:window.innerWidth,height:window.innerHeight}),this.add({id:"header",width:window.innerWidth,height:32}),this.add({id:"error",visible:!1,width:window.innerWidth,height:50}),this.add({id:"filters",visible:!0,width:0,height:44}),this.add({id:"actions",visible:!1,width:window.innerWidth,height:40}),window.addEventListener("resize",()=>{this.updateWindow({width:window.innerWidth,height:window.innerHeight})})}get window(){const e=this.get("window");return{visible:e.visible,expanded:!0,width:e.width,height:e.height}}get header(){const e=this.get("header");return{visible:e.visible,expanded:!0,width:this.window.width,height:e.height}}get error(){const e=this.get("error");return{visible:e.visible,expanded:!0,width:e.width,height:e.visible?e.height:0}}get filters(){const e=this.get("filters");return{visible:e.visible,expanded:!0,width:this.window.width,height:e.visible?e.height:0}}get results(){return{visible:!0,expanded:!0,width:this.window.width,height:this.window.height-this.header.height-this.filters.height-this.actions.height}}get actions(){const e=this.get("actions");return{visible:e.visible,expanded:!1,width:this.window.width,height:e.visible?e.height:0}}}Sn([c.computed],Tn.prototype,"window",null),Sn([c.computed],Tn.prototype,"header",null),Sn([c.computed],Tn.prototype,"error",null),Sn([c.computed],Tn.prototype,"filters",null),Sn([c.computed],Tn.prototype,"results",null),Sn([c.computed],Tn.prototype,"actions",null),Sn([c.action],Tn.prototype,"updateWindow",void 0),Sn([c.action],Tn.prototype,"updateError",void 0),Sn([c.action],Tn.prototype,"updateActions",void 0);var Pn=new Tn,Dn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class An{constructor(){this.type="script",this.title="",this.subtitle=null,this.dump=null,this.stacktrace=null,this.context=null,this.telemetry=!1}sendTelemetry(){return window.channels.telemetry.send({message:this.dump||"",stack:this.stacktrace||"",context:JSON.stringify(this.context)})}update(e){this.type=e.type,this.title=e.title,this.subtitle=e.subtitle,this.dump=e.dump,this.stacktrace=e.stacktrace,this.context=e.context,this.telemetry=e.telemetry}}Dn([c.observable],An.prototype,"type",void 0),Dn([c.observable],An.prototype,"title",void 0),Dn([c.observable],An.prototype,"subtitle",void 0),Dn([c.observable],An.prototype,"dump",void 0),Dn([c.observable],An.prototype,"stacktrace",void 0),Dn([c.observable],An.prototype,"context",void 0),Dn([c.observable],An.prototype,"telemetry",void 0),Dn([c.action],An.prototype,"sendTelemetry",null),Dn([c.action],An.prototype,"update",null);var Nn=new An;const xn=e=>{const t=[];return e.filter(e=>"delete"===e.type).forEach(n=>{if(!n.record)throw Bt("photonRequestsFromActions._delete","Unrecognized Record in Action",{action:n.serialize()});const o=n.record.model,r={where:Ln(n)};t.push([`prisma.${o.photonNamespace}.delete(`,""+JSON.stringify(r,null,2),")"].join("\n")),e=e.filter(e=>n.id!==e.id&&n.recordId!==e.recordId)}),{actions:e,requests:t}},In=e=>{const t=[];return e.filter(e=>"create"===e.type).forEach(n=>{if(!n.record)throw Bt("photonRequestsFromActions._create","Unrecognized Record in Action",{action:n.serialize()});const o=n.record.model,r={data:{},select:Mn(n)},i=e.find(e=>"update"===e.type&&e.sessionId===n.sessionId&&e.recordId===n.recordId);i&&(r.data=Gn(i),r.select=Object.assign(Object.assign({},r.select),Mn(i))),t.push([`prisma.${o.photonNamespace}.create(`,""+JSON.stringify(r,null,2),")"].join("\n")),e=e.filter(e=>e.id!==(null==i?void 0:i.id)&&n.id!==e.id)}),{actions:e,requests:t}},Fn=e=>{const t=[];return e.filter(e=>"update"===e.type).forEach(n=>{if(!n.record)throw Bt("photonRequestsFromActions._update","Unrecognized Record in Action",{action:n.serialize()});const o=n.record.model,r={where:Ln(n),data:kn(n),select:Mn(n)};t.push([`prisma.${o.photonNamespace}.update(`,""+JSON.stringify(r,null,2),")"].join("\n")),e=e.filter(e=>n.id!==e.id)}),{actions:e,requests:t}},Mn=e=>{if(!e.record)throw Bt("photonRequestsFromActions._getRequestSelectArgument","Unrecognized Record in Action",{action:e.serialize()});const t=e.record.model.idFields.reduce((e,t)=>(e[t.name]=!0,e),{});return"create"===e.type||"delete"===e.type?t:Object.keys(e.value).reduce((e,t)=>(e[t]=!0,e),t)},Ln=e=>{if(!e.record)throw Bt("photonRequestsFromActions._getRequestWhereArgument","Unrecognized Record in Action",{action:e.serialize()});return e.record.model.idFields.reduce((t,n)=>(t[n.name]=e.record.valueInDB[n.name],t),{})},kn=e=>{if(!e.record)throw Bt("photonRequestsFromActions._getUpdateRequestDataArgument","Unrecognized Record in Action",{action:e.serialize()});const t=e.record.model;return Object.keys(e.value).reduce((n,o)=>{const r=t.getFieldByName(o),i=e.value[o];if(!r)throw Bt("photonRequestsFromActions._getUpdateRequestDataArgument","Malformed field in action",{action:e.serialize()});if(r.isReadOnly)return n;if(r.isScalar&&r.isList||r.isEnum&&r.isList)n[o]={set:i};else if(r.isScalar||r.isEnum)n[o]=i;else if(r.isList&&r.isRelation)n[o]={set:i.map((t,n)=>{const o=bo.get(t);if(!o)throw Bt("photonRequestsFromActions._getUpdateRequestDataArgument","Attempting to connect a non-existent record",{action:e.serialize(),index:n});if(!r.typeAsModel)throw Bt("photonRequestsFromActions._getUpdateRequestDataArgument","Invalid field type",{field:r.serialize()});const i=o.model.idFields,s=i.map(e=>e.name).join("_"),a=i.reduce((e,t)=>(e[t.name]=o.value[t.name],e),{});return 1===i.length?a:{[s]:a}})};else if(r.isRelation)if(null===i)n[o]={disconnect:!0};else{const t=bo.get(i);if(!t)throw Bt("photonRequestsFromActions._getUpdateRequestDataArgument","Attempting to connect a non-existent record",{action:e.serialize()});const r=t.model.idFields,s=r.map(e=>e.name).join("_"),a=r.reduce((e,n)=>(e[n.name]=t.value[n.name],e),{});1===r.length?n[o]={connect:a}:n[o]={connect:{[s]:a}}}return n},{})},Gn=e=>{const t=kn(e);return Object.keys(t).forEach(n=>{if(!e.record)throw Bt("photonRequestsFromActions._getCreateRequestDataArgument","Unrecognized Record in Action",{action:e.serialize()});const o=e.record.model.getFieldByName(n);if(!o)throw Bt("photonRequestsFromActions._getUpdateRequestDataArgument","Malformed field in action",{action:e.serialize()});o.isRelation&&!o.isList&&t[n].disconnect&&delete t[n],o.isRelation&&o.isList&&t[n].set&&(t[n].set.length>0?(t[n].connect=t[n].set,delete t[n].set):delete t[n])}),t};var Vn=e=>{const t=e.map(e=>fo.get(e)),n=[xn,In,Fn].reduce((e,t)=>{const n=t(e.actions);return e.actions=n.actions,e.requests.push(...n.requests),e},{actions:t,requests:[]});return n.actions.length>0&&console.warn("All actions were not processed. Pending actions: ",JSON.stringify(Object(c.toJS)(n.actions),null,2)),n.requests};var Wn=async e=>{let{error:t,data:n}=await window.channels.photon.request(e);if(t)throw Bt("runQuery","Error in Prisma Client request: \n\n"+t.stack,{code:e,error:t});let{params:o,response:r}=n;const i=En.getByName(o.model);if(!i)throw Bt("runQuery","Unrecognized Model",{params:o,response:r});const s=Object.entries(o.args.select||o.args.include||{}).filter(([e,t])=>!!t).map(([e])=>{var t;return null===(t=fn.getByName(i.id,e))||void 0===t?void 0:t.id}).filter(e=>!!e);if(!r)return Promise.resolve({modelId:i.id,fieldIds:s,recordIds:[]});Array.isArray(r)||(r=[r]);const a=r.map(e=>bo.add({modelId:i.id,value:e}).id);return{modelId:i.id,fieldIds:s,recordIds:a}},jn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Hn{constructor(e){this.update=e=>{Object(yt.has)(e,"selectedRecordIds")&&(this.selectedRecordIds=e.selectedRecordIds)},this.sessionId=e.sessionId,this.selectedRecordIds=[]}get session(){return no.get(this.sessionId)}get maxRows(){var e,t;return(null===(t=null===(e=this.session)||void 0===e?void 0:e.script)||void 0===t?void 0:t.recordIds.length)||0}get maxColumns(){var e,t;return(null===(t=null===(e=this.session)||void 0===e?void 0:e.script)||void 0===t?void 0:t.fieldIds.length)||0}get selectedRecords(){return this.selectedRecordIds.map(e=>bo.get(e))}}jn([c.observable],Hn.prototype,"sessionId",void 0),jn([c.observable],Hn.prototype,"selectedRecordIds",void 0),jn([c.computed],Hn.prototype,"session",null),jn([c.computed],Hn.prototype,"maxRows",null),jn([c.computed],Hn.prototype,"maxColumns",null),jn([c.computed],Hn.prototype,"selectedRecords",null),jn([c.action],Hn.prototype,"update",void 0);var Bn=Hn;var zn=(e,t)=>{const n=e.split("::"),o=Number(n[0].slice(1,-1));if(isNaN(o))throw Bt("parseTreePath","Invalid tree path: Failed to parse segment as index",{path:e,recordIdx:o});const r=bo.get(t[o]);if(!r)throw Bt("parseTreePath","Invalid tree path: Invalid record index",{path:e,recordIdx:o});return n.slice(1).reduce(({model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s},a)=>{var l,u,c,p,d,h;if(a.startsWith("[")&&a.endsWith("]"))if(n=null,o=Number(a.slice(1,-1)),isNaN(o)){const e=a.slice(1,-1).split("-");s=[Number(e[0]),Number(e[1])],o=null,r=null,i=i.slice(s[0],s[1]+1)}else if(t){const c=bn(t.id,i[o]);if(!c)throw Bt("parseTreePath","Invalid tree path: Failed to parse tree path segment as array",{path:e,fieldName:a,recordId:c,accumulator:{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}});i=null!==(u=null==(r=null!==(l=bo.get(c))&&void 0!==l?l:null)?void 0:r.value)&&void 0!==u?u:null}else r=null,i=null!==(c=i[o])&&void 0!==c?c:null;else{if(!t)throw Bt("parseTreePath","Invalid tree path: Failed to parse tree path segment as field name",{path:e,fieldName:a,accumulator:{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}});if(!(n=t.getFieldByName(a)))throw Bt("parseTreePath","Invalid field name",{path:e,fieldName:a,accumulator:{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}});if(t=null!==(p=n.typeAsModel)&&void 0!==p?p:null,o=null,r=null,i=i[a],s=null,!n.isScalar&&!n.isEnum&&!Array.isArray(i)&&null!=i){const l=t&&bn(t.id,i);if(!l)throw Bt("parseTreePath","Invalid tree path: Failed to parse tree path segment as relation",{path:e,fieldName:a,recordId:l,accumulator:{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}});i=null!==(h=null==(r=null!==(d=bo.get(l))&&void 0!==d?d:null)?void 0:r.value)&&void 0!==h?h:null}}return{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}},{model:r.model,field:null,index:null,record:r,value:r.value,arraySliceIndices:null})},Un=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Yn{constructor(e){this.selectionOrder=[],this.isExpanded=e=>this.expandedPaths.includes(e),this.select=e=>{this.activePath=e},this.move=(e,t)=>{0===this.selectionOrder.length&&this.setSelectionOrder();const n=this.selectionOrder.findIndex(e=>e===this.activePath);let o;switch(t){case"up":o=this.selectionOrder[n-e];break;case"down":o=this.selectionOrder[n+e]}this.activePath=o||"[0]"},this.expand=()=>{var e,t;if(this.isExpanded(this.activePath))return;if(!(null===(e=this.session)||void 0===e?void 0:e.script))throw Bt("SessionSelectionTree.expand","Unable to resolve recordIds",{sessionId:this.sessionId,scriptId:null===(t=this.session)||void 0===t?void 0:t.scriptId});const{record:n,value:o,field:r}=zn(this.activePath,this.session.script.recordIds);null!=o&&((null==r?void 0:r.isList)||!(null==r?void 0:r.isScalar)&&!(null==r?void 0:r.isEnum))&&0!==(null==o?void 0:o.length)&&(this.expandedPaths.push(this.activePath),this.setSelectionOrder(),n&&n.fetchRelations())},this.collapse=()=>{this.expandedPaths=this.expandedPaths.filter(e=>!e.startsWith(this.activePath)),this.setSelectionOrder()},this.update=e=>{Object(yt.has)(e,"isEditing")&&(this.isEditing=e.isEditing)},this.reset=()=>{this.isEditing=!1},this.sessionId=e.sessionId,this.isEditing=e.isEditing,this.activePath="",this.expandedPaths=[]}get session(){return no.get(this.sessionId)}jumpToParent(){const e=this.activePath.split("::").slice(0,-1).join("::");""!=e&&(this.activePath=e)}setSelectionOrder(){var e,t;if(!(null===(e=this.session)||void 0===e?void 0:e.script))throw Bt("SessionSelectionTree.setSelectionOrder","Unable to resolve recordIds",{sessionId:this.sessionId,scriptId:null===(t=this.session)||void 0===t?void 0:t.scriptId});const{recordIds:n}=this.session.script;let o=n.map((e,t)=>`[${t}]`);this.expandedPaths.forEach(e=>{const{value:t,model:r}=zn(e,n),i=o.findIndex(t=>t===e),s=[];if(s.push(o[i]),Array.isArray(t))if(t.length<=100)s.push(...Array.from({length:t.length}).map((t,n)=>`${e}::[${n}]`));else{const n=Math.floor(t.length/100);s.push(...Array.from({length:n}).map((t,n)=>`${e}::[${100*n}-${100*(n+1)-1}]`)),t.length%100!=0&&s.push(`${e}::[${100*n}-${100*n+t.length%100-1}]`)}else null!==t&&r&&s.push(...r.fields.map(t=>`${e}::${t.name}`));o=[...o.slice(0,i),...s,...o.slice(i+1)]}),this.selectionOrder=o}}Un([c.observable],Yn.prototype,"sessionId",void 0),Un([c.observable],Yn.prototype,"isEditing",void 0),Un([c.observable],Yn.prototype,"activePath",void 0),Un([c.observable],Yn.prototype,"expandedPaths",void 0),Un([c.observable],Yn.prototype,"selectionOrder",void 0),Un([c.computed],Yn.prototype,"session",null),Un([c.action],Yn.prototype,"select",void 0),Un([c.action],Yn.prototype,"move",void 0),Un([c.action],Yn.prototype,"expand",void 0),Un([c.action],Yn.prototype,"collapse",void 0),Un([c.action],Yn.prototype,"jumpToParent",null),Un([c.action],Yn.prototype,"setSelectionOrder",null),Un([c.action],Yn.prototype,"update",void 0),Un([c.action],Yn.prototype,"reset",void 0);var qn=Yn,Kn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class $n{constructor(e){this.table=new Bn(e.table),this.tree=new qn(e.tree)}}Kn([c.observable],$n.prototype,"table",void 0),Kn([c.observable],$n.prototype,"tree",void 0);var Qn=$n,Xn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Jn extends Jt{constructor(e){var t,n;super(e),this.createUncommittedRecord=()=>{if(!this.isScript)return;const e=fo.add({type:"create",recordId:null,sessionId:this.id,value:{modelId:this.script.modelId}});fo.add({type:"update",recordId:e.recordId,sessionId:this.id,value:this.script.model.fields.reduce((e,t)=>(t.isId?e[t.name]=void 0:void 0!==t.default?t.isFunctionDefault?e[t.name]=void 0:e[t.name]=t.default:e[t.name]=t.lowestValidValue,e),{})})},this.update=(e,t={})=>{Object(yt.has)(e,"lastSavedHash")&&(this.lastSavedHash=e.lastSavedHash),super.update(e,t)},this.serialize=()=>({projectId:Jo.activeProjectId,id:this.id,type:this.type,lastSavedHash:this.lastSavedHash,scriptId:this.scriptId}),this.id=e.id,this.type=e.type,this.scriptId=null!==(t=e.scriptId)&&void 0!==t?t:null,this.lastSavedHash=null!==(n=e.lastSavedHash)&&void 0!==n?n:this.hash,this.selection=new Qn({table:{sessionId:this.id,selectedRecordIds:[]},tree:{sessionId:this.id,isEditing:!1}})}get script(){if(!this.isScript)throw Bt("Session.script","Invalid `get` call to script: Session is not a `script` type",{type:this.type,scriptId:this.scriptId});const e=Wo.get(this.scriptId);if(!e)throw Bt("Session.script","Invalid scriptId in session",{type:this.type,scriptId:this.scriptId});return e}get name(){return this.isScript?this.script.model.name:"Session Name"}get isScript(){return"script"===this.type}get isModelList(){return"model-list"===this.type}get isDirty(){return this.isScript?!this.script.frozen&&(null===this.script.name||null!==this.script.name&&this.lastSavedHash!==this.hash):this.lastSavedHash!==this.hash}get hash(){return this.isScript?this.script.hash:""}forceSave(){this.isDirty&&this.update({lastSavedHash:this.hash})}discardChanges(){if(this.isScript)try{const{code:e,modelId:t,where:n,fieldIds:o,sortFieldId:r,sortOrder:i}=JSON.parse(this.lastSavedHash);this.script.update({code:e,modelId:t,where:n,fieldIds:o,sort:{fieldId:r,order:i}})}catch(e){console.log("Could not restore session",e)}}}Xn([c.observable],Jn.prototype,"id",void 0),Xn([c.observable],Jn.prototype,"type",void 0),Xn([c.observable],Jn.prototype,"scriptId",void 0),Xn([c.observable],Jn.prototype,"lastSavedHash",void 0),Xn([c.computed],Jn.prototype,"script",null),Xn([c.computed],Jn.prototype,"name",null),Xn([c.computed],Jn.prototype,"isScript",null),Xn([c.computed],Jn.prototype,"isModelList",null),Xn([c.computed],Jn.prototype,"isDirty",null),Xn([c.computed],Jn.prototype,"hash",null),Xn([c.action],Jn.prototype,"createUncommittedRecord",void 0),Xn([c.action],Jn.prototype,"forceSave",null),Xn([c.action],Jn.prototype,"discardChanges",null),Xn([c.action],Jn.prototype,"update",void 0);var Zn=Jn,eo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class to extends Qt{constructor(){super(Zn,{idbTableName:"sessions"}),this.findOrCreate=({scriptId:e})=>Object.values(this.values).find(t=>t.scriptId===e)||this.add({type:"script",scriptId:e,lastSavedHash:null}),this.remove=e=>{const t=super.remove(e);return Object.values(fo.values).forEach(t=>{t.sessionId===e&&fo.remove(t.id)}),t}}}eo([c.action],to.prototype,"findOrCreate",void 0),eo([c.action],to.prototype,"remove",void 0);var no=new to;const oo=(e,t)=>{if(!e.isRequired&&null===t)return!0;if(void 0===t&&void 0!==e.default)return!0;const n=e.typeAsEnum;return!!n&&n.values.includes(t)},ro=(e,t)=>{if(!e.isRequired&&null===t)return!0;if(e.isRequired&&!t)return!1;return!!e.typeAsModel&&void 0!==t},io=(e,t)=>!e.isRequired&&null===t||(!e.isRequired||null!==t)&&(void 0===t&&void 0!==e.default||(!e.isString||"string"==typeof t)&&((!e.isInt||"number"==typeof t)&&((!e.isFloat||"number"==typeof t)&&((!e.isBoolean||"boolean"==typeof t)&&((!e.isDateTime||!isNaN(Date.parse(String(t))))&&(!e.isJson||"object"==typeof t))))));var so=(e,t)=>e.isList?!!Array.isArray(t)&&t.every(t=>e.isEnum?oo(e,t):e.isRelation?ro(e,t):io(e,t)):e.isEnum?oo(e,t):e.isRelation?ro(e,t):io(e,t);var ao=e=>{const t=fo.get(e);if(!t)throw Bt("isActionValid","Invalid action",{actionId:e});const n=bo.get(t.recordId);if(!n)return!1;const o=n.model;if(!o)return!1;const r=Object.keys(t.value);switch(t.type){case"create":return!!En.get(t.value.modelId);case"delete":return!!bo.get(t.recordId);case"update":return r.every(e=>{const n=o.getFieldByName(e),r=t.value[e];return!!n&&so(n,r)});default:return!1}},lo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class uo extends Jt{constructor(e){if(super(e),this.serialize=()=>({projectId:Jo.activeProjectId,id:this.id,type:this.type,recordId:this.recordId,sessionId:this.sessionId,value:Object(c.toJS)(this.value)}),this.id=e.id,this.recordId=e.recordId,this.sessionId=e.sessionId,this.type=e.type,this.value=e.value,"create"===this.type){const t="tmp-"+this.id;if(!En.get(e.value.modelId))throw Bt("Action.constructor","Invalid `modelId` for `create` action",{modelId:e.value.modelId});bo.add({id:t,modelId:e.value.modelId,value:{}}),this.recordId=t}}get record(){return this.recordId?bo.get(this.recordId):null}get session(){return no.get(this.sessionId)}get isValid(){return ao(this.id)}update(e,t={}){Object(yt.has)(e,"recordId")&&(this.recordId=e.recordId),Object(yt.has)(e,"sessionId")&&(this.sessionId=e.sessionId),Object(yt.has)(e,"value")&&(this.value=e.value),super.update(e,t)}}lo([c.observable],uo.prototype,"id",void 0),lo([c.observable],uo.prototype,"recordId",void 0),lo([c.observable],uo.prototype,"sessionId",void 0),lo([c.observable],uo.prototype,"type",void 0),lo([c.observable],uo.prototype,"value",void 0),lo([c.computed],uo.prototype,"record",null),lo([c.computed],uo.prototype,"session",null),lo([c.computed],uo.prototype,"isValid",null),lo([c.action],uo.prototype,"update",null);var co=uo,po=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class ho extends Qt{constructor(){super(co,{idbTableName:"actions"}),this.committing=!1,this.add=(e,t={})=>{var n;const o=super.add(e,t);return this.consolidate(),this.actions.length>0&&(null===(n=qo.activeTab)||void 0===n||n.update({preview:!1}),Pn.updateActions({visible:!0})),o},this.remove=e=>{const t=super.remove(e);return 0===this.actions.length&&Pn.updateActions({visible:!1}),t},this.commit=Object(c.flow)((function*(){var e,t;if(this.invalidActions.length>0)return console.error("Commit failed: Some actions are invalid",this.invalidActions),Nn.update({type:"fatal",title:"Failed to commit changes.",subtitle:"Some actions are invalid",dump:"Invalid actions: \n"+JSON.stringify(this.invalidActions,null,2),stacktrace:"",context:null,telemetry:!1}),void Pn.updateError({visible:!0});try{const n=this.actions,o=Vn(n.map(e=>e.id));this.committing=!0;for(let e=0;e<o.length;e++)yield Wn(o[e]);(null===(t=null===(e=qo.activeTab)||void 0===e?void 0:e.session)||void 0===t?void 0:t.isScript)&&(this.actions.filter(e=>"create"===e.type).forEach(e=>{var t;return null===(t=e.record)||void 0===t?void 0:t.model.update({count:e.record.model.count+1})}),this.actions.filter(e=>"delete"===e.type).forEach(e=>{var t;return null===(t=e.record)||void 0===t?void 0:t.model.update({count:e.record.model.count-1})})),this.discard()}catch(e){Nn.update({type:"fatal",title:"Failed to commit changes.",subtitle:"An error occurred while committing your changes to your database.",dump:e.message,stacktrace:e.stack,context:{query:e.query},telemetry:e.telemetry||!1}),Pn.updateError({visible:!0})}this.committing=!1})),this.discard=()=>{const e=[...this.actions];for(let t=0;t<e.length;t++)this.remove(e[t].id);Pn.updateActions({visible:!1})},this.consolidate=()=>{const e=Object.values(this.values).map(e=>e.id),t=[],n=(o,r)=>{const i=this.get(o);if(!i)return;const s=e.findIndex((e,t)=>{if(t<=r)return!1;const n=this.get(e);return!!n&&(n.sessionId===i.sessionId&&n.recordId===i.recordId&&n.type===i.type)});if(-1===s)return;const a=this.get(e[s]);return a?(i.update({value:Object.assign(Object.assign({},i.value),a.value)}),t.push(e[s]),e.splice(s,1),n(o,r)):void 0};e.forEach(n),t.forEach(e=>this.remove(e))}}get actions(){return Object.values(this.values).filter(e=>{var t;return e.sessionId===(null===(t=qo.activeTab)||void 0===t?void 0:t.sessionId)})}get invalidActions(){return this.actions.filter(e=>!e.isValid)}}po([c.observable],ho.prototype,"committing",void 0),po([c.computed],ho.prototype,"actions",null),po([c.computed],ho.prototype,"invalidActions",null),po([c.action],ho.prototype,"add",void 0),po([c.action],ho.prototype,"remove",void 0),po([c.action],ho.prototype,"discard",void 0),po([c.action],ho.prototype,"consolidate",void 0);var fo=new ho;var go=e=>"number"==typeof e||"boolean"==typeof e?""+e:"string"==typeof e?`"${e}"`:JSON.stringify(e);var vo=e=>{const t=bo.get(e);if(!t)throw Bt("getFindOneQuery","Invalid recordId",{recordId:e});const n=t.model,o=n.idFields.map(e=>` ${e.name}: ${go(t.value[e.name])}`).join(",\n");return[`prisma.${n.photonNamespace}.findOne({`," where: {",o," },"," select: {"," "+n.fields.map(e=>e.name+": true").join(",\n ")," }","})"].join("\n")},mo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class yo extends Jt{constructor(e){super(e),this.fetchRelations=async()=>{try{if(!this.isCommitted)return;await Wn(vo(this.id))}catch(e){Nn.update({type:"script",title:"Failed to fetch record.",subtitle:"Error in Prisma Client",dump:e.message,stacktrace:e.stack,context:{query:e.query},telemetry:e.telemetry}),Pn.updateError({visible:!0})}},this.id=e.id,this.valueInDB=e.value||{},this.modelId=e.modelId}get model(){let e=En.get(this.modelId);if(!e)throw Bt("Record.model","Invalid modelId",{modelId:this.modelId});return e}get value(){const e=fo.actions.filter(e=>e.recordId===this.id&&"update"===e.type);if(0==e.length)return this.valueInDB;const t=e[0];return this.model.fields.reduce((e,n)=>{var o,r,i;if(void 0===t.value[n.name])return e[n.name]=this.valueInDB[n.name],e;if(n.isScalar||n.isEnum)return e[n.name]=t.value[n.name],e;if(n.isRelation&&!n.isList){const r=t.value[n.name];return e[n.name]=(null===(o=bo.get(r))||void 0===o?void 0:o.value)||null,e}return n.isRelation&&n.isList?(e[n.name]=(null!==(i=null!==(r=t.value[n.name])&&void 0!==r?r:this.valueInDB[n.name])&&void 0!==i?i:[]).map(e=>{var t;return(null===(t=bo.get(e))||void 0===t?void 0:t.value)||null}),e):e},{})}get isCommitted(){return 0===fo.actions.filter(e=>e.recordId===this.id&&"create"===e.type).length}get dirtyFieldNames(){if(!this.isCommitted)return this.model.fields.map(e=>e.name);const e=fo.actions.filter(e=>e.recordId===this.id).reduce((e,t)=>(Object.keys(t.value).forEach(t=>{e.add(t)}),e),new Set);return Array.from(e)}get invalidFieldNames(){return Object.keys(this.value).filter(e=>{const t=this.model.getFieldByName(e);return!!t&&!so(t,this.value[e])})}update(e,t={}){Object(yt.has)(e,"value")&&(this.valueInDB=Object.assign(Object.assign({},this.valueInDB),e.value)),super.update(e,t)}}mo([c.observable],yo.prototype,"id",void 0),mo([c.observable],yo.prototype,"modelId",void 0),mo([c.observable],yo.prototype,"valueInDB",void 0),mo([c.computed],yo.prototype,"model",null),mo([c.computed],yo.prototype,"value",null),mo([c.computed],yo.prototype,"isCommitted",null),mo([c.computed],yo.prototype,"dirtyFieldNames",null),mo([c.computed],yo.prototype,"invalidFieldNames",null),mo([c.action],yo.prototype,"update",null),mo([c.action],yo.prototype,"fetchRelations",void 0);var Co=yo,wo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Eo extends Qt{constructor(){super(Co)}add(e,t={}){var n;const o=null!==(n=e.id)&&void 0!==n?n:bn(e.modelId,e.value);if(!o)throw Bt("RecordStore.add","Unable to determine ID for record to create",{record:e});const r=super.add(Object.assign({id:o},e));return Object.keys(e.value).forEach(n=>{var o;const i=r.model.getFieldByName(n);if(!i)throw Bt("RecordStore.add","Invalid field name",{fieldName:n,recordValue:e.value});if(!i.isRelation)return;const s=null===(o=i.typeAsModel)||void 0===o?void 0:o.id;if(!s)throw Bt("RecordStore.add","Unable to create related records",{fieldId:i.id,type:i.type});if(i.isList)e.value[n].map(e=>{const n=bn(s,e);!this.get(n)&&e&&this.add({modelId:s,value:e},t)});else if(null!==e.value[n]){const o=bn(s,e.value[n]);!this.get(o)&&e.value[n]&&this.add({modelId:s,value:e.value[n]},t)}}),r}}wo([c.action],Eo.prototype,"add",null);var bo=new Eo;var _o=new class{constructor(){this.inputTypes=new Map,this.removeUnusedModels=e=>{const{models:t}=e.datamodel;Object(yt.difference)(Object.values(En.values).map(e=>e.id),t.map(e=>nn(e.name))).forEach(e=>{Object.values(fo.values).forEach(t=>{var n;(null===(n=t.session)||void 0===n?void 0:n.isScript)&&t.session.script.modelId===e&&fo.remove(t.id)}),Object.values(qo.values).forEach(t=>{var n;(null===(n=t.session)||void 0===n?void 0:n.isScript)&&t.session.script.modelId===e&&qo.remove(t.id)}),Object.values(no.values).forEach(t=>{(null==t?void 0:t.isScript)&&t.script.modelId===e&&no.remove(t.id)}),En.remove(e)})},this.removeUnusedFields=e=>{const{models:t}=e.datamodel;Object(yt.difference)(Object.values(fn.values).map(e=>e.id),Object(yt.flatten)(t.map(e=>e.fields.map(t=>hn(nn(e.name),t.name))))).forEach(e=>fn.remove(e))},this.removeUnusedEnums=e=>{const{enums:t}=e.datamodel;Object(yt.difference)(Object.values(un.values).map(e=>e.id),t.map(e=>on(e.name))).forEach(e=>un.remove(e))}}hydrate(e){e.schema.inputTypes.forEach(e=>this.inputTypes.set(e.name,e));const{models:t,enums:n}=e.datamodel;t.forEach(t=>{var n;const o=En.add({name:t.name,plural:(null===(n=e.mappings.find(e=>e.model===t.name))||void 0===n?void 0:n.plural)||t.name,fieldIds:[],idFieldIds:[],uniqueFieldIds:[]}),r=t.fields.map(e=>fn.add({id:hn(o.id,e.name),modelId:o.id,name:e.name,type:e.type,kind:e.kind,default:e.default,isId:e.isId,isUnique:e.isUnique,isRequired:e.isRequired,isList:e.isList,isReadOnly:e.isReadOnly,isUpdatedAt:e.isUpdatedAt,isCreatedAt:e.isCreatedAt,relationFromFieldNames:e.relationFromFields||[],relationToFieldNames:e.relationToFields||[]}).id),i=t.idFields.map(e=>hn(o.id,e));let s=[];t.uniqueFields.length>0&&(s=t.uniqueFields[0].map(e=>hn(o.id,e))),o.update({fieldIds:r,idFieldIds:i,uniqueFieldIds:s})}),n.forEach(e=>{un.add({name:e.name,values:e.values})})}},Oo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Ro extends Jt{constructor(e){super(e),this.update=e=>{Object(yt.has)(e,"fieldId")&&(this.fieldId=e.fieldId),Object(yt.has)(e,"operation")&&(this.operation=e.operation),Object(yt.has)(e,"value")&&(this.value=e.value)},this.serialize=()=>({id:String(this.id),fieldId:String(this.fieldId),operation:this.operation,value:String(this.value)}),this.id=e.id,this.fieldId=e.fieldId,this.operation=e.operation||this.supportedOperations[0],this.value=e.value}get field(){const e=fn.get(this.fieldId);if(!e)throw Bt("ScriptWhereItem.field","Invalid fieldId",{fieldId:this.fieldId});return e}get supportedOperations(){let e;if(this.field.isRequired&&this.field.isString)e="StringFilter";else if(!this.field.isRequired&&this.field.isString)e="NullableStringFilter";else if(this.field.isRequired&&this.field.isInt)e="IntFilter";else if(!this.field.isRequired&&this.field.isInt)e="NullableIntFilter";else if(this.field.isRequired&&this.field.isFloat)e="FloatFilter";else if(!this.field.isRequired&&this.field.isFloat)e="NullableFloatFilter";else if(this.field.isRequired&&this.field.isBoolean)e="BooleanFilter";else if(!this.field.isRequired&&this.field.isBoolean)e="NullableBooleanFilter";else if(this.field.isRequired&&this.field.isDateTime)e="DateTimeFilter";else{if(this.field.isRequired||!this.field.isDateTime)throw Bt("ScriptWhere.supportedOperations","Unsupported field for `where` filter",{field:this.field.serialize()});e="NullableDateTimeFilter"}const t=_o.inputTypes.get(e);if(!t)throw Bt("ScriptWhere.supportedOperations","Could not find appropriate InputType for this field type. This should never happen.",{field:this.field.serialize()});return t.fields.map(e=>e.name)}get isValid(){return!(!this.operation||void 0===this.value||null===this.value)&&this.supportedOperations.includes(this.operation)}}Oo([c.observable],Ro.prototype,"id",void 0),Oo([c.observable],Ro.prototype,"fieldId",void 0),Oo([c.observable],Ro.prototype,"operation",void 0),Oo([c.observable],Ro.prototype,"value",void 0),Oo([c.computed],Ro.prototype,"field",null),Oo([c.computed],Ro.prototype,"supportedOperations",null),Oo([c.computed],Ro.prototype,"isValid",null),Oo([c.action],Ro.prototype,"update",void 0);class So extends Qt{constructor({modelId:e}){super(Ro),this.serialize=()=>Object.values(this.values).map(e=>e.serialize()),this.modelId=e}get model(){let e=En.get(this.modelId);if(!e)throw Bt("ScriptWhere.model","Invalid modelId",{modelId:this.modelId});return e}get supportedFields(){return this.model.fields.filter(e=>e.isString||e.isInt||e.isFloat||e.isBoolean||e.isDateTime)}}Oo([c.observable],So.prototype,"modelId",void 0),Oo([c.computed],So.prototype,"model",null),Oo([c.computed],So.prototype,"supportedFields",null);var To=So,Po=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Do{constructor(e){this.take=e.take,this.skip=e.skip}update(e={}){Object(yt.has)(e,"take")&&(this.take=e.take),Object(yt.has)(e,"skip")&&(this.skip=e.skip)}reset(){this.update({take:100,skip:0})}}Po([c.observable],Do.prototype,"take",void 0),Po([c.observable],Do.prototype,"skip",void 0),Po([c.action],Do.prototype,"update",null),Po([c.action],Do.prototype,"reset",null);var Ao=Do,No=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class xo{constructor(e){this.fieldId=e.fieldId,this.order=e.order}get field(){return fn.get(this.fieldId)}update(e={}){Object(yt.has)(e,"fieldId")&&(this.fieldId=e.fieldId),Object(yt.has)(e,"order")&&(this.order=e.order)}reset(){this.update({fieldId:null,order:"asc"})}}No([c.observable],xo.prototype,"fieldId",void 0),No([c.observable],xo.prototype,"order",void 0),No([c.computed],xo.prototype,"field",null),No([c.action],xo.prototype,"update",null),No([c.action],xo.prototype,"reset",null);var Io=xo;var Fo=e=>Array.from(new Set(e));var Mo=({modelId:e,where:t,fieldIds:n=[],sort:o,pagination:r})=>{const i=[],s=En.get(e);if(!s)throw Bt("getFindManyQuery","Invalid modelId",{modelId:e});if(i.push(`prisma.${s.photonNamespace}.findMany({`),t&&(null==t?void 0:t.size)>0&&(i.push(" where: {"),Object.values(t.values).forEach(e=>{if(!e.isValid)return;const t=e.field.isInt||e.field.isFloat?Number(e.value):String(e.value);i.push(` ${e.field.name}: {`),i.push(` ${e.operation}: ${go(t)},`),i.push(" },")}),i.push(" },")),(null==o?void 0:o.fieldId)&&(null==o?void 0:o.order)){const e=fn.get(o.fieldId);if(!e)throw Bt("getFindManyQuery","Invalid sort fieldId",{sort:o});i.push(" orderBy: {"),i.push(` ${e.name}: "${o.order}",`),i.push(" },")}void 0!==(null==r?void 0:r.take)&&null!==r.take&&i.push(` take: ${Number(r.take)},`),void 0!==(null==r?void 0:r.skip)&&null!==r.skip&&i.push(` skip: ${go(Number(r.skip))},`),n=Fo([].concat(s.idFields.map(e=>e.id),n));const a=((e,t)=>t.slice().sort((t,n)=>e.fieldIds.findIndex(e=>e===t)-e.fieldIds.findIndex(e=>e===n)))(s,n).map(e=>fn.get(e));return i.push(" select: {"),a.forEach(e=>{e&&i.push(` ${e.name}: true,`)}),i.push(" }"),i.push("})"),i.join("\n")};var Lo=({code:e,modelId:t,where:n,fieldIds:o})=>JSON.stringify({code:e,modelId:t,where:n.serialize(),fieldIds:o}),ko=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Go extends Jt{constructor(e){super(e),this.run=async()=>{if(!this.model)throw Bt("Script.run","Invalid modelId",{modelId:this.modelId});this.update({running:!0}),Pn.updateError({visible:!1});try{this.model.runCountQuery();const e=this.frozen||"visual"===this.inputMode?Mo({modelId:this.modelId,where:this.where,fieldIds:this.fieldIds,sort:this.sort,pagination:this.pagination}):this.code,{recordIds:t,modelId:n,fieldIds:o}=await Wn(e);this.update({recordIds:t}),"visual"===this.inputMode&&this.update({code:e}),"code"===this.inputMode&&this.update({modelId:n,fieldIds:o})}catch(e){console.log("Script run failed: ",e,{query:this.code}),Nn.update({type:"script",title:"Failed to run script.",subtitle:"Error in Prisma Client",dump:e.message,stacktrace:e.stack,context:{query:e.query},telemetry:e.telemetry}),Pn.updateError({visible:!0})}finally{this.update({running:!1})}},this.loadMore=async()=>{if(this.__recordIds.length>=this.model.count||"code"===this.inputMode)return[];this.update({running:!0});const e=Mo({modelId:this.modelId,where:this.where,fieldIds:this.fieldIds,sort:this.sort,pagination:{take:100,skip:this.pagination.skip+this.__recordIds.length}});try{const{recordIds:t}=await Wn(e),n=Fo([...this.__recordIds,...t]);return this.update({running:!1,recordIds:n,pagination:{take:n.length}}),t.map(e=>bo.get(e)).filter(e=>!!e)}catch(e){throw this.update({running:!1}),Nn.update({type:"script",title:"Failed to fetch more records",subtitle:"Error in Prisma Client",dump:e.message,stacktrace:e.stack,context:{query:e.query},telemetry:e.telemetry}),Pn.updateError({visible:!0}),Bt("Script.loadMore","Unable to fetch next page of records",{take:this.pagination.take,skip:this.pagination.skip,lastFetchedRecordId:Object(yt.last)(this.__recordIds)},e)}},this.update=(e,t={})=>{Object(yt.has)(e,"name")&&(this.name=e.name),Object(yt.has)(e,"frozen")&&(this.frozen=e.frozen),Object(yt.has)(e,"modelId")&&(this.modelId=e.modelId),Object(yt.has)(e,"fieldIds")&&(this.fieldIds=e.fieldIds),Object(yt.has)(e,"inputMode")&&(this.inputMode=e.inputMode),Object(yt.has)(e,"viewMode")&&(this.viewMode=e.viewMode),Object(yt.has)(e,"sort")&&this.sort.update(e.sort),Object(yt.has)(e,"pagination")&&this.pagination.update(e.pagination),Object(yt.has)(e,"code")&&(this.code=e.code),Object(yt.has)(e,"recordIds")&&(this.__recordIds=e.recordIds.filter(e=>{var t;return(null===(t=bo.get(e))||void 0===t?void 0:t.modelId)===this.modelId})),Object(yt.has)(e,"running")&&(this.running=e.running),super.update(e,t)},this.serialize=()=>({projectId:Jo.activeProjectId,id:this.id,frozen:this.frozen,name:this.name,inputMode:this.inputMode,code:this.code,modelId:this.modelId,where:this.where.serialize(),fieldIds:this.fieldIds.map(e=>String(e)),sortFieldId:this.sort.fieldId,sortOrder:this.sort.order,viewMode:this.viewMode}),this.id=e.id,this.frozen=e.frozen,this.name=e.name,this.modelId=e.modelId,this.fieldIds=e.fieldIds||[],this.inputMode="visual",this.where=new To({modelId:e.modelId}),this.sort=new Io({fieldId:null,order:"asc"}),this.pagination=new Ao({take:100,skip:0}),this.viewMode="table",this.code=e.code||Mo({modelId:this.modelId,where:this.where,fieldIds:this.fieldIds,sort:this.sort,pagination:this.pagination}),this.__recordIds=[],this.running=!1}get hash(){return Lo({code:this.code,modelId:this.modelId,where:this.where,fieldIds:this.fieldIds})}get model(){let e=En.get(this.modelId);if(!e)throw Bt("Script.model","Invalid modelId",{modelId:this.modelId});return e}get fields(){return this.fieldIds.map(e=>{const t=fn.get(e);if(!t)throw Bt("Script.fields","Invalid fieldId",{fieldId:e});return t})}get recordIds(){const e=fo.actions.filter(e=>{var t;return"delete"===e.type&&(null===(t=e.record)||void 0===t?void 0:t.modelId)===this.modelId}).map(e=>e.recordId);return[...this.__recordIds.filter(t=>!e.includes(t))]}get records(){return this.recordIds.map(e=>bo.get(e)).filter(e=>!!e)}get uncommittedRecords(){return fo.actions.filter(e=>{var t;return"create"===e.type&&(null===(t=e.record)||void 0===t?void 0:t.modelId)===this.modelId}).map(e=>e.record).filter(e=>!e)}reset(){this.update({recordIds:[],inputMode:"visual",viewMode:"table",running:!1}),this.sort.reset(),this.pagination.reset()}}ko([c.observable],Go.prototype,"id",void 0),ko([c.observable],Go.prototype,"frozen",void 0),ko([c.observable],Go.prototype,"name",void 0),ko([c.observable],Go.prototype,"modelId",void 0),ko([c.observable],Go.prototype,"fieldIds",void 0),ko([c.observable],Go.prototype,"inputMode",void 0),ko([c.observable],Go.prototype,"where",void 0),ko([c.observable],Go.prototype,"sort",void 0),ko([c.observable],Go.prototype,"pagination",void 0),ko([c.observable],Go.prototype,"viewMode",void 0),ko([c.observable],Go.prototype,"code",void 0),ko([c.observable],Go.prototype,"running",void 0),ko([c.observable],Go.prototype,"__recordIds",void 0),ko([c.computed],Go.prototype,"hash",null),ko([c.computed],Go.prototype,"model",null),ko([c.computed],Go.prototype,"fields",null),ko([c.computed],Go.prototype,"recordIds",null),ko([c.computed],Go.prototype,"records",null),ko([c.computed],Go.prototype,"uncommittedRecords",null),ko([c.action],Go.prototype,"run",void 0),ko([c.action],Go.prototype,"loadMore",void 0),ko([c.action],Go.prototype,"update",void 0),ko([c.action],Go.prototype,"reset",null);var Vo=Go;var Wo=new class extends Qt{constructor(){super(Vo,{idbTableName:"scripts"})}},jo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Ho extends Jt{constructor(e){super(e),this.save=()=>{this.session&&(this.session.forceSave(),this.session.isScript&&!this.session.script.name&&this.session.script.update({name:"Copy of "+this.session.script.model.name}))},this.discardChanges=()=>{this.session&&this.session.discardChanges()},this.load=({modelId:e,scriptId:t,sessionId:n})=>{if(!n&&!t&&!e)throw Bt("Tab.load","Invaid params",{modelId:e,scriptId:t,sessionId:n});if(e){const n=En.get(e);if(!n)throw Bt("Tab.load","Invalid modelId",{modelId:e});t=Wo.add({frozen:!0,name:null,modelId:e,fieldIds:n.fieldIds}).id}t&&(n=no.add({type:"script",scriptId:t,lastSavedHash:null}).id),n&&this.update({sessionId:n}),fo.actions.length>0?Pn.updateActions({visible:!0}):Pn.updateActions({visible:!1})},this.update=(e,t={})=>(Object(yt.has)(e,"sessionId")&&(this.sessionId=e.sessionId),Object(yt.has)(e,"preview")&&(this.preview=e.preview),super.update(e,t)),this.serialize=()=>({projectId:Jo.activeProjectId,id:this.id,sessionId:this.sessionId,preview:this.preview}),this.id=e.id,this.sessionId=e.sessionId,this.preview=e.preview||!1,this.preview&&(this.disposer=Object(c.when)(()=>{var e;return!!(null===(e=this.session)||void 0===e?void 0:e.isDirty)},()=>{this.update({preview:!1})}))}get title(){var e;return(null===(e=this.session)||void 0===e?void 0:e.isScript)?this.session.script.name||this.session.script.model&&this.session.script.model.name:"+"}get session(){return no.get(this.sessionId)}clean(){this.disposer&&this.disposer()}}jo([c.observable],Ho.prototype,"id",void 0),jo([c.observable],Ho.prototype,"sessionId",void 0),jo([c.observable],Ho.prototype,"preview",void 0),jo([c.computed],Ho.prototype,"title",null),jo([c.computed],Ho.prototype,"session",null),jo([c.action],Ho.prototype,"save",void 0),jo([c.action],Ho.prototype,"discardChanges",void 0),jo([c.action],Ho.prototype,"load",void 0),jo([c.action],Ho.prototype,"update",void 0),jo([c.action],Ho.prototype,"clean",null);var Bo=Ho,zo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Uo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Yo extends Qt{constructor(){super(Bo,{idbTableName:"tabs"}),this.hydrate=({activeTabId:e,tabOrder:t})=>{t=t.filter(e=>!!this.get(e)),this.tabOrder=new Set([...t,"model-list-tab"]),e&&this.get(e)?this.switch({id:e}):this.switch({id:"model-list-tab"})},this.remove=e=>{var t,n;if(!this.get(e))return this.get("model-list-tab");const o=this.openTabs.findIndex(e=>e.id===this.activeTabId),r=this.openTabs.findIndex(t=>t.id===e),i=super.remove(e);if(this.tabOrder.delete(e),Object.values(fo.values).filter(e=>e.sessionId===i.sessionId).forEach(e=>fo.remove(e.id)),o===r){let e=r;e===this.openTabs.length-1&&(e=r-1),this.activeTabId=null!==(n=null===(t=this.openTabs[e])||void 0===t?void 0:t.id)&&void 0!==n?n:"model-list-tab"}return i},this.tabOrder=new Set,no.add({id:"model-list-session",type:"model-list",scriptId:null,lastSavedHash:null},{skipPersist:!0}),super.add({id:"model-list-tab",sessionId:"model-list-session",preview:!1},{skipPersist:!0}),this.tabOrder.add("model-list-tab"),this.activeTabId="model-list-tab"}get activeTab(){return this.get(this.activeTabId)}get openTabs(){return Array.from(this.tabOrder).map(e=>this.get(e)).filter(e=>!!e&&!!e.session)}get previewTab(){return Object.values(this.values).find(e=>e.preview)||null}add(e,t={}){var{modelId:n,scriptId:o,sessionId:r}=e,i=Uo(e,["modelId","scriptId","sessionId"]);let s;if(!r&&!o&&!n)throw Bt("TabStore.add","Invaid params",{modelId:n,scriptId:o,sessionId:r});if(n){const e=En.get(n);if(!e)throw Bt("TabStore.add","Invalid modelId",{modelId:n});o=Wo.add({frozen:!0,name:null,modelId:n,fieldIds:e.fieldIds}).id}return o&&(r=no.add({type:"script",scriptId:o,lastSavedHash:null}).id),r&&(s=super.add(Object.assign(Object.assign({},i),{sessionId:r}),t)),this.tabOrder.delete("model-list-tab"),this.tabOrder.add(s.id),this.tabOrder.add("model-list-tab"),s}switch({id:e,index:t}){if(!e&&void 0===t)throw Bt("TabStore.switch","Invalid params",{id:e,index:t});let n;e?n=this.get(e):void 0!==t&&(n=this.openTabs[t]),n||(n=this.get("model-list-tab")),this.activeTabId=n.id,fo.actions.length>0?Pn.updateActions({visible:!0}):Pn.updateActions({visible:!1})}}zo([c.observable],Yo.prototype,"activeTabId",void 0),zo([c.observable],Yo.prototype,"tabOrder",void 0),zo([c.computed],Yo.prototype,"activeTab",null),zo([c.computed],Yo.prototype,"openTabs",null),zo([c.computed],Yo.prototype,"previewTab",null),zo([c.action],Yo.prototype,"hydrate",void 0),zo([c.action],Yo.prototype,"add",null),zo([c.action],Yo.prototype,"switch",null),zo([c.action],Yo.prototype,"remove",void 0);var qo=new Yo,Ko=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class $o extends Jt{constructor(e){super(e),this.update=(e,t)=>{Object(yt.has)(e,"name")&&(this.name=e.name),Object(yt.has)(e,"path")&&(this.path=e.path),Object(yt.has)(e,"typings")&&(this.typings=e.typings),Object(yt.has)(e,"recentModelIds")&&(this.recentModelIds=e.recentModelIds),super.update(e,t)},this.id=e.id,this.name=e.name,this.path=e.path,this.typings=e.typings||"",this.recentModelIds=e.recentModelIds||[],Object(c.reaction)(()=>[qo.activeTabId,qo.tabOrder,tn.theme],()=>{tr.ready&&Kt.save("projects",this.serialize())},{fireImmediately:!0})}get recentModels(){return this.recentModelIds.map(e=>En.get(e)).filter(e=>!!e)}addRecentModel(e){this.recentModelIds.includes(e)&&(this.recentModelIds=this.recentModelIds.filter(t=>t!==e)),5===this.recentModelIds.length&&this.recentModelIds.pop(),this.recentModelIds.unshift(e)}serialize(){return{id:this.id,activeTabId:String(qo.activeTabId),tabOrder:Array.from(qo.tabOrder).map(e=>String(e)),recentModelIds:this.recentModelIds.map(e=>String(e)),theme:tn.theme}}}Ko([c.observable],$o.prototype,"id",void 0),Ko([c.observable],$o.prototype,"name",void 0),Ko([c.observable],$o.prototype,"path",void 0),Ko([c.observable],$o.prototype,"typings",void 0),Ko([c.observable],$o.prototype,"recentModelIds",void 0),Ko([c.computed],$o.prototype,"recentModels",null),Ko([c.action],$o.prototype,"addRecentModel",null),Ko([c.action],$o.prototype,"update",void 0);var Qo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Xo extends Qt{constructor(){super($o,{idbTableName:"projects"}),this.activeProjectId=null}get activeProject(){const e=this.activeProjectId;return e?this.get(e):null}switch(e){this.activeProjectId=e}}Qo([c.observable],Xo.prototype,"activeProjectId",void 0),Qo([c.computed],Xo.prototype,"activeProject",null),Qo([c.action],Xo.prototype,"switch",null);var Jo=new Xo,Zo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class er{constructor(){this.ready=!1,this.init=async()=>{console.time("Bootstrap Duration"),this.update({ready:!1}),this.disposeProjectReaction&&this.disposeProjectReaction();try{const e=await window.channels.photon.start();if(e.error)throw Bt("BootstrapStore.init","Error starting Prisma Client",{error:e.error});const{dmmf:t,typings:n}=e.data,o=await window.channels.project.getProject();if(o.error)throw Bt("BootstrapStore.init","Error fetching project",{error:o.error});const{id:r,name:i,path:s}=o.data;Jo.add({id:r,name:i,path:s,typings:n,recentModelIds:[]},{skipPersist:!0}),Jo.switch(r),await Kt.init({projectId:r}),_o.hydrate(t);for(let e of[Jo,fn,En,un,Wo,bo,no,fo,qo,Pn])await e.restore();_o.removeUnusedModels(t),_o.removeUnusedFields(t),_o.removeUnusedEnums(t);const a=Object.values(En.values);let l="Promise.all([\n";l+=a.reduce((e,t)=>e+=` ${gn({modelId:t.id})},\n`,""),l+="])";const{data:u}=await window.channels.photon.request(l);Array.isArray(u.response)&&u.response.forEach((e,t)=>a[t].update({count:e})),Object.values(Wo.values).filter(e=>e.frozen&&En.get(e.modelId)).forEach(e=>e.update({fieldIds:e.model.fieldIds}));const c=(await Kt.load("projects")).find(e=>e.id===r);c&&(qo.hydrate({activeTabId:c.activeTabId,tabOrder:c.tabOrder}),tn.apply(c.theme)),qo.activeTab||qo.switch({id:"model-list-tab"}),await Jo.activeProject.forceUpdate(),this.update({ready:!0}),console.timeEnd("Bootstrap Duration")}catch(e){throw this.update({ready:!0}),Nn.update({type:"fatal",title:"Failed to load project",subtitle:null,dump:e.message,stacktrace:e.stack,context:null,telemetry:!1}),Pn.updateError({visible:!0}),Bt("BootstrapStore.init","Studio bootstrap failed",{message:e.message,stack:e.stack},e)}window.requestIdleCallback(()=>{const e=Object.values(qo.openTabs).map(e=>e.sessionId);Object.values(no.values).filter(t=>!e.includes(t.id)).forEach(e=>no.remove(e.id));const t=Object.values(no.values).map(e=>e.scriptId);Object.values(Wo.values).filter(e=>!t.includes(e.id)&&null===e.name).forEach(e=>Wo.remove(e.id))})},this.update=(e={})=>{Object(yt.has)(e,"ready")&&(this.ready=e.ready)},this.init()}}Zo([c.observable],er.prototype,"ready",void 0),Zo([c.action],er.prototype,"init",void 0),Zo([c.action],er.prototype,"update",void 0);var tr=new er,nr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class or{constructor(e){Object(c.runInAction)(()=>{this.sessionId=e.sessionId})}get session(){return no.get(this.sessionId)}}nr([c.observable],or.prototype,"sessionId",void 0),nr([c.computed],or.prototype,"session",null);const rr=new or({sessionId:"model-list-session"}),ir=Object(s.createContext)(rr),sr=ir.Provider,ar=(ir.Consumer,ir);var lr=n(17),ur=n.n(lr);class cr extends a.a.PureComponent{render(){return a.a.createElement("div",{className:ur.a.container},a.a.createElement("div",{className:ur.a.tab1}),a.a.createElement("div",{className:ur.a.tab2}),a.a.createElement("div",{className:ur.a.tabEmptySpace}),a.a.createElement("div",{className:ur.a.filter1}),a.a.createElement("div",{className:ur.a.filter2}),a.a.createElement("div",{className:ur.a.filter3}),a.a.createElement("div",{className:ur.a.filter4}),a.a.createElement("div",{className:ur.a.separator}),a.a.createElement("div",{className:ur.a.button1}),a.a.createElement("div",{className:ur.a.btnSpace}," Getting things ready..."),a.a.createElement("div",{className:ur.a.table}))}}var pr=mt(cr);function dr(){return(dr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var hr=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M6.075 4.696l.049.047c.218.202.62.456 1.246.7 1.24.486 3.053.818 5.13.818s3.89-.332 5.13-.817c.626-.245 1.028-.499 1.246-.701l.05-.047a1.363 1.363 0 00-.05-.048c-.218-.202-.62-.456-1.246-.7-1.24-.485-3.053-.818-5.13-.818s-3.89.333-5.13.818c-.626.244-1.028.498-1.246.7a1.465 1.465 0 00-.05.048zM19 8.245c-.104.045-.21.088-.317.13-1.655.648-3.842 1.016-6.183 1.016-2.341 0-4.528-.368-6.184-1.016A10 10 0 016 8.245v3.673c.02.027.057.072.123.134.216.2.615.453 1.238.697 1.235.485 3.048.816 5.139.816s3.904-.331 5.14-.816c.622-.244 1.02-.497 1.237-.697a.944.944 0 00.123-.134V8.245zm0 7.31a10.16 10.16 0 01-.306.125c-1.654.648-3.84 1.016-6.194 1.016-2.353 0-4.54-.368-6.194-1.016A10.14 10.14 0 016 15.554v3.668c.02.028.057.072.123.134.216.2.615.454 1.238.698 1.235.484 3.048.816 5.139.816s3.904-.332 5.14-.816c.622-.244 1.02-.497 1.237-.698a.943.943 0 00.123-.134v-3.668zm.02 3.634s0 .003-.004.009a.03.03 0 01.004-.009zm-13.04 0l.004.009a.032.032 0 01-.004-.009zm16.02.115c0 1.037-.538 1.84-1.127 2.389-.59.548-1.358.97-2.179 1.291C17.04 23.632 14.854 24 12.5 24c-2.353 0-4.54-.367-6.194-1.016-.822-.322-1.59-.743-2.18-1.291C3.539 21.145 3 20.34 3 19.304V4.696c0-1.04.544-1.845 1.134-2.39.59-.547 1.36-.968 2.182-1.29C7.972.37 10.16 0 12.5 0s4.528.369 6.183 1.017c.823.321 1.592.742 2.183 1.289.59.545 1.134 1.35 1.134 2.39v14.608zm-2.983-14.72a.04.04 0 01.004-.008s0 .003-.004.008zm-13.034 0a.031.031 0 01-.004-.008l.004.008z"});var fr=function(e){return s.createElement("svg",dr({viewBox:"0 0 24 24"},e),hr)},gr=n(46),vr=n.n(gr),mr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};var yr=mt(e=>{var{className:t,children:n,ghost:o=!1,wide:r=!1,blue:i=!1,disabled:s,onClick:l}=e,u=mr(e,["className","children","ghost","wide","blue","disabled","onClick"]);return a.a.createElement("div",Object.assign({className:qe()(vr.a.container,{[vr.a.wide]:r,[vr.a.ghost]:o,[vr.a.blue]:i,[vr.a.disabled]:s},t),onClick:e=>{!s&&l&&l(e)}},u),n)}),Cr=n(73),wr=n.n(Cr),Er=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};var br=mt(e=>{var{className:t,children:n,onClick:o}=e,r=Er(e,["className","children","onClick"]);return a.a.createElement(yr,Object.assign({className:qe()(wr.a.container,t),onClick:o},r),n)}),_r=n(74),Or=n.n(_r);class Rr extends a.a.PureComponent{componentDidMount(){var e;const{target:t,keys:n,preventDefault:o,stopPropagation:r,onMatch:i}=this.props,s=null!==(e=null==t?void 0:t.current)&&void 0!==e?e:document;this.instance=Or()(s),this.instance.bind(n,(e,t)=>{o&&e.preventDefault(),r&&e.stopImmediatePropagation(),i(e,t)},"keydown")}componentWillUnmount(){this.instance.unbind(this.props.keys,"keydown")}render(){return a.a.createElement(a.a.Fragment,null)}}Rr.defaultProps={preventDefault:!0,stopPropagation:!0};var Sr=Rr,Tr=n(75),Pr=n.n(Tr);var Dr=mt(({className:e,onClick:t})=>a.a.createElement("div",{"data-cy":"mask",className:qe()(Pr.a.mask,e),onClick:t}));var Ar=(e,t={})=>{const n={top:0,bottom:0,left:0,right:0};return t.x||(t.x=0),t.y||(t.y=0),window.innerWidth-e.right<50?(n.right=window.innerWidth-e.right-t.x,delete n.left):(n.left=e.left+t.x,delete n.right),window.innerHeight-e.bottom<50?(n.bottom=window.innerHeight-e.top+t.y,delete n.top):(n.top=e.bottom+t.y,delete n.bottom),n},Nr=n(65),xr=n.n(Nr),Ir=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Fr extends a.a.PureComponent{constructor(){super(...arguments),this.state={top:0,bottom:0,left:0,right:0,minWidth:0}}componentDidMount(){this.setPosition(this.props)}componentWillReceiveProps(e){this.setPosition(e)}createTarget(){}setPosition({target:e,targetOffsetX:t,targetOffsetY:n}){if(!e)return;const{top:o,bottom:r,left:i,right:s}=e.current.getBoundingClientRect(),a=Object.assign({top:null,bottom:null,left:null,right:null},Ar({top:o,bottom:r,left:i,right:s},{x:t,y:n}));this.setState(Object.assign(Object.assign({},a),{minWidth:s-i}))}render(){const e=this.props,{className:t,domElementId:n,target:o,targetOffsetX:r,targetOffsetY:i,darken:s,children:l,onClickOutside:c}=e,p=Ir(e,["className","domElementId","target","targetOffsetX","targetOffsetY","darken","children","onClickOutside"]),{top:d,bottom:h,left:f,right:g,minWidth:v}=this.state;return a.a.createElement(a.a.Fragment,null,u.a.createPortal(a.a.createElement(a.a.Fragment,null,a.a.createElement(Dr,{className:qe()({[xr.a.transparent]:!s}),onClick:c}),a.a.createElement("div",Object.assign({"data-cy":"modal",className:qe()(xr.a.container,t),style:o&&{top:d,bottom:h,left:f,right:g,minWidth:v}},p),l)),document.getElementById(n)))}}Fr.defaultProps={domElementId:"modal-root",targetOffsetX:0,targetOffsetY:5,darken:!1};var Mr=mt(Fr);function Lr(){return(Lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var kr=s.createElement("path",{d:"M8.707 7.293a1 1 0 00-1.414 1.414l1.414-1.414zm7.071 9.9a1 1 0 001.414-1.415l-1.414 1.414zm-8.485-1.415a1 1 0 101.414 1.414l-1.414-1.414zm9.9-7.07a1 1 0 00-1.415-1.415l1.414 1.414zm-9.9 0l8.485 8.484 1.414-1.414-8.485-8.485-1.414 1.414zm1.414 8.484l8.485-8.485-1.414-1.414-8.485 8.485 1.414 1.414z",fill:"currentColor"});var Gr=function(e){return s.createElement("svg",Lr({width:24,height:24},e),kr)},Vr=n(66),Wr=n.n(Vr);var jr=mt(({className:e,children:t,onClose:n})=>a.a.createElement(Mr,{"data-cy":"dialog",className:qe()(Wr.a.container,e),domElementId:"dialog-root",darken:!0,onClickOutside:n},a.a.createElement(a.a.Fragment,null,t,n&&a.a.createElement(br,{className:Wr.a.closeButton,onClick:n},a.a.createElement(Gr,null))))),Hr=n(42),Br=n.n(Hr);class zr extends a.a.Component{render(){const{onCancel:e,onDiscard:t}=this.props;return a.a.createElement(jr,{className:Br.a.container,onClose:e},a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:Br.a.content},a.a.createElement("div",{className:Br.a.title},"Discard changes?"),a.a.createElement("div",{className:Br.a.subtitle},"This tab contains unsaved changes. Do you want to discard them?")),a.a.createElement("div",{className:Br.a.footer},a.a.createElement(yr,{"data-cy":"tab__discard--discard",className:Br.a.discardBtn,onClick:t},"Discard"),a.a.createElement(yr,{"data-cy":"tab__discard--cancel",ghost:!0,onClick:e},"Cancel"))))}}var Ur=mt(zr);function Yr(){return(Yr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var qr=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 1.714C14 .768 13.105 0 12 0s-2 .768-2 1.714V10H1.714C.768 10 0 10.895 0 12s.768 2 1.714 2H10v8.286c0 .947.895 1.714 2 1.714s2-.767 2-1.714V14h8.286c.947 0 1.714-.895 1.714-2s-.767-2-1.714-2H14V1.714z"});var Kr=function(e){return s.createElement("svg",Yr({viewBox:"0 0 24 24"},e),qr)},$r=n(26),Qr=n.n($r);class Xr extends a.a.PureComponent{constructor(){super(...arguments),this.state={isCloseDialogOpen:!1},this.handleClick=()=>{qo.switch({id:this.props.id})},this.handleDoubleClick=()=>{const e=qo.get(this.props.id);e&&e.preview&&e.update({preview:!1})},this.handleClose=e=>{var t;e&&e.stopPropagation(),e&&e.preventDefault();const n=qo.get(this.props.id);n&&((null===(t=n.session)||void 0===t?void 0:t.isDirty)?this.setState({isCloseDialogOpen:!0}):(qo.remove(this.props.id),this.setState({isCloseDialogOpen:!1})))},this.handleDiscardChanges=()=>{qo.remove(this.props.id),this.setState({isCloseDialogOpen:!1})},this.handleCancelClose=()=>{this.setState({isCloseDialogOpen:!1})}}render(){var e,t,n;const{isCloseDialogOpen:o}=this.state,{id:r}=this.props,i=qo.get(r),s=qo.activeTabId===r;return i&&i.session?a.a.createElement("div",{"data-cy":"tab","data-cy-active":s,"data-cy-dirty":null===(e=i.session)||void 0===e?void 0:e.isDirty,"data-cy-preview":i.preview,className:qe()(Qr.a.container,{[Qr.a.active]:s,[Qr.a.preview]:i.preview}),onClick:this.handleClick,onDoubleClick:this.handleDoubleClick},i.session.isModelList&&a.a.createElement("div",{"data-cy":"new-tab-btn",className:Qr.a.modelListTabIcon},a.a.createElement(Kr,null)),i.session.isScript&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{"data-cy":"tab__title",className:Qr.a.title},i.title),a.a.createElement(br,{"data-cy":"tab__close",className:qe()(Qr.a.closeButton,{[Qr.a.dirty]:null===(t=i.session)||void 0===t?void 0:t.isDirty}),onClick:this.handleClose},(null===(n=i.session)||void 0===n?void 0:n.isDirty)?a.a.createElement("div",{className:Qr.a.dirtyIndicator}):a.a.createElement(Kr,null)),o&&a.a.createElement(Ur,{onCancel:this.handleCancelClose,onDiscard:this.handleDiscardChanges})),a.a.createElement(Sr,{keys:"mod+w",onMatch:()=>this.handleClose()})):null}}var Jr=mt(Xr),Zr=n(76),ei=n.n(Zr);var ti=mt(({})=>a.a.createElement("div",{"data-cy":"tab-bar",className:ei.a.container},qo.openTabs.map(e=>a.a.createElement(Jr,{key:e.id,id:e.id})))),ni=n(52),oi=n.n(ni);var ri=mt(({className:e})=>a.a.createElement("div",{"data-cy":"header",className:qe()(oi.a.container,e),style:{flex:`0 0 ${Pn.header.height}px`}},a.a.createElement("div",{className:qe()(oi.a.connectivityIcon,{[oi.a.connected]:!0,[oi.a.disconnected]:!1})},a.a.createElement(fr,null)),a.a.createElement(ti,null)));function ii(){return(ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var si=s.createElement("path",{d:"M10.707 16.707a1 1 0 01-1.414-1.414l1.414 1.414zM14 12l.707-.707a1 1 0 010 1.414L14 12zM9.293 8.707a1 1 0 011.414-1.414L9.293 8.707zm0 6.586l4-4 1.414 1.414-4 4-1.414-1.414zm4-2.586l-4-4 1.414-1.414 4 4-1.414 1.414z"});var ai=function(e){return s.createElement("svg",ii({viewBox:"0 0 24 24"},e),si)},li=n(27),ui=n.n(li);class ci extends a.a.PureComponent{constructor(){super(...arguments),this.state={isStacktraceOpen:!1},this.toggleStacktrace=()=>{this.setState(e=>({isStacktraceOpen:!e.isStacktraceOpen}))}}render(){const{onClose:e}=this.props,{isStacktraceOpen:t}=this.state;return a.a.createElement(jr,{className:ui.a.container,onClose:e},a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:ui.a.header},a.a.createElement("div",{className:ui.a.title},Nn.title)),Nn.dump&&a.a.createElement("pre",{className:ui.a.dump},Nn.dump),Nn.stacktrace&&a.a.createElement("div",{className:ui.a.trace},a.a.createElement(br,{className:qe()(ui.a.toggleTraceButton,{[ui.a.open]:t}),onClick:this.toggleStacktrace},a.a.createElement(a.a.Fragment,null,a.a.createElement(ai,null),"Stacktrace")),t&&a.a.createElement("pre",{className:ui.a.traceText},Nn.stacktrace))))}}var pi=mt(ci),di=n(47),hi=n.n(di);class fi extends a.a.PureComponent{constructor(){super(...arguments),this.state={isErrorDialogOpen:!1},this.handleOpenErrorDialog=()=>{this.setState({isErrorDialogOpen:!0})},this.handleCloseErrorDialog=()=>{this.setState({isErrorDialogOpen:!1})},this.handleClose=e=>{e.stopPropagation(),e.preventDefault(),Pn.updateError({visible:!1})}}render(){const{isErrorDialogOpen:e}=this.state;return a.a.createElement("div",{"data-cy":"error",className:hi.a.container},a.a.createElement("div",{className:hi.a.content,onClick:this.handleOpenErrorDialog},a.a.createElement("div",{"data-cy":"error__title",className:hi.a.title},Nn.title),a.a.createElement("div",{"data-cy":"error__subtitle",className:hi.a.subtitle},Nn.subtitle)),a.a.createElement(br,{className:hi.a.closeButton,onClick:this.handleClose},a.a.createElement(a.a.Fragment,null,a.a.createElement(Kr,null)," Dismiss")),e&&a.a.createElement(pi,{onClose:this.handleCloseErrorDialog}))}}var gi=mt(fi),vi=n(48),mi=n.n(vi);var yi=mt(({})=>a.a.createElement(a.a.Fragment,null,a.a.createElement(Dr,null),a.a.createElement("div",{"data-cy":"error",className:qe()(mi.a.container,{[mi.a.visible]:Pn.error.visible})},a.a.createElement("div",{className:mi.a.pulsingDot}),a.a.createElement("div",{"data-cy":"error__title",className:mi.a.title},Nn.title),a.a.createElement("div",{"data-cy":"error__subtitle",className:mi.a.subtitle},Nn.subtitle),a.a.createElement(yr,{onClick:()=>window.transport.reconnect()},"Reconnect"))));function Ci(){return(Ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var wi=s.createElement("defs",null,s.createElement("linearGradient",{id:"bug_svg__a",x1:678.2,y1:821.79,x2:678.2,y2:493.4,gradientTransform:"rotate(-2.31 725.2 516.777)",gradientUnits:"userSpaceOnUse"},s.createElement("stop",{offset:0,stopColor:"gray",stopOpacity:.25}),s.createElement("stop",{offset:.54,stopColor:"gray",stopOpacity:.12}),s.createElement("stop",{offset:1,stopColor:"gray",stopOpacity:.1}))),Ei=s.createElement("ellipse",{cx:468.63,cy:660.88,rx:425,ry:33,fill:"#9f6bf4",opacity:.1}),bi=s.createElement("g",{opacity:.1},s.createElement("path",{d:"M845.05 472.84c-2.54-7.71-12.84-11.26-23-7.92a24.76 24.76 0 00-4.23 1.83c-.65-.18-1.32-.34-2-.46a22.42 22.42 0 00.63-6.79 24.6 24.6 0 0010.9-21.47 24.63 24.63 0 0010.86-21.47 23.76 23.76 0 008.23-9.32c4.9-9.7 2.87-20.6-4.54-24.35s-17.4 1.08-22.3 10.78a23.69 23.69 0 00-2.63 12.15 24.63 24.63 0 00-10.86 21.47 24.63 24.63 0 00-10.86 21.47 24.64 24.64 0 00-10.9 21.48 23.76 23.76 0 00-8.23 9.32 25.46 25.46 0 00-2.08 5.74 21.18 21.18 0 00-4.44-4.73 25.38 25.38 0 00-1-4.5c-3.34-10.17-12.3-16.37-20-13.83s-11.26 12.83-7.92 23a23.07 23.07 0 007.56 11.08 25.38 25.38 0 001 4.5c1.94 5.9 5.77 10.46 10.15 12.75a23.23 23.23 0 00-.83 3.9 25.29 25.29 0 00-7.54 14.91 25.27 25.27 0 00-7.54 14.92 24.63 24.63 0 00-5 6.81c-4.91 9.7-2.88 20.61 4.53 24.35s17.4-1.07 22.31-10.78a24.62 24.62 0 002.5-8.09 25.29 25.29 0 007.54-14.91 25.27 25.27 0 007.54-14.92 25.21 25.21 0 007.45-14.91 25.21 25.21 0 007.56-14.94 24.11 24.11 0 003.39-4 23.46 23.46 0 0012.27-.77 24.76 24.76 0 004.23-1.83 23.2 23.2 0 0013.42-.48c10.13-3.31 16.36-12.27 13.83-19.99z",fill:"#3f3d56"}),s.createElement("g",{opacity:.1},s.createElement("path",{d:"M827.12 442.44a21.5 21.5 0 01-3.44 2.75 23 23 0 01-1.11 8.43 26.18 26.18 0 002.1-3.43 24.64 24.64 0 002.45-7.75zM837.98 420.97a21.5 21.5 0 01-3.44 2.75 23 23 0 01-1.11 8.43 25.65 25.65 0 002.1-3.44 24.85 24.85 0 002.45-7.74zM813.35 412.98a21.91 21.91 0 01.17-4.41 24.93 24.93 0 00-4.78 6.57 25.63 25.63 0 00-1.52 3.73 22.75 22.75 0 016.13-5.89zM744.42 542.91a23.59 23.59 0 012.95-3.38 22.92 22.92 0 01.87-4 25.09 25.09 0 00-2.29 3.71 25.59 25.59 0 00-1.53 3.67zM751.96 528.01a23.59 23.59 0 012.95-3.38 23 23 0 01.83-3.9 25.68 25.68 0 00-2.2 3.59 26.76 26.76 0 00-1.58 3.69zM816.25 463.91a20.82 20.82 0 01-3.43 2.74 22.45 22.45 0 01-.63 6.79 18.75 18.75 0 012 .46 24.76 24.76 0 014.23-1.83c10.18-3.34 20.47.21 23 7.92a11.68 11.68 0 01.32 6c3.35-3.94 4.74-8.74 3.3-13.14-2.54-7.71-12.84-11.26-23-7.92a24.76 24.76 0 00-4.23 1.83c-.65-.18-1.32-.34-2-.46.19-.8.33-1.59.44-2.39zM740.7 550.4a25.09 25.09 0 00-2.29 3.71 26.56 26.56 0 00-1.54 3.74 24.48 24.48 0 013-3.4 22.92 22.92 0 01.83-4.05zM802.44 434.45a22 22 0 01.17-4.41 24.93 24.93 0 00-4.78 6.57 25.63 25.63 0 00-1.52 3.73 22.75 22.75 0 016.13-5.89zM786.75 522.01a24.29 24.29 0 01-1 4.38 26.67 26.67 0 002.09-3.44 25.49 25.49 0 001.63-4 24.23 24.23 0 01-2.72 3.06zM771.67 551.83a24.15 24.15 0 01-1 4.38 25.65 25.65 0 002.1-3.44 26.47 26.47 0 001.63-4 23.57 23.57 0 01-2.73 3.06zM779.21 536.91a24.11 24.11 0 01-1 4.38 26.67 26.67 0 002.14-3.38 25.49 25.49 0 001.63-4 24.23 24.23 0 01-2.77 3zM794.29 507.1a24 24 0 01-1 4.37 25.89 25.89 0 002.09-3.43 25.48 25.48 0 001.64-4.07 23.22 23.22 0 01-2.73 3.13zM744.92 469.39c7.72-2.53 16.68 3.66 20 13.83a25.68 25.68 0 011 4.51 21.18 21.18 0 014.44 4.73 25.53 25.53 0 012.08-5.75c.35-.68.73-1.33 1.12-2a21.07 21.07 0 00-4-4.18 25.38 25.38 0 00-1-4.5c-3.34-10.17-12.3-16.37-20-13.83-4.4 1.44-7.44 5.41-8.62 10.43a11.69 11.69 0 014.98-3.24zM780.72 477.39a21.85 21.85 0 01.18-4.4 24.73 24.73 0 00-4.79 6.57 25.07 25.07 0 00-1.52 3.72 23 23 0 016.13-5.89zM791.58 455.91a21.85 21.85 0 01.18-4.4 24.52 24.52 0 00-4.79 6.56 25.63 25.63 0 00-1.52 3.73 22.75 22.75 0 016.13-5.89zM764.13 566.74a24.25 24.25 0 01-1 4.39 25.73 25.73 0 003.73-7.49 23.57 23.57 0 01-2.73 3.1z"})),s.createElement("path",{d:"M859.87 373.62a23.68 23.68 0 008.23-9.32c4.91-9.7 2.88-20.61-4.53-24.36s-17.4 1.08-22.31 10.79a23.68 23.68 0 00-2.62 12.18 24.63 24.63 0 00-10.86 21.47 23.61 23.61 0 00-8.23 9.32 24.69 24.69 0 00-1.51 3.69 20.85 20.85 0 0110.77-8 12.24 12.24 0 0015.54 7.84 20.85 20.85 0 010 13.41 25.48 25.48 0 002.08-3.4 23.68 23.68 0 002.62-12.15 24.57 24.57 0 0010.86-21.47z",fill:"#3f3d56"}),s.createElement("path",{d:"M979.23 235.98a72 72 0 008.72-4.83l-32.33-23.62 38 19.57a72.13 72.13 0 0027-50.31l-64.58.66 64.72-10.82a72 72 0 10-142.58 18.28 72.09 72.09 0 00-13.26 8l33.75 46.93-40.52-41.08a72.08 72.08 0 00-20.17 65.61 72 72 0 10101.05 51.1 72 72 0 0040.2-79.49z",fill:"#9f6bf4"}),s.createElement("path",{d:"M844.35 217.66a71.77 71.77 0 00-6.35 46.71 72 72 0 10101.05 51.1c14.13-6.56-91.08-105.02-94.7-97.81z",opacity:.1}),s.createElement("circle",{cx:925.49,cy:102.72,r:10.69,fill:"#9f6bf4"}),s.createElement("circle",{cx:987.93,cy:109.58,r:10.69,fill:"#9f6bf4"}),s.createElement("circle",{cx:1012.01,cy:205.64,r:10.69,fill:"#9f6bf4"}),s.createElement("circle",{cx:979.51,cy:253.61,r:10.69,fill:"#9f6bf4"}),s.createElement("circle",{cx:935.11,cy:353.24,r:10.69,fill:"#9f6bf4"}),s.createElement("circle",{cx:935.11,cy:353.24,r:10.69,opacity:.1}),s.createElement("circle",{cx:836.39,cy:240.4,r:10.69,fill:"#9f6bf4"}),s.createElement("circle",{cx:836.39,cy:240.4,r:10.69,opacity:.1}),s.createElement("path",{d:"M824.99 416.23c-7.11-3.59-9.26-13.76-5.11-23.14-.22.38-.43.77-.63 1.18-4.91 9.7-2.88 20.6 4.53 24.35s17.4-1.08 22.3-10.78c.21-.4.39-.81.57-1.21-5.09 8.91-14.56 13.2-21.66 9.6zM814.43 437.11c-7.1-3.59-9.26-13.76-5.1-23.15-.22.39-.44.78-.64 1.18-4.91 9.7-2.88 20.61 4.53 24.35s17.4-1.07 22.31-10.78c.2-.4.39-.8.57-1.21-5.1 8.91-14.56 13.2-21.67 9.61zM803.87 457.98c-7.1-3.59-9.26-13.76-5.1-23.14-.22.38-.44.77-.64 1.18-4.91 9.7-2.87 20.6 4.54 24.35s17.39-1.08 22.3-10.78c.2-.4.39-.81.57-1.21-5.09 8.91-14.56 13.2-21.67 9.6zM793.35 478.91c-7.11-3.59-9.26-13.76-5.11-23.14-.22.38-.43.77-.64 1.17-4.9 9.7-2.87 20.61 4.54 24.36s17.4-1.08 22.3-10.79c.21-.4.39-.8.57-1.21-5.12 8.86-14.59 13.15-21.66 9.61zM782.76 499.73c-7.11-3.59-9.26-13.76-5.11-23.14-.22.38-.43.77-.63 1.18-4.91 9.7-2.88 20.6 4.53 24.35s17.4-1.08 22.31-10.78c.2-.4.39-.81.57-1.21-5.08 8.91-14.57 13.2-21.67 9.6zM772.2 520.61c-7.1-3.59-9.26-13.76-5.1-23.14-.22.38-.44.77-.64 1.17-4.91 9.7-2.88 20.61 4.54 24.36s17.35-1.09 22.35-10.79c.2-.4.39-.8.57-1.21-5.15 8.91-14.57 13.2-21.72 9.61zM761.64 541.48c-7.1-3.59-9.26-13.76-5.1-23.14-.22.39-.43.77-.64 1.18-4.9 9.7-2.87 20.6 4.54 24.35s17.4-1.08 22.3-10.78c.21-.4.39-.81.57-1.21-5.09 8.91-14.56 13.2-21.67 9.6zM751.09 562.36c-7.11-3.59-9.26-13.76-5.11-23.14q-.33.57-.63 1.17c-4.91 9.7-2.88 20.61 4.53 24.36s17.4-1.08 22.31-10.79c.2-.4.38-.8.56-1.21-5.09 8.91-14.56 13.16-21.66 9.61z",opacity:.1}),s.createElement("path",{d:"M744.15 576.08c-7.1-3.6-9.26-13.76-5.1-23.15-.22.39-.44.78-.64 1.18-4.91 9.7-2.88 20.61 4.53 24.35s17.4-1.07 22.31-10.78c.2-.4.39-.8.57-1.21-5.1 8.91-14.57 13.2-21.67 9.61z",opacity:.1}),s.createElement("path",{d:"M934.94 483.17a37.4 37.4 0 002-9.79 5.34 5.34 0 10-.81-10.62 37.31 37.31 0 00-19.64-25.31 5.344 5.344 0 10-9.54-4.82 5 5 0 00-.48 1.43 37.49 37.49 0 00-32.87 9.85 37.64 37.64 0 00-9.82-.29l-4.33 19.71-.26-19a37.42 37.42 0 1020 72 5.28 5.28 0 002.25 2.16 5.34 5.34 0 007.32-6.88 37.35 37.35 0 004.8-3.92 37.45 37.45 0 0039.31-19.83l-20.15-3.39z",fill:"#9f6bf4"}),s.createElement("path",{d:"M903.81 492.74c-7.44-9.82-12-21.45-17.25-32.61a136.38 136.38 0 00-7.07-13.36l-3.94-4.59c-.66.56-1.32 1.14-2 1.75a37.64 37.64 0 00-9.82-.29l-4.33 19.71-.26-19a37.42 37.42 0 1020 72 5.28 5.28 0 002.25 2.16 5.34 5.34 0 007.32-6.88 37.35 37.35 0 004.8-3.92 37.49 37.49 0 0022.44-3.32 52.71 52.71 0 01-12.14-11.65z",opacity:.1}),s.createElement("path",{d:"M772.06 450.54a5.34 5.34 0 00-4.78-7.75 37.37 37.37 0 00-11.7-20.83 37.52 37.52 0 001.1-11.7l-19.65-3.35 19.08-1.2a38 38 0 00-1.41-5.28 5.46 5.46 0 001.76-2 5.35 5.35 0 00-6.59-7.44 37.42 37.42 0 00-66.79 30.92 5.25 5.25 0 00-2.66 2.5 5.34 5.34 0 006.75 7.37 37.53 37.53 0 007.09 8.65 37.4 37.4 0 001.74 23.76l26.35-6.84-23.5 12.36a37.42 37.42 0 0068.91-16.26 5.33 5.33 0 004.3-2.91z",fill:"#9f6bf4"}),s.createElement("path",{d:"M772.06 450.54a5.34 5.34 0 00-4.78-7.75 37.37 37.37 0 00-11.7-20.83c.16-.63.3-1.25.42-1.88a13.18 13.18 0 00-1.93 1.71c-3.55 3.89-5.37 9.12-8.88 13.05-4.14 4.64-10.34 7.06-16.53 7.71s-12.42-.3-18.53-1.49c-5.06-1-10.19-2.16-15.32-1.67-.5 0-1 .11-1.46.19.3.29.6.58.91.86A37.4 37.4 0 00696 464.2l26.35-6.85-23.5 12.36a37.42 37.42 0 0068.91-16.26 5.33 5.33 0 004.3-2.91z",opacity:.1})),_i=s.createElement("g",{opacity:.1},s.createElement("path",{d:"M89.49 511.24c1.28-3.89 6.47-5.68 11.59-4a12.78 12.78 0 012.13.92c.33-.09.67-.17 1-.23a11.26 11.26 0 01-.32-3.42 12.46 12.46 0 01-5.47-10.82 11.92 11.92 0 01-4.14-4.69 12 12 0 01-1.33-6.12 12 12 0 01-4.14-4.7c-2.46-4.88-1.46-10.37 2.29-12.27s8.77.55 11.24 5.43a12 12 0 011.32 6.13 12.37 12.37 0 015.47 10.81 12.4 12.4 0 015.47 10.82 12.37 12.37 0 015.47 10.81 12 12 0 014.15 4.7 12.66 12.66 0 011 2.9 10.66 10.66 0 012.23-2.39 12.58 12.58 0 01.52-2.27c1.69-5.12 6.2-8.24 10.09-7s5.67 6.47 4 11.59a11.67 11.67 0 01-3.81 5.59 12.67 12.67 0 01-.52 2.26 11.1 11.1 0 01-5.11 6.42 12.84 12.84 0 01.42 2 12.57 12.57 0 012.53 3.43 12.32 12.32 0 011.26 4.08 12.55 12.55 0 012.54 3.43 12.39 12.39 0 011.26 4.08 12.45 12.45 0 012.54 3.44c2.47 4.88 1.45 10.38-2.28 12.26s-8.77-.54-11.24-5.43a12.48 12.48 0 01-1.26-4.08 12.7 12.7 0 01-3.8-7.51 12.7 12.7 0 01-3.8-7.51 12.6 12.6 0 01-2.54-3.43 12.73 12.73 0 01-1.26-4.08 12.57 12.57 0 01-2.53-3.43 12.32 12.32 0 01-1.26-4.08 11.63 11.63 0 01-1.71-2 11.9 11.9 0 01-6.18-.38 13.29 13.29 0 01-2.14-.93 11.61 11.61 0 01-6.75-.24c-5.07-1.69-8.2-6.2-6.93-10.09z",fill:"#3f3d56"}),s.createElement("g",{opacity:.1},s.createElement("path",{d:"M98.52 495.91a10.72 10.72 0 001.74 1.39 11.31 11.31 0 00.56 4.24 11.93 11.93 0 01-1.06-1.73 12.46 12.46 0 01-1.24-3.9zM93.05 485.11a11.21 11.21 0 001.74 1.38 11.39 11.39 0 00.56 4.25 12.7 12.7 0 01-2.3-5.63zM105.48 481.08a11.11 11.11 0 00-.08-2.22 12.66 12.66 0 012.41 3.31 13 13 0 01.76 1.88 11.42 11.42 0 00-3.09-2.97zM140.18 546.54a11.65 11.65 0 00-1.48-1.7 12.4 12.4 0 00-.44-2 13.23 13.23 0 011.15 1.86 13 13 0 01.77 1.84zM136.35 539.03a11.65 11.65 0 00-1.48-1.7 11.75 11.75 0 00-.42-2 12.67 12.67 0 011.88 3.68zM104 506.75a10.11 10.11 0 001.73 1.37 10.9 10.9 0 00.32 3.42 10 10 0 00-1 .23 13.26 13.26 0 00-2.14-.92c-5.12-1.68-10.31.11-11.58 4a5.82 5.82 0 00-.17 3 6.93 6.93 0 01-1.66-6.61c1.28-3.89 6.47-5.68 11.59-4a12.78 12.78 0 012.13.92c.33-.09.67-.17 1-.23a10.32 10.32 0 01-.22-1.18zM142.06 550.31a12.79 12.79 0 011.15 1.87 13 13 0 01.77 1.88 11.74 11.74 0 00-1.48-1.71 12.4 12.4 0 00-.44-2.04zM110.95 491.91a11.08 11.08 0 00-.08-2.22 12.49 12.49 0 012.41 3.31 12.87 12.87 0 01.76 1.87 11.38 11.38 0 00-3.09-2.96zM118.86 536.01a11.94 11.94 0 00.49 2.2 12.63 12.63 0 01-1.88-3.77 11.72 11.72 0 001.39 1.57zM126.45 551.03a12.66 12.66 0 00.5 2.2 11.93 11.93 0 01-1.06-1.73 12.88 12.88 0 01-.82-2 13 13 0 001.38 1.53zM122.66 543.52a11.94 11.94 0 00.49 2.2 12.88 12.88 0 01-1.06-1.73 12.6 12.6 0 01-.82-2 11.72 11.72 0 001.39 1.53zM115.06 528.49a11.86 11.86 0 00.49 2.21 12.44 12.44 0 01-1-1.73 12.23 12.23 0 01-.83-2 11.13 11.13 0 001.34 1.52zM139.93 509.5c-3.89-1.28-8.4 1.84-10.08 7a12.58 12.58 0 00-.52 2.27 10.63 10.63 0 00-2.24 2.38 12.83 12.83 0 00-1.05-2.9c-.17-.34-.36-.67-.56-1a10.63 10.63 0 012-2.1 12.58 12.58 0 01.52-2.27c1.69-5.12 6.2-8.24 10.09-7a6.93 6.93 0 014.34 5.26 5.93 5.93 0 00-2.5-1.64zM121.89 513.53a11.11 11.11 0 00-.08-2.22 12.49 12.49 0 012.41 3.31 13 13 0 01.76 1.88 11.28 11.28 0 00-3.09-2.97zM116.42 502.71a11.13 11.13 0 00-.08-2.22 12.83 12.83 0 012.41 3.31 13 13 0 01.76 1.88 11.42 11.42 0 00-3.09-2.97zM130.25 558.54a11.9 11.9 0 00.5 2.21 12.61 12.61 0 01-1.06-1.74 12.88 12.88 0 01-.82-2 13 13 0 001.38 1.53z"})),s.createElement("path",{d:"M82.02 461.25a11.92 11.92 0 01-4.14-4.69c-2.47-4.89-1.45-10.38 2.28-12.27s8.77.54 11.24 5.43a11.93 11.93 0 011.32 6.12 12.4 12.4 0 015.47 10.82 12 12 0 014.15 4.69 13.23 13.23 0 01.76 1.86 10.57 10.57 0 00-5.43-4 6.16 6.16 0 01-7.83 4 10.52 10.52 0 000 6.75 13.19 13.19 0 01-1-1.71 12 12 0 01-1.33-6.12 12.43 12.43 0 01-5.47-10.82z",fill:"#3f3d56"}),s.createElement("path",{d:"M21.9 391.91a36.81 36.81 0 01-4.39-2.43l16.28-11.9-19.14 9.85a36.34 36.34 0 01-13.59-25.34l32.54.34-32.61-5.46a36.29 36.29 0 1171.81 9.2 36.73 36.73 0 016.68 4l-17 23.64 20.41-20.68a36.32 36.32 0 0110.16 33.05 36.29 36.29 0 11-50.9 25.74 36.28 36.28 0 01-20.25-40z",fill:"#9f6bf4"}),s.createElement("path",{d:"M89.85 382.69a36.12 36.12 0 013.2 23.53 36.29 36.29 0 11-50.9 25.74c-7.13-3.31 45.87-52.9 47.7-49.27z",opacity:.1}),s.createElement("circle",{cx:48.97,cy:324.78,r:5.39,fill:"#9f6bf4"}),s.createElement("circle",{cx:17.51,cy:328.24,r:5.39,fill:"#9f6bf4"}),s.createElement("circle",{cx:5.39,cy:376.63,r:5.39,fill:"#9f6bf4"}),s.createElement("circle",{cx:21.76,cy:400.8,r:5.39,fill:"#9f6bf4"}),s.createElement("circle",{cx:44.12,cy:450.99,r:5.39,fill:"#9f6bf4"}),s.createElement("circle",{cx:44.12,cy:450.99,r:5.39,opacity:.1}),s.createElement("circle",{cx:93.85,cy:394.14,r:5.39,fill:"#9f6bf4"}),s.createElement("circle",{cx:93.85,cy:394.14,r:5.39,opacity:.1}),s.createElement("path",{d:"M99.6 482.72c3.58-1.81 4.66-6.93 2.57-11.66.11.2.22.39.32.59 2.47 4.89 1.45 10.38-2.29 12.27s-8.76-.54-11.23-5.43c-.1-.2-.2-.4-.29-.61 2.57 4.49 7.34 6.65 10.92 4.84zM104.91 493.24c3.58-1.81 4.67-6.94 2.58-11.66.11.19.22.39.32.59 2.47 4.89 1.45 10.38-2.29 12.27s-8.76-.54-11.23-5.43c-.11-.2-.2-.41-.29-.61 2.57 4.51 7.35 6.65 10.91 4.84zM110.23 503.75c3.58-1.81 4.67-6.93 2.57-11.66.12.2.22.39.33.6 2.47 4.88 1.44 10.38-2.29 12.26s-8.76-.54-11.23-5.43c-.11-.2-.2-.4-.29-.61 2.56 4.49 7.33 6.65 10.91 4.84zM115.55 514.27c3.58-1.81 4.67-6.93 2.57-11.66.11.19.22.39.32.59 2.48 4.89 1.45 10.38-2.28 12.27s-8.77-.54-11.24-5.43c-.1-.2-.19-.41-.28-.61 2.56 4.48 7.33 6.65 10.91 4.84zM120.87 524.78c3.58-1.81 4.66-6.93 2.57-11.65.11.19.22.39.32.59 2.47 4.89 1.45 10.38-2.28 12.27s-8.77-.55-11.24-5.43c-.1-.21-.19-.41-.29-.61 2.57 4.48 7.34 6.64 10.92 4.83zM126.19 535.3c3.58-1.81 4.66-6.93 2.57-11.66.11.2.22.39.32.59 2.47 4.89 1.45 10.38-2.28 12.27s-8.77-.54-11.24-5.43c-.1-.2-.2-.4-.29-.61 2.57 4.45 7.34 6.65 10.92 4.84zM131.51 545.82c3.57-1.81 4.66-6.94 2.57-11.66.11.19.22.39.32.59 2.47 4.89 1.45 10.38-2.29 12.27s-8.76-.55-11.23-5.43c-.1-.21-.2-.41-.29-.61 2.57 4.48 7.34 6.65 10.92 4.84zM136.82 556.33c3.58-1.81 4.67-6.93 2.57-11.66.12.2.22.39.33.6 2.47 4.88 1.44 10.38-2.29 12.26s-8.76-.54-11.23-5.43c-.11-.2-.2-.4-.29-.61 2.57 4.49 7.33 6.65 10.91 4.84z",opacity:.1}),s.createElement("path",{d:"M140.35 563.24c3.58-1.81 4.66-6.93 2.57-11.66.11.2.22.39.32.6 2.47 4.88 1.45 10.38-2.28 12.26s-8.77-.54-11.24-5.43c-.1-.2-.2-.4-.29-.61 2.54 4.51 7.31 6.65 10.92 4.84z",opacity:.1}),s.createElement("path",{d:"M44.21 516.44a18.57 18.57 0 01-1-4.93 2.69 2.69 0 11.41-5.35 18.82 18.82 0 019.89-12.75 2.694 2.694 0 114.81-2.43 2.44 2.44 0 01.24.72 18.92 18.92 0 0116.56 5 18.68 18.68 0 015-.14l2.18 9.92.05-9.57a18.85 18.85 0 11-10.08 36.29 2.76 2.76 0 01-1.13 1.09 2.7 2.7 0 01-3.7-3.47 18.84 18.84 0 01-2.41-2 18.87 18.87 0 01-19.8-10l10.15-1.71z",fill:"#9f6bf4"}),s.createElement("path",{d:"M59.89 521.26c3.75-5 6.05-10.8 8.69-16.42a66.7 66.7 0 013.56-6.74l2-2.31c.34.29.67.58 1 .88a18.68 18.68 0 015-.14l2.18 9.92.03-9.54a18.85 18.85 0 11-10.08 36.29 2.76 2.76 0 01-1.13 1.09 2.7 2.7 0 01-3.7-3.47 18.84 18.84 0 01-2.41-2 19 19 0 01-11.31-1.67 26.59 26.59 0 006.17-5.89z",opacity:.1}),s.createElement("path",{d:"M126.26 500a2.68 2.68 0 011.19-3.61 2.64 2.64 0 011.22-.29 18.85 18.85 0 015.89-10.5 18.71 18.71 0 01-.55-5.89l9.89-1.66-9.61-.61a18.65 18.65 0 01.72-2.66 2.64 2.64 0 01-.89-1 2.7 2.7 0 013.32-3.75 18.63 18.63 0 016.87-5.93 18.84 18.84 0 0126.77 21.5 2.69 2.69 0 01.16 4.87 2.7 2.7 0 01-2.22.1 18.74 18.74 0 01-3.57 4.34 18.9 18.9 0 01-.87 12l-13.23-3.48 11.83 6.23a18.86 18.86 0 01-32.83-1.54 19.11 19.11 0 01-1.94-6.65 2.67 2.67 0 01-2.15-1.47z",fill:"#9f6bf4"}),s.createElement("path",{d:"M126.26 500a2.68 2.68 0 011.19-3.61 2.64 2.64 0 011.22-.29 18.85 18.85 0 015.89-10.5c-.08-.31-.15-.63-.21-.94a7.27 7.27 0 011 .86c1.79 2 2.71 4.59 4.47 6.57a12.91 12.91 0 008.33 3.89 31.54 31.54 0 009.33-.75 27.35 27.35 0 017.72-.85l.74.1-.46.43a18.9 18.9 0 01-.87 12l-13.26-3.48 11.83 6.23a18.86 18.86 0 01-32.83-1.54 19.11 19.11 0 01-1.94-6.65 2.67 2.67 0 01-2.15-1.47z",opacity:.1})),Oi=s.createElement("path",{d:"M346.35 51.91a20.23 20.23 0 00-11.74 1.28 17.32 17.32 0 01-14.1 0 19.76 19.76 0 00-16.58.33 10.28 10.28 0 01-4.77 1.19c-6.72 0-12.31-6.77-13.47-15.7a13.07 13.07 0 003.36-3.62c3.94-6.35 10-10.43 16.89-10.43s12.89 4 16.83 10.31a13 13 0 0011.16 6.14h.18c5.3-.03 9.93 4.26 12.24 10.5z",fill:"#9f6bf4",opacity:.1}),Ri=s.createElement("path",{d:"M366.77 23.91l-10.86 6.89 6.59-12a10.74 10.74 0 00-6.57-2.34h-.17a12.89 12.89 0 01-2.25-.17l-3.69 2.34 1.58-2.87a13.19 13.19 0 01-6.44-4.85l-6.61 4.13 4.16-7.57C338.66 2.84 333.46 0 327.75 0c-6.85 0-13 4.08-16.9 10.43a12.62 12.62 0 01-11.17 6h-.33c-7.56 0-13.7 8.57-13.7 19.16s6.14 19.15 13.7 19.15a10.28 10.28 0 004.77-1.19 19.72 19.72 0 0116.58-.32 17.37 17.37 0 0014.1 0 19.75 19.75 0 0116.43.32 10.35 10.35 0 004.72 1.16c7.57 0 13.7-8.57 13.7-19.15a24.36 24.36 0 00-2.88-11.65zM120.35 190.45a29 29 0 00-16.77 1.82 24.71 24.71 0 01-20.14-.05 28.22 28.22 0 00-23.68.47 14.75 14.75 0 01-6.82 1.7c-9.6 0-17.59-9.67-19.25-22.43a18.41 18.41 0 004.8-5.17c5.63-9.07 14.35-14.9 24.14-14.9s18.4 5.76 24 14.73a18.52 18.52 0 0016 8.77h.25c7.58-.01 14.2 6.12 17.47 15.06z",fill:"#9f6bf4",opacity:.1}),Si=s.createElement("path",{d:"M149.55 150.4l-15.52 9.84 9.42-17.13a15.34 15.34 0 00-9.39-3.35h-.25a18.16 18.16 0 01-3.22-.24l-5.24 3.39 2.26-4.1a18.7 18.7 0 01-9.2-7l-9.42 6 5.93-10.9c-5.51-6.61-12.93-10.66-21.09-10.66-9.79 0-18.51 5.82-24.14 14.89a18.05 18.05 0 01-16 8.61h-.53c-10.81 0-19.57 12.25-19.57 27.37s8.76 27.37 19.57 27.37a14.61 14.61 0 006.82-1.71 28.22 28.22 0 0123.68-.46 24.71 24.71 0 0020.14.05 28.25 28.25 0 0123.48.45 14.65 14.65 0 006.74 1.67c10.81 0 19.57-12.26 19.57-27.37a34.76 34.76 0 00-4.04-16.72zM747.97 90.91a20.24 20.24 0 0111.74 1.28 17.29 17.29 0 0014.09 0 19.76 19.76 0 0116.58.33 10.31 10.31 0 004.77 1.19c6.72 0 12.32-6.77 13.48-15.7a12.93 12.93 0 01-3.36-3.62c-3.92-6.37-10.05-10.48-16.92-10.48s-12.88 4-16.82 10.31a13 13 0 01-11.18 6.17h-.17c-5.32-.01-9.96 4.28-12.21 10.52z",fill:"#9f6bf4",opacity:.1}),Ti=s.createElement("path",{d:"M727.49 62.91l10.86 6.87-6.6-12a10.76 10.76 0 016.57-2.34h.18a13 13 0 002.25-.17l3.68 2.34-1.58-2.87a13.21 13.21 0 006.5-4.83l6.59 4.18-4.17-7.57c3.86-4.63 9-7.47 14.77-7.47 6.85 0 13 4.08 16.9 10.43a12.61 12.61 0 0011.17 6h.36c7.57 0 13.7 8.57 13.7 19.16s-6.13 19.15-13.7 19.15a10.34 10.34 0 01-4.77-1.19 19.72 19.72 0 00-16.58-.32 17.35 17.35 0 01-14.09 0 19.77 19.77 0 00-16.44.32 10.32 10.32 0 01-4.72 1.16c-7.56 0-13.7-8.57-13.7-19.15a24.36 24.36 0 012.82-11.7z",fill:"#9f6bf4",opacity:.1}),Pi=s.createElement("ellipse",{cx:615.63,cy:756.88,rx:115,ry:20,fill:"#9f6bf4",opacity:.1}),Di=s.createElement("path",{fill:"#d0d2d5",d:"M555.44 661.88l-178.19-2.29.53-4.57 8.61-75.39h156.49l11.51 75.39.88 5.72.17 1.14z"}),Ai=s.createElement("path",{opacity:.1,d:"M555.27 660.74h-88.92l-89.1-1.15.53-4.57h176.61l.88 5.72z"}),Ni=s.createElement("path",{fill:"#d0d2d5",d:"M347.55 656.17H584v5.71H347.55z"}),xi=s.createElement("path",{d:"M809.59 126.83a14.87 14.87 0 00-14.8-14.92H134.47a14.87 14.87 0 00-14.8 14.94V527.1h689.92z",fill:"#3f3d56"}),Ii=s.createElement("path",{d:"M119.67 523.1v46.88a14.8 14.8 0 0014.8 14.8h660.32a14.8 14.8 0 0014.8-14.8V523.1z",fill:"#d0d2d5"}),Fi=s.createElement("path",{fill:"#fff",d:"M148.23 137.01h636.23v359.81H148.23z"}),Mi=s.createElement("path",{d:"M468.06 566.99a15.4 15.4 0 0012.13-5.89 16.06 16.06 0 001.2-1.76l-8.47-1.43 9.15.06a15.42 15.42 0 00.29-12.21l-12.27 6.36 11.32-8.32a15.42 15.42 0 10-25.47 17.26 15.4 15.4 0 0012.12 5.93z",fill:"#9f6bf4"}),Li=s.createElement("path",{opacity:.1,d:"M483.48 584.77l71.09 71.4-10.91-71.4h-60.18z"}),ki=s.createElement("path",{fill:"#444053",opacity:.1,d:"M147.73 137.05h636.92v21.02H147.73z"}),Gi=s.createElement("rect",{x:368.87,y:140.71,width:191.9,height:12.79,rx:.58,fill:"#9f6bf4",opacity:.3}),Vi=s.createElement("path",{d:"M555.07 148.43h-.47l-.17-.15a3.89 3.89 0 00.9-2.49 3.78 3.78 0 10-3.77 3.81 3.9 3.9 0 002.49-.91l.17.15v.47l2.93 2.93.87-.88zm-3.51 0a2.64 2.64 0 112.63-2.64 2.62 2.62 0 01-2.63 2.64z",fill:"#3f3d56"}),Wi=s.createElement("circle",{cx:159.18,cy:147.56,r:3.85,fill:"#fa5959",opacity:.8}),ji=s.createElement("circle",{cx:169.77,cy:147.56,r:3.85,fill:"#fed253",opacity:.8}),Hi=s.createElement("circle",{cx:180.37,cy:147.56,r:3.85,fill:"#8ccf4d",opacity:.8}),Bi=s.createElement("path",{d:"M500.05 291.4c-8.73-11.6-21.38-18.92-35.46-18.92s-26.73 7.32-35.46 18.92a38.39 38.39 0 008.4 12.65 38.28 38.28 0 0062.52-12.65z",fill:"#9f6bf4"}),zi=s.createElement("path",{d:"M424.52 298.19a9.17 9.17 0 01-1.76-1 7.06 7.06 0 01-1.94-2.51 7.18 7.18 0 10-11.72 1.74 8 8 0 001.7 1.37 4.94 4.94 0 011.91 2 14.44 14.44 0 003.32 4.36 29 29 0 004.55 3.2 66.31 66.31 0 00-3.74 19.56 27.05 27.05 0 00-7.62 1.23 12.29 12.29 0 00-3.53 1.76 8.48 8.48 0 00-.87-.06 7.19 7.19 0 106.73 9.72 4.59 4.59 0 013.71-3 16.75 16.75 0 011.85-.12 64.4 64.4 0 008.55 26.67c-4.24 3.29-6.85 6.88-7.95 10.86a3 3 0 00-.57.41 6.81 6.81 0 00-.84.78 7.18 7.18 0 1012.05 2.35 4.71 4.71 0 011.17-5.08c.48-.45 1-.93 1.7-1.46 8.11 9.47 17.76 15.54 29.81 16.26v-64.25c-15.93-.87-29.81-11.24-36.51-24.79zm99.83 31.72a7.93 7.93 0 00-.87.06 13.56 13.56 0 00-3.53-1.76 26.86 26.86 0 00-7.62-1.23 67.76 67.76 0 00-3.74-19.55 29 29 0 004.55-3.2 15.58 15.58 0 003.44-4.57 4.22 4.22 0 011.77-1.75 7.18 7.18 0 10-10-3.17 6.82 6.82 0 01-1.94 2.51 18.85 18.85 0 01-1.76 1.29c-6.7 13.54-20.57 23.62-36.48 24.49v64.31c12-.72 21.71-6.82 29.81-16.26.63.5 1.16.95 1.61 1.37a4.86 4.86 0 011.26 5.23 7.18 7.18 0 1012.08-2.33 6.81 6.81 0 00-.84-.78c-.33-.26-.57-.41-.57-.41-1.1-4-3.7-7.57-8-10.86a64.4 64.4 0 008.55-26.67 15.9 15.9 0 011.77.12 4.8 4.8 0 013.85 3 7.18 7.18 0 0013.85-2.18 7.29 7.29 0 00-7.19-7.66z",fill:"#9f6bf4"}),Ui=s.createElement("path",{d:"M769.65 802.31a9.56 9.56 0 00-2.17-2.41c-4.37-4.13-6.4-10.19-7.48-16.13s-1.39-12-3.12-17.81a58.74 58.74 0 00-3.52-8.67c-1-2.14-2.26-6.33-4.09-7.83a2.7 2.7 0 00-1.26-.61 14.85 14.85 0 00-3.62-4.82c-2.86-2.59-6.35-4.65-8.26-8a18 18 0 00-1.93-3.29c-1.29-1.42-3.33-2-4.52-3.5-1.55-1.94-1.2-4.72-1-7.19s0-5.43-2.14-6.73c-1.28-.79-2.93-.71-4.26-1.41-2-1-2.79-3.52-2.75-5.77s.74-4.44.92-6.69c.56-7.16-4.16-14.28-2.34-21.22.69-2.63 2.27-4.91 3.44-7.36a15.37 15.37 0 001-2.54 35.73 35.73 0 009.74 2.35c-5.51-12.36-4.11-26.72-6.68-40l.33-.45a20.84 20.84 0 004.22-11.86c0-4.94-2.31-9.56-3.35-14.4-.89-4.11-.85-8.41-2-12.45a37.65 37.65 0 00-3.16-7.22q-1.87-3.47-3.93-6.83-1.92-6.36-3.85-12.72c-1.8-5.95-3.65-12-7.15-17.14-1.28-1.88-1.67-5.7-3.64-6.84a8.81 8.81 0 00-5.2-.91c-2.78-1.56-5.22-3.81-5.57-6.89a6.68 6.68 0 01.2-2h.34c4.4-.4 6.63-4.28 8.92-7.68 3.7-5.5 2.29-12.94 0-19.2a13 13 0 00-3-5.29c-3.21-3-8.29-2.34-12.43-3.79-1.39-.48-2.69-1.21-4.11-1.55-2.75-.64-5.63.26-8.15 1.53s-4.87 2.91-7.51 3.91-5.9 1.79-6.55 4.5a5 5 0 00.22 2.73 10.18 10.18 0 003.09 4.46 17.81 17.81 0 0010.87 24.82 51.01 51.01 0 012.12 3.73c1.16 2.24 2.14 4.88 1.74 7.28a22.45 22.45 0 00-2 2.45c-2.87 4-4.5 8.69-6 13.37a141.65 141.65 0 00-4.83 18.27c-2.44 5.19-5.42 10.15-7.19 15.6a35.21 35.21 0 01-9.38-1.26l-8.44-1.91c-2.94-.67-6-1.39-8.3-3.33-1.22-1-2.17-2.33-3.41-3.32s-3.73-2.15-5.09-1.33a4 4 0 00-.69.53c-1.24-2.51-2.42-5-3.86-7.43-2.07-3.4-5.15-6.51-9.05-7.16a9.21 9.21 0 00-6.79 1.58c-2.28 1.62-3.71 5-2 7.28a13.29 13.29 0 001.39 1.42 29.2 29.2 0 013.09 4.29 21.91 21.91 0 0013.49 8.76l-.35 1c-.71 2.08-2.22 4.59-1.84 6.75l37.54 12.85a23.13 23.13 0 007.56 1.67 12.21 12.21 0 003-.4v2c.1 13.19-2 26.29-2.39 39.47-.07 2.41 0 5 1.52 6.88 1.7 2.06 4.72 2.47 7.35 2q.95-.16 1.86-.42a69.33 69.33 0 011.92 10.11l2.48 17.86a27.14 27.14 0 01.39 5.54c-.29 4.19-2.5 7.94-4.1 11.81s-2.55 8.5-.45 12.12c.66 1.12 1.57 2.07 2.16 3.23a13.14 13.14 0 011 5.68q.23 8.08.44 16.18a1.83 1.83 0 00-1.26.25c-2.08 1.62-1.85 9.33-2 11.72-.16 4 0 8.08-.22 12.12a72.22 72.22 0 01-2.61 16.09 10.29 10.29 0 01-2.29 4.61 9.74 9.74 0 01-4.07 2.11 46.49 46.49 0 01-15.41 2.1c-2.11-.07-4.31-.27-6.27.53s-3.54 3-2.83 5c.61 1.68 2.46 2.48 4.13 3.11a65.53 65.53 0 0111 5.06 29.74 29.74 0 004.25 2.41 21.91 21.91 0 004.38 1.08l17.73 3.06c3.63.62 8 1 10.31-2 1.25-1.62 1.43-3.82 1.37-5.88-.1-4-.9-8.07-.38-12.07a37.14 37.14 0 011.86-6.93q2.65-7.87 5.32-15.73c1.78-5.26 3.58-10.57 4.27-16.09.25-2 .23-4.28-1.3-5.53a3.54 3.54 0 00-1.32-.68c-.06-4.82-.69-9.65-.42-14.47.07-1.2.19-2.4.29-3.61a17.61 17.61 0 012.47 2.92c1.71 2.68 2.34 6.22 4.95 8 2.22 1.52 5.51 1.44 7.07 3.64a10.26 10.26 0 011.12 2.71 19.32 19.32 0 004 6.35 32 32 0 002.47 6.34q2.21 4.67 4.4 9.31a108.59 108.59 0 005 9.77 27.55 27.55 0 013.35 6.46c1.41 4.94-.89 10.36-4.53 14s-8.44 5.73-13.17 7.68a3.71 3.71 0 00-1.34.8 2.59 2.59 0 00-.61 1.74c0 2.31 1.9 4.29 4.08 5a15.26 15.26 0 006.83.25c12.78-1.55 25.52-4.67 36.82-10.88a13 13 0 004.39-3.39 5.13 5.13 0 00.73-5.21z",transform:"translate(-88.65 -57.09)",fill:"url(#bug_svg__a)"}),Yi=s.createElement("path",{d:"M626.99 520.97q3.2 4.91 6 10.06a37 37 0 013.17 7.17c1.16 4 1.13 8.27 2 12.35 1 4.8 3.34 9.38 3.34 14.3a20.56 20.56 0 01-4.22 11.76 55.82 55.82 0 01-8.82 9.1 187.62 187.62 0 01-12.48-61.21c-.1-2.9-.12-5.89.94-8.6.65-1.7 3.77-6.36 5.78-4.53.73.67.92 3.69 1.37 4.7a36.13 36.13 0 002.92 4.9z",fill:"#2f2e41"}),qi=s.createElement("path",{d:"M626.99 520.97q3.2 4.91 6 10.06a37 37 0 013.17 7.17c1.16 4 1.13 8.27 2 12.35 1 4.8 3.34 9.38 3.34 14.3a20.56 20.56 0 01-4.22 11.76 55.82 55.82 0 01-8.82 9.1 187.62 187.62 0 01-12.48-61.21c-.1-2.9-.12-5.89.94-8.6.65-1.7 3.77-6.36 5.78-4.53.73.67.92 3.69 1.37 4.7a36.13 36.13 0 002.92 4.9z",opacity:.1}),Ki=s.createElement("path",{d:"M363.35 384.54c-7.91 7.9-8.86 11.38-13.61 12.95s-21.84 10.42-16.47 20.23l14.44 9.54.42.28 2.21 6.64-21.84 38.88s-36-16.46-39.53 7.89-1.29 31-2.24 44 .31 16.76-2.86 16.76-4.42-8.54-4.42-8.54-.2-.39-.55-1.12c-4.71-9.79-36.68-81.66 14.53-131.06 0 0 23.72-1.56 29.43-28.76 3.94-18.8 17.72-17.18 26.88-13.35a30.38 30.38 0 018.22 4.83 40.48 40.48 0 015.89 7c2.61 4.12 4.03 9.29-.5 13.83z",fill:"#d0d2d5"}),$i=s.createElement("path",{d:"M348.13 427.54l2.21 6.64-21.84 38.88s-36-16.46-39.53 7.89-1.29 31-2.24 44 .31 16.76-2.86 16.76-4.42-8.54-4.42-8.54-.2-.39-.55-1.12c-1.59-12.16-9.65-83.29 19.57-79.51 0 0 23.71 11.08 27.5 6.66 3-3.5 16.32-23.63 21.74-31.89zM363.85 370.65l-14.44 16.41s-16.77 22.44-20.25 21.49a16.23 16.23 0 00-3.17-.37 6.16 6.16 0 01-4-10.38c5.72-6 16.26-17.39 16.95-19.92s7.4-13.62 10.76-19.05a30.38 30.38 0 018.22 4.83 40.48 40.48 0 015.93 6.99z",opacity:.1}),Qi=s.createElement("path",{d:"M772.41 606.74c-2.45 4.9-15 23.28-20.49 31.31l-2.57 3.78s-1 6.64-17.39-1.59-401.48-170.72-401.48-170.72l-2.61-7.84 19-28.45L768.94 596.3s6.64 4.11 3.47 10.44z",fill:"#454b69"}),Xi=s.createElement("path",{d:"M751.92 638.05l-2.57 3.78s-1 6.64-17.39-1.59-401.48-170.72-401.48-170.72l-2.61-7.84z",opacity:.1}),Ji=s.createElement("path",{d:"M519.64 531.91c-3.91-.64-8.25-.33-11.29 2.21a9.29 9.29 0 00-3.24 6.16c-.26 2.77 1.35 6.06 4.13 6.27a13.17 13.17 0 002-.13 29.89 29.89 0 015.24.44 21.39 21.39 0 0018.23-7.36c2.39-3-.76-4.3-3.58-4.9-3.86-.82-7.63-2.07-11.49-2.69z",fill:"#fbbebe"}),Zi=s.createElement("path",{d:"M586.52 622.22l2.48 17.62a26.84 26.84 0 01.38 5.51c-.29 4.15-2.5 7.87-4.09 11.71s-2.56 8.44-.45 12c.65 1.11 1.56 2.06 2.15 3.21a12.92 12.92 0 011 5.63l.68 25a157.33 157.33 0 0023.18-.13 1.29 1.29 0 00.84-.26 1.36 1.36 0 00.29-.91c.34-5.85-.68-11.71-.35-17.56.12-2.14.42-4.27.46-6.42.12-8.71-4.18-17.24-2.88-25.85a57 57 0 011.6-6.43c4.11-15 3.24-30.76 2.33-46.25a1.09 1.09 0 00-.2-.7 1.06 1.06 0 00-.54-.29 28.45 28.45 0 00-25.78 4.9c-1.09.88-3.84 1.73-4.56 2.78-1 1.46.31 2.92.89 4.47a56.89 56.89 0 012.57 11.97z",fill:"#3f3d56"}),es=s.createElement("path",{d:"M586.52 622.22l2.48 17.62a26.84 26.84 0 01.38 5.51c-.29 4.15-2.5 7.87-4.09 11.71s-2.56 8.44-.45 12c.65 1.11 1.56 2.06 2.15 3.21a12.92 12.92 0 011 5.63l.68 25a157.33 157.33 0 0023.18-.13 1.29 1.29 0 00.84-.26 1.36 1.36 0 00.29-.91c.34-5.85-.68-11.71-.35-17.56.12-2.14.42-4.27.46-6.42.12-8.71-4.18-17.24-2.88-25.85a57 57 0 011.6-6.43c4.11-15 3.24-30.76 2.33-46.25a1.09 1.09 0 00-.2-.7 1.06 1.06 0 00-.54-.29 28.45 28.45 0 00-25.78 4.9c-1.09.88-3.84 1.73-4.56 2.78-1 1.46.31 2.92.89 4.47a56.89 56.89 0 012.57 11.97z",opacity:.1}),ts=s.createElement("path",{d:"M632.89 616.91c-1.17 2.43-2.74 4.69-3.44 7.3-1.82 6.89 2.89 14 2.33 21.06-.18 2.23-.87 4.4-.92 6.63s.77 4.71 2.75 5.74c1.33.68 3 .61 4.25 1.39 2.11 1.29 2.35 4.22 2.14 6.68s-.56 5.21 1 7.13c1.19 1.49 3.23 2.07 4.51 3.48a17.17 17.17 0 011.93 3.26c1.91 3.34 5.4 5.38 8.26 8s5.28 6.46 4 10.09c-.94 2.66-3.58 4.3-6.12 5.55a64.93 64.93 0 01-14.57 5.15 3.52 3.52 0 01-1.67.09 3.57 3.57 0 01-1.46-1c-2.95-2.89-6-5.92-7.36-9.81a10.07 10.07 0 00-1.12-2.68c-1.56-2.19-4.85-2.11-7.07-3.62-2.6-1.77-3.23-5.28-4.93-7.93s-4.19-4.23-6-6.56c-3.06-3.88-3.81-9.06-6-13.49-.93-1.88-2.12-3.64-2.86-5.6a30.58 30.58 0 01-1.37-7.24c-1.41-11.68-5-23.44-2.74-35 .5-2.54 1.27-5 1.59-7.62.55-4.53-.32-9.17.35-13.69a3.77 3.77 0 011.51-2.91 4 4 0 011.72-.35 117.28 117.28 0 0117.78.4c3 .29 6.36.9 8.16 3.35 1.53 2.1 1.45 4.91 1.94 7.46.61 3.14 2.2 4.85 3.87 7.31s.77 4.89-.46 7.43z",fill:"#3f3d56"}),ns=s.createElement("path",{d:"M609.82 698.17c1.58 0 3.33-.1 4.55.9 1.52 1.25 1.54 3.54 1.3 5.49-.7 5.48-2.49 10.75-4.28 16l-5.32 15.61a36.65 36.65 0 00-1.86 6.88c-.52 4 .28 8 .38 12 0 2-.13 4.22-1.38 5.83-2.26 2.91-6.67 2.57-10.3 2l-17.71-3a21.07 21.07 0 01-4.38-1.07 30.61 30.61 0 01-4.25-2.39 65.42 65.42 0 00-11-5c-1.66-.62-3.52-1.41-4.12-3.08-.71-2 .87-4.2 2.83-5s4.15-.6 6.27-.54a47 47 0 0015.4-2.08 9.74 9.74 0 004.06-2.1 10 10 0 002.34-4.71 70.17 70.17 0 002.68-16c.21-4 .07-8 .23-12 .1-2.37-.13-10 1.95-11.63 1.59-1.22 8.13 2.15 10.28 2.64a50 50 0 0012.33 1.25zM668.16 709.29c1.73 5.73 2 11.79 3.12 17.68s3.1 11.9 7.47 16a9.87 9.87 0 012.17 2.4 5.06 5.06 0 01-.75 5.23 13.13 13.13 0 01-4.39 3.37c-11.29 6.16-24 9.27-36.81 10.81a15.51 15.51 0 01-6.82-.25c-2.18-.74-4.11-2.7-4.07-5a2.55 2.55 0 01.6-1.73 3.73 3.73 0 011.35-.79c4.72-1.94 9.51-4.05 13.16-7.63s5.94-9 4.53-13.86a27.42 27.42 0 00-3.37-6.41 108.35 108.35 0 01-5-9.69l-4.4-9.23c-1.29-2.7-2.59-5.48-2.81-8.46a40.6 40.6 0 0016.22-2.6 25.51 25.51 0 006.67-4c1.7-1.42 3.25-4.07 5.54-2.22 1.84 1.48 3 5.65 4.08 7.76a57 57 0 013.51 8.62z",fill:"#2f2e41"}),os=s.createElement("path",{d:"M603.68 480.1c.44 3.84 4.16 6.37 7.71 7.89l-22.47 7.17c1.45-2.78.28-6.18-1.16-9a50.93 50.93 0 00-4-6.41c-.22-.31-.47-.7-.31-1.06a1.12 1.12 0 01.63-.49c4.62-2.06 9.38-4.19 14.43-4.94 1.46-.21 4.22-.79 5.31.69s-.35 4.38-.14 6.15z",fill:"#fbbebe"}),rs=s.createElement("path",{d:"M603.68 480.1c.44 3.84 4.16 6.37 7.71 7.89l-22.47 7.17c1.45-2.78.28-6.18-1.16-9a50.93 50.93 0 00-4-6.41c-.22-.31-.47-.7-.31-1.06a1.12 1.12 0 01.63-.49c4.62-2.06 9.38-4.19 14.43-4.94 1.46-.21 4.22-.79 5.31.69s-.35 4.38-.14 6.15z",opacity:.1}),is=s.createElement("circle",{cx:590.62,cy:465.59,r:17.62,fill:"#fbbebe"}),ss=s.createElement("path",{d:"M575.35 610.59c1.71 2.05 4.72 2.45 7.35 2 6.15-1 11.18-5.53 17.2-7.16 7.38-2 15.19.57 22.16 3.72s13.9 7 21.52 7.54c-6.89-15.36-2.95-33.84-9.54-49.33-1.61-3.79-3.86-7.44-4.22-11.54-.45-5.09 2.09-10 2.48-15.06.36-4.51-1-9-2.3-13.3l-4.82-15.84c-1.8-5.91-3.65-11.92-7.14-17-1.29-1.87-1.68-5.66-3.64-6.79-4.28-2.47-10.77.64-15.41.81s-8.87 3.47-11.58 7.2c-2.87 3.94-4.5 8.63-6 13.27a126.15 126.15 0 00-5.33 21.23c-.15 1.08-.28 2.16-.38 3.25-1 10.27.46 20.6.54 30.92v.07c.1 13.09-2 26.1-2.39 39.18-.04 2.39.02 5 1.5 6.83z",fill:"#2f2e41"}),as=s.createElement("path",{d:"M576.27 564.52c3.45-.87 6.57-3.1 9.25-5.54a38.67 38.67 0 006.14-7 49.86 49.86 0 005.29-11.07 129.36 129.36 0 007-32.27c.26-3 .34-6.22-1.45-8.6a7.24 7.24 0 00-8.75-2.12c-2.36 1.15-3.89 3.48-5.31 5.71-2.81 4.42-5.64 8.9-7.45 13.82-.8 2.18-1.39 4.42-2.17 6.61a61 61 0 01-2.74 6.33c-.15 1.08-.28 2.16-.38 3.25-.93 10.27.49 20.56.57 30.88z",opacity:.1}),ls=s.createElement("path",{d:"M602.45 498.11c1.79 2.38 1.71 5.63 1.46 8.59a129.18 129.18 0 01-7 32.27 49.43 49.43 0 01-5.29 11.16 39.07 39.07 0 01-6.14 7c-3.4 3.1-7.54 5.87-12.15 5.91a23.16 23.16 0 01-7.56-1.65l-37.55-12.78c-.38-2.14 1.13-4.64 1.84-6.7l2-5.93c.57-1.64 1.23-3.41 2.72-4.3s3.85.33 5.09 1.32 2.18 2.29 3.4 3.3c2.31 1.92 5.36 2.64 8.3 3.3l8.43 1.89a35.2 35.2 0 009.38 1.25c2.35-7.18 6.82-13.5 9.35-20.62.78-2.18 1.37-4.43 2.18-6.61 1.8-4.92 4.64-9.39 7.45-13.82 1.41-2.22 2.94-4.55 5.31-5.71a7.23 7.23 0 018.78 2.13zM596.24 469.57a8.89 8.89 0 00-1.06-3.3 2.77 2.77 0 00-3-1.32c-1.76.55-2.35 3.27-4.19 3.36-1.24.06-2.13-1.2-2.52-2.38s-.6-2.53-1.53-3.36a5.7 5.7 0 00-2.18-1c-4.27-1.35-8.68-3.84-10.1-8.09a4.84 4.84 0 01-.23-2.71c.65-2.69 4-3.5 6.55-4.47s5-2.63 7.5-3.89 5.4-2.15 8.15-1.51a42.47 42.47 0 014.11 1.53c4.14 1.44 9.21.77 12.42 3.76a12.83 12.83 0 013 5.24c2.24 6.22 3.66 13.6-.05 19.06-2.29 3.37-4.51 7.22-8.91 7.63-5.12.43-7.15-4.21-7.96-8.55z",fill:"#2f2e41"}),us=s.createElement("g",{opacity:.1},s.createElement("path",{d:"M588.42 463.81c-.39-1.18-.6-2.53-1.52-3.36a5.7 5.7 0 00-2.18-1c-4.28-1.35-8.68-3.84-10.11-8.09a4.93 4.93 0 01-.22-2.71 3.39 3.39 0 01.53-1.19c-1.63.71-3.05 1.65-3.45 3.31a4.84 4.84 0 00.23 2.71c1.42 4.25 5.83 6.74 10.1 8.09a5.7 5.7 0 012.18 1c.93.83 1.13 2.17 1.53 3.36s1.28 2.44 2.52 2.38 1.84-1.19 2.63-2.14c-1.09-.14-1.88-1.26-2.24-2.36zM607.14 475.97c-5.14.47-7.17-4.21-8-8.52a8.7 8.7 0 00-1-3.3 2.78 2.78 0 00-3-1.32 5.32 5.32 0 00-2.21 2 3 3 0 012.26 1.4 8.89 8.89 0 011.06 3.3c.81 4.31 2.84 9 8 8.52a8.25 8.25 0 005.28-2.74 7.46 7.46 0 01-2.39.66z"})),cs=s.createElement("ellipse",{cx:813.11,cy:655.78,rx:32.29,ry:6.21,fill:"#9f6bf4"}),ps=s.createElement("ellipse",{cx:812.57,cy:653.14,rx:3.76,ry:4.92,fill:"#3f3d56"}),ds=s.createElement("ellipse",{cx:812.57,cy:647.12,rx:3.76,ry:4.92,fill:"#3f3d56"}),hs=s.createElement("ellipse",{cx:812.57,cy:641.11,rx:3.76,ry:4.92,fill:"#3f3d56"}),fs=s.createElement("ellipse",{cx:812.57,cy:635.09,rx:3.76,ry:4.92,fill:"#3f3d56"}),gs=s.createElement("ellipse",{cx:812.57,cy:629.07,rx:3.76,ry:4.92,fill:"#3f3d56"}),vs=s.createElement("ellipse",{cx:812.57,cy:623.06,rx:3.76,ry:4.92,fill:"#3f3d56"}),ms=s.createElement("ellipse",{cx:812.57,cy:617.04,rx:3.76,ry:4.92,fill:"#3f3d56"}),ys=s.createElement("path",{d:"M826.64 575.91a18.19 18.19 0 001.4-2.06l-9.88-1.62 10.69.07a18.11 18.11 0 00.34-14.27l-14.34 7.44 13.22-9.72a18 18 0 10-29.72 20.16 17.92 17.92 0 00-2.06 3.28l12.83 6.67-13.68-4.59a18 18 0 002.91 16.88 18 18 0 1028.31 0 18 18 0 000-22.27z",fill:"#9f6bf4"}),Cs=s.createElement("path",{d:"M794.47 587.01a17.91 17.91 0 003.88 11.14 18 18 0 1028.31 0c2.39-3.07-32.19-13.16-32.19-11.14z",opacity:.1}),ws=s.createElement("ellipse",{cx:148.42,cy:776.87,rx:46.49,ry:8.94,fill:"#9f6bf4"}),Es=s.createElement("ellipse",{cx:147.64,cy:773.07,rx:5.41,ry:7.09,fill:"#3f3d56"}),bs=s.createElement("ellipse",{cx:147.64,cy:764.41,rx:5.41,ry:7.09,fill:"#3f3d56"}),_s=s.createElement("ellipse",{cx:147.64,cy:755.75,rx:5.41,ry:7.09,fill:"#3f3d56"}),Os=s.createElement("ellipse",{cx:147.64,cy:747.09,rx:5.41,ry:7.09,fill:"#3f3d56"}),Rs=s.createElement("ellipse",{cx:147.64,cy:738.43,rx:5.41,ry:7.09,fill:"#3f3d56"}),Ss=s.createElement("ellipse",{cx:147.64,cy:729.76,rx:5.41,ry:7.09,fill:"#3f3d56"}),Ts=s.createElement("ellipse",{cx:147.64,cy:721.1,rx:5.41,ry:7.09,fill:"#3f3d56"}),Ps=s.createElement("path",{d:"M167.9 661.84a27.23 27.23 0 002-3l-14.22-2.34 15.38.12a26 26 0 00.49-20.55l-20.62 10.74 19-14a25.93 25.93 0 10-42.83 29 25.83 25.83 0 00-3 4.72l18.47 9.6-19.69-6.61a25.93 25.93 0 004.26 24.39 25.93 25.93 0 1040.76 0 25.92 25.92 0 000-32.06z",fill:"#9f6bf4"}),Ds=s.createElement("path",{d:"M121.59 677.91a25.85 25.85 0 005.55 16 25.93 25.93 0 1040.76 0c3.45-4.42-46.31-18.95-46.31-16z",opacity:.1});var As=function(e){return s.createElement("svg",Ci({viewBox:"0 0 1022.7 785.81"},e),wi,Ei,bi,_i,Oi,Ri,Si,Ti,Pi,Di,Ai,Ni,xi,Ii,Fi,Mi,Li,ki,Gi,Vi,Wi,ji,Hi,Bi,zi,Ui,Yi,qi,Ki,$i,Qi,Xi,Ji,Zi,es,ts,ns,os,rs,is,ss,as,ls,us,cs,ps,ds,hs,fs,gs,vs,ms,ys,Cs,ws,Es,bs,_s,Os,Rs,Ss,Ts,Ps,Ds)},Ns=n(12),xs=n.n(Ns);class Is extends a.a.PureComponent{constructor(){super(...arguments),this.state={isDetailsOpen:!1,isSendingReport:!1,didFailErrorReport:!1,errorReportId:null},this.handleToggleDetails=()=>{this.setState(e=>({isDetailsOpen:!e.isDetailsOpen}))},this.handleSendReport=()=>{this.setState({isSendingReport:!0},async()=>{const{error:e,data:t}=await Nn.sendTelemetry();if(e)return Bt("FatalError.handleSendReport","Unable to send telemetry report",{error:e}),this.setState({isSendingReport:!1,didFailErrorReport:!0});this.setState({isSendingReport:!1,didFailErrorReport:!1,errorReportId:t})})},this.handleClearAll=()=>{Kt.clearAll(),window.location.reload()}}render(){const{isDetailsOpen:e,isSendingReport:t,didFailErrorReport:n,errorReportId:o}=this.state;return a.a.createElement(jr,{className:xs.a.dialog},a.a.createElement("div",{className:xs.a.container,"data-cy":"error"},a.a.createElement(As,{className:qe()(xs.a.image,{[xs.a.isDetailsOpen]:e})}),null===o&&!n&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:xs.a.title},"That failed spectacularly"),a.a.createElement("div",{className:xs.a.subtitle},"A non-recoverable error has occurred and Studio must be restarted. The error originated from within Prisma, so this is on us.",a.a.createElement("br",null),a.a.createElement("br",null),Nn.telemetry&&"Would you like to submit an error report so the right people can take a look?"),Nn.telemetry&&a.a.createElement(yr,{className:xs.a.telemetryButton,onClick:this.handleSendReport,disabled:t},"Send Error Report"),a.a.createElement(yr,{className:xs.a.reopenButton,onClick:this.handleClearAll},a.a.createElement("span",null,"Clear cache & reopen Studio")),a.a.createElement(br,{className:qe()(xs.a.toggleDetailsButton,{[xs.a.open]:e}),onClick:this.handleToggleDetails},a.a.createElement(a.a.Fragment,null,a.a.createElement(ai,null),"Details")),e&&a.a.createElement("pre",{className:xs.a.dump},Nn.dump)),null===o&&n&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:xs.a.title},"This is embarrassing"),a.a.createElement("div",{className:xs.a.subtitle},"We encountered an error while trying to submit your error report. Please open a GitHub issue so we can investigate."),a.a.createElement("a",{className:xs.a.githubButton,href:"https://github.com/prisma/studio/issues/new",target:"_blank",rel:"noreferrer noopener"},"Take me to GitHub")),o&&!n&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:xs.a.title},"Error report was submitted."),a.a.createElement("div",{className:xs.a.subtitle},"The error report was submitted successfully. Please open a GitHub issue quoting report ID #",o," to track progress."),a.a.createElement("a",{className:xs.a.githubButton,href:"https://github.com/prisma/studio/issues/new",target:"_blank",rel:"noreferrer noopener"},"Take me to GitHub"))))}}var Fs=mt(Is);var Ms=e=>(e.contextType=ar,e),Ls=n(77),ks=n.n(Ls);var Gs=mt(({className:e,target:t,targetOffsetX:n,targetOffsetY:o,darken:r,children:i,onClickOutside:s})=>a.a.createElement(Mr,{className:qe()(ks.a.container,e),target:t,targetOffsetX:n,targetOffsetY:o,darken:r,onClickOutside:s},i)),Vs=n(57),Ws=n.n(Vs),js=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Hs extends a.a.PureComponent{constructor(){super(...arguments),this.input=a.a.createRef(),this.handleChange=e=>{const{disabled:t,onChange:n}=this.props;t||n(e.currentTarget.value)},this.handleBlur=()=>{const{disabled:e,onBlur:t}=this.props;e||t()}}componentDidMount(){var e;const t=null!==(e=this.props.innerRef)&&void 0!==e?e:this.input;t.current&&this.props.focusOnMount&&t.current.focus()}render(){const e=this.props,{className:t,innerRef:n,style:o,type:r,tabIndex:i,value:s,placeholder:l,disabled:u,focusOnMount:c,onChange:p,onBlur:d,onConfirm:h,onCancel:f}=e,g=js(e,["className","innerRef","style","type","tabIndex","value","placeholder","disabled","focusOnMount","onChange","onBlur","onConfirm","onCancel"]),v=null!=n?n:this.input;return a.a.createElement("div",Object.assign({className:qe()(Ws.a.container,t),style:o},g),a.a.createElement("input",{ref:v,lang:"en",tabIndex:i,className:qe()(Ws.a.input,{[Ws.a.disabled]:u}),type:r,placeholder:l,disabled:u,value:null===s?"":s,onChange:this.handleChange,onBlur:this.handleBlur}),h&&a.a.createElement(Sr,{keys:"enter",target:v,onMatch:h}),f&&a.a.createElement(Sr,{keys:"esc",target:v,onMatch:f}))}}Hs.defaultProps={value:"",disabled:!1,focusOnMount:!1,onChange:()=>{},onBlur:()=>{}};var Bs=Hs,zs=n(58),Us=n.n(zs);class Ys extends a.a.PureComponent{constructor(){super(...arguments),this.menu=a.a.createRef(),this.state={highlightIndex:-1,position:{top:0,bottom:0,left:0,right:0}},this.handleHighlightNext=e=>{const{items:t}=this.props;this.setState(e=>e.highlightIndex===t.length-1?{highlightIndex:0}:{highlightIndex:e.highlightIndex+1})},this.handleHighlightPrevious=e=>{const{items:t}=this.props;this.setState(e=>0===e.highlightIndex||-1===e.highlightIndex?{highlightIndex:t.length-1}:{highlightIndex:e.highlightIndex-1})},this.handleSelect=()=>{const{highlightIndex:e}=this.state,{items:t,onSelect:n}=this.props;e<0||e>=t.length||n(t[e])}}componentDidMount(){var e,t;const n=null===(e=this.props.target.current)||void 0===e?void 0:e.getBoundingClientRect();n&&(this.setState({position:{top:n.height,bottom:void 0,left:0,right:0}}),null===(t=this.menu.current)||void 0===t||t.focus())}render(){const{highlightIndex:e,position:t}=this.state,{className:n,items:o,onSelect:r,onBlur:i,onCancel:s}=this.props;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{ref:this.menu,className:qe()(Us.a.container,n),style:Object.assign({},t),tabIndex:1,onBlur:i},o.map((t,n)=>a.a.createElement("div",{key:t.id,"data-cy":"dropdown-menu__item",className:qe()(Us.a.item,{[Us.a.highlighted]:e===n}),onClick:()=>r(t)},t.label))),a.a.createElement(Sr,{keys:"up",target:this.menu,onMatch:this.handleHighlightPrevious}),a.a.createElement(Sr,{keys:"down",target:this.menu,onMatch:this.handleHighlightNext}),s&&a.a.createElement(Sr,{keys:"esc",target:this.menu,onMatch:s}),a.a.createElement(Sr,{keys:"enter",target:this.menu,onMatch:this.handleSelect}))}}Ys.defaultProps={onBlur:()=>{}};var qs=mt(Ys);function Ks(){return(Ks=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var $s=s.createElement("circle",{cx:6,cy:12,r:2}),Qs=s.createElement("circle",{cx:12,cy:12,r:2}),Xs=s.createElement("circle",{cx:18,cy:12,r:2});var Js=function(e){return s.createElement("svg",Ks({viewBox:"0 0 24 24"},e),$s,Qs,Xs)},Zs=n(43),ea=n.n(Zs),ta=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class na extends a.a.PureComponent{constructor(){super(...arguments),this.button=a.a.createRef(),this.state={isOpen:!1},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen,inputValue:""}))},this.handleSelect=e=>{const{onSelect:t}=this.props;t&&t(e),this.handleToggle()}}render(){const e=this.props,{className:t,type:n,label:o,items:r,selectedItem:i,onSelect:s}=e,l=ta(e,["className","type","label","items","selectedItem","onSelect"]),{isOpen:u}=this.state;return a.a.createElement(a.a.Fragment,null,o&&a.a.createElement("div",{className:ea.a.label},o),a.a.createElement("div",Object.assign({ref:this.button,className:qe()(ea.a.button,{[ea.a.open]:u},t),onClick:this.handleToggle},l),"button"===n&&a.a.createElement(Js,null),"text"===n&&a.a.createElement("div",{className:ea.a.textButton,"data-cy":"dropdown__item--selected"},a.a.createElement("span",null,(null==i?void 0:i.label)||""),a.a.createElement("div",{className:ea.a.caret}))),u&&a.a.createElement(qs,{className:ea.a.dropdown,target:this.button,items:r,onSelect:this.handleSelect,onBlur:this.handleToggle,onCancel:this.handleToggle}))}}var oa=mt(na),ra=n(20),ia=n.n(ra);class sa extends a.a.PureComponent{constructor(){super(...arguments),this.runScriptDebounced=Object(yt.debounce)(()=>{var e;(null===(e=qo.activeTab)||void 0===e?void 0:e.session).script.run()},300,{leading:!1,trailing:!0}),this.handleChangeField=({id:e})=>{var t,n;const{whereId:o}=this.props;null===(t=qo.activeTab)||void 0===t||t.update({preview:!1});const r=(null===(n=qo.activeTab)||void 0===n?void 0:n.session).script,i=r.where.get(o);i&&(r.update({frozen:!1}),i.update({fieldId:e}),this.runScriptDebounced())},this.handleChangeOperation=({id:e})=>{var t,n;const{whereId:o}=this.props;null===(t=qo.activeTab)||void 0===t||t.update({preview:!1});const r=(null===(n=qo.activeTab)||void 0===n?void 0:n.session).script,i=r.where.get(o);i&&(r.update({frozen:!1}),i.update({operation:e}),this.runScriptDebounced())},this.handleChangeValue=e=>{var t,n;const{whereId:o}=this.props;null===(t=qo.activeTab)||void 0===t||t.update({preview:!1});const r=(null===(n=qo.activeTab)||void 0===n?void 0:n.session).script,i=r.where.get(o);i&&(r.update({frozen:!1}),""===e?i.update({value:null}):i.update({value:e}),this.runScriptDebounced())},this.handleDelete=()=>{var e,t;const{whereId:n}=this.props;null===(e=qo.activeTab)||void 0===e||e.update({preview:!1}),(null===(t=qo.activeTab)||void 0===t?void 0:t.session).script.where.remove(n),this.runScriptDebounced()}}render(){const{whereId:e}=this.props,t=qo.activeTab.session,n=t.script.where.get(e);return n?a.a.createElement("div",{"data-cy":"where-filter__row","data-cy-invalid":!n.isValid,className:qe()(ia.a.rowContainer,{[ia.a.invalid]:!n.isValid})},a.a.createElement(oa,{"data-cy":"where-filter__row__field",className:ia.a.fieldDropdown,type:"text",items:t.script.where.supportedFields.map(e=>({id:e.id,label:e.name})),selectedItem:{id:n.field.id,label:n.field.name},onSelect:this.handleChangeField}),a.a.createElement(oa,{"data-cy":"where-filter__row__operation",className:ia.a.operationDropdown,type:"text",items:n.supportedOperations.map(e=>({id:e,label:e})),selectedItem:{id:n.operation,label:n.operation},onSelect:this.handleChangeOperation}),a.a.createElement(Bs,{"data-cy":"where-filter__row__value",className:ia.a.input,type:n.field.isInt||n.field.isFloat?"number":"text",placeholder:"null",value:null===n.value?void 0:String(n.value),onChange:this.handleChangeValue}),a.a.createElement(br,{"data-cy":"where-filter__row__delete-btn",className:ia.a.deleteButton,onClick:this.handleDelete},a.a.createElement(Kr,null))):null}}var aa=mt(sa),la=n(14),ua=n.n(la);class ca extends a.a.PureComponent{constructor(){super(...arguments),this.button=a.a.createRef(),this.state={isOpen:!1},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen}))},this.handleAddWhere=()=>{var e,t;null===(e=qo.activeTab)||void 0===e||e.update({preview:!1});const n=(null===(t=qo.activeTab)||void 0===t?void 0:t.session).script;n.update({frozen:!1}),n.where.add({fieldId:n.model.idFields[0].id,value:null}),n.pagination.reset()}}render(){const{isOpen:e}=this.state,{where:t}=qo.activeTab.session.script;return a.a.createElement("div",{className:ua.a.container},a.a.createElement("div",{"data-cy":"where-filter",ref:this.button,className:qe()(ua.a.button,{[ua.a.open]:e,[ua.a.exists]:t.size>0}),onClick:this.handleToggle}," ",a.a.createElement("span",{className:qe()(ua.a.label)},"Filters"),a.a.createElement("span",null,t.size||"None"," ")),e&&a.a.createElement(Gs,{className:ia.a.tooltip,target:this.button,onClickOutside:this.handleToggle},a.a.createElement("div",{className:ia.a.whereContainer},Object.values(t.values).map(e=>a.a.createElement(aa,{key:e.id,whereId:e.id})),a.a.createElement(yr,{"data-cy":"create-where-filter-btn",className:ia.a.addButton,blue:!0,onClick:this.handleAddWhere},"Add a filter"))))}}var pa=mt(ca);function da(){return(da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var ha=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.333 2.54c.838.767.894 2.066.126 2.903L9.79 20.333a2.06 2.06 0 01-3.034 0L.54 13.566a2.052 2.052 0 01.126-2.903 2.06 2.06 0 012.907.127l4.698 5.116L20.425 2.666a2.06 2.06 0 012.908-.126z"});var fa=function(e){return s.createElement("svg",da({viewBox:"0 0 24 24"},e),ha)},ga=n(59),va=n.n(ga);var ma=mt(({className:e,checked:t,onChange:n})=>a.a.createElement("div",{"data-cy":"checkbox","data-cy-selected":t,className:qe()(va.a.container,e),onClick:()=>n&&n(!t)},a.a.createElement("div",{className:qe()(va.a.checkbox,{[va.a.checked]:t})},t&&a.a.createElement(fa,null)))),ya=n(49),Ca=n.n(ya);class wa extends a.a.PureComponent{constructor(){super(...arguments),this.button=a.a.createRef(),this.state={isOpen:!1,searchValue:""},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen}))},this.handleSelect=async e=>{var t,n;null===(t=qo.activeTab)||void 0===t||t.update({preview:!1});const o=(null===(n=qo.activeTab)||void 0===n?void 0:n.session).script;let r;r=o.fieldIds.includes(e)?o.fieldIds.filter(t=>t!==e):o.fieldIds.concat(e),o.update({frozen:!1,fieldIds:r})},this.handleSearch=e=>{this.setState({searchValue:e})}}render(){const{isOpen:e,searchValue:t}=this.state,{model:n,fieldIds:o}=qo.activeTab.session.script,r=n.fields.filter(e=>e.name.toLowerCase().includes(t.toLowerCase())),i=n.fieldIds.filter(e=>o.includes(e));return a.a.createElement("div",{"data-cy":"databrowser__filter--fields",className:ua.a.container},a.a.createElement("div",{"data-cy":"field-filter",ref:this.button,className:qe()(ua.a.button,{[ua.a.open]:e,[ua.a.exists]:i.length<n.fields.length}),onClick:this.handleToggle},a.a.createElement("span",{className:ua.a.label},"Fields"),a.a.createElement("span",null,i.length===n.fields.length?"All":i.length)),e&&a.a.createElement(Gs,{className:Ca.a.tooltip,target:this.button,onClickOutside:this.handleToggle},a.a.createElement(a.a.Fragment,null,a.a.createElement(Bs,{type:"text",className:Ca.a.search,placeholder:"Search",value:t,onChange:this.handleSearch}),r.map(e=>{const t=i.includes(e.id);return a.a.createElement(a.a.Fragment,{key:e.id},a.a.createElement(ma,{className:Ca.a.checkbox,checked:t,onChange:()=>this.handleSelect(e.id)}),a.a.createElement("div",{"data-cy":"filter-option",className:Ca.a.name,onClick:()=>this.handleSelect(e.id)},e.name),a.a.createElement("div",{className:Ca.a.type,onClick:()=>this.handleSelect(e.id)},e.typeAsLabel))}))))}}var Ea=mt(wa),ba=n(21),_a=n.n(ba);class Oa extends a.a.PureComponent{constructor(){super(...arguments),this.button=a.a.createRef(),this.tooltipBody=a.a.createRef(),this.runScriptDebounced=Object(yt.debounce)(()=>{var e;(null===(e=qo.activeTab)||void 0===e?void 0:e.session).script.run()},300,{leading:!1,trailing:!0}),this.state={isOpen:!1},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen}))},this.handleChangeTake=e=>{var t,n;null===(t=qo.activeTab)||void 0===t||t.update({preview:!1}),(null===(n=qo.activeTab)||void 0===n?void 0:n.session).script.update({frozen:!1,pagination:{take:Number(e)}}),this.runScriptDebounced()},this.handleChangeSkip=e=>{var t,n;null===(t=qo.activeTab)||void 0===t||t.update({preview:!1}),(null===(n=qo.activeTab)||void 0===n?void 0:n.session).script.update({frozen:!1,pagination:{skip:Number(e)}}),this.runScriptDebounced()}}render(){const{isOpen:e}=this.state,{recordIds:t,model:n,pagination:o}=qo.activeTab.session.script;return a.a.createElement("div",{className:ua.a.container},a.a.createElement("div",{"data-cy":"page-filter",ref:this.button,className:qe()(ua.a.button,{[ua.a.open]:e}),onClick:this.handleToggle},a.a.createElement("span",{className:ua.a.label}," Showing "),a.a.createElement("span",null,a.a.createElement("span",{className:_a.a.noPadding,"data-cy":"pagination__take"},t.length)," of ",a.a.createElement("span",{className:_a.a.noPadding,"data-cy":"pagination__total"},n.count))),e&&a.a.createElement(Gs,{className:_a.a.tooltip,target:this.button,onClickOutside:this.handleToggle},a.a.createElement("div",{className:_a.a.tooltipBody,ref:this.tooltipBody},a.a.createElement("span",{className:_a.a.text},"Take"),a.a.createElement(Bs,{"data-cy":"pagination__take-input",type:"number",tabIndex:0,focusOnMount:!0,className:_a.a.input,value:String(o.take),onChange:this.handleChangeTake}),a.a.createElement("div",{className:_a.a.separator}),a.a.createElement("div",{className:_a.a.separator}),a.a.createElement("span",{className:_a.a.text},"Skip"),a.a.createElement(Bs,{"data-cy":"pagination__skip-input",type:"number",tabIndex:0,focusOnMount:!0,className:_a.a.input,value:String(o.skip),onChange:this.handleChangeSkip}))),e&&a.a.createElement(Sr,{keys:"esc",target:this.tooltipBody,onMatch:()=>this.handleToggle()}))}}var Ra=mt(Oa),Sa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Ta{hydrate(e={}){this.readonly=e.readonly||!1}update(e){Object(yt.has)(e,"readonly")&&(this.readonly=e.readonly)}}Sa([c.observable],Ta.prototype,"readonly",void 0),Sa([c.action],Ta.prototype,"hydrate",null),Sa([c.action],Ta.prototype,"update",null);var Pa=new Ta;function Da(){return(Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Aa=s.createElement("defs",null,s.createElement("linearGradient",{id:"read_svg__a",x1:635.22,y1:545.34,x2:635.22,y2:43.42,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{offset:0,stopColor:"gray",stopOpacity:.25}),s.createElement("stop",{offset:.54,stopColor:"gray",stopOpacity:.12}),s.createElement("stop",{offset:1,stopColor:"gray",stopOpacity:.1}))),Na=s.createElement("path",{d:"M599.86 137.42c-64.72-2.25-126.37-23.14-185.23-46S297.47 43.23 234.3 31.12c-40.63-7.79-87.1-8.89-119.83 12.89-31.51 21-41.69 57.15-47.16 90.73-4.12 25.26-6.54 51.84 4.75 75.49 7.83 16.42 21.74 30.22 31.35 46 33.47 54.72 9.82 122.2-26.45 175.63-17 25.07-36.75 49-49.87 75.66s-19.2 57.25-7.72 84.47c11.39 27 38.52 47.24 67.9 61.49 59.69 28.95 130 37.23 198.61 41.92 151.83 10.39 304.46 5.89 456.69 1.39 56.34-1.67 112.92-3.36 168.34-12.07 30.78-4.84 62.55-12.51 84.9-31.05 28.36-23.53 35.39-63.38 16.39-92.88-31.89-49.49-120-61.78-142.32-114.9-12.26-29.23.34-61.79 18.16-88.91 38.24-58.16 102.33-109.19 105.71-175.67 2.32-45.67-28.5-91.39-76.14-113-49.93-22.73-119.19-19.85-156.01 17.64-37.94 38.63-104.6 53.45-161.74 51.47z",fill:"#9f6bf4",opacity:.1}),xa=s.createElement("path",{fill:"#9f6bf4",d:"M435.45 690.5l-342.28-1.67-34.01-79.77 120.26-8.73-20.96-87.46 237.86-30.83-227.77-79.18 20.12-4.78 366.25 59.75-20.17 136.49-28.83 75.01-70.47 21.17z"}),Ia=s.createElement("path",{d:"M98.42 655.42s21-3.36 33.6 11.48c0 0-9.24 7.28-29.12-2.8zM96.22 655.09s-13.4 16.49-6.8 34.85c0 0 10.92-4.37 12.11-26.63zM84.18 627.98s8.4-15.41 42 6.16c0 0-4.48 10.36-19.32 9.52s-18.76-7.56-22.68-15.68zM82.01 626.87s-17.43-2-19.12 37.9c0 0 11.05 2.29 18.9-10.33s4.63-19.7.22-27.57zM71.86 595.04s9.8-27.16 45.36-7.84c0 0-8.12 24.92-41.72 17.08zM60.94 554.44s18.48-27.44 51.24-2c0 0-11.48 25.76-48.44 11.76zM57.02 515.8s21.56-25.21 54 0c0 0-20.44 22.12-54 6.44zM53.66 478.27s21.84-26.32 52.92-1.4c0 0-24.64 23.24-52.92 7.56zM55.62 444.95s23-33.88 52.08-10.92c0 0-24.64 29.12-52.08 17.36zM60.94 406.03s24.36-33.6 52.64-7.84c0 0-28.84 29.12-52.64 14zM69.06 371.24s28.84-31.58 54-19c0 0-30.05 33.54-55.26 27.38zM79.14 338.26s33.28-38.68 52.64-25.76c0 0-24.52 30-55 33zM93.69 300.01s29.13-31.58 50.41-23.74c0 0-24.92 32.76-54.32 33.6zM106.86 264.23s32.2-30.24 46.2-24.92c0 0-23.24 33.6-47.6 31.64zM119.74 231.19s27.72-36.13 42.85-33.33c0 0-16.81 32.21-42.85 37zM133.72 186.64s24.5-27.69 37.74-27.63c0 0-19.34 37-38.75 36.66zM142 156.98l23.67-57.68s1.18 52.14-26.68 68.38zM151.61 93.37s3.92-48.17 1.4-52.09c0 0 16.92 40.05-1.56 73.37zM70.94 594.4s-24.54-15.21-40.43 22c0 0 21.84 14.5 43.32-12.51zM60.15 552.89s-30.1-13.73-44.7 25.12c0 0 23.25 16 47.44-15.3zM55.62 518.11s-21.56-25.21-54 0c0 0 20.44 22.12 54 6.44zM52.92 478.27S31.08 451.95 0 476.87c0 0 24.64 23.24 52.92 7.56z",fill:"#9f6bf4"}),Fa=s.createElement("path",{d:"M55.62 445.91S40.3 407.96 7 424.28c0 0 18 33.65 47.26 27.93zM62.87 405.84s-15.23-38.61-49-20.71c0 0 20.68 35.39 47.5 26.67zM72.31 371.43s-6-42.33-34-46.12c0 0 5.94 44.64 30.23 53.75zM79.85 338.34s-2.34-51-25.49-52.78c0 0 .78 38.71 22.88 60zM96.09 298.58s-6.9-42.41-29-47.59c0 0 2.74 41.07 26.81 58zM109.48 264.58s-.23-44.18-13.73-50.67c0 0-8.37 40 9.82 56.31zM120.77 230.69s-1.89-45.49-15.87-51.9c0 0-4.78 36 13.78 54.88zM135.67 190.27s-.08-37-10.06-45.68c0 0-9.92 40.53 4.85 53.12z",fill:"#9f6bf4"}),Ma=s.createElement("path",{d:"M140.83 155.16l-9.71-61.58s-13.19 50.46 10.17 72.7zM142.72 93.95s-24.92-41.4-24.41-46c0 0 2.65 43.39 34 65zM145.64 81.72s-23.52-58.8-34.16-63.56c0 0 33.6 17.08 36.12 61.88z",fill:"#9f6bf4"}),La=s.createElement("path",{d:"M132.59 196.02l-1.61-.49c19.85-64.73 24.8-106 13.95-116.35l1.15-1.22c11.51 10.92 6.84 51.74-13.49 118.06z",fill:"#444053"}),ka=s.createElement("path",{d:"M77.93 347.58l-2.38-.85c2.11-5.93 4.38-11.95 6.76-17.88 20.72-51.64 38.36-99.68 49.67-136.56l2.07-1c-11.33 36.95-28.66 86.83-49.4 138.54-2.37 5.82-4.63 11.81-6.72 17.75z",fill:"#444053"}),Ga=s.createElement("path",{d:"M128.01 703.86c-.32-.35-32.49-36.58-54.92-98.43a364.18 364.18 0 01-21.67-112.78c-1.54-48.13 8.56-101.87 25.86-150.69l1.88 2.2c-38.84 109.57-23.41 203.46-2.94 260 22.19 61.29 54 97.12 54.31 97.48z",fill:"#444053"}),Va=s.createElement("path",{d:"M630.73 626.94s-22.67 27.67-4.67 69.5l-181 78.5-17.37 3.64-8-35 5.35-44.17v-24.14z",fill:"#d5d6db"}),Wa=s.createElement("path",{fill:"#9f6bf4",d:"M59.16 609.06l250.52-45.67 331.95 52.88-206.18 74.23-376.29-81.44z"}),ja=s.createElement("path",{fill:"#9f6bf4",d:"M59.16 609.06l250.52-45.67 331.95 52.88-206.18 74.23-376.29-81.44z"}),Ha=s.createElement("path",{d:"M59.16 609.05s-23.43 44.39 3.57 85.39l371.5 80.5s-23.06-35.36 1.19-84.44z",fill:"#9f6bf4"}),Ba=s.createElement("path",{d:"M59.16 609.05s-23.43 44.39 3.57 85.39l371.5 80.5s-23.06-35.36 1.19-84.44zM70.23 624.44s-13.39 32.48 0 53.5",opacity:.1}),za=s.createElement("path",{d:"M434.23 774.94l207.4-88.5s11.6 2.5 4.1 11-207.5 86-207.5 86l-375.5-89z",fill:"#9f6bf4"}),Ua=s.createElement("path",{d:"M434.23 774.94l207.4-88.5s11.6 2.5 4.1 11-207.5 86-207.5 86l-375.5-89zM417.23 699.44s-20 24 0 60",opacity:.1}),Ya=s.createElement("path",{opacity:.1,d:"M424.348 728.963l89.71-29.929.316.949-89.71 29.929zM424.32 737.012l107.705-40.956.356.935-107.706 40.956zM424.92 746.506l123.607-50.594.379.926L425.3 747.432zM426.364 754.87l140.108-63.29.411.911-140.108 63.29zM427.473 758.946l154.074-67.345.4.916-154.074 67.345zM429.796 765.786L614.522 686l.397.918-184.726 79.786z"}),qa=s.createElement("path",{fill:"#fff",opacity:.3,d:"M152.23 613.94l176-37 107.22 20.5-144.22 46.5-139-30z"}),Ka=s.createElement("path",{d:"M641.63 616.27s9.1 3.67 3.76 9.34-209.97 64.89-209.97 64.89z",fill:"#9f6bf4"}),$a=s.createElement("path",{d:"M730.02 530.76s-22.66 27.66-4.66 69.5l-181 78.5-17.37 3.66-8-35 5.43-44.16v-24.17z",fill:"#d5d6db"}),Qa=s.createElement("path",{fill:"#3a3768",d:"M158.46 512.87l250.51-45.66 331.96 52.88-206.18 74.23-376.29-81.45z"}),Xa=s.createElement("path",{d:"M158.42 512.87s-23.44 44.39 3.56 85.39l371.5 80.5s-23.05-35.39 1.23-84.45z",fill:"#3a3768"}),Ja=s.createElement("path",{d:"M158.42 512.87s-23.44 44.39 3.56 85.39l371.5 80.5s-23.05-35.39 1.23-84.45l-117.48-25.43zM169.52 528.26s-13.38 32.47 0 53.5",opacity:.1}),Za=s.createElement("path",{d:"M533.52 678.76l207.41-88.5s11.59 2.5 4.09 11-207.5 86-207.5 86l-375.5-89z",fill:"#3a3768"}),el=s.createElement("path",{d:"M533.52 678.76l207.41-88.5s11.59 2.5 4.09 11-207.5 86-207.5 86l-375.5-89zM516.52 603.26s-20 24 0 60",opacity:.1}),tl=s.createElement("path",{opacity:.1,d:"M523.646 632.794l89.709-29.93.316.95-89.709 29.929zM523.63 640.838l107.706-40.956.355.934-107.705 40.957zM524.217 650.318l123.606-50.594.379.926-123.607 50.594zM525.67 658.684l140.109-63.29.412.911-140.109 63.29zM526.766 662.747l154.074-67.345.4.916-154.074 67.346zM529.097 669.587l184.726-79.785.397.918-184.727 79.785z"}),nl=s.createElement("path",{fill:"#fff",opacity:.45,d:"M251.53 517.76l176-37 107.22 20.5-144.22 46.5-139-30z"}),ol=s.createElement("path",{d:"M740.93 520.09s9.09 3.67 3.76 9.33-209.94 64.89-209.94 64.89z",fill:"#3a3768"}),rl=s.createElement("path",{d:"M739.42 420.73s-22.67 49.67-4.67 91.5l-181 56.5-17.33 3.67-8-35 5.35-44.17v-24.17z",fill:"#d5d6db"}),il=s.createElement("path",{fill:"#9f6bf4",d:"M167.89 402.85l250.52-45.67 331.96 52.88-206.19 74.23-376.29-81.44z"}),sl=s.createElement("path",{d:"M167.89 402.84s-23.47 44.39 3.53 85.39l371.5 80.5s-23.06-35.39 1.22-84.44z",fill:"#9f6bf4"}),al=s.createElement("path",{d:"M167.89 402.84s-23.47 44.39 3.53 85.39l371.5 80.5s-23.06-35.39 1.22-84.44zM178.96 418.23s-13.39 32.48 0 53.5",opacity:.1}),ll=s.createElement("path",{d:"M542.96 568.73l207.4-66.5s11.6 2.5 4.1 11-207.5 64-207.5 64l-375.5-89z",fill:"#9f6bf4"}),ul=s.createElement("path",{d:"M542.96 568.73l207.4-66.5s11.6 2.5 4.1 11-207.5 64-207.5 64l-375.5-89zM525.96 493.23s-20 24 0 60",opacity:.1}),cl=s.createElement("path",{opacity:.1,d:"M533.089 522.762l89.709-29.93.316.95-89.709 29.929zM533.066 530.811l107.706-40.956.355.935-107.706 40.956zM533.643 540.296l123.607-50.594.378.926-123.606 50.594zM535.111 548.654l140.109-63.291.411.911-140.108 63.29zM536.211 552.726l154.075-67.346.4.917-154.074 67.345zM538.54 559.572l184.726-79.785.396.918-184.726 79.785z"}),pl=s.createElement("path",{fill:"#fff",opacity:.3,d:"M260.96 407.73l176-37 107.22 20.5-144.22 46.5-139-30z"}),dl=s.createElement("path",{d:"M750.36 410.06s9.1 3.67 3.76 9.34-209.94 64.89-209.94 64.89zM310.42 106.5s-38-2.29-33.56 24.37c0 0-.89 4.71 3.38 6.85 0 0 .07-2 3.9-1.31a17.05 17.05 0 004.14.2 8.62 8.62 0 005.05-2.08s10.69-4.42 14.85-21.9c0 0 3.08-3.81 3-4.79l-6.44 2.74s2.19 4.63.47 8.48c0 0-.21-8.31-1.45-8.12-.25 0-3.33 1.61-3.33 1.61s3.77 8.07.92 13.93c0 0 1.08-9.94-2.1-13.35l-4.52 2.64s4.41 8.33 1.42 15.13c0 0 .77-10.43-2.37-14.49l-4.1 3.2s4.15 8.21 1.62 13.85c0 0-.33-12.14-2.5-13.06 0 0-3.59 3.16-4.13 4.46 0 0 2.84 6 1.07 9.11 0 0-1.07-8.09-2-8.13 0 0-3.57 5.36-3.94 9a19.46 19.46 0 013.07-9.54 10.71 10.71 0 00-5.46 2.83s.55-3.79 6.35-4.12c0 0 2.95-4.07 3.74-4.31 0 0-5.77-.49-9.26 1.06 0 0 3.08-3.57 10.31-2l4-3.3s-7.58-1-10.8.11c0 0 3.71-3.16 11.89-.86l4.41-2.63s-6.47-1.39-10.32-.89c0 0 4.06-2.19 11.61.18l3.14-1.41s-4.73-.93-6.12-1.08-1.46-.53-1.46-.53a16.51 16.51 0 018.9 1s6.75-2.43 6.62-2.85z",fill:"#9f6bf4"}),hl=s.createElement("path",{d:"M845.02 216.08s-38-2.29-33.56 24.37c0 0-.89 4.71 3.38 6.85 0 0 .07-2 3.9-1.31a17.62 17.62 0 004.14.2 8.59 8.59 0 005-2.08s10.7-4.42 14.85-21.9c0 0 3.08-3.81 3-4.79l-6.42 2.74s2.19 4.63.47 8.48c0 0-.21-8.31-1.44-8.12-.25 0-3.34 1.61-3.34 1.61s3.77 8.07.93 13.93c0 0 1.08-9.94-2.11-13.35l-4.52 2.64s4.41 8.33 1.42 15.13c0 0 .77-10.43-2.37-14.49l-4.09 3.2s4.14 8.21 1.61 13.85c0 0-.33-12.14-2.5-13.06 0 0-3.58 3.16-4.13 4.46 0 0 2.84 6 1.08 9.11 0 0-1.08-8.09-2-8.13 0 0-3.57 5.36-3.94 9a19.4 19.4 0 013.08-9.54 10.76 10.76 0 00-5.47 2.83s.56-3.79 6.35-4.12c0 0 2.95-4.07 3.74-4.32 0 0-5.76-.48-9.26 1.07 0 0 3.08-3.57 10.31-2l4-3.3s-7.59-1-10.8.11c0 0 3.7-3.16 11.89-.86l4.4-2.63s-6.47-1.39-10.32-.89c0 0 4.06-2.19 11.61.18l3.15-1.41s-4.74-.93-6.13-1.08-1.46-.53-1.46-.53a16.39 16.39 0 018.9 1s6.77-2.43 6.65-2.85zM374.42 271.2s-16.56-34.33-37.64-17.41c0 0-4.55 1.52-4.33 6.29 0 0 1.75-.91 3 2.77a17.72 17.72 0 001.84 3.7 8.63 8.63 0 004.29 3.4s9.07 7.18 26.36 2.28c0 0 4.83.83 5.62.25l-5.52-4.27s-3 4.17-7.18 4.54c0 0 7.16-4.23 6.39-5.21-.16-.2-3-2.13-3-2.13s-5.21 7.23-11.71 7.6c0 0 9.2-3.9 10.62-8.35l-4.5-2.66s-5.13 7.92-12.52 8.62c0 0 9.48-4.41 11.49-9.13l-4.78-2s-5.15 7.62-11.31 8.17c0 0 10.44-6.21 10.18-8.56 0 0-4.51-1.58-5.91-1.43 0 0-3.82 5.39-7.42 5.39 0 0 6.53-4.89 6.13-5.68 0 0-6.42-.5-9.8 1a19.47 19.47 0 019.83-2 10.77 10.77 0 00-5.14-3.39s3.58-1.36 6.69 3.53c0 0 5 .59 5.59 1.16 0 0-2.39-5.26-5.44-7.55 0 0 4.62.93 6.73 8l4.85 1.92s-2.79-7.12-5.36-9.37c0 0 4.56 1.69 6.55 10l4.44 2.56s-1.93-6.33-4.25-9.44c0 0 3.89 2.48 5.5 10.22l2.77 2.06s-1.5-4.59-2-5.87-.25-1.54-.25-1.54a16.41 16.41 0 013.48 8.25s5.35 4.58 5.71 4.28zM758.2 167.58s-16.55-34.33-37.64-17.41c0 0-4.54 1.52-4.33 6.29 0 0 1.76-.9 3 2.77a17.34 17.34 0 001.85 3.71 8.58 8.58 0 004.28 3.39s9.08 7.18 26.36 2.29c0 0 4.83.82 5.63.24l-5.49-4.28s-3 4.18-7.17 4.55c0 0 7.15-4.24 6.38-5.22-.16-.2-3-2.13-3-2.13s-5.2 7.23-11.71 7.6c0 0 9.21-3.9 10.63-8.34l-4.57-2.64s-5.12 7.91-12.52 8.62c0 0 9.48-4.42 11.5-9.14l-4.79-2s-5.15 7.63-11.3 8.17c0 0 10.43-6.21 10.17-8.55 0 0-4.5-1.59-5.9-1.43 0 0-3.82 5.38-7.43 5.38 0 0 6.54-4.89 6.14-5.68 0 0-6.42-.5-9.81 1a19.46 19.46 0 019.83-2 10.71 10.71 0 00-5.13-3.39s3.58-1.36 6.69 3.53c0 0 5 .6 5.59 1.17 0 0-2.39-5.27-5.45-7.56 0 0 4.62.94 6.73 8.05l4.86 1.92s-2.79-7.13-5.36-9.38c0 0 4.56 1.69 6.54 10l4.45 2.56s-1.94-6.32-4.26-9.44c0 0 3.9 2.48 5.5 10.22l2.77 2.06s-1.49-4.59-2-5.87-.25-1.53-.25-1.53a16.45 16.45 0 013.47 8.25s5.43 4.54 5.74 4.22zM811.09 337.39s-16.55-34.34-37.67-17.42c0 0-4.54 1.52-4.33 6.29 0 0 1.76-.9 3 2.77a17.33 17.33 0 001.84 3.71 8.58 8.58 0 004.28 3.39s9.08 7.19 26.37 2.29c0 0 4.82.83 5.62.24l-5.52-4.27s-3 4.18-7.18 4.55c0 0 7.15-4.24 6.38-5.22-.16-.2-3-2.13-3-2.13s-5.2 7.23-11.71 7.61c0 0 9.21-3.91 10.63-8.35l-4.51-2.66s-5.12 7.92-12.52 8.62c0 0 9.48-4.42 11.5-9.14l-4.79-2s-5.15 7.62-11.3 8.17c0 0 10.44-6.21 10.18-8.56 0 0-4.51-1.59-5.91-1.43 0 0-3.82 5.38-7.43 5.38 0 0 6.54-4.89 6.14-5.68 0 0-6.42-.5-9.81 1a19.52 19.52 0 019.84-2 10.69 10.69 0 00-5.14-3.39s3.58-1.37 6.69 3.53c0 0 5 .59 5.59 1.16 0 0-2.39-5.26-5.44-7.56 0 0 4.62.94 6.73 8.05l4.85 1.92s-2.79-7.13-5.36-9.37c0 0 4.56 1.68 6.54 10l4.45 2.55s-1.94-6.32-4.26-9.44c0 0 3.9 2.48 5.51 10.23l2.77 2s-1.5-4.59-2-5.87-.25-1.53-.25-1.53a16.35 16.35 0 013.47 8.25s5.44 4.61 5.75 4.31z",fill:"#9f6bf4",opacity:.1}),fl=s.createElement("ellipse",{cx:201.95,cy:781.59,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),gl=s.createElement("ellipse",{cx:51.24,cy:737.91,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),vl=s.createElement("ellipse",{cx:316.83,cy:810.6,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),ml=s.createElement("ellipse",{cx:905.53,cy:747.41,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),yl=s.createElement("ellipse",{cx:714.22,cy:734.94,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),Cl=s.createElement("ellipse",{cx:590.46,cy:793.66,rx:27.19,ry:4.67,fill:"#9f6bf4",opacity:.1}),wl=s.createElement("path",{d:"M602.59 746.72s-37.86 19.56-18.3 42.6c0 0 1.84 5 7.16 4.65 0 0-1.06-1.94 3-3.49a19.51 19.51 0 004.09-2.17 9.61 9.61 0 003.66-4.89s7.74-10.36 1.74-29.53c0 0 .78-5.42.1-6.3l-4.6 6.31s4.75 3.19 5.3 7.88c0 0-5-7.87-6-7-.22.18-2.28 3.45-2.28 3.45s8.24 5.59 8.85 12.85c0 0-4.64-10.17-9.65-11.62l-2.87 5.12s9 5.48 10 13.72c0 0-5.23-10.45-10.57-12.56l-2.11 5.41s8.68 5.52 9.48 12.38c0 0-7.26-11.47-9.87-11.11 0 0-1.64 5.08-1.42 6.65 0 0 6.13 4.1 6.24 8.13 0 0-5.66-7.15-6.53-6.68 0 0-.36 7.19 1.38 10.93 0 0-3-5.34-2.51-10.93a12 12 0 00-3.63 5.84s-1.63-3.95 3.74-7.59c0 0 .51-5.59 1.13-6.28 0 0-5.81 2.84-8.28 6.32 0 0 .91-5.19 8.79-7.77l2-5.48s-7.88 3.34-10.31 6.28c0 0 1.75-5.15 10.93-7.62l2.72-5s-7 2.36-10.42 5c0 0 2.65-4.43 11.26-6.47l2.21-3.15s-5.08 1.81-6.5 2.46-1.7.33-1.7.33a18.39 18.39 0 019.11-4.14s5.01-6.19 4.66-6.53z",fill:"#9f6bf4"}),El=s.createElement("path",{d:"M803.54 420.71C797 402.94 761 401.27 745.38 405.8c-11.1 3.23-34.5 6.87-47 8.7l-.81-.77c1.62-.48 1.66-1.66 1.46-3.41a53.37 53.37 0 01.1-6.92c7.66 2.38 14.48-3.25 14.48-3.25 9-4 6.58-21.12 8.3-25.8 1.29-3.5 2.68-24.12 3.3-34.4h.13l.07-3.45c.09-1.49.13-2.36.13-2.36s.88-25.14 2.6-30.23c1.6-4.68 2.9-28.26 3.1-32v-.49l-.13-2.18c.09-1.59.13-3.36.12-5.22 0-8.55-.89-19.32-1-21.06v-.91c.07-3.65-.39-21.93-15.94-28.84-5.73-2.56-12.62-5.61-19.29-8.58-1.72-14.85-5.65-29.62-5.31-44.58 0-2.25.2-4.5.42-6.74 0 .65-.07 1.31-.08 2v4.36c.59-18.71 7.66-37.52 7-55.83-.06 1.79-.19 3.59-.36 5.39a58.13 58.13 0 00-1.92-18.39c-.6-2.11-1.41-4.29-3.14-5.7a12.93 12.93 0 00-5.48-2.17 110.21 110.21 0 00-14.39-2.68A22.22 22.22 0 00668.5 74c-10.14-13.92-25.16-27-42.92-30-8.91-1.5-19.16-.25-25.22 6.12a18.92 18.92 0 00-1.78 1.8c-3.26 3.89-4.66 9-8 12.88-.22.26-.47.5-.71.75-6.54 5.85-16.73 7.07-24 12.32a28.81 28.81 0 00-3.59 3.13 60.88 60.88 0 00-7.84 9.53c-3.27 4.6-6.63 9.39-7.67 14.88-2.09 11 5.4 21.43 6.79 32.5 3.1 24.77-24.31 46.75-19.12 71.19a32.6 32.6 0 008.82 15.83c-10.69 9.68-19.79 19.07-19.79 19.07v.56h-1.69l.17 2h-.17l.93 10.85-.93 15.8v1.49h.06c.31 5.79 1.54 26.61 3 31 1.72 5.09 2.59 30.23 2.59 30.23s1.9 35.53 3.64 40.23-.73 21.77 8.3 25.8a19 19 0 009.07 3.76c-.46 3.74-.17 6.45 1.32 7.3a4.36 4.36 0 002.1.6 22.29 22.29 0 00-1.63 2.85 42.36 42.36 0 01-10.48-2.47c-9.7-4-41.89-13-51.24-6.67s-31.85 12.07-21.46 37.55S482.28 471 482.28 471a37 37 0 018.31 8.35c3.12 4.69 32.19 15.42 39.46 15.42a71.19 71.19 0 019.25.46s-7.89 6.92-6.84 10.94-2.4 36.2-2.4 36.2 8 8.06 11.42-2.51l.12.16c.64.87 4.1 4.8 10.61-.16a59.48 59.48 0 018.46-5.36l31.52-4.46a89.24 89.24 0 019.87-.07c5 .41 9.91-2.55 13-4.84 6.53 2.48 13.87 5.19 17.36 6.18 7.08 2 39.62 10.73 47.23 8a10.57 10.57 0 004.1-2.92l7.26.23-3.4.68s6.62.11 15.62.23l-.38.22 11.29-.1c16.52.15 35.08.2 37.52-.35 3.82-.85 23.67-.25 29.52 0h1.63s21.81-4.35 12.81-26.48c-6.92-17-28.19-21.94-37.63-23.3 2.66-.53 4.95-.94 6.47-1.18 6.59-1 19.39-7 20.43-9.05s11.77-8 14.54-11.39 10.68-27.42 4.11-45.19zm-180.65 49.73l-1.07.35-.72.24-1.38 1.36c-1.1-.74-2.28-1.52-3.51-2.32 2.17.13 4.4.26 6.68.37zm95.31 28.18z",transform:"translate(-88.58 -43.42)",fill:"url(#read_svg__a)"}),bl=s.createElement("path",{d:"M598.07 321.58s15.3 40 24 36 6.34-21 8-25.66 3.5-40 3.5-40 .84-25 2.5-30.06c1.54-4.65 2.79-28.1 3-31.79v-.49l-1.65-29-9.34-2.33-21.66 8-3 17.13-1.17 6.69-.5 2.85z",fill:"#be6f72"}),_l=s.createElement("path",{d:"M603.11 314.88s14.6 11.95 19 13 7.1 10.37 7.1 10.37",opacity:.1}),Ol=s.createElement("path",{d:"M478.42 323.33s-15.3 40-24 36-6.34-21-8-25.66-3.5-40-3.5-40-.84-25-2.5-30.06c-1.54-4.65-2.79-28.1-3-31.79v-.49l1.66-29 9.34-2.33 21.66 8 3 17.13 1.17 6.69.5 2.85z",fill:"#be6f72"}),Rl=s.createElement("path",{fill:"#3e373a",d:"M543.9 109.27h34.15v53.23H543.9z"}),Sl=s.createElement("path",{opacity:.1,d:"M543.9 109.27h34.15v53.23H543.9z"}),Tl=s.createElement("path",{d:"M472.42 363.17s-11.67 12.83-7.34 15.16 32.34 46 32.34 46 92 11.33 109.35-5.67 17-47.37 17-47.37-13.94 3-15.46 1.37-9.87-9.49-9.87-9.49-118.02-7.16-126.02 0z",fill:"#4b4b5b"}),Pl=s.createElement("path",{d:"M472.42 363.17s-11.67 12.83-7.34 15.16 32.34 46 32.34 46 92 11.33 109.35-5.67 17-47.37 17-47.37-13.94 3-15.46 1.37-9.87-9.49-9.87-9.49-118.02-7.16-126.02 0z",opacity:.02}),Dl=s.createElement("path",{d:"M638.04 201l-30 24-9.07.66-3.33.24-55.93 4.1-58-4.24-8.63-.63-11-.8-23-22s16.28-17.44 30.54-29.21c5.62-4.65 10.93-8.41 14.8-9.89l.66-.23a16.46 16.46 0 006.34-4.42c11.26-11.61 21.67-40.26 21.67-40.26s49.67-25.66 43.67 8 22.33 25.34 22.33 25.34l9.34 4.26 3.69 1.69 9.41 4.31 21.23 9.74c16.66 7.67 15.28 29.34 15.28 29.34z",fill:"#be6f72"}),Al=s.createElement("circle",{cx:537.38,cy:101.06,r:44.67,opacity:.1}),Nl=s.createElement("path",{d:"M638.11 232.82H437.42v-.49l1.66-29s16.28-17.44 30.54-29.21l126-5 5.86-6.18 21.23 9.74c16.67 7.66 15.33 29.33 15.33 29.33s2.28 25.11.07 30.81z",opacity:.1}),xl=s.createElement("path",{d:"M638.11 231.82H437.42v-.49l1.66-29s16.28-17.44 30.54-29.21l126-5 5.86-6.18 21.23 9.74c16.67 7.66 15.33 29.33 15.33 29.33s2.28 25.11.07 30.81z",fill:"#e7c7ca"}),Il=s.createElement("path",{d:"M505.21 150.5s31.66 40.34 73.83-.83 4.67 91.83 4.67 91.83l-91 10.8z",opacity:.1}),Fl=s.createElement("path",{d:"M505.21 152.5s31.66 40.34 73.83-.83 4.67 91.83 4.67 91.83l-91 10.8z",fill:"#e7c7ca"}),Ml=s.createElement("path",{d:"M592.07 159.58l3.35 51.09 3.59 17 2.74 13s7 100 5 105 1 9 1.42 11.66-.42 9.34-.09 12.34 0 4.33-7.66 3.26-18.34-2.93-18.34-2.93-27 2-36.33-1.33-27-3.34-27-3.34-26.67.67-35.33-.33-13.34 10.67-19 7.33 6.66-35.66 10.66-45-5.33-33-5.33-33l12-66.57 2.67-15.09v-47.44l.66-.23a16.46 16.46 0 006.34-4.42l3 47.74 94 3.34v-53.73",opacity:.1}),Ll=s.createElement("path",{d:"M592.07 157.58l3.35 51.09 3.59 17 2.74 13s7 100 5 105 1 9 1.42 11.66-.42 9.34-.09 12.34 0 4.33-7.66 3.26-18.34-2.93-18.34-2.93-27 2-36.33-1.33-27-3.34-27-3.34-26.67.67-35.33-.33-13.34 10.67-19 7.33 6.66-35.66 10.66-45-5.33-33-5.33-33l12-66.57 2.67-15.09v-47.44l.66-.23a16.46 16.46 0 006.34-4.42l3 47.74 94 3.34v-53.73",fill:"#e7c7ca"}),kl=s.createElement("path",{d:"M602.88 50.96c-.57-2.09-1.36-4.26-3-5.66a12.28 12.28 0 00-5.28-2.16 104.32 104.32 0 00-13.88-2.66 22.22 22.22 0 00-3-6.23c-9.8-13.84-24.3-26.89-41.36-29.84-8.93-1.55-19.28-.16-25 6.88-3.14 3.87-4.49 9-7.66 12.8-6.11 7.38-17.14 8.29-24.84 14-4.11 3-7.09 7.35-10 11.57-3.15 4.57-6.39 9.33-7.39 14.79-2 10.91 5.21 21.31 6.54 32.32 3 24.63-23.4 46.48-18.41 70.78 2.91 14.17 16 24.15 29.54 29.21 4.77 1.79 10.22 3.57 12.45 8.15 1 2 1.17 4.31 2.11 6.33 3.16 6.74 13.55 7 19.13 2.09s7.34-12.85 8-20.26c2.68-32.36-10.28-64.33-8.77-96.77.45-9.81 3.21-20.94 12-25.38 11.83-6 26.06 4 39.08 2.09a77.53 77.53 0 013.74 47.31c-2.07 8.63-5.65 17-5.91 25.9-.39 13.55 6.92 25.93 13.24 37.91a20.17 20.17 0 012.67 7.31 17.62 17.62 0 01-1.43 7.65c-3.57 9.61-9.73 18.53-10.43 28.76a4.65 4.65 0 00.75 3.42 4.3 4.3 0 002.58 1.16c10.8 1.85 20.14-7.72 25.41-17.33a81.24 81.24 0 0010.02-34.52c1.09-20.36-6.21-40.39-5.76-60.77.52-23.17 10.99-46.5 4.86-68.85z",opacity:.1}),Gl=s.createElement("path",{d:"M603.88 49.96c-.57-2.09-1.36-4.26-3-5.66a12.28 12.28 0 00-5.28-2.16 104.32 104.32 0 00-13.88-2.66 22.22 22.22 0 00-3-6.23c-9.8-13.84-24.3-26.89-41.36-29.84-8.93-1.55-19.28-.16-25 6.88-3.14 3.87-4.49 9-7.66 12.8-6.11 7.38-17.14 8.29-24.84 14-4.11 3-7.09 7.35-10 11.57-3.15 4.57-6.39 9.33-7.39 14.79-2 10.91 5.21 21.31 6.54 32.32 3 24.63-23.4 46.48-18.41 70.78 2.91 14.17 16 24.15 29.54 29.21 4.77 1.79 10.22 3.57 12.45 8.15 1 2 1.17 4.31 2.11 6.33 3.16 6.74 13.55 7 19.13 2.09s7.34-12.85 8-20.26c2.68-32.36-10.28-64.33-8.77-96.77.45-9.81 3.21-20.94 12-25.38 11.83-6 26.06 4 39.08 2.09a77.53 77.53 0 013.74 47.31c-2.07 8.63-5.65 17-5.91 25.9-.39 13.55 6.92 25.93 13.24 37.91a20.17 20.17 0 012.67 7.31 17.62 17.62 0 01-1.43 7.65c-3.57 9.61-9.73 18.53-10.43 28.76a4.65 4.65 0 00.75 3.42 4.3 4.3 0 002.58 1.16c10.8 1.85 20.14-7.72 25.41-17.33a81.24 81.24 0 0010.02-34.52c1.09-20.36-6.21-40.39-5.76-60.77.52-23.17 10.99-46.5 4.86-68.85z",fill:"#3e373a"}),Vl=s.createElement("path",{fill:"#c3c7d9",d:"M581.79 492.73l39.67 1.27-5.69-29.42-30.39 2.89-3.59 25.26z"}),Wl=s.createElement("path",{d:"M704.71 423c-2.67 3.33-13 9.33-14 11.33s-13.33 8-19.67 9-26.33 5.34-30 7.67c-2.63 1.68-23.74 7-37.61 9.95a106.75 106.75 0 01-11.39 2.05c-6 .33-71.66-22-71.66-22l12.66-13 .7-.24c3.58-1.21 20.12-6.8 29.3-9.46 10.34-3 22.34-15.33 22.34-15.33s17.66-6 20-6.67-6-23.33-6-23.33 38.33-5.32 53.33-9.83 49.67-2.84 56 14.83-1.29 41.7-4 45.03z",fill:"#4b4b5b"}),jl=s.createElement("path",{d:"M530.04 479.33s-7.66 8-15.33 7.34-34.49 2-34.49 2a53.77 53.77 0 00-13.51 7.83c-6.27 4.94-9.6 1-10.22.16l-.11-.16c-3.34 10.51-11 2.5-11 2.5s3.33-32 2.31-36 6.59-10.87 6.59-10.87l9-2.29 22.8-5.84 32.67 11.33z",fill:"#e7c7ca"}),Hl=s.createElement("path",{d:"M463.24 449.84l-6.75 46.82-.11-.16c-3.34 10.51-11 2.5-11 2.5s3.33-32 2.31-36 6.59-10.87 6.59-10.87zM510.42 316.66s17.66 6 33 0M570.71 328s7.33 3.66 13 0M570.71 336.68s12.33 1.65 14.67-1.68M566.71 355.33s23.16-3 28.91-7M496.04 348.33s13 7.33 22.67 7M603.42 460.95a106.75 106.75 0 01-11.39 2.05c-6 .33-71.66-22-71.66-22l12.66-13 .7-.24c2 1.41 3.64 2.62 4.81 3.54 5.51 4.34 10.83-1.33 12.83-1.33s19.33 14.33 19.33 14.33 16 3.67 18.67 7 12 2.67 13.66 5c.5.72.56 2.49.39 4.65z",opacity:.1}),Bl=s.createElement("path",{d:"M480.22 374.33s-16.18.93-25.51-3-40.33-13-49.33-6.63-30.67 12-20.67 37.34 14.67 26 14.67 26a36.1 36.1 0 018 8.3c3 4.67 31 15.33 38 15.33s19.33 0 36.66 12 33 13.34 33 13.34 22 9 28.85 11 38.15 10.66 45.49 8 12-19.34 12-19.34 3.33-15 1.66-17.33-11-1.67-13.66-5-18.67-7-18.67-7S553.42 433 551.42 433s-7.32 5.66-12.83 1.33a292.69 292.69 0 00-34.51-22c-12.66-6.67-23.86-38-23.86-38z",fill:"#4b4b5b"}),zl=s.createElement("path",{d:"M447.69 384a19.1 19.1 0 0116.39 4.33c8 6.67 34.92 20.06 34.92 20.06M647.71 383.58s-35.67 5.4-42.33 12.73",opacity:.1}),Ul=s.createElement("path",{d:"M688.71 494h-1.57c-5.64-.2-24.75-.8-28.43 0-4.33 1-61.67 0-61.67 0l11.21-2.33s-4.16-14.58-1.52-15.79c0 0-15-9.88-3.69-16.55s23.5-3.86 23.5-3.86l28.39-9.62 5.45-1.85s32 1.67 40.66 23.67S688.71 494 688.71 494z",fill:"#e7c7ca"}),Yl=s.createElement("path",{d:"M688.71 494h-1.57c9.31-7.68 30.37-31.06-32.21-48.1l5.45-1.85s32 1.67 40.66 23.67S688.71 494 688.71 494z",opacity:.1}),ql=s.createElement("circle",{cx:629.88,cy:466.33,r:1.75,fill:"#4b4b5b"}),Kl=s.createElement("circle",{cx:619.71,cy:469.22,r:1.75,fill:"#4b4b5b"}),$l=s.createElement("g",{opacity:.1},s.createElement("path",{d:"M570.16 99.41a77.59 77.59 0 00-5.74-32.14c-13 1.94-27.24-8.09-39.08-2.09-8.76 4.44-11.51 15.57-12 25.38-.12 2.59-.14 5.18-.09 7.77 0-.92 0-1.85.09-2.77.46-9.81 3.21-20.94 12-25.38 11.84-6 26.06 4 39.08 2.09a77.38 77.38 0 015.74 27.14zM469.42 97.58a33.32 33.32 0 00-.13-6.54c-1.06-8.8-5.87-17.21-6.74-25.79-1.12 10.35 5.47 20.29 6.74 30.79.13.54.13 1.02.13 1.54zM522.11 187.32c-.62 7.42-2.37 15.35-8 20.27s-16 4.65-19.13-2.09c-1-2-1.15-4.33-2.12-6.33-2.22-4.58-7.68-6.36-12.45-8.15-13.55-5.07-26.62-15-29.53-29.21a30.68 30.68 0 01-.53-3.9 31.52 31.52 0 00.53 8.9c2.91 14.17 16 24.14 29.53 29.21 4.77 1.79 10.23 3.57 12.45 8.15 1 2 1.17 4.31 2.12 6.33 3.15 6.74 13.54 7 19.13 2.09s7.33-12.85 8-20.27a114.29 114.29 0 00.31-11.74c0 2.27-.13 4.51-.31 6.74zM599.35 114.07v4.33c.56-18.6 7.38-37.3 6.71-55.51-.52 16.84-6.33 34.06-6.71 51.18zM577.89 189.31a12.89 12.89 0 00.23-3.61 20 20 0 00-2.67-7.31c-5.78-11-12.37-22.26-13.15-34.47 0 .52-.07 1-.08 1.56-.4 13.54 6.91 25.93 13.23 37.91a24 24 0 012.44 5.92zM605.1 174.84a81.37 81.37 0 01-10.09 34.52c-5.28 9.61-14.61 19.18-25.42 17.33a4.25 4.25 0 01-2.58-1.17 2.5 2.5 0 01-.47-.78c-.12.78-.22 1.57-.28 2.37a4.61 4.61 0 00.75 3.41 4.25 4.25 0 002.58 1.17c10.81 1.85 20.14-7.72 25.42-17.33a81.37 81.37 0 0010.09-34.52c.12-2.34.13-4.67.06-7-.02.67-.02 1.33-.06 2z"})),Ql=s.createElement("path",{d:"M606.73 475.88s25.31 10.62 42-12.88M611.71 494.44s20.67-13.44 47-.44M473.35 491.39s8.68-19.58 31.86-4.65",fill:"none",stroke:"#000",strokeMiterlimit:10,opacity:.1}),Xl=s.createElement("path",{d:"M445.21 201.83l17.7-16s68.63-4.5 71.47 18.83c0 0 24.33-27.66 75.5-21.5l21.65 17.24-59.84 26.26-58.15 20.17-42.83-19.17z",opacity:.1}),Jl=s.createElement("path",{d:"M445.21 202.83l17.7-16s68.63-4.5 71.47 18.83c0 0 24.33-27.66 75.5-21.5l21.65 17.24-59.84 26.26-58.15 20.17-42.83-19.17z",fill:"#d5d6db"}),Zl=s.createElement("path",{opacity:.1,d:"M437.38 204.83l7.83 93.67 83 4.17-3.6-93.27-.07-1.57-87.16-3z"}),eu=s.createElement("path",{fill:"#9f6bf4",d:"M437.38 202.83l7.83 93.67 83 4.17-3.6-93.27-.07-1.57-87.16-3z"}),tu=s.createElement("path",{opacity:.1,d:"M635.33 202.83l-85.62 12.84v94.09l83.67-12.09 1.95-94.84z"}),nu=s.createElement("path",{fill:"#9f6bf4",d:"M635.33 200.83l-85.62 12.84v94.09l83.67-12.09 1.95-94.84z"}),ou=s.createElement("path",{fill:"#fff",opacity:.3,d:"M615.14 223.79l-46.25 5.14 1.01 15.76 45.21-4.94.03-15.96z"}),ru=s.createElement("path",{d:"M449.71 346.66l4.71 12.67s7 6 14.66 3 14.34-4.49 17.67-7.41 8-17.59 8-17.59 4.67-16 9.33-20 17-59.11 0-53.72-30 55.39-30 55.39-3 3.66-7.33 4-13-.67-14.67 3-7.37 13.33-2.37 20.66z",fill:"#be6f72"}),iu=s.createElement("path",{d:"M549.71 215.66a28.8 28.8 0 01-25.11-6.26l3.61 93.26s8.5 9.2 21.5 7.1z",opacity:.1}),su=s.createElement("path",{d:"M549.71 213.66a28.8 28.8 0 01-25.11-6.26l3.61 93.26s8.5 9.2 21.5 7.1z",fill:"#9f6bf4"}),au=s.createElement("path",{d:"M549.71 213.66a28.8 28.8 0 01-25.11-6.26l3.61 93.26s8.5 9.2 21.5 7.1zM551.71 203.15s34.83-10.65 43.91-9.15M512.75 198.5s-33.76-8-39.4-5.73M573.67 204.48s23.29-8.54 31.71-4.48M561.94 418.71a76.56 76.56 0 0111.48-7.13c6-2.89 17-10.39 17-10.39M473.35 316.66s-14.61 11.95-19 13-7.1 10.37-7.1 10.37",opacity:.1}),lu=s.createElement("path",{d:"M626.74 344.88l-4.66 12.7s-7 6-14.67 3-14.33-4.49-17.67-7.41-8-17.59-8-17.59-4.66-16-9.33-20-17-59.11 0-53.72 30 55.39 30 55.39 3 3.66 7.33 4 13-.67 14.67 3 7.33 13.33 2.33 20.63z",fill:"#be6f72"}),uu=s.createElement("path",{d:"M618.57 321.52s9.55 6.14 9.51 13.48",opacity:.1}),cu=s.createElement("circle",{cx:537.54,cy:98.87,r:44.67,fill:"#be6f72"}),pu=s.createElement("path",{d:"M509.49 86.88c5.42-.85 10.17-4 15.35-5.81 11.59-4.07 24.41-1.28 36.14 2.39 4.5 1.41 9.07 3 13.79 3s9.73-1.93 12.14-6c2.22-3.74 1.79-8.6-.08-12.53s-5-7.09-8.16-10.07c-10.4-9.82-23.3-19-37.57-18-5.74.41-11.23 2.46-16.51 4.73a182 182 0 00-19.38 9.76c-4.81 2.79-13.72 6.52-16.49 11.62-6.3 11.49 10.97 22.45 20.77 20.91z",fill:"#3e373a"}),du=s.createElement("path",{d:"M586.91 76.26c-2.41 4.07-7.42 6-12.14 6s-9.29-1.53-13.8-2.94c-11.73-3.67-24.54-6.47-36.14-2.39-5.17 1.81-9.93 5-15.35 5.8-7.9 1.24-20.62-5.64-22-14.39-1.55 10.11 13.2 18.77 22 17.39 5.42-.85 10.18-4 15.35-5.8 11.6-4.08 24.41-1.28 36.14 2.39 4.51 1.41 9.07 3 13.8 2.94s9.73-1.92 12.14-6a11.71 11.71 0 001.4-7.31 10.78 10.78 0 01-1.4 4.31z",opacity:.1}),hu=s.createElement("path",{d:"M949.42 618.21s5.93 7.75-2.74 19.46-15.81 21.59-12.93 28.89c0 0 13.08-21.74 23.72-22.05s3.64-13.23-8.05-26.3z",fill:"#9f6bf4"}),fu=s.createElement("path",{d:"M949.42 618.21a9.6 9.6 0 011.21 2.43c10.38 12.2 15.92 23.59 5.93 23.87-9.3.27-20.45 16.9-23.12 21.09a9.78 9.78 0 00.31 1s13.08-21.74 23.72-22.05 3.64-13.27-8.05-26.34z",opacity:.1}),gu=s.createElement("path",{d:"M960.42 628.09c0 2.73-.31 4.94-.68 4.94s-.69-2.21-.69-4.94.38-1.44.76-1.44.61-1.29.61 1.44z",fill:"#ffd037"}),vu=s.createElement("path",{d:"M964.21 631.35c-2.39 1.3-4.48 2.09-4.66 1.76s1.61-1.66 4-3 1.45-.36 1.63 0 1.43-.07-.97 1.24z",fill:"#ffd037"}),mu=s.createElement("path",{d:"M918.08 618.21s-5.93 7.75 2.74 19.46 15.81 21.59 12.92 28.89c0 0-13.07-21.74-23.72-22.05s-3.6-13.23 8.06-26.3z",fill:"#9f6bf4"}),yu=s.createElement("path",{d:"M918.08 618.21a9.6 9.6 0 00-1.21 2.43c-10.38 12.2-15.92 23.59-5.93 23.87 9.29.27 20.45 16.9 23.12 21.09a7.72 7.72 0 01-.32 1s-13.07-21.74-23.72-22.05-3.6-13.27 8.06-26.34z",opacity:.1}),Cu=s.createElement("path",{d:"M907.06 628.09c0 2.73.3 4.94.68 4.94s.69-2.21.69-4.94-.39-1.44-.76-1.44-.61-1.29-.61 1.44z",fill:"#ffd037"}),wu=s.createElement("path",{d:"M903.28 631.35c2.39 1.3 4.48 2.09 4.66 1.76s-1.61-1.66-4-3-1.45-.36-1.63 0-1.43-.07.97 1.24z",fill:"#ffd037"}),Eu=s.createElement("ellipse",{cx:933.75,cy:716.37,rx:62,ry:9.51,fill:"#9f6bf4",opacity:.1}),bu=s.createElement("path",{d:"M965.66 656.11l-.3 2.42-.42 3.42-.17 1.43-.42 3.42-.18 1.43-.41 3.41-4.75 38.9c-.42 3.47-6.09 6.18-12.94 6.18h-24.65c-6.85 0-12.51-2.71-12.94-6.18l-4.75-38.9-.42-3.41-.17-1.43-.42-3.42-.18-1.43-.41-3.42-.3-2.42c-.23-2 2.83-3.62 6.71-3.62h50.42c3.87 0 6.94 1.65 6.7 3.62z",fill:"#65617d"}),_u=s.createElement("path",{fill:"#9d9cb5",d:"M965.36 658.53l-.41 3.42h-62.4l-.42-3.42h63.23zM964.77 663.38l-.41 3.42h-61.22l-.42-3.42h62.05zM964.18 668.23l-.42 3.42h-60.03l-.41-3.42h60.86z"});var Ou=function(e){return s.createElement("svg",Da({viewBox:"0 0 1022.84 813.16"},e),Aa,Na,xa,Ia,Fa,Ma,La,ka,Ga,Va,Wa,ja,Ha,Ba,za,Ua,Ya,qa,Ka,$a,Qa,Xa,Ja,Za,el,tl,nl,ol,rl,il,sl,al,ll,ul,cl,pl,dl,hl,fl,gl,vl,ml,yl,Cl,wl,El,bl,_l,Ol,Rl,Sl,Tl,Pl,Dl,Al,Nl,xl,Il,Fl,Ml,Ll,kl,Gl,Vl,Wl,jl,Hl,Bl,zl,Ul,Yl,ql,Kl,$l,Ql,Xl,Jl,Zl,eu,tu,nu,ou,ru,iu,su,au,lu,uu,cu,pu,du,hu,fu,gu,vu,mu,yu,Cu,wu,Eu,bu,_u)},Ru=n(44),Su=n.n(Ru);class Tu extends a.a.PureComponent{render(){const{onClose:e}=this.props;return a.a.createElement(jr,{className:Su.a.dialog,onClose:e},a.a.createElement("div",{className:Su.a.container},a.a.createElement(Ou,{className:Su.a.illustration}),a.a.createElement("div",{className:Su.a.title},"Read-only zone"),a.a.createElement("div",{className:Su.a.content},"Pending changes could not be saved because you do not have write permissions for this database"),a.a.createElement(yr,{className:Su.a.confirmButton,onClick:e},"Got it")))}}var Pu=mt(Tu),Du=n(45),Au=n.n(Du);class Nu extends a.a.PureComponent{constructor(){super(...arguments),this.state={isReadonlyDialogOpen:!1},this.handleInvalidCountClick=()=>{if(0===fo.invalidActions.length)return;console.log("Invalid actions:",fo.invalidActions);const e=fo.invalidActions[0];if(!e||!e.recordId||!e.record)return;const t=Object.keys(e.value).find(t=>{const n=e.record.model.getFieldByName(t);if(n)return!so(n,e.value[t])});t&&this.props.onScrollToCell(e.recordId,t)},this.handleDiscard=()=>{const{onDiscard:e}=this.props;fo.discard(),e()},this.handleCommit=()=>{const{onCommit:e}=this.props;if(Pa.readonly)return this.handleToggleReadonlyDialog();fo.commit(),e()},this.handleToggleReadonlyDialog=()=>{this.setState(e=>({isReadonlyDialogOpen:!e.isReadonlyDialogOpen}))}}render(){const{isReadonlyDialogOpen:e}=this.state,t=fo.actions.length,n=fo.invalidActions.length;return 0===t?null:a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:Au.a.separator}),a.a.createElement("div",{"data-cy":"pending-actions",className:qe()(Au.a.container,this.props.className)},a.a.createElement(yr,{"data-cy":"commit-actions",className:qe()(Au.a.action,Au.a.confirmBtn),disabled:n>0||fo.committing,onClick:this.handleCommit},fo.committing?"Saving Changes":`Save ${t} change${t>1?"s":""}`),a.a.createElement(yr,{"data-cy":"discard-actions",ghost:!0,className:qe()(Au.a.action,Au.a.discardBtn),onClick:this.handleDiscard},"Discard changes"),e&&a.a.createElement(Pu,{onClose:this.handleToggleReadonlyDialog}),a.a.createElement(Sr,{keys:"mod+s",onMatch:()=>fo.commit()})))}}var xu=mt(Nu),Iu=n(25);function Fu(){return(Fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Mu=s.createElement("path",{fill:"#3f3d56",d:"M959.049 388.464h9.832v388.345h-9.832z"}),Lu=s.createElement("path",{d:"M1059.614 437.954c.626 135.794-94.913 246.32-94.913 246.32s-96.553-109.64-97.179-245.435 94.913-246.32 94.913-246.32 96.553 109.64 97.18 245.435zM767.244 571.186h5.057v199.735h-5.057z",fill:"#3f3d56"}),ku=s.createElement("path",{d:"M818.967 596.64c.322 69.842-48.816 126.688-48.816 126.688s-49.66-56.39-49.981-126.233 48.815-126.689 48.815-126.689 49.66 56.391 49.982 126.234z",fill:"#3f3d56"}),Gu=s.createElement("ellipse",{cx:871.969,cy:776.515,rx:137,ry:21,fill:"#3f3d56"}),Vu=s.createElement("path",{d:"M883.268 287.081c-11.607-19.612-34.57-20.526-34.57-20.526s-22.377-2.861-36.731 27.008c-13.38 27.84-31.845 54.722-2.973 61.24l5.215-16.233 3.23 17.44a112.967 112.967 0 0012.353.212c30.92-.999 60.366.292 59.418-10.803-1.26-14.75 5.226-39.467-5.942-58.338z",fill:"#2f2e41"}),Wu=s.createElement("path",{d:"M841.469 324.015s15 21 6 38 21 35 21 35l22-48s-26-17-19-33z",fill:"#fbbebe"}),ju=s.createElement("circle",{cx:851.469,cy:307.015,r:26,fill:"#fbbebe"}),Hu=s.createElement("path",{d:"M761.49 337.07l21.727-28.033s7.65-29.385 18.731-27.895-4.376 35.24-4.376 35.24l-21.59 31.03zM871.469 710.015l7 37 15 4-4-44-18 3zM1022.469 670.015l27 37 11 5 9-15-27-35-20 8z",fill:"#fbbebe"}),Bu=s.createElement("path",{d:"M865.469 381.015l-16.681-21.96s-32.32 5.96-35.32 8.96 8 58 8 58 2 15 11 23l9 6 74-15 2.783-32.926a86.41 86.41 0 00-22.782-66.074l-12.876 1.76z",fill:"#575a89"}),zu=s.createElement("path",{d:"M817.469 370.015l-5-2-23-2s-8-2-6-6 4-5 0-6-5-2-4-5 7-9 7-9l-17-14s-.92.65-2.408 1.855c-8.44 6.834-35.147 31.49-15.592 56.145 23 29 50 46 72 40z",fill:"#575a89"}),Uu=s.createElement("path",{d:"M839.469 450.015v14s-9 17-6 33 4 24 4 24a136.533 136.533 0 007 40c7 20-16 151 13 153s45 4 54-6-15-182-15-182 82 171 99 164 60-23 55-32-131-209-131-209l-4-9zM887.469 740.015s-16-1-16 4-8 22-8 22-6 20 10 18 26-20 26-20l-4-19zM1054.469 705.015s-14-9-13-3 2 22 9 23 28 7 29 9 25 10 25-3-15-23-15-23l-17-13s-11-1-13 6-5 4-5 4z",fill:"#2f2e41"}),Yu=s.createElement("circle",{cx:851.508,cy:266.654,r:16.604,fill:"#2f2e41"}),qu=s.createElement("path",{d:"M833.157 262.285a16.604 16.604 0 0114.856-16.51 16.772 16.772 0 00-1.748-.094 16.604 16.604 0 100 33.208 16.772 16.772 0 001.748-.094 16.604 16.604 0 01-14.856-16.51z",fill:"#2f2e41"}),Ku=s.createElement("path",{fill:"#2f2e41",d:"M878.136 285.191l-22.686-11.884-31.33 4.862-6.482 28.628 16.136-.621 4.508-10.517v10.344l7.445-.286 4.321-16.745 2.701 17.825 26.468-.54-1.081-21.066z"}),$u=s.createElement("path",{d:"M876.778 452.332l-34.987.946s-29.854 5.809-28.18-6.241 30.8-7.835 30.8-7.835l31.88-4.864z",fill:"#fbbebe"}),Qu=s.createElement("path",{d:"M904.46 339.32a7.467 7.467 0 018.236 5.128c6.85 21.584 27.95 93.813 6.985 103.723-24.694 11.671-42.714 11.158-42.714 11.158l-9.645-23.748 8.78-8.24 9.375-60.275 4.492-25.55z",fill:"#575a89"}),Xu=s.createElement("path",{opacity:.4,d:"M897.969 379.515l-4 40-35 15 39-9v-46z"}),Ju=s.createElement("path",{d:"M709.214 247.463a46.84 46.84 0 0127.353 19.87l3.27 5.065.165.21 57.385 16.79a4.183 4.183 0 012.861 5.116l-4.455 16.335a4.183 4.183 0 01-5.162 2.928l-57.399-16.044-.001.002-5.765 2.18a51.515 51.515 0 01-33.122 1.125z",fill:"#3f3d56"}),Zu=s.createElement("ellipse",{cx:811.107,cy:344.233,rx:3.504,ry:6.57,transform:"rotate(-73.69 753.031 350.485)",fill:"#575a89"}),ec=s.createElement("circle",{cx:766.716,cy:294.14,r:2.409,fill:"#3f3d56"}),tc=s.createElement("ellipse",{cx:749.694,cy:325.728,rx:28.09,ry:12.703,transform:"rotate(-72.034 690.569 332.958)",fill:"#9f6bf4"}),nc=s.createElement("path",{d:"M712.228 277.881c4.611-14.22 3.357-27.472-2.71-30.355a5.891 5.891 0 011.075.238c6.673 2.164 8.204 15.882 3.419 30.64s-14.075 24.966-20.748 22.802a5.863 5.863 0 01-.708-.284c6.564.836 15.139-9.06 19.672-23.04z",opacity:.4}),oc=s.createElement("path",{d:"M709.969 247.515L579.73 146.49a861.922 861.922 0 01-66.215-57.386c-37.126-35.387-87.524-63.68-146.201-78.744-142.562-36.598-255.5 28.294-306.866 123.578-78.495 145.604-138.65 381.88 209.394 256.11 76.116-27.505 153.164-30.429 211.586-44.917l211.54-43.616z",fill:"#9f6bf4"}),rc=s.createElement("circle",{cx:318.969,cy:70.515,r:7,fill:"#f2f2f2"}),ic=s.createElement("path",{fill:"#f2f2f2",d:"M454.949 86.695h-1.822v-1.822h-.356v1.822h-1.822v.356h1.822v1.822h.356v-1.822h1.822v-.356zM637.949 238.695h-1.822v-1.822h-.356v1.822h-1.822v.356h1.822v1.822h.356v-1.822h1.822v-.356zM624.949 285.695h-1.822v-1.822h-.356v1.822h-1.822v.356h1.822v1.822h.356v-1.822h1.822v-.356zM65.949 325.695h-1.822v-1.822h-.356v1.822h-1.822v.356h1.822v1.822h.356v-1.822h1.822v-.356zM145.949 107.695h-1.822v-1.822h-.356v1.822h-1.822v.356h1.822v1.822h.356v-1.822h1.822v-.356zM456.949 293.695h-1.822v-1.822h-.356v1.822h-1.822v.356h1.822v1.822h.356v-1.822h1.822v-.356zM265.949 43.695h-1.822v-1.822h-.356v1.822h-1.822v.356h1.822v1.822h.356v-1.822h1.822v-.356z"}),sc=s.createElement("path",{d:"M266.65 187.673l-2.27.35c.71 4.54 1.27 9.18 1.68 13.77l2.29-.2a208.2 208.2 0 00-1.7-13.92zM260.44 160.333l-2.2.67c1.33 4.4 2.52 8.91 3.53 13.4l2.25-.51c-1.03-4.54-2.24-9.1-3.58-13.56zM250.53 134.113l-2.09.96c1.92 4.19 3.72 8.49 5.35 12.79l2.15-.81c-1.65-4.35-3.46-8.71-5.41-12.94zM237.13 109.533l-1.94 1.23c2.47 3.88 4.84 7.9 7.04 11.93l2.02-1.1a202.81 202.81 0 00-7.12-12.06zM220.47 87.003l-1.75 1.49c2.98 3.5 5.88 7.16 8.62 10.86l1.84-1.37c-2.76-3.74-5.69-7.44-8.71-10.98zM200.89 66.943l-1.53 1.71c3.44 3.07 6.81 6.3 10.02 9.59l1.65-1.61c-3.25-3.33-6.66-6.59-10.14-9.69zM178.77 49.723l-1.29 1.9c3.82 2.57 7.6 5.31 11.23 8.14l1.42-1.81c-3.68-2.86-7.5-5.63-11.36-8.23zM158.64 37.763v2.6c2.39 1.25 4.76 2.56 7.08 3.9l1.15-1.99q-4.05-2.34-8.23-4.51zM266.804 215.979l2.299-.042c.042 2.321.045 4.654.01 6.936l-2.3-.036c.036-2.255.033-4.563-.009-6.858zM131.65 384.673l-2.27.35c.71 4.54 1.27 9.18 1.68 13.77l2.29-.2a208.2 208.2 0 00-1.7-13.92zM125.44 357.333l-2.2.67c1.33 4.4 2.52 8.91 3.53 13.4l2.25-.51c-1.03-4.54-2.24-9.1-3.58-13.56zM115.53 331.113l-2.09.96c1.92 4.19 3.72 8.49 5.35 12.79l2.15-.81c-1.65-4.35-3.46-8.71-5.41-12.94zM102.13 306.533l-1.94 1.23c2.47 3.88 4.84 7.9 7.04 11.93l2.02-1.1c-2.22-4.08-4.62-8.14-7.12-12.06zM85.47 284.003l-1.75 1.49c2.98 3.5 5.88 7.16 8.62 10.86l1.84-1.37c-2.76-3.74-5.69-7.44-8.71-10.98zM65.89 263.943l-1.53 1.71c3.44 3.07 6.81 6.3 10.02 9.59l1.65-1.61c-3.25-3.33-6.66-6.59-10.14-9.69zM43.77 246.723l-1.29 1.9c3.82 2.57 7.6 5.31 11.23 8.14l1.42-1.81c-3.68-2.86-7.5-5.63-11.36-8.23zM23.64 234.763v2.6c2.39 1.25 4.76 2.56 7.08 3.9l1.15-1.99q-4.05-2.34-8.23-4.51zM131.804 412.979l2.299-.042c.042 2.321.045 4.654.01 6.936l-2.3-.036c.036-2.255.033-4.563-.009-6.858zM593.65 285.673l-2.27.35c.71 4.54 1.27 9.18 1.68 13.77l2.29-.2a208.2 208.2 0 00-1.7-13.92zM587.44 258.333l-2.2.67c1.33 4.4 2.52 8.91 3.53 13.4l2.25-.51c-1.03-4.54-2.24-9.1-3.58-13.56zM577.53 232.113l-2.09.96c1.92 4.19 3.72 8.49 5.35 12.79l2.15-.81c-1.65-4.35-3.46-8.71-5.41-12.94zM564.13 207.533l-1.94 1.23c2.47 3.88 4.84 7.9 7.04 11.93l2.02-1.1c-2.22-4.08-4.62-8.14-7.12-12.06zM547.47 185.003l-1.75 1.49c2.98 3.5 5.88 7.16 8.62 10.86l1.84-1.37c-2.76-3.74-5.69-7.44-8.71-10.98zM527.89 164.943l-1.53 1.71c3.44 3.07 6.81 6.3 10.02 9.59l1.65-1.61c-3.25-3.33-6.66-6.59-10.14-9.69zM505.77 147.723l-1.29 1.9c3.82 2.57 7.6 5.31 11.23 8.14l1.42-1.81c-3.68-2.86-7.5-5.63-11.36-8.23zM485.64 135.763v2.6c2.39 1.25 4.76 2.56 7.08 3.9l1.15-1.99q-4.05-2.34-8.23-4.51zM593.804 313.979l2.299-.042c.042 2.321.045 4.654.01 6.936l-2.3-.036c.036-2.255.033-4.563-.009-6.858z",fill:"#e6e6e6"}),ac=s.createElement("path",{fill:"#f2f2f2",d:"M149.295 199.895H147.6v-1.696h-.331v1.696h-1.696v.33h1.696v1.696h.331v-1.696h1.695v-.33zM129.754 302.252h-1.695v-1.696h-.331v1.696h-1.696v.331h1.696v1.695h.331v-1.695h1.695v-.331zM72.417 391.959h-1.696v-1.695h-.331v1.695h-1.695v.331h1.695v1.696h.331v-1.696h1.696v-.331z"}),lc=s.createElement("path",{d:"M231.919 278.183a122.811 122.811 0 1156.981 45.751 39.726 39.726 0 11-56.981-45.751z",fill:"#3f3d56"}),uc=s.createElement("path",{d:"M333.128 139.437c28.154 0 47.524 15.616 47.524 38.064 0 14.865-7.207 25.151-21.097 33.335-13.063 7.582-17.493 13.138-17.493 22.748a5.931 5.931 0 01-5.93 5.931h-14.394a5.931 5.931 0 01-5.927-5.724l-.026-.733c-1.276-15.466 4.13-25.075 17.719-33.034 12.688-7.582 18.018-12.387 18.018-21.697s-9.01-16.142-20.196-16.142c-8.502 0-15.231 4.14-18.317 10.896a13.252 13.252 0 01-12.112 7.573c-9.752 0-16.195-10.37-11.634-18.99 7.214-13.636 22.436-22.227 43.865-22.227zM313.383 268.12c0-8.634 7.207-15.466 16.066-15.466 8.935 0 16.142 6.757 16.142 15.466s-7.208 15.466-16.142 15.466-16.066-6.757-16.066-15.466z",fill:"#9f6bf4"});var cc=function(e){return s.createElement("svg",Fu({viewBox:"0 0 1104.469 797.515"},e),Mu,Lu,ku,Gu,Vu,Wu,ju,Hu,Bu,zu,Uu,Yu,qu,Ku,$u,Qu,Xu,Ju,Zu,ec,tc,nc,oc,rc,ic,sc,ac,lc,uc)},pc=n(67),dc=n.n(pc);class hc extends a.a.Component{constructor(){super(...arguments),this.container=a.a.createRef()}componentDidMount(){const{height:e,width:t}=this.props.getTableDimensions();this.container.current&&(this.container.current.style.width=t+"px",this.container.current.style.height=e+"px")}render(){return a.a.createElement("div",{ref:this.container,className:dc.a.container},a.a.createElement(cc,{className:dc.a.illustration}))}}var fc=hc;function gc(){return(gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var vc=s.createElement("ellipse",{cx:308.5,cy:780,rx:308.5,ry:54.5,fill:"#3f3d56"}),mc=s.createElement("circle",{cx:496,cy:301.5,r:301.5,fill:"#3f3d56"}),yc=s.createElement("circle",{cx:496,cy:301.5,r:248.898,opacity:.05}),Cc=s.createElement("circle",{cx:496,cy:301.5,r:203.994,opacity:.05}),wc=s.createElement("circle",{cx:496,cy:301.5,r:146.26,opacity:.05}),Ec=s.createElement("path",{d:"M197.17 328.482s-23.704 66.722-13.169 90.426 27.216 46.53 27.216 46.53-6.145-132.566-14.047-136.956z",fill:"#d0cde1"}),bc=s.createElement("path",{d:"M197.17 328.482s-23.704 66.722-13.169 90.426 27.216 46.53 27.216 46.53-6.145-132.566-14.047-136.956z",opacity:.1}),_c=s.createElement("path",{d:"M213.85 482.997s-1.755 16.68-2.633 17.558.878 2.634 0 5.268-1.756 6.145 0 7.023-9.657 78.135-9.657 78.135-28.094 36.873-16.68 94.816l3.511 58.821s27.216 1.756 27.216-7.901c0 0-1.756-11.413-1.756-16.68s4.39-5.268 1.756-7.902-2.634-4.39-2.634-4.39 4.39-3.511 3.512-4.39 7.9-63.21 7.9-63.21 9.658-9.657 9.658-14.925v-5.267s4.39-11.413 4.39-12.291 23.704-54.431 23.704-54.431l9.657 38.628 10.535 55.31s5.267 50.041 15.803 69.356c0 0 18.436 63.21 18.436 61.454s30.727-6.145 29.85-14.047-18.437-118.52-18.437-118.52l4.39-164.171z",fill:"#2f2e41"}),Oc=s.createElement("path",{d:"M190.147 740.228s-23.704 46.53-7.901 48.286 21.948 1.756 28.971-5.267c3.84-3.84 11.615-8.992 17.876-12.873a23.117 23.117 0 0010.969-21.982c-.463-4.295-2.068-7.834-6.019-8.164-10.535-.877-22.826-10.535-22.826-10.535zM320.958 774.467s-23.704 46.53-7.902 48.286 21.948 1.756 28.972-5.267c3.84-3.84 11.615-8.992 17.875-12.873a23.117 23.117 0 0010.97-21.982c-.464-4.295-2.069-7.834-6.02-8.164-10.534-.877-22.825-10.535-22.825-10.535z",fill:"#2f2e41"}),Rc=s.createElement("circle",{cx:295.905,cy:215.433,r:36.905,fill:"#ffb8b8"}),Sc=s.createElement("path",{d:"M272.18 227.558s-26.36 48.504-28.469 48.504 47.449 15.816 47.449 15.816 13.707-46.395 15.816-50.612z",fill:"#ffb8b8"}),Tc=s.createElement("path",{d:"M312.617 280.635s-52.675-28.971-57.943-28.093-61.454 50.042-60.576 70.234 7.9 53.553 7.9 53.553 2.635 93.06 7.902 93.938-.878 16.68.878 16.68 122.91 0 123.787-2.633-21.948-203.679-21.948-203.679z",fill:"#d0cde1"}),Pc=s.createElement("path",{d:"M342.028 489.142s16.68 50.92 2.633 49.164-20.192-43.896-20.192-43.896z",fill:"#ffb8b8"}),Dc=s.createElement("path",{d:"M297.254 277.563s-32.484 7.023-27.216 50.92 14.925 87.792 14.925 87.792l32.483 71.111 3.512 13.17 23.703-6.146-17.558-101.84s-6.145-108.862-14.047-112.374a34 34 0 00-15.802-2.633z",fill:"#d0cde1"}),Ac=s.createElement("path",{opacity:.1,d:"M277.5 414.958l40.385 71.989-34.025-75.857-6.36 3.868z"}),Nc=s.createElement("path",{d:"M332.646 204.566l.122-2.82 5.61 1.396a6.27 6.27 0 00-2.514-4.615l5.976-.334a64.477 64.477 0 00-43.124-26.652c-12.926-1.873-27.319.838-36.182 10.43-4.3 4.654-7.001 10.571-8.923 16.608-3.539 11.118-4.26 24.372 3.12 33.41 7.5 9.184 20.602 10.984 32.406 12.12 4.153.4 8.506.772 12.354-.839a29.721 29.721 0 00-1.653-13.037 8.687 8.687 0 01-.88-4.152c.525-3.512 5.21-4.397 8.728-3.922s7.75 1.2 10.062-1.495c1.593-1.856 1.499-4.559 1.71-6.995.574-6.634 13.128-7.712 13.188-9.103z",fill:"#2f2e41"}),xc=s.createElement("circle",{cx:559,cy:744.5,r:43,fill:"#9f6bf4"}),Ic=s.createElement("circle",{cx:54,cy:729.5,r:43,fill:"#9f6bf4"}),Fc=s.createElement("circle",{cx:54,cy:672.5,r:31,fill:"#9f6bf4"}),Mc=s.createElement("circle",{cx:54,cy:624.5,r:22,fill:"#9f6bf4"});var Lc=function(e){return s.createElement("svg",gc({viewBox:"0 0 797.5 834.5"},e),vc,mc,yc,Cc,wc,Ec,bc,_c,Oc,Rc,Sc,Tc,Pc,Dc,Ac,Nc,xc,Ic,Fc,Mc)},kc=n(53),Gc=n.n(kc);class Vc extends a.a.Component{constructor(){super(...arguments),this.container=a.a.createRef()}componentDidMount(){const{height:e,width:t}=this.props.getTableDimensions();this.container.current&&(this.container.current.style.width=t+"px",this.container.current.style.height=e+"px")}render(){return a.a.createElement("div",{ref:this.container,className:Gc.a.container},a.a.createElement(Lc,{className:Gc.a.illustration}),a.a.createElement("div",{className:Gc.a.title},"Zip, nada"),a.a.createElement("div",{className:Gc.a.subtitle},"There are no rows in this table"))}}var Wc=Vc;function jc(){return(jc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Hc=s.createElement("path",{d:"M18.327 24l-1.8-5.69H7.473L5.673 24H0L8.764 0h6.438L24 24h-5.673zm-3.057-9.94c-1.665-5.155-2.605-8.07-2.82-8.747a26.648 26.648 0 01-.441-1.602c-.374 1.395-1.444 4.845-3.21 10.349h6.47z"});var Bc=function(e){return s.createElement("svg",jc({viewBox:"0 0 24 24"},e),Hc)};function zc(){return(zc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Uc=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8a2 2 0 012-2h20a2 2 0 010 4H2a2 2 0 01-2-2zM0 16a2 2 0 012-2h20a2 2 0 010 4H2a2 2 0 01-2-2z"}),Yc=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.297.022a2 2 0 011.68 2.275l-3 20a2 2 0 01-3.955-.594l3-20A2 2 0 019.297.024zM18.297.022a2 2 0 011.68 2.275l-3 20a2 2 0 01-3.955-.594l3-20a2 2 0 012.275-1.68z"});var qc=function(e){return s.createElement("svg",zc({viewBox:"0 0 24 24"},e),Uc,Yc)};function Kc(){return(Kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var $c=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.857 5C3.07 5 0 8.134 0 12s3.07 7 6.857 7h10.286C20.93 19 24 15.866 24 12s-3.07-7-6.857-7H6.857zm0 12.25C9.697 17.25 12 14.9 12 12S9.697 6.75 6.857 6.75 1.714 9.1 1.714 12s2.303 5.25 5.143 5.25z"});var Qc=function(e){return s.createElement("svg",Kc({viewBox:"0 0 24 24"},e),$c)};function Xc(){return(Xc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Jc=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.4 0h19.2c1.325 0 2.4.895 2.4 2v2H0V2C0 .895 1.075 0 2.4 0zM7.47 13.802H6.045v2.115H7.46c1.48 0 2.22.68 2.22 2.04 0 .562-.181 1.014-.545 1.357-.358.337-.855.506-1.49.506-.556 0-1.025-.163-1.407-.487a1.58 1.58 0 01-.565-1.254H3c0 1.179.426 2.127 1.277 2.845C5.135 21.64 6.236 22 7.581 22c1.437 0 2.591-.365 3.46-1.095.877-.73 1.315-1.7 1.315-2.91 0-.749-.188-1.398-.565-1.947-.37-.549-.934-.96-1.693-1.235a3.675 3.675 0 001.48-1.207 2.889 2.889 0 00.565-1.722c0-1.21-.404-2.159-1.212-2.845C10.123 8.346 9.006 8 7.58 8c-.82 0-1.573.16-2.258.477-.679.318-1.21.761-1.592 1.33a3.35 3.35 0 00-.564 1.908H5.84c0-.455.173-.823.518-1.104.346-.287.775-.43 1.287-.43.567 0 1.011.152 1.332.458.327.306.49.733.49 1.282 0 .568-.163 1.023-.49 1.366-.327.344-.83.515-1.508.515zm8.395 7.511H19V8.687h-4.044l-1.328 3.156h2.236v9.47z"});var Zc=function(e){return s.createElement("svg",Xc({viewBox:"0 0 24 24"},e),Jc)};function ep(){return(ep=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var tp=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.8H0V0h24v4.8zM16.8 14.4H0V9.6h16.8v4.8zM24 24H0v-4.8h24V24z"});var np=function(e){return s.createElement("svg",ep({viewBox:"0 0 24 24"},e),tp)};function op(){return(op=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var rp=s.createElement("path",{d:"M9.545 24v-2.804H8.45c-1.621 0-1.94-.42-1.94-2.524V15.13c0-1.746-1.12-2.868-3.186-3.008v-.23c2.066-.14 3.185-1.274 3.185-3.007V5.328c0-2.103.32-2.524 1.941-2.524h1.096V0H7.707c-3.3 0-4.373 1.16-4.373 4.729v2.816c0 2.014-.822 2.792-3.334 2.677v3.556c2.512-.102 3.334.675 3.334 2.69v2.803c0 3.57 1.073 4.729 4.373 4.729h1.838zM16.293 24c3.3 0 4.373-1.16 4.373-4.729v-2.804c0-2.013.822-2.79 3.334-2.689v-3.556c-2.512.115-3.334-.663-3.334-2.677V4.73c0-3.57-1.073-4.729-4.373-4.729h-1.838v2.804h1.096c1.621 0 1.94.42 1.94 2.524v3.556c0 1.733 1.12 2.867 3.186 3.008v.23c-2.066.14-3.185 1.26-3.185 3.007v3.543c0 2.103-.32 2.524-1.941 2.524h-1.096V24h1.838z"});var ip=function(e){return s.createElement("svg",op({viewBox:"0 0 24 24"},e),rp)};function sp(){return(sp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var ap=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0H0v24h8v-3H4V3h4V0zm8 0v3h4v18h-4v3h8V0h-8z"});var lp=function(e){return s.createElement("svg",sp({viewBox:"0 0 24 24"},e),ap)},up=n(68),cp=n.n(up);var pp=mt(({className:e,string:t=!1,int:n=!1,float:o=!1,boolean:r=!1,dateTime:i=!1,enumerable:s=!1,array:l=!1})=>{let u;return u=l?lp:t?Bc:n||o?qc:r?Qc:s?np:i?Zc:ip,a.a.createElement("div",{className:qe()(cp.a.container,e)},a.a.createElement(u,{className:cp.a.icon}))}),dp=n(34),hp=n.n(dp);class fp extends a.a.Component{constructor(){super(...arguments),this.handleSort=()=>{var e;const{field:t,script:n}=this.props;t&&t.isSortable&&(null===(e=qo.activeTab)||void 0===e||e.update({preview:!1}),n.sort.fieldId===t.id&&"asc"===n.sort.order?n.sort.update({fieldId:t.id,order:"desc"}):n.sort.fieldId===t.id&&"desc"===n.sort.order?n.sort.update({fieldId:null}):n.sort.update({fieldId:t.id,order:"asc"}),n.run())}}render(){const{field:e,script:t,displayName:n,column:o}=this.props;o.getActualWidth();return a.a.createElement("div",{"data-cy":"table__header__cell",className:qe()(hp.a.container,{[hp.a.sortable]:e.isSortable}),title:`${e.name} (${e.type})`,onClick:this.handleSort},a.a.createElement("span",{"data-cy":"table__header__cell__title",className:hp.a.title},n),a.a.createElement(pp,{array:e.isList,object:e.isRelation,string:e.isString,int:e.isInt,float:e.isFloat,boolean:e.isBoolean,dateTime:e.isDateTime,enumerable:e.isEnum}),a.a.createElement(ai,{"data-cy-asc":t.sort.fieldId===e.id&&"asc"===t.sort.order,"data-cy-desc":t.sort.fieldId===e.id&&"desc"===t.sort.order,className:qe()(hp.a.sortIndicator,{[hp.a.visible]:t.sort.fieldId===e.id,[hp.a.asc]:"asc"===t.sort.order,[hp.a.desc]:"desc"===t.sort.order})}))}}var gp=mt(fp),vp=n(5),mp=n.n(vp);class yp extends a.a.Component{constructor(){super(...arguments),this.handleOpenRelation=e=>{var t;const{field:n}=this.props;if((e.ctrlKey||e.metaKey)&&(n.isRelation||n.typeAsModel))if(null===(t=qo.activeTab)||void 0===t||t.update({preview:!1}),qo.previewTab)qo.previewTab.load({modelId:n.typeAsModel.id}),qo.switch({id:qo.previewTab.id});else{const e=qo.add({modelId:n.typeAsModel.id,preview:!0});qo.switch({id:e.id})}}}render(){const{node:{data:e},field:t}=this.props;if(!e)return a.a.createElement("div",{"data-cy":"cell-skeleton",className:mp.a.loading});const n=e.value[t.name],o=void 0===n,r=e.dirtyFieldNames.includes(t.name),i=e.invalidFieldNames.includes(t.name);return t.isString?t.isList?a.a.createElement("div",{"data-cy":"rendered--string-list",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:JSON.stringify(n)):a.a.createElement("div",{"data-cy":"rendered--string",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:String(n)):t.isInt||t.isFloat?t.isList?a.a.createElement("div",{"data-cy":"rendered--number-list",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:JSON.stringify(n)):a.a.createElement("div",{"data-cy":"rendered--number",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:null!==n||void 0!==n?Number(n):null):t.isBoolean?t.isList?a.a.createElement("div",{"data-cy":"rendered--boolean-list",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:JSON.stringify(n)):a.a.createElement("div",{"data-cy":"rendered--boolean",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:String(Boolean(n))):t.isDateTime?t.isList?a.a.createElement("div",{"data-cy":"rendered--datetime-list",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:JSON.stringify(n)):a.a.createElement("div",{"data-cy":"rendered--datetime",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:String(n)):t.isJson?a.a.createElement("div",{"data-cy":t.isList?"rendered--json-list":"rendered--json",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:JSON.stringify(n)):t.isEnum?t.isList?a.a.createElement("div",{"data-cy":"rendered--enum-list",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:JSON.stringify(n)):a.a.createElement("div",{"data-cy":"rendered--enum",className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i})},o?t.defaultAsString:String(n)):t.isRelation?t.isList?a.a.createElement("div",{"data-cy":"rendered--relation-list","data-field-type":t.type,"data-field-list":!0,className:qe()(mp.a.container,{[mp.a.dirty]:r,[mp.a.invalid]:i}),onClick:this.handleOpenRelation},(n||[]).length):a.a.createElement("div",{"data-cy":"rendered--relation","data-field-type":n?t.type:void 0,className:qe()(mp.a.container,{[mp.a.placeholder]:o,[mp.a.dirty]:r,[mp.a.invalid]:i}),onClick:this.handleOpenRelation},n?"":"null"):null}}var Cp=mt(yp),wp=n(56),Ep=n.n(wp);class bp extends a.a.PureComponent{constructor(e){super(e),this.input=a.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{const{field:t}=this.props;t.isRequired||""!==e?this.setState({value:e}):this.setState({value:null})},this.state={value:e.initialValue}}render(){var e,t;const{value:n}=this.state,{columnApi:o,column:r}=this.props,i=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;return a.a.createElement(Bs,{"data-cy":"input--string",className:Ep.a.input,style:{width:i},type:"text",value:null==n?"":String(n),placeholder:"null",innerRef:this.input,onChange:this.handleChange})}}var _p=mt(bp);class Op extends a.a.PureComponent{constructor(e){super(e),this.input=a.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{const{field:t}=this.props;if(""===e)return void this.setState({value:null});const n=t.isInt?parseInt(e):parseFloat(e);isNaN(n)||this.setState({value:n})},this.state={value:e.initialValue}}render(){var e,t;const{value:n}=this.state,{columnApi:o,column:r}=this.props,i=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;return a.a.createElement(Bs,{"data-cy":"input--number",className:Ep.a.input,style:{width:i},type:"text",value:null==n?"":String(n),placeholder:"null",innerRef:this.input,onChange:this.handleChange})}}var Rp=mt(Op),Sp=n(35),Tp=n.n(Sp);class Pp extends a.a.Component{constructor(e){super(e),this.input=a.a.createRef(),this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.getMatches=e=>this.props.suggestions.filter(t=>t.toUpperCase().startsWith(e.toUpperCase())),this.handleChange=e=>{const{suggestions:t,onChange:n}=this.props,o=e.currentTarget.value,r=this.getMatches(o);this.setState({phrase:o}),n(r[0]||t[0])},this.handleSuggestionClick=e=>{const{phrase:t}=this.state,{onChange:n,onSubmit:o}=this.props,r=this.getMatches(t);console.log("click",r,e);const i=r[e];n(i),null==o||o(i)},this.handleSubmit=()=>{const{phrase:e,highlightIdx:t}=this.state,{onChange:n,onSubmit:o}=this.props,r=this.getMatches(e)[t];n(r),null==o||o(r)},this.state={phrase:String(e.value),highlightIdx:0}}render(){const{phrase:e,highlightIdx:t}=this.state,{className:n,style:o,suggestions:r,dataCy:i}=this.props,s=this.getMatches(e);return a.a.createElement("div",{"data-cy":i,className:qe()(Tp.a.container,n),style:o},a.a.createElement("input",{ref:this.input,type:"text",className:Tp.a.input,value:e,onChange:this.handleChange}),a.a.createElement("ul",{className:Tp.a.dropdown},0===s.length&&a.a.createElement("li",{"data-cy":"suggestion",className:qe()(Tp.a.match,Tp.a.highlight),onClick:()=>this.handleSuggestionClick(0)},r[0]),s.map((e,n)=>a.a.createElement("li",{key:e,"data-cy":"suggestion",className:qe()(Tp.a.match,{[Tp.a.highlight]:t===n}),onClick:()=>this.handleSuggestionClick(n)},e))),a.a.createElement(Sr,{target:this.input,keys:"up",onMatch:()=>this.setState(e=>({highlightIdx:Math.max(e.highlightIdx-1,0)}))}),a.a.createElement(Sr,{target:this.input,keys:"down",onMatch:()=>this.setState(e=>({highlightIdx:Math.min(e.highlightIdx+1,s.length-1)}))}),a.a.createElement(Sr,{target:this.input,preventDefault:!1,stopPropagation:!1,keys:"enter",onMatch:this.handleSubmit}))}}var Dp=mt(Pp),Ap=n(32),Np=n.n(Ap);class xp extends a.a.PureComponent{constructor(e){super(e),this.input=a.a.createRef(),this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{this.setState({value:"true"===e})},this.handleSubmit=e=>{this.setState({value:"true"===e},()=>{this.props.stopEditing()})},this.state={value:e.initialValue}}render(){var e,t;const{value:n}=this.state,{columnApi:o,column:r}=this.props,i=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;return a.a.createElement(Dp,{ref:this.input,dataCy:"input--boolean",className:Np.a.input,style:{width:i},value:null==n?"":String(n),suggestions:["true","false"],onChange:this.handleChange,onSubmit:this.handleSubmit})}}var Ip=mt(xp),Fp=n(78),Mp=n.n(Fp);class Lp extends a.a.PureComponent{constructor(e){super(e),this.input=a.a.createRef(),this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=(e=!1)=>{var t;const{api:n,field:o}=this.props,r=(null===(t=this.input.current)||void 0===t?void 0:t.innerText)||"";if(!o.isRequired&&""===r)return this.setState({value:null});try{const t=JSON.parse(r);if(o.isList&&!Array.isArray(t))throw new Error;return this.setState({value:t},()=>e&&(null==n?void 0:n.stopEditing()))}catch(t){return this.setState({value:r},()=>e&&(null==n?void 0:n.stopEditing()))}},this.state={value:e.initialValue}}render(){var e,t;const{initialValue:n,columnApi:o,column:r}=this.props,i=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{"data-cy":"input--json",ref:this.input,style:{width:i},contentEditable:!0,className:Mp.a.input,dangerouslySetInnerHTML:{__html:"string"==typeof n?n:JSON.stringify(n)},onInput:e=>this.handleChange()}),a.a.createElement(Sr,{keys:"enter",target:this.input,preventDefault:!1,onMatch:()=>this.handleChange()}),a.a.createElement(Sr,{keys:"cmd+enter",target:this.input,onMatch:()=>this.handleChange(!0)}))}}var kp=mt(Lp);class Gp extends a.a.PureComponent{constructor(e){super(e),this.input=a.a.createRef(),this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{this.setState({value:e})},this.handleSubmit=e=>{this.setState({value:e},()=>{this.props.stopEditing()})},this.state={value:e.initialValue}}render(){var e,t;const{value:n}=this.state,{field:o,columnApi:r,column:i}=this.props,s=null!==(t=null===(e=r.getColumnState().find(e=>e.colId===i.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;return a.a.createElement(Dp,{ref:this.input,dataCy:"input--enum",className:Np.a.input,style:{width:s},value:null==n?"":String(n),suggestions:o.typeAsEnum.values,onChange:this.handleChange,onSubmit:this.handleSubmit})}}var Vp=mt(Gp),Wp=n(33),jp=n.n(Wp);class Hp extends a.a.Component{constructor(e){if(super(e),this.container=a.a.createRef(),this.table=a.a.createRef(),this.selectionRetryCounter=0,this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{},this.afterGuiAttached=async()=>{if(!this.container.current||!this.table.current)return;const{api:e,node:t,getTableDimensions:n}=this.props;t.setRowHeight(400),null==e||e.onRowHeightChanged(),this.table.current.style.height="400px";const o=n(),r=this.container.current.getBoundingClientRect();this.table.current.style.left=o.left-r.left+"px",this.table.current.style.width=o.width+"px"},this.handleFirstDataRendered=e=>{const{value:t}=this.state;if(t){const n=e.api.getRowNode(t);if(n)n.setSelected(!0);else{if(this.selectionRetryCounter>=20)throw Bt("RelationInput.handleFirstDataRendered","Unable to select already connected records",{selectionRetryCounter:this.selectionRetryCounter});this.selectionRetryCounter+=1,setTimeout(()=>this.handleFirstDataRendered(e),50)}}},this.getRecords=async e=>{const{value:t}=this.state,{startRow:n,endRow:o,successCallback:r}=e;let i=[];return 0===n&&t&&(i=[bo.get(t)]),this.loadedScript.update({pagination:{take:o-n,skip:n}}),await this.loadedScript.run(),i=[...i,...this.loadedScript.records.filter(e=>e.id!==t)],r(i,this.loadedScript.model.count)},this.handleSelectionChanged=(e,{stopEditing:t=!1}={})=>{const{value:n}=this.state,o=e.api.getSelectedNodes().map(e=>e.id)[0]||null;return n?n!==o?this.setState({value:o},()=>t&&this.props.stopEditing()):void 0:this.setState({value:o},()=>t&&this.props.stopEditing())},this.handleRowDoubleClicked=e=>{this.handleSelectionChanged(e,{stopEditing:!0})},!e.field.typeAsModel)throw Bt("RelationInput.constructor","Invalid field.typeAsModel",{field:e.field.serialize()});const{initialValue:t}=e;this.state={value:t?bn(e.field.typeAsModel.id,t):null},this.loadedScript=Wo.add({name:null,frozen:!0,modelId:e.field.typeAsModel.id,fieldIds:e.field.typeAsModel.fieldIds},{skipPersist:!0})}componentWillUnmount(){var e,t;null===(e=this.props.api)||void 0===e||e.resetRowHeights(),null===(t=this.props.api)||void 0===t||t.onRowHeightChanged()}render(){var e,t;const{value:n}=this.state,{field:o,columnApi:r,column:i}=this.props,s=null!==(t=null===(e=r.getColumnState().find(e=>e.colId===i.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200,l=o.typeAsModel.fields;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{"data-field-type":o.type,ref:this.container,className:qe()(jp.a.container,{[jp.a.placeholder]:void 0===n}),style:{width:s}}),a.a.createElement("div",{"data-cy":"input--relation",ref:this.table,className:qe()(jp.a.table,"ag-theme-prisma-dark")},a.a.createElement(Iu.AgGridReact,{rowSelection:"single",getRowNodeId:e=>e.id,rowModelType:"infinite",infiniteInitialRowCount:10,datasource:{getRows:this.getRecords},suppressCellSelection:!0,frameworkComponents:{TableCellRenderer:Cp},onFirstDataRendered:this.handleFirstDataRendered,onSelectionChanged:this.handleSelectionChanged,onRowDoubleClicked:this.handleRowDoubleClicked},l.map(e=>a.a.createElement(Iu.AgGridColumn,{key:e.id,headerName:e.name,cellRenderer:"TableCellRenderer",cellRendererParams:{field:e}})))))}}var Bp=mt(Hp),zp=n(11),Up=n.n(zp);class Yp extends a.a.PureComponent{constructor(e){super(e),this.items=[],this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length-1,0)].current)||void 0===e||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map(e=>String(e))})}catch(e){}},this.handleChangeItem=(e,t)=>{const{value:n}=this.state,o=String(t.currentTarget.value);if(!Array.isArray(n))throw Bt("StringListInput.handleChangeItem","Invalid value",{value:n,idx:e,changedItem:o});return this.setState({value:[...n.slice(0,e),o,...n.slice(e+1)]})},this.handleEnterKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Bt("StringListInput.handleEnterKeydown","Invalid value",{value:o,idx:e});if(t.stopPropagation(),e===o.length-1){const e=this.items[o.length].current;e&&e.parentElement&&(e.parentElement.style.display="flex"),null==e||e.focus(),null==e||e.scrollIntoView(),this.items.push(a.a.createRef()),this.setState({value:[...o,""]})}else null===(n=this.items[e+1].current)||void 0===n||n.focus()},this.handleDelKeydown=(e,t)=>{const{value:n}=this.state;if(!Array.isArray(n))throw Bt("StringListInput.HandleDelKeydown","Invalid value",{value:n,idx:e});if(""!==n[e])return;if(t.preventDefault(),0===e)return;const o=this.items[e-1].current;null==o||o.focus(),null==o||o.scrollIntoView();const r=this.items[e].current;r&&r.parentElement&&(r.parentElement.style.display="none"),this.items.pop(),this.setState({value:n.slice(0,-1)})},this.handleTabKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Bt("StringListInput.handleTabKeydown","Invalid value",{value:o,idx:e});e===o.length-1||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e+1].current)||void 0===n||n.focus())},this.handleShiftTabKeydown=(e,t)=>{var n;0===e||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e-1].current)||void 0===n||n.focus())},this.handleFinishEditing=(e,t)=>{this.props.stopEditing()};const{initialValue:t}=e;if(!Array.isArray(t))throw Bt("StringListInput.constructor","Invalid initialValue",{initialValue:t});this.state={value:t},this.items=Array.from({length:Math.max(t.length,1)}).map(()=>a.a.createRef()),this.items.push(a.a.createRef())}render(){var e,t;const{value:n}=this.state,{columnApi:o,column:r}=this.props,i=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;if(!Array.isArray(n))throw Bt("StringListInput.render","Invalid value",{value:n});return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{"data-cy":"input--string-list",className:Up.a.container,style:{width:i}},a.a.createElement("input",{type:"text",className:Up.a.input,value:JSON.stringify(n),onChange:this.handleChange}),a.a.createElement("ul",{className:Up.a.dropdown},a.a.createElement("span",{className:Up.a.text},"["),[...0===n.length?[a.a.createElement(qp,{key:0,innerRef:this.items[0],value:"",onChange:this.handleChangeItem.bind(this,0),onEnter:this.handleEnterKeydown.bind(this,0),onDel:this.handleDelKeydown.bind(this,0),onShiftTab:this.handleShiftTabKeydown.bind(this,0),onModEnter:this.handleFinishEditing.bind(this,0)})]:[],...n.map((e,t)=>a.a.createElement(qp,{key:t,innerRef:this.items[t],value:e,onChange:this.handleChangeItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onDel:this.handleDelKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t)})),a.a.createElement(qp,{key:this.items.length-1,innerRef:this.items[this.items.length-1],value:"",tabIndex:-1,hidden:!0,onChange:()=>{}})],a.a.createElement("span",{className:Up.a.text},"]"))))}}class qp extends a.a.Component{render(){return a.a.createElement("li",{className:qe()(Up.a.item,{[Up.a.hidden]:this.props.hidden})},a.a.createElement("input",{ref:this.props.innerRef,className:Up.a.input,type:"text",placeholder:"New Value",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),a.a.createElement("span",{className:Up.a.text},","),this.props.onEnter&&a.a.createElement(Sr,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onDel&&a.a.createElement(Sr,{keys:["del","backspace"],preventDefault:!1,target:this.props.innerRef,onMatch:this.props.onDel}),this.props.onTab&&a.a.createElement(Sr,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&a.a.createElement(Sr,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&a.a.createElement(Sr,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var Kp=mt(Yp);class $p extends a.a.PureComponent{constructor(e){super(e),this.items=[],this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length-1,0)].current)||void 0===e||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map(e=>parseInt(e)).filter(e=>!isNaN(e))})}catch(e){}},this.handleChangeItem=(e,t)=>{const{value:n}=this.state,{field:o}=this.props;let r=o.isInt?parseInt(t.currentTarget.value):parseFloat(t.currentTarget.value);if(isNaN(r)&&(r=null),!Array.isArray(n))throw Bt("NumberListInput.handleChangeItem","Invalid value",{value:n,idx:e,changedItem:r});return this.setState({value:[...n.slice(0,e),r,...n.slice(e+1)]})},this.handleEnterKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Bt("NumberListInput.handleEnterKeydown","Invalid value",{value:o,idx:e});if(t.stopPropagation(),e===o.length-1){const e=this.items[o.length].current;e&&e.parentElement&&(e.parentElement.style.display="flex"),null==e||e.focus(),null==e||e.scrollIntoView(),this.items.push(a.a.createRef()),this.setState({value:[...o,null]})}else null===(n=this.items[e+1].current)||void 0===n||n.focus()},this.handleDelKeydown=(e,t)=>{const{value:n}=this.state;if(!Array.isArray(n))throw Bt("NumberListInput.handleDelKeydown","Invalid value",{value:n,idx:e});if(null!==n[e])return;if(t.preventDefault(),0===e)return;const o=this.items[e-1].current;null==o||o.focus(),null==o||o.scrollIntoView();const r=this.items[e].current;r&&r.parentElement&&(r.parentElement.style.display="none"),this.items.pop(),this.setState({value:n.slice(0,-1)})},this.handleTabKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Bt("NumberListInput.handleTabKeydown","Invalid value",{value:o,idx:e});e===o.length-1||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e+1].current)||void 0===n||n.focus())},this.handleShiftTabKeydown=(e,t)=>{var n;0===e||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e-1].current)||void 0===n||n.focus())},this.handleFinishEditing=(e,t)=>{this.props.stopEditing()};const{initialValue:t}=e;if(!Array.isArray(t))throw Bt("NumberListInput.constructor","Invalid initialValue",{initialValue:t});this.state={value:t},this.items=Array.from({length:Math.max(t.length,1)}).map(()=>a.a.createRef()),this.items.push(a.a.createRef())}render(){var e,t;const{value:n}=this.state,{columnApi:o,column:r}=this.props,i=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;if(!Array.isArray(n))throw Bt("StringListInput.render","Invalid value",{value:n});return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{"data-cy":"input--number-list",className:Up.a.container,style:{width:i}},a.a.createElement("input",{type:"text",className:Up.a.input,value:JSON.stringify(n),onChange:this.handleChange}),a.a.createElement("ul",{className:Up.a.dropdown},a.a.createElement("span",{className:Up.a.text},"["),[...0===n.length?[a.a.createElement(Qp,{key:0,innerRef:this.items[0],value:"",onChange:this.handleChangeItem.bind(this,0),onEnter:this.handleEnterKeydown.bind(this,0),onDel:this.handleDelKeydown.bind(this,0),onTab:this.handleTabKeydown.bind(this,0),onShiftTab:this.handleShiftTabKeydown.bind(this,0),onModEnter:this.handleFinishEditing.bind(this,0)})]:[],...n.map((e,t)=>a.a.createElement(Qp,{key:t,innerRef:this.items[t],value:null===e?"":String(e),onChange:this.handleChangeItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onDel:this.handleDelKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t)})),a.a.createElement(Qp,{key:this.items.length-1,innerRef:this.items[this.items.length-1],value:"",tabIndex:-1,hidden:!0,onChange:()=>{}})],a.a.createElement("span",{className:Up.a.text},"]"))))}}class Qp extends a.a.Component{render(){return a.a.createElement("li",{className:qe()(Up.a.item,{[Up.a.hidden]:this.props.hidden})},a.a.createElement("input",{ref:this.props.innerRef,className:Up.a.input,type:"text",placeholder:"New Value",value:null===this.props.value||void 0===this.props.value?"":String(this.props.value),tabIndex:this.props.tabIndex,onChange:this.props.onChange}),a.a.createElement("span",{className:Up.a.text},","),this.props.onEnter&&a.a.createElement(Sr,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onDel&&a.a.createElement(Sr,{keys:["del","backspace"],preventDefault:!1,target:this.props.innerRef,onMatch:this.props.onDel}),this.props.onTab&&a.a.createElement(Sr,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&a.a.createElement(Sr,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&a.a.createElement(Sr,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var Xp=mt($p);class Jp extends a.a.PureComponent{constructor(e){super(e),this.input=a.a.createRef(),this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.filter(e=>"true"===e||"false"===e).map(e=>"true"===e)})}catch(e){}},this.state={value:e.initialValue}}render(){var e,t;const{value:n}=this.state,{columnApi:o,column:r}=this.props,i=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;return a.a.createElement("input",{type:"text",style:{width:i},className:Np.a.input,value:JSON.stringify(n),onChange:this.handleChange})}}var Zp=mt(Jp);class ed extends a.a.PureComponent{constructor(e){super(e),this.input=a.a.createRef(),this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{const{field:t}=this.props,n=t.typeAsEnum.values;try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.filter(e=>n.includes(e))})}catch(e){}},this.state={value:e.initialValue}}render(){var e,t;const{value:n}=this.state,{columnApi:o,column:r}=this.props,i=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;return a.a.createElement("input",{type:"text",style:{width:i},className:Np.a.input,value:JSON.stringify(n),onChange:this.handleChange})}}var td=mt(ed);class nd extends a.a.Component{constructor(e){if(super(e),this.container=a.a.createRef(),this.table=a.a.createRef(),this.selectionRetryCounter=0,this.getValue=()=>this.state.value,this.isPopup=()=>!0,this.focus=()=>{},this.afterGuiAttached=async()=>{if(!this.container.current||!this.table.current)return;const{api:e,node:t,getTableDimensions:n}=this.props;t.setRowHeight(400),null==e||e.onRowHeightChanged(),this.table.current.style.height="400px";const o=n(),r=this.container.current.getBoundingClientRect();this.table.current.style.left=o.left-r.left+"px",this.table.current.style.width=o.width+"px"},this.handleFirstDataRendered=async e=>{const{value:t}=this.state;if(t&&t.length>0){if(e.api.getRowNode(t[0]))t.forEach(t=>{var n;null===(n=e.api.getRowNode(t))||void 0===n||n.setSelected(!0)});else{if(this.selectionRetryCounter>=20)throw Bt("RelationListInput.handleFirstDataRendered","Unable to select already connected records",{selectionRetryCounter:this.selectionRetryCounter});this.selectionRetryCounter+=1,setTimeout(()=>this.handleFirstDataRendered(e),50)}}},this.getRecords=async e=>{const{value:t}=this.state,{startRow:n,endRow:o,successCallback:r}=e;let i=[];return 0===n&&(i=[...t.map(e=>bo.get(e)).filter(e=>!!e)]),this.loadedScript.update({pagination:{take:o-n,skip:n}}),await this.loadedScript.run(),i=[...i,...this.loadedScript.records.filter(e=>!t.includes(e.id))],r(i,this.loadedScript.model.count)},this.handleSelectionChanged=e=>{const{value:t}=this.state,n=null==t?void 0:t.filter(e=>!!e),o=e.api.getSelectedNodes().map(e=>e.id);if(!Object(yt.isEqual)(n,o))return this.setState({value:o})},!e.field.typeAsModel)throw Bt("RelationListInput.constructor","Invalid field.typeAsModel",{field:e.field.serialize()});const{initialValue:t}=e;this.state={value:t.map(t=>bn(e.field.typeAsModel.id,t))||[]},this.loadedScript=Wo.add({name:null,frozen:!0,modelId:e.field.typeAsModel.id,fieldIds:e.field.typeAsModel.fieldIds},{skipPersist:!0})}componentWillUnmount(){var e,t;null===(e=this.props.api)||void 0===e||e.resetRowHeights(),null===(t=this.props.api)||void 0===t||t.onRowHeightChanged()}render(){var e,t;const{value:n}=this.state,{field:o,columnApi:r,column:i}=this.props,s=null!==(t=null===(e=r.getColumnState().find(e=>e.colId===i.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200,l=o.typeAsModel.fields;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{"data-field-type":o.type,ref:this.container,className:qe()(jp.a.container,{[jp.a.placeholder]:void 0===n}),style:{width:s}},n.length),a.a.createElement("div",{"data-cy":"input--relation-list",ref:this.table,className:qe()(jp.a.table,"ag-theme-prisma-dark")},a.a.createElement(Iu.AgGridReact,{rowSelection:"multiple",getRowNodeId:e=>e.id,rowModelType:"infinite",infiniteInitialRowCount:10,datasource:{getRows:this.getRecords},suppressCellSelection:!0,frameworkComponents:{TableCellRenderer:Cp},rowMultiSelectWithClick:!0,onFirstDataRendered:this.handleFirstDataRendered,onSelectionChanged:this.handleSelectionChanged},a.a.createElement(Iu.AgGridColumn,{headerName:"",checkboxSelection:!0,width:50,pinned:!0}),l.map(e=>a.a.createElement(Iu.AgGridColumn,{key:e.id,headerName:e.name,cellRenderer:"TableCellRenderer",cellRendererParams:{field:e}})))))}}var od=mt(nd);class rd extends a.a.Component{constructor(e){super(e),this.input=a.a.createRef(),this.afterGuiAttached=()=>{var e,t,n,o;this.stopEditingImmediately?null===(e=this.props.api)||void 0===e||e.stopEditing():(null===(n=null===(t=this.input.current)||void 0===t?void 0:t.afterGuiAttached)||void 0===n||n.call(t),null===(o=this.input.current)||void 0===o||o.focus())},this.getValue=()=>{var e,t;return null===(t=null===(e=this.input.current)||void 0===e?void 0:e.getValue)||void 0===t?void 0:t.call(e)},this.isPopup=()=>{var e,t,n;return null!==(n=null===(t=null===(e=this.input.current)||void 0===e?void 0:e.isPopup)||void 0===t?void 0:t.call(e))&&void 0!==n&&n};const{node:{data:t},field:n}=e;this.stopEditingImmediately=!1,8===e.keyPress||127===e.keyPress?(this.initialValue=n.lowestValidValue,this.stopEditingImmediately=!0):e.charPress?e.field.isScalar&&!e.field.isList&&(this.initialValue=e.charPress):this.initialValue=t.value[n.name]}render(){const{field:e}=this.props;return e.isString?e.isList?a.a.createElement(Kp,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):a.a.createElement(_p,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):e.isInt||e.isFloat?e.isList?a.a.createElement(Xp,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):a.a.createElement(Rp,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):e.isBoolean?e.isList?a.a.createElement(Zp,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):a.a.createElement(Ip,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):e.isDateTime?e.isList?a.a.createElement(Kp,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):a.a.createElement(_p,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):e.isJson?a.a.createElement(kp,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):e.isEnum?e.isList?a.a.createElement(td,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):a.a.createElement(Vp,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):e.isRelation?e.isList?a.a.createElement(od,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):a.a.createElement(Bp,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):a.a.createElement("div",null,"Invalid Field Type")}}var id=mt(rd);class sd extends a.a.Component{constructor(e){super(e),this.table=a.a.createRef(),this.recordOrder=new Map,this.reactionDisposers=[],this.focus=()=>{var e;null===(e=this.table.current)||void 0===e||e.focus()},this.refresh=()=>{this.loadGridDataDebounced()},this.scrollToCell=()=>{console.log("scrollToCell")},this.getDimensions=()=>{var e;return null===(e=this.table.current)||void 0===e?void 0:e.getBoundingClientRect()},this.loadGridData=async()=>{var e;const t=null===(e=qo.activeTab)||void 0===e?void 0:e.session;t&&t.isScript&&(0!==t.script.model.count?(this.gridApi.hideOverlay(),this.gridApi.showLoadingOverlay(),t.script.update({recordIds:[]}),this.gridApi.setRowData([]),await t.script.run(),this.gridApi.hideOverlay()):this.gridApi.showNoRowsOverlay())},this.configureGridColumns=()=>{var e;const t=null===(e=qo.activeTab)||void 0===e?void 0:e.session;t&&t.isScript&&(this.gridApi.setColumnDefs(t.script.model.fields.map(e=>({colId:e.id,headerName:e.name,editable:!0,resizable:!0,sortable:!0,maxWidth:300,valueGetter:t=>t.data.value[e.name],valueSetter:t=>this.handleCellValueChanged(t,e),comparator:(e,t,n,o,r)=>(this.recordOrder.get(n.id)-this.recordOrder.get(o.id)||0)*(r?-1:1),headerComponent:"TableCellHeader",headerComponentParams:{field:e,script:t.script},cellRenderer:"TableCellRenderer",cellRendererParams:{field:e},cellEditor:"TableCellEditor",cellEditorParams:{field:e,sessionId:t.id,getTableDimensions:this.getDimensions}}))),this.gridApi.ensureColumnVisible(t.script.model.fieldIds[0]))},this.configureReactions=()=>{this.disposeReactions();let e=Object(c.computed)(()=>{var e;return[qo.activeTab,null===(e=qo.activeTab)||void 0===e?void 0:e.session]}).observe(()=>{this.configureGridColumns(),this.loadGridDataDebounced()});this.reactionDisposers.push(e),e=Object(c.computed)(()=>fo.actions).observe(({oldValue:e=[],newValue:t=[]})=>{if(e.length==t.length)return;const n=t.filter(e=>"create"===e.type);this.gridApi.setPinnedTopRowData(n.map(e=>e.record))},!0),this.reactionDisposers.push(e),e=Object(c.computed)(()=>{var e,t,n,o,r;return(null===(t=null===(e=qo.activeTab)||void 0===e?void 0:e.session)||void 0===t?void 0:t.isScript)?null===(r=null===(o=null===(n=qo.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.script)||void 0===r?void 0:r.fields:[]}).observe(({oldValue:e=[],newValue:t=[]})=>{var n,o;if(!(null===(o=null===(n=qo.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.isScript))return;let r=[],i=[];const s=new Map;e.forEach(e=>s.set(e.id,e));const a=new Map;t.forEach(e=>a.set(e.id,e)),a.forEach((e,t)=>{s.has(t)||r.push(e),s.delete(t)}),s.forEach((e,t)=>i.push(e)),r.forEach(e=>this.columnApi.setColumnVisible(e.id,!0)),i.forEach(e=>this.columnApi.setColumnVisible(e.id,!1))}),this.reactionDisposers.push(e),e=Object(c.computed)(()=>{var e,t,n,o,r;return(null===(t=null===(e=qo.activeTab)||void 0===e?void 0:e.session)||void 0===t?void 0:t.isScript)?null===(r=null===(o=null===(n=qo.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.script)||void 0===r?void 0:r.records:[]}).observe(({oldValue:e=[],newValue:t=[]})=>{var n,o,r,i,s,a;if(!(null===(o=null===(n=qo.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.isScript))return;const l=[],u=[],c=new Map;e.forEach(e=>c.set(e.id,e));const p=new Map;t.forEach(e=>p.set(e.id,e));let d=0;this.recordOrder.clear(),p.forEach((e,t)=>{this.recordOrder.set(t,d++),c.has(t)||l.push(e),c.delete(t)}),c.forEach(e=>{this.gridApi.getRowNode(e.id)&&u.push(e)}),this.gridApi.setSortModel(null),this.gridApi.applyTransaction({add:l,remove:u}),this.gridApi.setSortModel([{colId:null===(i=null===(r=qo.activeTab)||void 0===r?void 0:r.session)||void 0===i?void 0:i.script.fieldIds[0],sort:null===(a=null===(s=qo.activeTab)||void 0===s?void 0:s.session)||void 0===a?void 0:a.script.sort.order}])}),this.reactionDisposers.push(e)},this.disposeReactions=()=>{this.reactionDisposers.forEach(e=>e()),this.reactionDisposers=[]},this.handleGridReady=async e=>{this.columnApi=e.columnApi,this.gridApi=e.api,this.configureReactions(),this.configureGridColumns(),this.loadGridDataDebounced(),document.addEventListener("click",this.handleClickOutside)},this.handleScroll=async e=>{var t,n;if(this.gridApi.stopEditing(),"horizontal"===e.direction)return;const o=null===(n=null===(t=qo.activeTab)||void 0===t?void 0:t.session)||void 0===n?void 0:n.script;if(o.recordIds.length>=o.model.count)return;!o.running&&e.top+Pn.results.height>=32*(o.pagination.take-20)&&o.loadMore()},this.handleSelectionChanged=e=>{var t;(null===(t=qo.activeTab)||void 0===t?void 0:t.session).selection.table.update({selectedRecordIds:e.api.getSelectedRows().map(e=>e.id)})},this.handleCellValueChanged=(e,t)=>{var n,o,r;const{oldValue:i,newValue:s,node:{data:a}}=e,l=null===(n=qo.activeTab)||void 0===n?void 0:n.sessionId;if(!l)return!1;if(Object(yt.isEqual)(i,s))return!1;if(fo.add({type:"update",recordId:a.id,sessionId:l,value:{[t.name]:s}}),t.isRelation&&!t.isList){const e=bo.get(s);if(!e)return!1;const n=t.relationFromFieldNames,r=t.relationToFieldNames;fo.add({type:"update",sessionId:l,recordId:null!==(o=a.id)&&void 0!==o?o:null,value:n.reduce((t,n,o)=>(t[n]=e.value[r[o]],t),{})})}if(t.isPartOfRelation&&t.relationItIsPartOf){if(!t.relationItIsPartOf.typeAsModel)return!1;const e=t.relationItIsPartOf.relationFromFieldNames,n=t.relationItIsPartOf.relationToFieldNames,o=bn(t.relationItIsPartOf.typeAsModel.id,n.reduce((t,n,o)=>(t[n]=a.value[e[o]],t),{}));fo.add({type:"update",sessionId:l,recordId:null!==(r=a.id)&&void 0!==r?r:null,value:{[t.relationItIsPartOf.name]:o}})}return!0},this.handleClickOutside=e=>{var t=this.table.current,n=e.target;t&&n&&(n===t||t.contains(n)||this.gridApi.deselectAll())},this.loadGridDataDebounced=Object(yt.debounce)(this.loadGridData,300,{leading:!1,trailing:!0}),this.handleScrollThrottled=Object(yt.throttle)(this.handleScroll,100,{leading:!0,trailing:!0})}componentWillUnmount(){document.removeEventListener("click",this.handleClickOutside),this.disposeReactions()}render(){const{height:e,width:t}=this.props;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{ref:this.table,className:"ag-theme-prisma",style:{height:e+"px",width:t+"px"}},a.a.createElement(Iu.AgGridReact,{rowSelection:"multiple",animateRows:!0,enterMovesDownAfterEdit:!0,stopEditingWhenGridLosesFocus:!0,frameworkComponents:{TableLoadingOverlay:fc,TableEmptyOverlay:Wc,TableCellHeader:gp,TableCellRenderer:Cp,TableCellEditor:id},getRowNodeId:e=>e.id,onGridReady:this.handleGridReady,onBodyScroll:this.handleScrollThrottled,onSelectionChanged:this.handleSelectionChanged})),a.a.createElement(Sr,{keys:"mod+up",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),console.log("mod+up"))}}),a.a.createElement(Sr,{keys:"mod+down",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),console.log("mod+down"))}}),a.a.createElement(Sr,{keys:"mod+left",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),console.log("mod+left"))}}),a.a.createElement(Sr,{keys:"mod+right",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),console.log("mod+right"))}}))}}var ad=Ms(sd);function ld(){return(ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function ud(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function cd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pd(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var dd=function(e,t){var n;void 0===t&&(t=pd);var o,r=[],i=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return i&&n===this&&t(s,r)||(o=e.apply(this,s),i=!0,n=this,r=s),o}};var hd="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function fd(e){cancelAnimationFrame(e.id)}function gd(e,t){var n=hd();var o={id:requestAnimationFrame((function r(){hd()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))};return o}var vd=null;function md(e){if(void 0===e&&(e=!1),null===vd||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var o=document.createElement("div"),r=o.style;return r.width="100px",r.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?vd="positive-descending":(t.scrollLeft=1,vd=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),vd}return vd}var yd=function(e,t){return e};function Cd(e){var t,n,o=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,u=e.getStopIndexForStartIndex,c=e.initInstanceProps,p=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,cd(cd(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:cd(cd(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=dd((function(e,t,o,r){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:o,visibleStopIndex:r})})),n._callOnScroll=void 0,n._callOnScroll=dd((function(e,t,o){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:o})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,s=r.direction,a=r.itemSize,l=r.layout,u=n._getItemStyleCache(p&&a,p&&l,p&&s);if(u.hasOwnProperty(e))t=u[e];else{var c,d=o(n.props,e,n._instanceProps),h=i(n.props,e,n._instanceProps),f="horizontal"===s||"horizontal"===l;u[e]=((c={position:"absolute"})["rtl"===s?"right":"left"]=f?d:0,c.top=f?0:d,c.height=f?"100%":h,c.width=f?h:"100%",t=c)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=dd((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,o=t.clientWidth,r=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===r)return null;var t=n.props.direction,s=r;if("rtl"===t)switch(md()){case"negative":s=-r;break;case"positive-descending":s=i-o-r}return s=Math.max(0,Math.min(s,i-o)),{isScrolling:!0,scrollDirection:e.scrollOffset<r?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,o=t.clientHeight,r=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,r-o));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&fd(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=gd(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}ud(t,e),t.getDerivedStateFromProps=function(e,t){return wd(e,t),d(e),null};var n=t.prototype;return n.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)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(a(this.props,e,t,o,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,o=e.layout;if("number"==typeof n&&null!=this._outerRef){var r=this._outerRef;"horizontal"===t||"horizontal"===o?r.scrollLeft=n:r.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,o=this.state,r=o.scrollOffset;if(o.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(md()){case"negative":i.scrollLeft=-r;break;case"positive-ascending":i.scrollLeft=r;break;default:var s=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-s-r}else i.scrollLeft=r;else i.scrollTop=r}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&fd(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,p=e.itemData,d=e.itemKey,h=void 0===d?yd:d,f=e.layout,g=e.outerElementType,v=e.outerTagName,m=e.style,y=e.useIsScrolling,C=e.width,w=this.state.isScrolling,E="horizontal"===o||"horizontal"===f,b=E?this._onScrollHorizontal:this._onScrollVertical,_=this._getRangeToRender(),O=_[0],R=_[1],S=[];if(c>0)for(var T=O;T<=R;T++)S.push(Object(s.createElement)(t,{data:p,key:h(T,p),index:T,isScrolling:y?w:void 0,style:this._getItemStyle(T)}));var P=r(this.props,this._instanceProps);return Object(s.createElement)(g||v||"div",{className:n,onScroll:b,ref:this._outerRefSetter,style:ld({position:"relative",height:i,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},m)},Object(s.createElement)(l||u||"div",{children:S,ref:a,style:{height:E?"100%":P,pointerEvents:w?"none":void 0,width:E?P:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],o=e[2],r=e[3];this._callOnItemsRendered(t,n,o,r)}if("function"==typeof this.props.onScroll){var i=this.state,s=i.scrollDirection,a=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,o=this.state,r=o.isScrolling,i=o.scrollDirection,s=o.scrollOffset;if(0===t)return[0,0,0,0];var a=l(this.props,s,this._instanceProps),c=u(this.props,a,s,this._instanceProps),p=r&&"backward"!==i?1:Math.max(1,n),d=r&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,a-p),Math.max(0,Math.min(t-1,c+d)),a,c]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var wd=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Ed=Cd({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,o){var r=e.direction,i=e.height,s=e.itemCount,a=e.itemSize,l=e.layout,u=e.width,c="horizontal"===r||"horizontal"===l?u:i,p=Math.max(0,s*a-c),d=Math.min(p,t*a),h=Math.max(0,t*a-c+a);switch("smart"===n&&(n=o>=h-c&&o<=d+c?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var f=Math.round(h+(d-h)/2);return f<Math.ceil(c/2)?0:f>p+Math.floor(c/2)?p:f;case"auto":default:return o>=h&&o<=d?o:o<h?h:d}},getStartIndexForOffset:function(e,t){var n=e.itemCount,o=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/o)))},getStopIndexForStartIndex:function(e,t,n){var o=e.direction,r=e.height,i=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,u=t*s,c="horizontal"===o||"horizontal"===a?l:r,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}});var bd=n(69),_d=n.n(bd),Od=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Rd=a.a.createContext({});class Sd extends a.a.PureComponent{constructor(e){super(e),this.list=a.a.createRef(),this.lastScrollTop=0,this.isLoading=!1,this.handleScroll=()=>{const e=this.list.current._outerRef;e.scrollTop!==this.lastScrollTop&&(this.lastScrollTop=e.scrollTop,this.handleHorizontalScrollThrottled())},this.handleHorizontalScroll=()=>{const{itemSize:e,onLoad:t}=this.props;if(this.isLoading||!t)return;const n=this.list.current._outerRef;n.scrollHeight-(n.scrollTop+n.clientHeight)<15*e&&(this.isLoading=!0,t())},this.handleHorizontalScrollThrottled=Object(yt.throttle)(this.handleHorizontalScroll,100,{leading:!0,trailing:!0})}componentDidUpdate(){this.isLoading=!1}render(){const{className:e,outerElementRef:t,innerElementRef:n,height:o,width:r,itemCount:i,itemKey:s,itemSize:l,itemData:u,itemRenderer:c,stickyIndices:p,stickyItemsClassName:d,overscan:h}=this.props;return a.a.createElement(Rd.Provider,{value:{stickyIndices:p,stickyItemsClassName:d,itemSize:l,itemData:u,itemKey:s,itemRenderer:c}},a.a.createElement("div",{"data-cy":"infinite-list",className:e,onScroll:this.handleScroll},a.a.createElement(Ed,{ref:this.list,outerRef:t,innerRef:n,height:o,width:r,itemCount:i,itemSize:l,itemKey:s,itemData:u,overscanCount:h,outerElementType:Pd,innerElementType:Td},c)))}}Sd.defaultProps={stickyIndices:[],stickyItemsClassName:"",overscan:10};const Td=a.a.forwardRef((e,t)=>{var{children:n}=e,o=Od(e,["children"]);return a.a.createElement(Rd.Consumer,null,({stickyItemsClassName:e,stickyIndices:r=[],itemSize:i,itemData:s,itemKey:l,itemRenderer:u})=>a.a.createElement("div",Object.assign({ref:t},o),a.a.createElement("div",{className:qe()(_d.a.stickyItems,e)},r.map(e=>a.a.createElement(u,{key:l(e),index:e,style:{display:"flex",position:"absolute",top:e*i,left:0,width:"100%",height:i},data:Object.assign(Object.assign({},s),{sticky:!0})}))),a.a.Children.map(n,(e,t)=>r.includes(t)?null:e)))}),Pd=a.a.forwardRef((e,t)=>{var{children:n,className:o}=e,r=Od(e,["children","className"]);return a.a.createElement("div",Object.assign({ref:t,tabIndex:1,className:qe()(_d.a.outer,o)},r),n)});var Dd=Sd,Ad=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Nd extends a.a.PureComponent{constructor(){super(...arguments),this.clickStartCoords={x:0,y:0},this.startClick=e=>{this.clickStartCoords={x:e.clientX,y:e.clientY}},this.finishClick=e=>{if(this.props.onClickButNotDrag&&Math.abs(this.clickStartCoords.x-e.clientX)<5&&Math.abs(this.clickStartCoords.y-e.clientY)<5)return this.props.onClickButNotDrag(e);this.props.onClick&&this.props.onClick(e)}}render(){const e=this.props,{onClickButNotDrag:t,children:n}=e,o=Ad(e,["onClickButNotDrag","children"]);return a.a.createElement("div",Object.assign({},o,{onMouseDown:this.startClick,onMouseUp:this.finishClick,onClick:void 0}),n)}}var xd=Nd,Id=n(54),Fd=n.n(Id);var Md=mt(({className:e,size:t=3}={})=>a.a.createElement("div",{className:qe()(Fd.a.container,e)},a.a.createElement("div",{className:Fd.a.one,style:{height:t,width:t}}),a.a.createElement("div",{className:Fd.a.two,style:{height:t,width:t}}),a.a.createElement("div",{className:Fd.a.three,style:{height:t,width:t}})));function Ld(){return(Ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var kd=s.createElement("path",{d:"M2.315 2.715C2.315.618 4.635-.649 6.4.485l13.865 8.913c1.894 1.218 1.894 3.986 0 5.204L6.4 23.515c-1.764 1.134-4.085-.133-4.085-2.23V2.715z"});var Gd=function(e){return s.createElement("svg",Ld({viewBox:"0 0 24 24"},e),kd)};var Vd=(e,{maxLength:t=100}={})=>e.length<=t?e:e.slice(0,t-1)+"…";var Wd=(e,{maxLength:t}={maxLength:100})=>{if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return`"${Vd(e,{maxLength:t-2})}"`;if("number"==typeof e||"boolean"==typeof e)return Vd(""+e,{maxLength:t});const n=e=>"string"==typeof e?`"${e}"`:"number"==typeof e||"boolean"==typeof e?""+e:Array.isArray(e)?"[ … ]":"{ … }";if(Array.isArray(e)){t-="[ ]".length;const o=[];return e.some(e=>{const r=n(e),i=r.length+", ".length;return!(i<t)||(o.push(r),t-=i,!1)}),0===o.length?"[ … ]":o.length===e.length?`[ ${o.join(", ")} ]`:`[ ${o.join(", ")}, … ]`}const o=Object.keys(e);t-="{ }".length;const r=[];return o.some(o=>{const i=`${o}: ${n(e[o])}`,s=i.length+", ".length;return!(s<t)||(r.push(i),t-=s,!1)}),0===r.length?"{ … }":r.length===o.length?`{ ${r.join(", ")} }`:`{ ${r.join(", ")}, … }`},jd=n(18),Hd=n.n(jd);class Bd extends a.a.PureComponent{constructor(){super(...arguments),this.handleToggleCollapse=e=>{const{path:t,isLoading:n,onToggleCollapse:o}=this.props;e.stopPropagation(),n||o(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:n,fieldName:o,modelName:r,value:i,isLoading:s,style:l}=this.props,u=e.split("::").length-1;return a.a.createElement("div",{"data-cy":"tree__object","data-cy-expanded":"true",style:l,className:qe()(Hd.a.container,{[Hd.a.expanded]:n,[Hd.a.active]:!n&&t}),tabIndex:1},a.a.createElement("div",{className:Hd.a.depthGutter,style:{width:16*u}}),a.a.createElement("div",{"data-cy":"expand-btn",className:Hd.a.expandButton,onClick:this.handleToggleCollapse},s&&a.a.createElement(Md,{size:3,className:Hd.a.loader}),!s&&i&&a.a.createElement(Gd,null)),a.a.createElement("div",{className:qe()(Hd.a.meta,{[Hd.a.active]:n&&t}),onClick:this.handleToggleCollapse},a.a.createElement(pp,{className:Hd.a.icon,object:!0}),o&&a.a.createElement("div",{className:Hd.a.fieldName},o,":"),a.a.createElement("div",{className:Hd.a.fieldType},r)),a.a.createElement(xd,{className:Hd.a.fieldValue,onClickButNotDrag:this.handleExpand},i?Wd(i,{maxLength:150}):"null"))}}var zd=mt(Bd),Ud=n(7),Yd=n.n(Ud);class qd extends a.a.PureComponent{constructor(){super(...arguments),this.handleToggleCollapse=e=>{const{path:t,isLoading:n,onToggleCollapse:o}=this.props;e.stopPropagation(),n||o(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:n,fieldName:o,modelName:r,value:i,isLoading:s,style:l}=this.props,u=e.split("::").length-1;return a.a.createElement("div",{tabIndex:1,"data-cy":"tree__array",className:qe()(Yd.a.container,{[Yd.a.expanded]:n,[Yd.a.active]:!n&&t}),style:l},a.a.createElement("div",{className:Yd.a.depthGutter,style:{width:16*u}}),a.a.createElement("div",{"data-cy":"expand-btn",className:Yd.a.expandButton,onClick:this.handleToggleCollapse},s&&a.a.createElement(Md,{size:3,className:Yd.a.loader}),!s&&i&&i.length>0&&a.a.createElement(Gd,null)),a.a.createElement("div",{className:qe()(Yd.a.meta,{[Yd.a.active]:n&&t}),onClick:this.handleToggleCollapse},a.a.createElement(pp,{className:Yd.a.icon,array:!0}),a.a.createElement("div",{className:Yd.a.fieldName},o,":"),a.a.createElement("div",{className:Yd.a.fieldType},r)),a.a.createElement(xd,{className:Yd.a.fieldValue,onClickButNotDrag:this.handleExpand},a.a.createElement(a.a.Fragment,null,`(${i?i.length:0}) `,s||0===(null==i?void 0:i.length)?"[ ]":Wd(i,{maxLength:150}))))}}var Kd=mt(qd);class $d extends a.a.PureComponent{constructor(){super(...arguments),this.handleToggleCollapse=e=>{const{path:t,isLoading:n,onToggleCollapse:o}=this.props;e.stopPropagation(),n||o(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:n,startIndex:o,endIndex:r,value:i,isLoading:s,style:l}=this.props,u=e.split("::").length-1;return a.a.createElement("div",{tabIndex:1,"data-cy":"tree__array",className:qe()(Yd.a.container,{[Yd.a.expanded]:n,[Yd.a.active]:!n&&t}),style:l},a.a.createElement("div",{className:Yd.a.depthGutter,style:{width:16*u}}),a.a.createElement("div",{"data-cy":"expand-btn",className:Yd.a.expandButton},s?a.a.createElement(Md,{size:3,className:Yd.a.loader}):a.a.createElement(Gd,null)),a.a.createElement("div",{className:qe()(Yd.a.meta,{[Yd.a.active]:n&&t}),onClick:this.handleToggleCollapse},a.a.createElement(pp,{className:Yd.a.icon,array:!0}),a.a.createElement("div",{className:Yd.a.fieldName},`[${o}-${r}]:`)),a.a.createElement(xd,{className:Yd.a.fieldValue,onClickButNotDrag:this.handleExpand},a.a.createElement(a.a.Fragment,null,`(${i&&i.length}) `,Wd(i,{maxLength:150}))))}}var Qd=mt($d),Xd=n(36),Jd=n.n(Xd);class Zd extends a.a.PureComponent{constructor(){super(...arguments),this.handleClick=e=>{const{path:t,onClick:n}=this.props;e&&e.stopPropagation(),n(t)}}render(){const{path:e,isSelected:t,fieldName:n,value:o,isString:r,isInt:i,isFloat:s,isBoolean:l,isDateTime:u,style:c}=this.props,p=e.split("::").length-1;return a.a.createElement("div",{"data-cy":"tree__scalar",style:c,className:qe()(Jd.a.container,{[Jd.a.active]:t}),tabIndex:1,onClick:this.handleClick},a.a.createElement("div",{className:Jd.a.depthGutter,style:{width:16*p}}),a.a.createElement("div",{className:Jd.a.meta},((d=this.props).isString||d.isInt||d.isFloat||d.isBoolean||d.isDateTime)&&a.a.createElement(pp,{className:Jd.a.icon,string:r,int:i,float:s,boolean:l,dateTime:u}),a.a.createElement("div",{className:Jd.a.fieldName},n,":")),a.a.createElement("div",{className:Jd.a.fieldValue},Wd(o)));var d}}var eh=mt(Zd),th=n(37),nh=n.n(th);class oh extends a.a.PureComponent{constructor(){super(...arguments),this.handleClick=e=>{const{path:t,onClick:n}=this.props;e&&e.stopPropagation(),n(t)}}render(){const{path:e,isSelected:t,fieldName:n,value:o,style:r}=this.props,i=e.split("::").length-1;return a.a.createElement("div",{"data-cy":"tree__enum",style:r,className:qe()(nh.a.container,{[nh.a.active]:t}),tabIndex:1,onClick:this.handleClick},a.a.createElement("div",{className:nh.a.depthGutter,style:{width:16*i}}),a.a.createElement("div",{className:nh.a.meta},a.a.createElement(pp,{className:nh.a.icon,enumerable:!0}),n&&a.a.createElement("div",{className:nh.a.fieldName},n,":")),a.a.createElement("div",{className:nh.a.fieldValue},Wd(o)))}}var rh=mt(oh);class ih extends a.a.PureComponent{constructor(){super(...arguments),this.isArraySlice=e=>null===e.record&&Array.isArray(e.arraySliceIndices)&&Array.isArray(e.value),this.handleToggleCollapse=e=>{const{selection:t}=this.context.session;this.handleSelect(e),t.tree.isExpanded(e)?t.tree.collapse():t.tree.expand()},this.handleSelect=e=>{const{selection:t}=this.context.session;t.tree.select(e)}}render(){var e,t,n,o,r,i,s,l,u,c,p,d;const{selection:h}=this.context.session,{style:f,index:g,data:{pathsToRender:v,recordIds:m}}=this.props,y=v[g],C=zn(y,m),w=h.tree.activePath,E=h.tree.isExpanded(y);return this.isArraySlice(C)?a.a.createElement(Qd,{path:y,isSelected:y===w,isExpanded:E,startIndex:C.arraySliceIndices[0],endIndex:C.arraySliceIndices[1],value:C.value,isLoading:!C.value,style:f,onToggleCollapse:this.handleToggleCollapse}):(null===(e=C.field)||void 0===e?void 0:e.isList)||Array.isArray(C.value)?a.a.createElement(Kd,{path:y,isSelected:y===w,isExpanded:E,fieldName:C.field.name,modelName:C.field.typeAsLabel,value:C.value,isLoading:!C.value,style:f,onToggleCollapse:this.handleToggleCollapse}):(null===(t=C.field)||void 0===t?void 0:t.isRelation)||C.record?a.a.createElement(zd,{path:y,isSelected:y===w,isExpanded:E,fieldName:null===(n=C.field)||void 0===n?void 0:n.name,modelName:C.model.name,value:C.value,isLoading:null===(null===(o=C.record)||void 0===o?void 0:o.value),style:f,onToggleCollapse:this.handleToggleCollapse}):(null===(r=C.field)||void 0===r?void 0:r.isEnum)?a.a.createElement(rh,{path:y,isSelected:y===w,fieldName:null===(i=C.field)||void 0===i?void 0:i.name,value:C.value,style:f,onClick:this.handleSelect}):a.a.createElement(eh,{path:y,isSelected:y===w,fieldName:(null===(s=C.field)||void 0===s?void 0:s.name)||""+C.index,value:C.value,isString:(null===(l=C.field)||void 0===l?void 0:l.isString)||!1,isInt:(null===(u=C.field)||void 0===u?void 0:u.isInt)||!1,isFloat:(null===(c=C.field)||void 0===c?void 0:c.isFloat)||!1,isBoolean:(null===(p=C.field)||void 0===p?void 0:p.isBoolean)||!1,isDateTime:(null===(d=C.field)||void 0===d?void 0:d.isDateTime)||!1,style:f,onClick:this.handleSelect})}}var sh=mt(Ms(ih)),ah=n(79),lh=n.n(ah);class uh extends a.a.PureComponent{constructor(e){super(e),this.tree=a.a.createRef(),this.refresh=async()=>{const{session:e}=this.context;await e.script.run()},this._scrollIntoView=()=>{const{height:e}=this.props,t=this.getActivePathIndex(),n=this.tree.current,o=23*t,r=o+23;o<=n.scrollTop&&n.scrollTo({top:o}),r>=n.scrollTop+e&&n.scrollTo({top:r-e})},this.getActivePathIndex=()=>{const{session:e}=this.context;return e.selection.tree.selectionOrder.findIndex(t=>t===e.selection.tree.activePath)},this.handleLoadMore=()=>{const{session:e}=this.context;e.script.loadMore(),e.selection.tree.setSelectionOrder()},this.scrollIntoView=Object(yt.throttle)(this._scrollIntoView,30,{leading:!0,trailing:!0})}focus(){var e;null===(e=this.tree.current)||void 0===e||e.focus()}componentDidMount(){this.context.session.selection.tree.setSelectionOrder()}render(){const{session:e}=this.context,{height:t,width:n,recordIds:o}=this.props,{tree:r}=e.selection,i=r.selectionOrder;return a.a.createElement(a.a.Fragment,null,a.a.createElement(Dd,{outerElementRef:this.tree,className:lh.a.container,height:t-20,width:n-20,itemCount:i.length,itemSize:23,itemData:{pathsToRender:i,recordIds:o},itemKey:e=>i[e],itemRenderer:sh,onLoad:this.handleLoadMore}),a.a.createElement(Sr,{keys:"up",target:this.tree,onMatch:e=>{r.move(1,"up"),this.scrollIntoView()}}),a.a.createElement(Sr,{keys:"down",target:this.tree,onMatch:e=>{r.move(1,"down"),this.scrollIntoView()}}),a.a.createElement(Sr,{keys:"left",target:this.tree,onMatch:e=>{r.isExpanded(r.activePath)?r.collapse():r.jumpToParent(),this.scrollIntoView()}}),a.a.createElement(Sr,{keys:"right",target:this.tree,onMatch:e=>{r.expand(),this.scrollIntoView()}}),a.a.createElement(Sr,{keys:"space",target:this.tree,onMatch:e=>{r.expand(),this.scrollIntoView()}}))}}var ch=mt(Ms(uh)),ph=n(80),dh=n.n(ph);class hh extends a.a.PureComponent{constructor(){super(...arguments),this.table=a.a.createRef(),this.tree=a.a.createRef()}scrollToCell(e,t){this.table.current.scrollToCell(e,t)}scrollIntoView(){this.table.current.scrollIntoView()}focus(){var e,t;const{session:n}=this.context;"table"===n.script.viewMode&&(null===(e=this.table.current)||void 0===e||e.focus()),"tree"===n.script.viewMode&&(null===(t=this.tree.current)||void 0===t||t.focus())}refresh(){var e,t;const{session:n}=this.context;"table"===n.script.viewMode&&(null===(e=this.table.current)||void 0===e||e.refresh()),"tree"===n.script.viewMode&&(null===(t=this.tree.current)||void 0===t||t.refresh())}render(){const{sessionId:e,session:t}=this.context,{className:n,width:o,height:r}=this.props;return a.a.createElement("div",{className:qe()(dh.a.container,n),"data-cy":"results"},"tree"===t.script.viewMode&&a.a.createElement(ch,{ref:this.tree,key:e,width:o,height:r,recordIds:t.script.recordIds}),"table"===t.script.viewMode&&a.a.createElement(ad,{ref:this.table,width:o,height:r}))}}var fh=mt(Ms(hh));function gh(){return(gh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var vh=s.createElement("path",{fill:"currentColor",d:"M8.53 1.47A4.995 4.995 0 000 5a4.995 4.995 0 009.831 1.25h-1.3a3.746 3.746 0 01-3.534 2.5A3.754 3.754 0 011.245 5a3.754 3.754 0 013.752-3.75 3.7 3.7 0 012.639 1.112L5.622 4.376H10V0L8.53 1.469z"});var mh=function(e){return s.createElement("svg",gh({viewBox:"0 0 10 10"},e),vh)},yh=n(38),Ch=n.n(yh);class wh extends a.a.PureComponent{constructor(){super(...arguments),this.results=a.a.createRef(),this.handleCreateRecord=()=>{const{session:e}=this.context;e.createUncommittedRecord()},this.handleDeleteRecords=()=>{const{sessionId:e,session:t}=this.context;t.selection.table.selectedRecordIds.forEach(t=>{fo.add({type:"delete",recordId:t,sessionId:e,value:{}})}),t.selection.table.update({selectedRecordIds:[]}),this.results.current.focus()},this.handleScrollToCell=(e,t)=>{this.results.current.scrollToCell(e,t)},this.handleCommit=()=>{this.results.current.focus(),this.results.current.refresh()},this.handleDiscard=()=>{const{session:e}=this.context;e.selection.table.update({selectedRecordIds:[]}),this.results.current.focus(),this.results.current.refresh()}}render(){const{session:e}=this.context;return a.a.createElement("div",{className:Ch.a.container,"data-cy":"databrowser"},a.a.createElement("div",{className:Ch.a.header},a.a.createElement(yr,{className:Ch.a.refreshBtn,onClick:()=>e.script.run()},a.a.createElement(mh,null)),a.a.createElement(pa,null),a.a.createElement(Ea,null),a.a.createElement(Ra,null),a.a.createElement("div",{className:Ch.a.separator}),a.a.createElement(yr,{"data-cy":"create-record-btn",onClick:this.handleCreateRecord,disabled:e.isScript&&"tree"===e.script.viewMode},"Add record"),e.selection.table.selectedRecordIds.length>0&&a.a.createElement(yr,{"data-cy":"delete-record-btn",className:Ch.a.deleteBtn,onClick:this.handleDeleteRecords},a.a.createElement(a.a.Fragment,null,"Delete ",e.selection.table.selectedRecordIds.length," ","record",e.selection.table.selectedRecordIds.length>1?"s":"")),a.a.createElement(xu,{className:Ch.a.pendingActions,onScrollToCell:this.handleScrollToCell,onCommit:this.handleCommit,onDiscard:this.handleDiscard})),a.a.createElement(fh,{ref:this.results,className:Ch.a.results,width:Pn.results.width,height:Pn.results.height- -(Pn.actions.visible?10:0)}))}}var Eh=mt(Ms(wh)),bh=n(8),_h=n.n(bh);class Oh extends a.a.PureComponent{constructor(){super(...arguments),this.state={searchValue:"",highlightedIdx:0},this.input=a.a.createRef(),this.modelListRefs=Object.values(En.values).reduce((e,t)=>(e[t.id]=a.a.createRef(),e),{}),this.getModelByIdx=e=>{var t;return[...(null===(t=Jo.activeProject)||void 0===t?void 0:t.recentModels)||[],...Object.values(En.values)][e]},this.handleSelectModel=e=>{var t;const{highlightedIdx:n}=this.state,o=this.getModelByIdx(null!=e?e:n);null===(t=Jo.activeProject)||void 0===t||t.addRecentModel(o.id);let r=Object.values(qo.values).find(e=>{var t;return(null===(t=e.session)||void 0===t?void 0:t.isScript)&&e.session.script.model.id===o.id&&e.session.script.frozen})||null;if(r)qo.switch({id:r.id});else{if(r=qo.previewTab,r)return r.load({modelId:o.id}),void qo.switch({id:r.id});r=qo.add({modelId:o.id,preview:!0}),qo.switch({id:r.id})}},this.handleSearch=e=>{this.setState({searchValue:e})},this.handleHighlightPrev=()=>{this.setState(e=>({highlightedIdx:Math.max(e.highlightedIdx-1,0)}),()=>{var e;const t=this.getModelByIdx(this.state.highlightedIdx);null===(e=this.modelListRefs[t.id].current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"})})},this.handleHighlightNext=()=>{var e;const t=(null===(e=Jo.activeProject)||void 0===e?void 0:e.recentModels)||[];this.setState(e=>({highlightedIdx:Math.min(e.highlightedIdx+1,t.length+En.size-1)}),()=>{var e;const t=this.getModelByIdx(this.state.highlightedIdx);null===(e=this.modelListRefs[t.id].current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"})})}}render(){var e;const{searchValue:t,highlightedIdx:n}=this.state,o=(null===(e=Jo.activeProject)||void 0===e?void 0:e.recentModels)||[],r=Object.values(En.values).filter(e=>e.name.toLowerCase().includes(t.toLowerCase()));return a.a.createElement("div",{className:_h.a.container,"data-cy":"model-list-tab"},a.a.createElement("div",{className:_h.a.content},a.a.createElement("header",{className:_h.a.header},a.a.createElement("div",{className:_h.a.title},"Open a Model"),a.a.createElement(Bs,{innerRef:this.input,type:"text",className:_h.a.search,focusOnMount:!0,value:t,onChange:this.handleSearch,placeholder:"Search"})),o.length>0&&a.a.createElement("section",{"data-cy":"recent-model-list",className:_h.a.section},a.a.createElement("div",{className:_h.a.sectionTitle},"Recently Opened"),a.a.createElement("ul",{className:_h.a.list},o.map((e,t)=>a.a.createElement("li",{key:e.id,className:qe()(_h.a.model,{[_h.a.active]:n===t}),onClick:e=>this.handleSelectModel(t)},a.a.createElement("div",{"data-cy":"name",className:_h.a.name},e.name),a.a.createElement("div",{className:_h.a.spacer}),a.a.createElement("div",{"data-cy":"count",className:_h.a.count},e.count))))),a.a.createElement("section",{"data-cy":"model-list",className:qe()(_h.a.section,_h.a.allModels)},a.a.createElement("div",{className:_h.a.sectionTitle},"All Models"),a.a.createElement("ul",{className:_h.a.list},r.map((e,t)=>a.a.createElement("li",{key:e.id,ref:this.modelListRefs[e.id],className:qe()(_h.a.model,{[_h.a.active]:n===o.length+t}),onClick:e=>{var n;this.handleSelectModel(o.length+t),(e.metaKey||e.ctrlKey)&&(null===(n=qo.activeTab)||void 0===n||n.update({preview:!1}))}},a.a.createElement("div",{"data-cy":"name",className:_h.a.name},e.name),a.a.createElement("div",{className:_h.a.spacer}),a.a.createElement("div",{"data-cy":"count",className:_h.a.count},e.count)))))),a.a.createElement(Sr,{keys:"up",target:this.input,onMatch:()=>this.handleHighlightPrev()}),a.a.createElement(Sr,{keys:"down",target:this.input,onMatch:()=>this.handleHighlightNext()}),a.a.createElement(Sr,{keys:"enter",target:this.input,onMatch:()=>this.handleSelectModel()}),a.a.createElement(Sr,{keys:"cmd+enter",target:this.input,onMatch:()=>{var e;this.handleSelectModel(),null===(e=qo.activeTab)||void 0===e||e.update({preview:!1})}}))}}var Rh=mt(Oh),Sh=n(81),Th=n.n(Sh),Ph=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Dh extends a.a.Component{render(){const e=this.props,{children:t,className:n,style:o}=e,r=Ph(e,["children","className","style"]);return a.a.createElement("div",Object.assign({className:qe()(Th.a.container,n),style:o},r),t)}}var Ah=Dh,Nh=n(82),xh=n.n(Nh);const Ih={mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"⌘":"ctrl",option:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"⌥":"alt",delete:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"⌫":"del",shift:"shift",upArrow:"↑",downArrow:"↓",leftArrow:"←",rightArrow:"→",tab:"tab"};var Fh=mt(({type:e})=>a.a.createElement("div",{className:xh.a.container},Ih[e]||e));var Mh=()=>({sections:[{name:"Results Table",shortcuts:[{name:"Move cell selection",keys:["leftArrow","rightArrow","upArrow","downArrow"]},{name:"Move horizontally",keys:["tab","shift+tab"]},{name:"Move vertically",keys:["enter","shift+enter"]},{name:"Edit selected cell",keys:["enter"]},{name:"Jump to last cell in row",keys:["mod+rightArrow"]},{name:"Jump to first cell in row",keys:["mod+leftArrow"]},{name:"Select row",keys:["space"]},{name:"Delete selected rows",keys:["delete"]},{name:"Commit unsaved changes to Database",keys:["mod+s"]}]},{name:"Tabs",shortcuts:[{name:"Open a new tab",keys:["mod+t"]},{name:"Close the currently active tab",keys:["mod+w"]}]},{name:"Global",shortcuts:[{name:"Show this cheatsheet",keys:["mod+/"]}]}]}),Lh=n(23),kh=n.n(Lh);class Gh extends a.a.PureComponent{constructor(){super(...arguments),this.state={isOpen:!1},this.handleClose=()=>{this.setState({isOpen:!1})},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen}))}}render(){const{isOpen:e}=this.state,t=Mh();return a.a.createElement(a.a.Fragment,null,e&&a.a.createElement(jr,{className:kh.a.container,onClose:this.handleClose},a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:kh.a.title},"Shortcuts"),a.a.createElement("div",{className:kh.a.content},t.sections.map(e=>a.a.createElement(Ah,{key:e.name,className:kh.a.section},a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:kh.a.sectionName},e.name),e.shortcuts.map(e=>a.a.createElement("div",{key:e.name,className:kh.a.row},a.a.createElement("div",{className:kh.a.name},e.name),a.a.createElement("div",{className:kh.a.keys},e.keys.map((e,t)=>a.a.createElement(a.a.Fragment,{key:t},t>0&&a.a.createElement("span",{className:kh.a.separator},"/"),e.split("+").map(e=>a.a.createElement(Fh,{key:e,type:e}))))))))))))),a.a.createElement(Sr,{keys:"mod+/",onMatch:this.handleToggle}),e&&a.a.createElement(Sr,{keys:"esc",onMatch:this.handleClose}))}}var Vh=mt(Gh),Wh=n(60),jh=n.n(Wh);class Hh extends a.a.PureComponent{constructor(){super(...arguments),this.state={error:!1}}componentDidCatch(e,t){throw Nn.update({type:"fatal",title:"",subtitle:"",dump:e.message,stacktrace:t.componentStack,context:null,telemetry:!1}),Pn.updateError({visible:!0}),Bt("Studio.componentDidCatch","Caught an error during rendering",{},e)}static getDerivedStateFromError(e){return{error:!0,errorMessage:e.message}}render(){var e,t,n,o;const{error:r}=this.state;return r?a.a.createElement(Fs,null):a.a.createElement("div",{className:jh.a.container},a.a.createElement(ri,{className:jh.a.header}),a.a.createElement("div",{className:jh.a.body},(null===(t=null===(e=qo.activeTab)||void 0===e?void 0:e.session)||void 0===t?void 0:t.isScript)&&a.a.createElement(Eh,null),(null===(o=null===(n=qo.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.isModelList)&&a.a.createElement(Rh,null)),Pn.error.visible&&"script"===Nn.type&&a.a.createElement(gi,null),Pn.error.visible&&"connection"===Nn.type&&a.a.createElement(yi,null),Pn.error.visible&&"fatal"===Nn.type&&a.a.createElement(Fs,null),a.a.createElement(Vh,null))}}var Bh=mt(Hh),zh=n(61),Uh=n.n(zh);var Yh=mt(()=>a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:qe()(Uh.a.container,{[Uh.a.themeLight]:"light"===tn.theme,[Uh.a.themeDark]:"dark"===tn.theme})},tr.ready&&qo.activeTab?a.a.createElement(sr,{value:new or({sessionId:qo.activeTab.sessionId})},a.a.createElement(Bh,null)):a.a.createElement(pr,null)),a.a.createElement(Sr,{keys:"mod+t",onMatch:()=>qo.switch({id:"model-list-tab"})}),a.a.createElement(Sr,{keys:"mod+w",onMatch:()=>qo.remove(qo.activeTabId)}),a.a.createElement(Sr,{keys:"d a r k",onMatch:()=>tn.apply("light"===tn.theme?"dark":"light")}))),qh=n(50),Kh=n.n(qh);var $h=mt(({label:e,annotation:t,disabled:n,actions:o,onActionSelect:r})=>a.a.createElement("div",{className:Kh.a.container},a.a.createElement("label",{"data-cy":"input__label",className:Kh.a.label},e),t?a.a.createElement("label",{"data-cy":"input__annotation",className:Kh.a.annotation},t):null,o&&r&&!n&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:Kh.a.spacing}),a.a.createElement(oa,{type:"button",className:Kh.a.actions,items:o,selectedItem:null,onSelect:r}))));function Qh(){return(Qh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Xh=s.createElement("path",{d:"M23.969 20.378a2.394 2.394 0 01-2.394 2.394H2.425a2.394 2.394 0 01-2.394-2.394V3.622a2.394 2.394 0 012.394-2.394h5.984l2.394 3.59h10.772a2.394 2.394 0 012.394 2.395v13.165z"});var Jh=function(e){return s.createElement("svg",Qh({viewBox:"0 0 24 24"},e),Xh)},Zh=n(62),ef=n.n(Zh),tf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class nf extends a.a.PureComponent{constructor(e){super(e),this.input=a.a.createRef(),this.handleChange=e=>{const{onChange:t}=this.props,n=e.target.files[0].path;this.setState({value:n}),t&&t(n)},this.state={value:e.value}}componentDidMount(){this.input.current&&(this.input.current.webkitdirectory=!0)}componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){const e=this.props,{className:t,style:n,value:o,label:r,annotation:i,onChange:s}=e,l=tf(e,["className","style","value","label","annotation","onChange"]),{value:u}=this.state;return a.a.createElement("div",Object.assign({className:qe()(ef.a.container,t),style:n},l),r&&a.a.createElement($h,{label:r,annotation:i}),a.a.createElement("div",{className:ef.a.filename},a.a.createElement("span",null,u),a.a.createElement(Jh,null)),a.a.createElement("input",{ref:this.input,className:ef.a.input,type:"file",value:"",onChange:this.handleChange}))}}nf.defaultProps={value:"",disabled:!1,onChange:()=>{}};var of=mt(nf);var rf=e=>"mysql"===e?{type:"mysql",host:"127.0.0.1",port:3306,ssl:!0,user:"root",password:"",database:"default",schema:""}:"postgres"===e?{type:"postgres",host:"127.0.0.1",port:5432,ssl:!1,user:"root",password:"",database:"default",schema:"public"}:{type:"mongo",host:"127.0.0.1",port:27017,ssl:!0,user:"root",password:"",database:"default",schema:""};var sf=e=>{switch(e){case"postgres":return"postgresql:";case"mysql":return"mysql:";case"mongo":return"mongodb:";case"sqlite":return"sqlite:"}};var af=e=>{if("mongo"===(e=Object.assign(Object.assign({},rf(e.type)),e)).type)return e.uri;const t=new URL(sf(e.type)+"//");return e.host&&(t.hostname=e.host),"postgres"===e.type?(e.database&&(t.pathname="/"+e.database),e.schema&&t.searchParams.set("schema",e.schema)):"mysql"===e.type&&(t.pathname="/"+(e.database||e.schema)),e.user&&(t.username=e.user),e.password&&(t.password=e.password),e.port&&(t.port=String(e.port)),t.toString()};var lf=e=>{switch(e){case"postgresql:":return"postgres";case"mongodb:":return"mongo";case"mysql:":return"mysql";case"file:":case"sqlite:":return"sqlite"}throw new Error("Unsupported protocol")};var uf=e=>{const t=lf(new URL(e).protocol),n=new URL(e.replace(/[a-z]*:/,"http:")),o=e=>e&&e.length>0;return"mongo"===t?(console.warn("MongoDB is not supported"),{type:t,uri:e}):{type:t,host:o(n.hostname)?n.hostname:void 0,user:o(n.username)?n.username:void 0,port:o(n.port)?Number(n.port):void 0,password:o(n.password)?n.password:void 0,database:n.pathname&&n.pathname.length>1?n.pathname.slice(1):void 0,schema:n.searchParams.get("schema")||void 0,uri:e}},cf=n(6),pf=n.n(cf);const df=[{id:"mysql",label:"MySQL"},{id:"postgres",label:"PostgreSQL"}];class hf extends a.a.PureComponent{constructor(e){super(e),this.handleChange=(e,t)=>{const n={};switch(e){case"uri":const o=uf(t);n.error=!1,n.uri=t,n.databaseType=df.find(e=>e.id===o.type),n.host=o.host,n.port=String(o.port),n.user=o.user,n.password=o.password,n.databaseName=o.database,n.schemaName=o.schema;break;case"databaseType":case"host":case"port":case"user":case"password":case"databaseName":case"schemaName":case"projectName":case"projectPath":n.error=!1,n[e]=t;break;case"save":n.save=t}this.setState(n,()=>{const e=rf(this.state.databaseType.id);this.setState({uri:af({type:this.state.databaseType.id,host:this.state.host||e.host,port:Number(this.state.port)||e.port,user:this.state.user||e.user,password:this.state.password||e.password,database:this.state.databaseName||e.database,schema:this.state.schemaName||e.schema})});let t=700;"postgres"===this.state.databaseType.id&&(t+=80),this.state.save&&(t+=180),window.channels.window.resize({height:t})})},this.handleConnect=async()=>{const e=rf(this.state.databaseType.id),t={type:this.state.databaseType.id,host:this.state.host||e.host,port:Number(this.state.port)||e.port,user:this.state.user||e.user,password:this.state.password||e.password,database:this.state.databaseName||e.database,schema:this.state.schemaName||e.schema,ssl:!1},{error:n}=await window.channels.project.validate(t);n?(console.log("Project validation failed",n),this.setState({error:!0})):this.state.save?window.channels.project.create(t,{name:this.state.projectName,path:this.state.projectPath}):window.channels.project.connectOnly(t)};const t=df[0],n=rf(t.id);this.state={databaseType:t,uri:af(n),host:"",port:"0",user:"",password:"",databaseName:"",schemaName:"",save:!1,projectName:"",projectPath:"",error:!1}}render(){const{onBack:e}=this.props,{uri:t,databaseType:n,host:o,port:r,user:i,password:s,databaseName:l,schemaName:u,error:c,save:p,projectName:d,projectPath:h}=this.state,f=rf(n.id);return a.a.createElement("div",{className:pf.a.container},a.a.createElement("div",{className:pf.a.title},"Connect to a database"),a.a.createElement("div",{className:pf.a.content},a.a.createElement(Ah,{className:pf.a.dbTypeCard},a.a.createElement(oa,{type:"text",label:"Database Type",items:df,selectedItem:n,onSelect:this.handleChange.bind(this,"databaseType")})),a.a.createElement(Ah,{className:pf.a.projectCard,style:{flex:`0 0 ${362+("postgres"===n.id?80:0)}px`}},a.a.createElement(a.a.Fragment,null,a.a.createElement(Bs,{type:"text",value:t,className:qe()(pf.a.input,pf.a.uri),onChange:this.handleChange.bind(this,"uri")}),a.a.createElement("div",{className:qe()(pf.a.row,pf.a.multipleCellRow)},a.a.createElement(Bs,{type:"text",placeholder:f.host,value:o,className:qe()(pf.a.input,pf.a.host),onChange:this.handleChange.bind(this,"host")}),a.a.createElement(Bs,{type:"number",placeholder:""+f.port,value:r,className:pf.a.input,onChange:this.handleChange.bind(this,"port")})),a.a.createElement("div",{className:qe()(pf.a.row,pf.a.multipleCellRow)},a.a.createElement(Bs,{type:"text",placeholder:f.user,value:i,className:pf.a.input,onChange:this.handleChange.bind(this,"user")}),a.a.createElement(Bs,{type:"text",placeholder:f.password,value:s,className:pf.a.input,onChange:this.handleChange.bind(this,"password")})),a.a.createElement("div",{className:pf.a.row},a.a.createElement(Bs,{type:"text",placeholder:f.database,value:l,className:pf.a.input,onChange:this.handleChange.bind(this,"databaseName")})),"postgres"===n.id&&a.a.createElement("div",{className:pf.a.row},a.a.createElement(Bs,{type:"text",placeholder:f.schema,value:u,className:pf.a.input,onChange:this.handleChange.bind(this,"schemaName")})))),a.a.createElement(Ah,{className:qe()(pf.a.saveCard,{[pf.a.open]:p})},a.a.createElement("div",{className:pf.a.row},a.a.createElement(ma,{checked:p,onChange:this.handleChange.bind(this,"save")}),a.a.createElement("div",null,"Save as project")),p&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:pf.a.row},a.a.createElement(Bs,{type:"text",className:pf.a.input,placeholder:"",value:d,onChange:this.handleChange.bind(this,"projectName")})),a.a.createElement("div",{className:pf.a.row},a.a.createElement(of,{label:"Project path",className:pf.a.filepicker,value:h,onChange:this.handleChange.bind(this,"projectPath")})))),a.a.createElement("div",{className:pf.a.error},c&&"Unable to connect to database. Are your credentials correct?"),a.a.createElement("div",{className:pf.a.footer},a.a.createElement(yr,{className:pf.a.button,ghost:!0,onClick:e},"Back"),a.a.createElement(yr,{className:pf.a.button,disabled:c,onClick:this.handleConnect},"Connect to database"))))}}var ff=mt(hf),gf=n(19),vf=n.n(gf);var mf=({})=>a.a.createElement("div",{className:vf.a.container},a.a.createElement("div",{className:vf.a.logo},a.a.createElement("div",{className:vf.a.squares},a.a.createElement("div",{className:vf.a.square1}),a.a.createElement("div",{className:vf.a.square2}),a.a.createElement("div",{className:vf.a.square3})),a.a.createElement("span",{className:vf.a.typePrisma},"Prisma"),a.a.createElement("span",{className:vf.a.typeStudio},"Studio")),a.a.createElement("div",{className:vf.a.appInfo},a.a.createElement("a",{className:vf.a.appInfoItem},"0.248.0"),"|",a.a.createElement("a",{className:vf.a.appInfoItem,onClick:()=>console.log("Docs")},"Docs"),"|",a.a.createElement("a",{className:vf.a.appInfoItem,onClick:()=>console.log("Changelog")},"Changelog")));function yf(){return(yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Cf=s.createElement("path",{fill:"none",d:"M10.714 14.969a4.714 4.714 0 100-9.429 4.714 4.714 0 000 9.429zM18 17.54l-3.429-3.428"});var wf=function(e){return s.createElement("svg",yf({viewBox:"0 0 24 24"},e),Cf)},Ef=n(28),bf=n.n(Ef);class _f extends a.a.PureComponent{constructor(e){super(e),this.state={projects:[],searchText:""},this.handleSearch=e=>{this.setState({searchText:e})}}async componentDidMount(){const{error:e,data:t}=await window.channels.project.getAll();if(e)return Bt("ProjectList.componentDidMount","Failed to fetch all projects",{error:e});this.setState({projects:t.map(e=>({id:e.id,name:e.name,path:e.path}))})}handleOpen(e){window.channels.project.open(e)}render(){const{projects:e,searchText:t}=this.state,n=e.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()));return a.a.createElement("div",{className:bf.a.container},a.a.createElement("div",{className:bf.a.header},a.a.createElement(wf,null),a.a.createElement(Bs,{type:"text",className:bf.a.search,value:"",placeholder:"Search",onChange:this.handleSearch})),a.a.createElement("div",{className:bf.a.list},n.map(e=>a.a.createElement("div",{key:e.id,className:bf.a.project,onClick:()=>this.handleOpen(e.id)},a.a.createElement(Jh,null),a.a.createElement("div",{className:bf.a.projectMeta},a.a.createElement("span",{className:bf.a.projectName},e.name),a.a.createElement("span",{className:bf.a.projectDir},e.path))))))}}var Of=_f,Rf=n(24),Sf=n.n(Rf);class Tf extends a.a.PureComponent{constructor(){super(...arguments),this.state={screen:"splash"},this.handleSwitchScreen=e=>{this.setState({screen:e},()=>{"create-project"===this.state.screen&&window.channels.window.resize({width:500,height:700}),"splash"===this.state.screen&&window.channels.window.resize({width:800,height:450})})},this.handleOpen=()=>{console.warn("Project Open is not implemented")}}render(){const{screen:e}=this.state;return a.a.createElement("div",{className:Sf.a.container},a.a.createElement("div",{className:qe()(Sf.a.projects,{[Sf.a.invisible]:"create-project"===e})},a.a.createElement(mf,null),a.a.createElement("div",{className:Sf.a.projectList},a.a.createElement(Of,null),a.a.createElement("div",{className:Sf.a.footer},a.a.createElement(yr,{className:Sf.a.button,disabled:!0,onClick:this.handleOpen},a.a.createElement(a.a.Fragment,null,a.a.createElement(Jh,null),"Open Project")),a.a.createElement(yr,{className:Sf.a.button,onClick:()=>this.handleSwitchScreen("create-project")},a.a.createElement(a.a.Fragment,null,a.a.createElement(fr,null),"Connect to database"))))),a.a.createElement("div",{className:qe()(Sf.a.createProject,{[Sf.a.invisible]:"splash"===e})},a.a.createElement(ff,{onBack:()=>this.handleSwitchScreen("splash")})))}}var Pf=Tf;var Df=new class{constructor(){this.disconnected=!1,this.onConnect=async()=>{this.disconnected&&await tr.init(),Pn.updateError({visible:!1})},this.onDisconnect=()=>{console.log("Prisma Client disconnected"),this.disconnected=!0,Nn.update({type:"connection",title:"Studio's process was terminated.",subtitle:"Please restart it by running `npx @prisma/cli studio --experimental` from your terminal",stacktrace:null,dump:null,context:null,telemetry:!1}),Pn.updateError({visible:!0}),window.transport.reconnect()},window.transport.hooks.onConnect=this.onConnect,window.transport.hooks.onDisconnect=this.onDisconnect}};var Af=()=>({ActionStore:fo,BootstrapStore:tr,ConfigStore:Pa,ConnectionStore:Df,DMMFStore:_o,EnumStore:un,ErrorStore:Nn,FieldStore:fn,LayoutStore:Pn,ModelStore:En,PersistenceStore:Kt,ProjectStore:Jo,RecordStore:bo,ScriptStore:Wo,SessionStore:no,TabStore:qo,ThemeStore:tn});n(105),n(106),n(107);(function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Ue),void 0===e.release){var t=Object(g.f)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&b.enable();var n=S(),o=new e(t);n.bindClient(o)}(fe,e)})({dsn:"https://fb6e137ff2ea425da39d6e92a4d69b58@sentry.io/1762788"}),Object(c.configure)({enforceActions:"always"}),window.PrismaStudio={init:(e,t={})=>{Pa.hydrate(t),u.a.render(a.a.createElement(Yh),e)},splash:e=>{u.a.render(a.a.createElement(Pf),e)}},window.toJS=c.toJS,window.stores=Af(),console.log("Studio version","0.248.0")}]);
396//# sourceMappingURL=studioBundle.js.map
\No newline at end of file